Skip to main content
Summary retrieving same Java ORB instance causes org.omg.CORBA.NO_PERMISSION exception
Article Number 19233
Environment Orbix Java Runtime All Supported Operating Systems Orbix 6.3.4
Question/Problem Description retrieving same Java ORB instance causes org.omg.CORBA.NO_PERMISSION exception
org.omg.CORBA.NO_PERMISSION: orb with this id already exists
invoking ORB.init() with identical ORBid throws NO_PERMISSION.
Clarifying Information
Error Message
Defect/Enhancement Number
Cause The IDL-to-Java mapping specifies that each invocation of ORB.init(args..) returns a new instance of the ORB.
Resolution

An existing instance of the ORB can be retrieved by following these steps :

  1. specify the ORBid associated with the ORB instance being retrieved. The ORBid can be specified in the Properties argument of ORB.init().
  2. set the following configuration property in the application's Orbix Configuration scope:

    orb_management:retrieve_existing_orb = "true";

For further information see "Orbix Configuration Reference" in the "orb_management" section.

Workaround
Notes
Attachment
Created date: 06 September 2011
Last Modified: 13 February 2013
Last Published: 23 June 2012
First Published date: 10 September 2011

#KnowledgeDocs
#Orbix