Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

com.primavera.integration.client.ClientException: Fatal error: null

3575606Mar 28 2018 — edited Mar 29 2018

I created a program using the P6 Integration API, Primavera P6 Professional Project Management software, and NetBeans IDE. I cannot necessarily disclose what this program does, or go into detail as to how it works, but I do not think that will be an issue in this case.

I will begin by saying I combined the executable JAR file and the JAR files (contained in the associated lib folder) that are created when you Clean and Build a project in NetBeans in order to package it into an exe that can be distributed as needed. I added the following code to the build.xml file to do so:

<target name="package-for-launch4j" depends="clean,compile,jar">

     <property name="launch4jexe.dir" location="C:\Program Files (x86)\Launch4j" />

     <taskdef name="launch4j"

              classname="net.sf.launch4j.ant.Launch4jTask"

              classpath="${launch4jexe.dir}/launch4j.jar

             :${launch4jexe.dir}/lib/xstream.jar" />

     <property name="launch4j.jar.name" value="APP"/>

     <property name="launch4j.dir" value="exe"/>

     <property name="launch4j.jar" value="${launch4j.dir}/${launch4j.jar.name}.jar"/>

     <echo message="Packaging ${application.title} into a single JAR at ${launch4j.jar}"/>

     <delete dir="${launch4j.dir}"/>

     <mkdir dir="${launch4j.dir}"/>

     <jar destfile="${launch4j.dir}/temp_final.jar" filesetmanifest="skip">

         <zipgroupfileset dir="dist" includes="*.jar"/>

         <zipgroupfileset dir="dist/lib" includes="*.jar"/>

         <manifest>

         <attribute name="Main-Class" value="${main.class}"/>

         </manifest>

     </jar>

     <zip destfile="${launch4j.jar}">

         <zipfileset src="${launch4j.dir}/temp_final.jar"

             excludes="META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA"/>

     </zip>

     <delete file="${launch4j.dir}/temp_final.jar"/>

     <launch4j configFile="misc/app.xml" />

With that said, when I go to run the exe, I can get through a few interactions that are solely contained in the main class, but when I attempt to connect to the XE database through this exe, I get the following error: (were app is my program)

Mar 28, 2018 4:34:44 PM pkgcase.app DBConnect_ContinueActionPerformed
SEVERE: null
com.primavera.integration.client.ClientException: Fatal error: null
at com.primavera.integration.client.Session.a(Session.java:379)
at com.primavera.integration.client.Session.login(Session.java:339)
at pkgcase.app.DBConnect_ContinueActionPerformed(app.java:885)
at pkgcase.app.access$600(app.java:43)
at pkgcase.app$7.actionPerformed(app.java:324)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Original Exception:
java.lang.NullPointerException
at com.primavera.bo.datacaches.ServerUserPrivsCache.getServerUserPrivsCache(ServerUserPrivsCache.java:765)
at com.primavera.bo.common.a.a(LoginHelper.java:360)
at com.primavera.bo.common.a.a(LoginHelper.java:166)
at com.primavera.bo.remotable.SessionLifetime.login(SessionLifetime.java:57)
at com.primavera.bo.remotable.qproxy.SessionLifetime.login(SessionLifetime.java:76)
at com.primavera.bo.DBSessionLifetime.login(DBSessionLifetime.java:26)
at com.primavera.integration.server.ServerFacadeBase.login(ServerFacadeBase.java:411)
at com.primavera.integration.server.ServerFacade.login(ServerFacade.java:11)
at com.primavera.integration.client.LocalSession.login(LocalSession.java:92)
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.a(Session.java:351)
at com.primavera.integration.client.Session.login(Session.java:339)
at pkgcase.app.DBConnect_ContinueActionPerformed(app.java:885)
at pkgcase.app.access$600(app.java:43)
at pkgcase.app$7.actionPerformed(app.java:324)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

The program works when it it simply the executable jar accompanied by the associated lib folder, but not when packaged in the exe. But I am unsure what this error means, and thus cannot determine what is going wrong in the packaging of the exe... Is it simply that the exe cannot access the database? Any advice/help would be very appreciated.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2018
Added on Mar 28 2018
3 comments
306 views