急!请教client.findbyprimary()问题!

williams415 2004-04-30 09:48:18
小弟我用JBx先作了一个entity bean用***testclient测试时,当我在main里面只添加
client.findBYprimary(new Integer(1));编译通过了,但是运行就不行了.
去掉这句就又通过了.
出错显示:
-- Initializing bean access.
-- Succeeded initializing bean access through Home interface.
-- Execution time: 4476 ms.
-- Calling findByPrimaryKey(1)
java.lang.IllegalArgumentException
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
at jiang4.BasicQ_frxe96_HomeImpl_812_WLStub.findByPrimaryKey(Unknown Source)
at jiang4.BasicQTestClient1.findByPrimaryKey(BasicQTestClient1.java:112)
at jiang4.BasicQTestClient1.main(BasicQTestClient1.java:361)
Caused by: java.lang.IllegalArgumentException
at sun.reflect.GeneratedConstructorAccessor52.newInstance(Unknown Source)-- Failed: findByPrimaryKey(1)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at weblogic.rmi.internal.OIDManager.makeActivatableServerReference(OIDManager.java:242)
at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:169)
at weblogic.rmi.utils.io.RemoteObjectReplacer.getReplacement(RemoteObjectReplacer.java:271)
at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:96)
at weblogic.rmi.utils.io.InteropObjectReplacer.replaceObject(InteropObjectReplacer.java:49)
at weblogic.common.internal.ChunkedObjectOutputStream.replaceObject(ChunkedObjectOutputStream.java:52)
at weblogic.common.internal.ChunkedObjectOutputStream$NestedObjectOutputStream.replaceObject(ChunkedObjectOutputStream.java:243)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1020)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:116)
at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:93)
at jiang4.BasicQ_frxe96_HomeImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
-- Return value from findByPrimaryKey(1): null.



这是怎么回事,谁能帮小弟解决一下这个问题?不胜感激
...全文
130 回复 点赞 打赏 收藏 举报
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
相关推荐
发帖
Java
加入

4.8w+

社区成员

Java相关技术讨论
申请成为版主
帖子事件
创建了帖子
2004-04-30 09:48
社区公告
暂无公告