We have recently upgraded our environment from 6.3 SP 1 to 7.1.8 and we are getting some issues with POI jar file compatibility post upgrade.
POI JAR files are mentioned within our class path and they are getting picked up.But any references to classes in JAR files through R-U-Function or Library rules is throowing exceptions.
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of com/pega/pegarules/exec/internal/util/classloader/PRClassLoaderDB$Loader) previously initiated loading for a different type with name "org/apache/poi/ss/usermodel/Sheet"
Here are the set of poi files being used
Just wanted to know if there are any POI jar files already provided as part of the base product ?
Are the above set of JAR files not compatible with Pega 7.1.8 ?
***Updated by moderator: Lochan to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
The answer is yes, Pega 7.1.8 already comes with most of the jars on your list. Where did you put your jars? What application server are you using? As a first test, remove your jars from the disk and report the outcome. You can use SMA>>Advanced>>Etier runtime to lookup where a given java class is loaded from.
Posted: 8 years ago
Posted: 14 Jul 2015 13:40 EDT
Sunil Darla (SunilKumarD)
We tried different approaches for making poi jar files work for both runtime and compile time.
I have removed all the conflicting poi JAR files from compile time class path and runtime classpath except poi-ooxml-3.11.0.jar.
This resolved the issue with library rule compilation issues but we are now getting runtime issues as poi-ooxml-3.11.0.jar is not getting picked up(I checked it through SMA.Its giving class not found despite mentioning in java.class.path).
So instead of having issues with runtime and compile JAR files and maintaining them seperately,I am thinking of importing poi-ooxml-3.11.0.jar files into DB and I have following questions.
1. Will there be a conflict with prpoi-ooxml-3.11.jar if we import poi-ooxml-3.11.0.jar into the database
2. If poi-ooxml-3.11.0.jar is imported to the database will it work for both runtime and compile time ?
3. What’s the rollback/update process of JAR files ?
4. What’s the process of extracting prpoi-ooxml-3.11.jar from the database ?