釋出成功了,但客戶段呼叫有問題,幫幫忙啊
我用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);
}
}
執行客戶段時,丟擲下列異常:
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);
}
}
相關文章
- 救命啊!哪位大哥幫幫忙啊 程式出來很大的問題哦
- SPRING整合STRUCTS的小白問題 高手們幫幫忙啊SpringStruct
- 一個寫xml的問題,高手幫忙啊!XML
- 幫忙看看我得ejb客戶端客戶端
- 請高手幫忙了,關於javamail的問題JavaAI
- synchronized關鍵字問題?各位高手,幫幫忙!synchronized
- 關於Jboss應用ear檔案的釋出問題,幫忙看看:)
- Jbuilder 問題,請大俠幫忙!!!UI
- 用過javamail的朋友幫幫忙,我真的沒有辦法了?!!!JavaAI
- 佈置完SimpleJdonFrameworkTest出現了一個問題幫忙解決下Framework
- 各位大哥,jboss配置資料來源的問題,幫幫忙!
- 急不理解的問題,大家幫幫忙,關於jive
- 有關java的unicode編碼的問題,大家幫忙JavaUnicode
- 有關單體模式設計的問題,請大家幫忙模式
- 做交叉編譯時候的一點問題,麻煩有這方面經驗的人幫個忙,謝謝了啊(轉)編譯
- spring+Hibernate執行時出錯,各位大哥幫忙啊!!!!!!!!!!!!!!!!!!!Spring
- 安裝JPETSTORE出錯,請幫忙看看是哪出了問題.
- model 與modelform屬性對應問題,誰幫幫我啊ORM
- 用jmeter測試webshere下面的jsf出現了問題,請幫忙解決。JMeterWebJS
- 高手幫忙
- 高手幫忙!
- 我正在改JIVE,但碰到很麻煩的問題,希望能幫忙解決
- NIO Socket的2個問題?請高手幫忙!
- 高手、板主幫忙,一個加密的問題!!!加密
- 實時更新顯示問題清高手幫忙!!
- jms的問題,請高手幫忙解決一下,先謝了
- JNDI中Context初始化的問題!請幫幫忙,急需解決!Context
- 一個執行緒的問題。請大俠進來幫幫忙看看執行緒
- jboss3安裝有問題多謝幫忙看一下S3
- 熟悉ibatis的請幫幫忙!BAT
- 安裝jivajond3出現的問題,求banq老師幫忙!
- 請高手幫忙!
- 急,高手幫忙!
- banq 老師幫忙啊 如何設定log4j???
- 關於資料庫的問題。請幫忙看下,在下先謝謝了資料庫
- 一個郵件的JAVABEAN問題,請高手幫忙JavaBean
- jf6.2初學者問題,請大家幫忙看看
- 來幫我看看這個簡單的遠端客戶端呼叫EJB出錯的例子,謝謝了客戶端