My Oracle Support Banner

Primavera P6 Integration API Fails With Errors "Unable to Load Database Instances" and "Access Is Denied" When Using the API in SSL Mode (Doc ID 2567581.1)

Last updated on JULY 19, 2019

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 17.7 and later
Primavera P6 Professional Project Management - Version 17.7 and later
Information in this document applies to any platform.

Symptoms

When attempting to connect to the API using SSL, the following error occurs.

ERROR
-----------------------

In the API client application

Unable to load database instances


com.primavera.integration.network.ServiceNotBoundException: rmi/SSL/RemoteSession
  at com.primavera.integration.network.RMIInstanceFactory.getRemoteInstance(RMIInstanceFactory.java:51)
  at com.primavera.integration.client.DistributedSession.getDatabaseInstances(DistributedSession.java:88)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

In the API application server logs

[RMIServiceManager] ERROR: RMIServiceManager: RegisterRMIServices was failed
java.rmi.server.ExportException: Listen failed on port: 0; nested exception is:
    java.io.IOException: C:\P6EPPM_1\api (Access is denied)
    at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:343)
    at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:249)
    at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
    at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
    at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:236)
    at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:383)
    at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:346)
    at com.primavera.integration.server.RMIServiceManager.a(RMIServiceManager.java:631)
    at com.primavera.integration.server.RMIServiceManager.rebind(RMIServiceManager.java:531)
    at com.primavera.integration.server.RMIServiceManager.bind(RMIServiceManager.java:367)
    at com.primavera.integration.server.RMIServiceManager.start(RMIServiceManager.java:336)
    at com.primavera.integration.server.RMISetupServlet.init(RMISetupServlet.java:84)
Caused by: java.io.IOException: C:\P6EPPM_1\api (Access is denied)
    at com.primavera.integration.network.rmiserver.RMISSLServerSocketFactory.getSSLServerSocketFactory(RMISSLServerSocketFactory.java:130)
    at com.primavera.integration.network.rmiserver.RMISSLServerSocketFactory.createServerSocket(RMISSLServerSocketFactory.java:42)
    at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
    at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:330)

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.