Problem:
- Product Name: VisiBroker
- Product Version: All
- Product Component: ORB
- Platform/OS Version: ALL
- JDK/Compiler Version: ALL
When a security-disabled client is trying to connect to a secured server client encounters INV_OBJREF exception.
Resolution:
In the VBJ client's debug logs, you will see the following IOR which the client is trying to connect to, but will result in INV_OBJREF exception.
28 Mar 2013 16:20:21,961 [main] Info VBJ-Application.orb_com.inprise.vbroker.orb.ORB@1777b1.vbroker.log.default.filter.orb - trying to bind to IOR[type_id=IDL:Portal/Services:1.0,profiles={com.inprise.vbroker.IIOP.ProfileImpl[version=1.2,host=192.168.0.5,port=0,object_key=ServiceId[service=/SecureFactoryPOA,id={4 bytes: (0)(0)(0)(3)},key_string=PMC/SecureFactoryPOA ],components={nothing,OrbTypeComponent{type=1447645952},CodeSetComponent{ForCharData: native codeset=ISO 8859_1 conversion codesets=,ISO UTF-8 ForWcharData: native codeset=ISO UTF-16 conversion codesets=Null},UnknownComponent[tag=33,data={108 bytes: (0)(1)(0)(0)(0)(0)(0)(1)(0)/[B/](0)(0)(0)(0)(0)[$](0)(0)(0)(30)(0)(0)(0)/[f/](0)/[B/](0)(0)(0)(0)(0)(1)(0)(0)(0)(12)[1][9][2][.][1]/[6/]/[8/][.][0][.][5](0)(194)[/](0)(0)(0)(0)(0)(0)(0)(0)(0)(0)(0)(0)(0)(0)(4)(0)(0)(0)(0)(0)(0)(1)/[B/][!](1)(0)(0)(0)(7)/[B/]/[o/]/[a/]/[n/]/[d/](0)(0)(0)(0)(1)(0)(0)(0)(8)(6)(6)/[g/](129)...}],UnknownComponent[tag=20,data={8 bytes: (0)(0)(0)(0)/[B/](194)[/]}]}]}] ()
You can see that two components in the IOR are recognized as UnknownComponents by the client. These two UnknownComponents are the Security-related components -- Tag 33 is TAG_CSI_SEC_MECH_LIST and tag 20 is TAG_SSL_SEC_TRANS.
The client cannot recognize those two components as it has not enabled security.
So, the solution is to enable security in the client as per the security requirements of the server.
SI: 2618496
#Security
#INV_OBJREF
#VisiBroker
#UnknownComponent