Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT! : How Can I Create Persistent IOR with java 1.4.?

Status
Not open for further replies.

121071

Programmer
Feb 18, 2002
1
0
0
GB
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?.
 
I'm having the exact same problem with code generated by the CORBA wizard in netbeans.
I'm using omniORB 4 and the name service is up and running, and i've also set the
-ORBInitRef NameService=corbaname::__hostname_here__
parameter when running the server, and it still doesn't work.
Any help would be appreciated.
 
Have either of you solved this problem? I am seeing the same thing. If I leave it up to the naming service to start it, it works..if I try it command line passing -ORBInitialPort 1050...it fails with the same error about not being initialized
 
In my opinion you should use option RETAIN. By default retain policy is NONRETAIN what could be incompatible with PERSISTENT. Ion Filipski
1c.bmp


filipski@excite.com
 
I have the same error!!!!!!
Somebody knows the solution?
 
please start a different thread

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
hi,
i am also facing the same problem. has anyone solved this problem....

i am using persistent policy....

help me... it urgent
 
ashk23

could you please put your question in a new thread?

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top