1 Reply Latest reply: Feb 25, 2014 2:44 AM by a2b394d2-2516-4e2b-aacf-3cf53ad79a92 RSS

Weblogic JNDI Lookup Fails via Spring

a2b394d2-2516-4e2b-aacf-3cf53ad79a92 Newbie
Currently Being Moderated

Hi Everyone,

    For past one week i've been facing a problem. There is a weblogic server running at remote place and i need to access the API's in that remote method using JNDI lookup. My application is configured in Spring Tool Suite IDE with java 6 and tomcat 7 and I have used Spring to perform the jndi lookup of weblogic server. In spring i have used simpleremotestatelesssessionproxyfactorybean class to lookup a weblogic server using jndi and get the remote object. But somehow on doing it i'm getting the following error.

 

org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 203 completed: Maybe

       at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(Unknown Source)

       at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(Unknown Source)

       at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.sendWithoutLock(Unknown Source)

       at com.sun.corba.se.impl.encoding.BufferManagerWriteStream.sendFragment(Unknown Source)

       at com.sun.corba.se.impl.encoding.BufferManagerWriteStream.sendMessage(Unknown Source)

       at com.sun.corba.se.impl.encoding.CDROutputObject.finishSendingMessage(Unknown Source)

       at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.finishSendingRequest(Unknown Source)

       at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete1(Unknown Source)

       at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(Unknown Source)

       at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(Unknown Source)

       at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(Unknown Source)

       at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)

       at weblogic.corba.j2ee.naming.Utils.narrowContext(Utils.java:126)

       at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:94)

       at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:31)

       at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:41)

       at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

       at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

       at javax.naming.InitialContext.init(Unknown Source)

       at javax.naming.InitialContext.<init>(Unknown Source)

       at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:136)

       at org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:103)

       at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)

       at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)

       at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)

       at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)

       at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)

       at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.lookup(AbstractRemoteSlsbInvokerInterceptor.java:100)

       at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.getHome(AbstractSlsbInvokerInterceptor.java:165)

       at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.create(AbstractSlsbInvokerInterceptor.java:215)

       at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.newSessionBeanInstance(AbstractRemoteSlsbInvokerInterceptor.java:225)

       at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.getSessionBeanInstance(SimpleRemoteSlsbInvokerInterceptor.java:142)

       at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:98)

       at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invokeInContext(AbstractRemoteSlsbInvokerInterceptor.java:141)

       at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.invoke(AbstractSlsbInvokerInterceptor.java:189)

       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)


Caused by: java.io.IOException: write not supported

       at weblogic.corba.client.cluster.DummySocket$2.write(DummySocket.java:35)

       at java.io.OutputStream.write(Unknown Source)

       at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.write(Unknown Source)

       at com.sun.corba.se.impl.encoding.CDROutputObject.writeTo(Unknown Source)

       ... 125 more


The exception is been thrown at com.sun.corba.se.impl.encoding.CDROutputObject method when calling writeTo(). Can anyone let me know why i'm getting this error and can i do anything to remediate it. Irrespective of java this error occurs, i tried with java 5, 6 and 7 but still getting the same error. Please help me out of it.


-Vijay

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points