• Post Reply Bookmark Topic Watch Topic
  • New Topic

Persistent Sever using Java ORB  RSS feed

 
Ashish Khandelwal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to generate an persistent IOR for my server using java 1.4 but i cannot seem to get pass Create_POA.
My code is below
rootPOA = POAHelper.narrow (m_orb.resolve_initial_references ("RootPOA"));

// Define policies for child POA
Policy [] policies = new org.omg.CORBA.Policy[1];
policies[0] = rootPOA.create_lifespan_policy (LifespanPolicyValue.PERSISTENT);
// Create the child POA
POA childPOA = rootPOA.create_POA ("Test", rootPOA.the_POAManager(), policies);
I keep getting this Exception below
ERROR: org.omg.CORBA.INITIALIZE: Persistent Server Id not initialized vmcid: SUN minor code: 1002 completed: Maybe
org.omg.CORBA.INITIALIZE: Persistent Server Id not initialized vmcid: SUN minor code: 1002 completed: Maybe
at com.sun.corba.se.internal.POA.POAORB.getPersistentServerId(POAORB.java:399)
at com.sun.corba.se.internal.POA.POAImpl.pre_initialize(POAImpl.java:159)
at com.sun.corba.se.internal.POA.POAImpl.<init>(POAImpl.java:111)
at com.sun.corba.se.internal.POA.POAImpl.makePOA(POAImpl.java:126)
at com.sun.corba.se.internal.POA.POAImpl.create_POA(POAImpl.java:216)
at com.sun.corba.se.internal.POA.POAImpl.create_POA(POAImpl.java:521)
Is there something i am doing Wrong OR Is it just not possible with Java ORB?. Does this mean i need to get a 3rd party ORB?.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!