发布成功了,但客户段调用有问题,帮帮忙啊

04-07-02 lailailai
我用jboss和jb9做了个简单的实体bean,发布没问题

执行客户段时,抛出下列异常:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:

java.rmi.ServerException: EJBException:; nested exception is:

javax.ejb.EJBException: Internal error setting instance field productID; CausedByException is:

helloworld.ProductPK

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)

at sun.rmi.transport.Transport$1.run(Transport.java:148)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:144)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)

at java.lang.Thread.run(Thread.java:534)

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)

at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)

at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)

at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)

at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)

at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)

at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)

at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)

at $Proxy0.create(Unknown Source)

at helloworldclient.ProductClient.main(ProductClient.java:22)

主键类代码为:

package helloworld;

import java.io.Serializable;

public class ProductPK implements Serializable{

public String productID;

public ProductPK(String productID) {

this.productID = productID;

}

public String toString(){

return productID.toString();

}

public int hashCode(){

return productID.hashCode();

}

public boolean equals(Object prod){

return ((ProductPK)prod).productID.equals(productID);

}

}

jeston2001
2004-07-02 10:57
老大,你可有JBoss文n,能否l我一份,不甚感x!imx_jeston@hotmail.com

lailailai
2004-07-02 11:09
发到你的邮箱里了

有关于jboss的东东别忘了我呀

猜你喜欢