[jacorb-developer] PortableInterceptor and ServantLocator Together Cause Exception

McKnerney, Michael D (US SSA) michael.mcknerney at baesystems.com
Tue Jun 26 02:17:40 CEST 2012


Hi,

Is it a known issue when using ServantLocator together with PortableInterceptor that this exception is always raised?

Jun 25, 2012 10:32:17 PM org.jacorb.orb.Delegate servant_preinvoke
SEVERE: unexpected exception during servant_preinvoke
org.omg.CORBA.BAD_INV_ORDER: The Servant has not been associated with an ORBinstance
        at org.omg.PortableServer.Servant._get_delegate(Servant.java:111)
        at org.omg.PortableServer.Servant._poa(Servant.java:30)
        at org.jacorb.orb.portableInterceptor.ServerRequestInfoImpl.setServant(ServerRequestInfoImpl.java:153)
        at org.jacorb.orb.portableInterceptor.ServerRequestInfoImpl.<init>(ServerRequestInfoImpl.java:133)
        at org.jacorb.orb.Delegate.servant_preinvoke(Delegate.java:2644)
        at org.jacorb.orb.Delegate.is_a(Delegate.java:1789)
        at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:53)
        at GIAS.LibraryManagerHelper.narrow(LibraryManagerHelper.java:59)
        at baex.gl.gateway.gias.LibraryImpl.get_manager(LibraryImpl.java:81)

I can post code if need be but essentially what I have is a servant (LibraryImpl) that is in the process of processing a method (get_manager) and during the processing it invokes narrow() which is handled within the same thread as the get_manager().

If I take out the portable interceptor, all works as expected so I figure this might be a known issue?

Thanks,
mike


More information about the jacorb-developer mailing list