[jboss-user] [JNDI and Naming] - Re: PortableRemoteObject.narrow() returns null

Brian Lara do-not-reply at jboss.com
Thu Oct 18 11:50:26 EDT 2012


Brian Lara [https://community.jboss.org/people/bclara] created the discussion

"Re: PortableRemoteObject.narrow() returns null"

To view the discussion, visit: https://community.jboss.org/message/766729#766729

--------------------------------------------------------------
Yes, that is exactly what I have.

Below are logs from EJB server showing successful deployment, could verify same in JNDIView MBean


2012-10-18 10:08:38,986 INFO  [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] (main) Bound EJB LocalHome 'VehicleInterface' to jndi 'ejb/com/vehicle/ejb/VehicleInterfaceLocalHome'
2012-10-18 10:08:39,127 INFO  [org.jboss.proxy.ejb.IORFactory.ejb/com/vehicle/ejb/VehicleInterfaceHome] (main) EJBHome reference for ejb/com/vehicle/ejb/VehicleInterfaceHome:
IOR:000000000000003C524D493A636F6D2E6F6E65736869656C642E6461702E656A622E446170496E74657266616365486F6D653A3030303030303030303030303030303000000000020000000000000108000102000000000A3132372E302E302E31000E2C000000444A426F73732F454A42486F6D652625656A622625636F6D26256F6E65736869656C6426256461702625656A622625446170496E74657266616365486F6D652FACED000570000000050000000000000008000000004A414300000000010000001C0000000000010001000000010501000100010109000000010501000100000019000000510000000000000049687474703A2F2F3132372E302E302E313A383138332F576562434C5B656A622F636F6D2F6F6E65736869656C642F6461702F656A622F446170496E74657266616365486F6D655D2F000000000000002000000004000000000000001F0000000400000003000000010000007C000000000000000300000019000000510000000000000049687474703A2F2F3132372E302E302E313A383138332F576562434C5B656A622F636F6D2F6F6E65736869656C642F6461702F656A622F446170496E74657266616365486F6D655D2F000000000000002000000004000000000000001F0000000400000003
2012-10-18 10:08:39,127 INFO  [org.jboss.proxy.ejb.IORFactory.ejb/com/vehicle/ejb/VehicleInterfaceHome] (main) Home IOR for VehicleInterface bound to iiop/ejb/com/vehicle/ejb/VehicleInterfaceHome in JNP naming service
2012-10-18 10:08:39,330 INFO  [org.jboss.proxy.ejb.IORFactory.ejb/com/vehicle/ejb/VehicleInterfaceHome] (main) Home IOR for VehicleInterface bound to ejb/com/vehicle/ejb/VehicleInterfaceHome in CORBA naming service


When I do lookup on client side, i get object of CORBAObjectImpl but narrow returns null.
I also tried doing lookup from java main test method and also get null after doing PortableRemoteObject.narrow()


I see 4-5 posts on this very issue but nowhere has anymore mentioned the resolution which seems suprising to me.
Do we need to decorate EJB client with some JBoss descriptor file or setup some security or enable dynamic proxy?


Is there a workaround to generate static stubs for RMI/IIOP somehow because when I deploy my Websphere client jar (with stubs in it), narrow works fine and gives me Home reference back.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/766729#766729]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121018/f0048b93/attachment.html 


More information about the jboss-user mailing list