Support Article

Sporadic NoClassDefFoundErr exception after calling SOAP Service

SA-27419

Summary



While trying to validate a policy in their application, the user gets an error NoClassDefFoundErr after hitting “Policy Validation”.

User has checked in logs and found that the below Classes were showing as “NotFound”:
• com.pega.apache.http.impl.client.DefaultHttpClient
• com.pega.apache.axiom.soap.impl.llom.soap11.SOAP11FaultImpl
• com.pega.apache.axis2.AxisFault
• com.pega.apache.axiom.om.OMAbstractFactory

The system was unable to find the path for one or more of the above mentioned classes and the issue is sporadic in nature and not reproducible in earlier environments.

But when the files were tracked in Production environment for those specific paths, for example: ..extractedFiles/apploader/praxiom-1.2.13.jar, the files were present there.


Error Messages



Found the "NoClassDefFoundError" exceptions in the log files for the below classes:

• com.pega.apache.http.impl.client.DefaultHttpClient
• com.pega.apache.axiom.soap.impl.llom.soap11.SOAP11FaultImpl
• com.pega.apache.axis2.AxisFault
• com.pega.apache.axiom.om.OMAbstractFactory


Steps to Reproduce



1. Log into the application.
2. Opened a Work Order with some pre-filled data and clicked on the "Policy Validation" button.
3. A screen was shown with "Cancel, Discard and Save" buttons instead of staying on the same screen after the validation with Policy Center.


Root Cause



A defect in the Pega 7.1.7 deployment resulted in an issue with the ExtractedFiles directory used by the jvm.

Resolution



Within WebLogic, specify a JVM argument to redirect the files to a location of choice:

-Djava.io.tmpdir=/myPega717tmpdir 

This is a modified solution from the one for WebSphere available at:

https://pdn.pega.com/support-articles/pega-717-failing-startup-noclassdeffound-bouncycastleprovider

 

Published August 30, 2016 - Updated September 7, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.