当前位置: 技术问答>java相关
为什么呢?不明白。
来源: 互联网 发布时间:2015-04-27
本文导语: 建立好一个SessoinBean后,用JBuilder的EJB test Client建一个客户端测试程序。 WebLogic,Smart Agent已经启动。 为什么出现底下的错误呢? -- Initializing bean access. org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 0 completed: No at java....
建立好一个SessoinBean后,用JBuilder的EJB test Client建一个客户端测试程序。
WebLogic,Smart Agent已经启动。
为什么出现底下的错误呢?
-- Initializing bean access.
org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.inprise.vbroker.orb.SE.read(SE.java:28)
at com.inprise.vbroker.orb.DelegateImpl.handleReply(DelegateImpl.java:776)
-- Failed initializing bean access.
at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:662)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at com.inprise.vbroker.orb.RequestImpl._invoke(RequestImpl.java:208)
at com.inprise.vbroker.orb.RequestImpl.invoke(RequestImpl.java:134)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:156)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at sbtutorial.TimeFunctionsTestClient1.(TimeFunctionsTestClient1.java:30)
at sbtutorial.TimeFunctionsTestClient1.main(TimeFunctionsTestClient1.java:158)
java.lang.NullPointerException
at sbtutorial.TimeFunctionsTestClient1.create(TimeFunctionsTestClient1.java:65)
at sbtutorial.TimeFunctionsTestClient1.main(TimeFunctionsTestClient1.java:159)-- Calling create()
-- Failed: create()
-- Return value from create(): null.
WebLogic,Smart Agent已经启动。
为什么出现底下的错误呢?
-- Initializing bean access.
org.omg.CORBA.OBJECT_NOT_EXIST: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.inprise.vbroker.orb.SE.read(SE.java:28)
at com.inprise.vbroker.orb.DelegateImpl.handleReply(DelegateImpl.java:776)
-- Failed initializing bean access.
at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:662)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at com.inprise.vbroker.orb.RequestImpl._invoke(RequestImpl.java:208)
at com.inprise.vbroker.orb.RequestImpl.invoke(RequestImpl.java:134)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:156)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at sbtutorial.TimeFunctionsTestClient1.(TimeFunctionsTestClient1.java:30)
at sbtutorial.TimeFunctionsTestClient1.main(TimeFunctionsTestClient1.java:158)
java.lang.NullPointerException
at sbtutorial.TimeFunctionsTestClient1.create(TimeFunctionsTestClient1.java:65)
at sbtutorial.TimeFunctionsTestClient1.main(TimeFunctionsTestClient1.java:159)-- Calling create()
-- Failed: create()
-- Return value from create(): null.
|
从异常来看应该是你的jbuilder中的CORBA选项没有配置好。
|
Context ctx = new InitialContext();
的初始化方式改为:(要import java.util.*)
Properties properties = null;
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, "t3://localhost:7001");//此处是你EJB服务器的位置
InitialContext context = new InitialContext(properties);
的初始化方式改为:(要import java.util.*)
Properties properties = null;
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, "t3://localhost:7001");//此处是你EJB服务器的位置
InitialContext context = new InitialContext(properties);
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。