Error "com.primavera.integration.client.ClientException: Unable to get database instances" Occurs When Using the P6 Integration API (Doc ID 899377.1)

Last updated on JULY 29, 2015

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 6.1 and later
All Platforms

Symptoms

The following error occurs when running the API:

com.primavera.integration.client.ClientException: Unable to get database instances.

at com.primavera.integration.client.Session.getDatabaseInstances(Session.java:318)
at connection.PrimaveraConnection.getConnection(PrimaveraConnection.java:44)
at ZZProjectIntegration.createUpdateProject(ZZProjectIntegration.java:242)

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.primavera.integration.server.ServerFacade

at com.primavera.integration.client.LocalSession.getDatabaseInstances(LocalSession.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.primavera.integration.client.Session.getDatabaseInstances(Session.java:300)
... 2 more

Original Exception:
java.lang.NoClassDefFoundError: Could not initialize class com.primavera.integration.server.ServerFacade

at com.primavera.integration.client.LocalSession.getDatabaseInstances(LocalSession.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.primavera.integration.client.Session.getDatabaseInstances(Session.java:300)
at connection.PrimaveraConnection.getConnection(PrimaveraConnection.java:44)
at ZZProjectIntegration.createUpdateProject(ZZProjectIntegration.java:242)

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms