Topic: 开发ejb出现的问题。高手求助~!~ |
Print this page |
1.开发ejb出现的问题。高手求助~!~ | Copy to clipboard |
Posted by: etrustzhang2004 Posted on: 2004-11-03 11:41 java.rmi.MarshalException: error marshalling arguments; nested exception is: java.io.NotSerializableException: org.postgresql.jdbc2.Connection at sun.rmi.server.UnicastRef.invoke(Unknown Source) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Sour ce) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvo kerProxy.java:138) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav a:108) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor. java:77) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:8 0) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy0.create(Unknown Source) at com.ets.mgtph1.db.Client.main(Client.java:30) Caused by: java.io.NotSerializableException: org.postgresql.jdbc2.Connection at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeArray(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at org.jboss.invocation.MarshalledValue.<init>(MarshalledValue.java:57) at org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInv ocation.java:343) at java.io.ObjectOutputStream.writeExternalData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at sun.rmi.server.UnicastRef.marshalValue(Unknown Source) |
2.Re:开发ejb出现的问题。高手求助~!~ [Re: etrustzhang2004] | Copy to clipboard |
Posted by: heaven Posted on: 2004-11-03 12:13 ejb容器需要将参数序列化后才能传递,因此传递的参数需要实现Serializable接口 |
3.Re:开发ejb出现的问题。高手求助~!~ [Re: etrustzhang2004] | Copy to clipboard |
Posted by: etrustzhang2004 Posted on: 2004-11-03 13:05 不太明白,请说的再详细点.最好举个例子. 谢谢 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |