Support Article
Getting an Exception while importing jars using PRPCUtils
SA-32118
Summary
Required JAR files to install Smart Dispute and related strategic applications were stored in a directory and numbered in the order they should be imported. This directory is set as the import archive path. Exceptions are thrown while importing these files using PRPC Utils.
Error Messages
[java] 2016-12-18 15:19:10,259 [ ] [ STANDARD] [ ] ( internal.loaders.SaverLoader) ERROR - Unable to determine if instances of PegaCard-Interface-Admin-Visa-Services are stored in a table with a BLOB.
[java] com.pega.pegarules.pub.database.BadClassDefinitionException: Database-BadClassDef PegaCard-Interface-Admin-Visa-
Services
Steps to Reproduce
Place all JAR files imported in one directory, and number them in the order of installation.
Root Cause
A defect or configuration issue in the operating environment:
When getting a list of files in a directory, an array of File objects using the File.listFiles() function is given to Pega. The returned array order is not defined by design, therefore the results are not guaranteed to appear in alphabetical order, resulting in JARs imported out of order.
Resolution
Perform the following local-change:
Instead of specifying one directory to import from, create a comma separated list of files to import the files in the correct order.
Published January 12, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.