Topic
3 replies Latest Post - ‏2014-01-24T10:10:46Z by nur_111
SystemAdmin
SystemAdmin
199 Posts
ACCEPTED ANSWER

Pinned topic PE Java API Connection Error: Failed to retrieve an IOR for vworbbroker

‏2013-03-14T22:42:06Z |
I am trying to get a VWSession from a standalone java class. I have CE & PE API jars in build path. But getting this weird error. I even tried using an IP address instead of server name, but no luck. Interestingly it takes while to actually throw this exception. Not sure where the problem is.

Code:

VWSession m_vwSession = new VWSession();
m_vwSession.setBootstrapCEURI("iiop://myserver:2809/FileNet/Engine");
m_vwSession.logon("name", "passwrd", "P8Conn");
Eclipse VM args:

-Djava.security.auth.login.config=file:C:\IBM\jaas.conf.WebSphere
-Dcom.ibm.CORBA.ConfigURL=file:C:\IBM\sas.client.props
-Djava.ext.dirs="C:\IBM\java\jre\lib\ext;C:\IBM\lib;C:\ActivityManagement\IBM\plugins"
Exception:
Mar 14, 2013 4:31:35 PM null null
INFO: Client code attempting to load security configuration
Mar 14, 2013 4:31:35 PM null null
AUDIT: security.LoadSCI
Mar 14, 2013 4:31:35 PM null null
AUDIT: security.GettingConfig
Mar 14, 2013 4:31:35 PM null null
INFO: ssl.disable.url.hostname.verification.CWPKI0027I
Mar 14, 2013 4:31:35 PM null null
AUDIT: security.AuthTarget
Mar 14, 2013 4:31:35 PM null null
INFO: Client code attempting to load security configuration
Mar 14, 2013 4:31:35 PM null null
AUDIT: security.ClientCSI
Mar 14, 2013 4:31:37 PM null null
SEVERE: security.securityserver.error
Failed to connect to vworbbroker on localhost:32776[1]. Check server connection.
filenet.pe.peorb.client.ORBServiceHelper$VWORBBrokerNotStarted: Failed to retrieve an IOR for vworbbroker. URL=http://localhost:32776/IOR/FileNet.PE.vworbbroker. Check PE server to make sure that vworbbroker process is started.
at filenet.pe.peorb.client.ORBSession.getPERPCService(ORBSession.java:692)
at filenet.pe.peorb.client.ORBSession.establishORBSession(ORBSession.java:585)
at filenet.pe.peorb.client.ORBSession.<init>(ORBSession.java:915)
at filenet.vw.server.PECommandsFactory.getPECommands(PECommandsFactory.java:135)
at filenet.vw.api.VWSession.logonByDomain(VWSession.java:847)
at filenet.vw.api.VWSession.logon(VWSession.java:706)
at samples.api.SessionHelper.logon(SessionHelper.java:72)
at samples.api.SessionHelper.main(SessionHelper.java:115)
Caused by: filenet.pe.peorb.client.ORBServiceHelper$VWORBBrokerNotStarted: Failed to retrieve an IOR for vworbbroker. URL=http://localhost:32776/IOR/FileNet.PE.vworbbroker. Check PE server to make sure that vworbbroker process is started.
at filenet.pe.peorb.client.ORBServiceHelper.getPERPCIOR(ORBServiceHelper.java:855)
at filenet.pe.peorb.client.ORBServiceHelper.getPERPC(ORBServiceHelper.java:624)
at filenet.pe.peorb.client.ORBSession.getPERPCService(ORBSession.java:688)
... 7 more
Updated on 2013-03-15T17:27:02Z at 2013-03-15T17:27:02Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    199 Posts
    ACCEPTED ANSWER

    Re: PE Java API Connection Error: Failed to retrieve an IOR for vworbbroker

    ‏2013-03-14T23:24:37Z  in response to SystemAdmin
    Ok. I tried to connect to a different FileNet DEV server we have and now I get a different message, but no exception.

    SEVERE: security.securityserver.error
    PE API ORB pool minimum = 1, maximum = 10

    Here is the complete stack

    Writing messages to file: MainSample.out
    Mar 14, 2013 5:21:08 PM null null
    INFO: Client code attempting to load security configuration
    Mar 14, 2013 5:21:09 PM null null
    AUDIT: security.LoadSCI
    Mar 14, 2013 5:21:09 PM null null
    AUDIT: security.GettingConfig
    Mar 14, 2013 5:21:09 PM null null
    INFO: ssl.disable.url.hostname.verification.CWPKI0027I
    Mar 14, 2013 5:21:09 PM null null
    AUDIT: security.AuthTarget
    Mar 14, 2013 5:21:09 PM null null
    INFO: Client code attempting to load security configuration
    Mar 14, 2013 5:21:09 PM null null
    AUDIT: security.ClientCSI
    Mar 14, 2013 5:21:10 PM null null
    SEVERE: security.securityserver.error
    PE API ORB pool minimum = 1, maximum = 10
    Mar 14, 2013 5:21:15 PM null null
    AUDIT: security.LoadSCI
    Mar 14, 2013 5:21:15 PM null null
    INFO: Client code attempting to load security configuration
    Mar 14, 2013 5:21:15 PM null null
    AUDIT: security.ClientCSI
    • SystemAdmin
      SystemAdmin
      199 Posts
      ACCEPTED ANSWER

      Re: PE Java API Connection Error: Failed to retrieve an IOR for vworbbroker

      ‏2013-03-15T17:27:02Z  in response to SystemAdmin
      It is working now.

      I was stupid - I had an instance VWSession variable as null and created a local VWSession , but was returning instance Variable which is null.
      • nur_111
        nur_111
        1 Post
        ACCEPTED ANSWER

        Re: PE Java API Connection Error: Failed to retrieve an IOR for vworbbroker

        ‏2014-01-24T10:10:46Z  in response to SystemAdmin

        Can you write how you connected another way I have same error

        "VWException Key: orb.session.FailedToConnectToVWORBBroker 

        filenet.pe.peorb.client.ORBServiceHelper$VWORBBrokerNotStarted"