Announcement Announcement Module
Collapse
No announcement yet.
RemoteLookupFailureException! Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RemoteLookupFailureException!

    Hi,

    I'm getting the following exception when trying to create a JndiRmiProxyFactoryBean:

    org.springframework.remoting.RemoteLookupFailureEx ception: JNDI lookup for RMI service [commons/functions] failed; nested exception is javax.naming.ConfigurationException: Invalid object reference: null [Root exception is org.omg.CORBA.INV_OBJREF: vmcid: 0x0 minor code: 0 completed: No]
    Caused by: javax.naming.ConfigurationException: Invalid object reference: null [Root exception is org.omg.CORBA.INV_OBJREF: vmcid: 0x0 minor code: 0 completed: No]
    at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext( Unknown Source)
    at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(Unkn own Source)
    at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(Unknown Source)
    at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext (Unknown Source)
    at com.sun.jndi.cosnaming.CNCtx.<init>(Unknown Source)
    at com.sun.jndi.cosnaming.CNCtxFactory.getInitialCont ext(Unknown Source)
    at javax.naming.spi.NamingManager.getInitialContext(U nknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unkn own Source)
    at javax.naming.InitialContext.init(Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at org.springframework.jndi.JndiTemplate.createInitia lContext(JndiTemplate.java:106)
    at org.springframework.jndi.JndiTemplate.execute(Jndi Template.java:84)
    at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:122)
    at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:147)
    at org.springframework.jndi.JndiLocatorSupport.lookup (JndiLocatorSupport.java:91)
    at org.springframework.jndi.JndiObjectLocator.lookup( JndiObjectLocator.java:101)
    at org.springframework.remoting.rmi.JndiRmiClientInte rceptor.lookupStub(JndiRmiClientInterceptor.java:2 03)...

    //////////////////////////////////////////////////////////

    The config I'm using is the following:

    <bean class="org.springframework.remoting.rmi.JndiRmiPro xyFactoryBean" id="functionsService">
    <property name="jndiEnvironment">
    <props>
    <prop key="java.naming.factory.initial">com.sun.jndi.cos naming.CNCtxFactory</prop>
    <prop key="java.naming.provider.url">iiop://dev:9000</prop>
    <prop key="java.naming.security.principal">jagadmin</prop>
    <prop key="java.naming.security.credentials"></prop>
    </props>
    </property>
    <property name="jndiName" value="commons/functions"/>
    <property name="serviceInterface" value="mypackage.FunctionsService"/>
    <property name="refreshStubOnConnectFailure" value="true"/>
    <property name="lookupStubOnStartup" value="false"/>
    </bean>

    Any ideas?

    Thanks,

    Martin
Working...
X