Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

NoClassDefFoundError during migration of Data schema to Pega718



User upgrading the Production environment from PRPC 6.2 SP2 to Pega 7.1.8 and facing the NoClassDefFoundError during the migration of the Data schema using the JAR upload.

Error Messages

javax.ejb.EJBException: EJB Exception: : java.lang.RuntimeException: Problem during method invocation (save)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(
at com.pega.pegarules.internal.etier.ejb.Database_7slfdk_ELOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(
at Source)
at com.pega.pegarules.generation.internal.cache.appcentric.RACacheAppCentricImpl.addEntryToMemoryCache(
at com.pega.pegarules.generation.internal.cache.appcentric.RACacheAppCentricImpl.find(
at com.pega.pegarules.generation.internal.cache.AssemblyCacheWrapper.find(
at com.pega.pegarules.generation.internal.assembly.FUAManagerImpl.getInternal(
at com.pega.pegarules.generation.internal.assembly.FUAManagerImpl.get(
at com.pega.pegarules.generation.internal.PRGenProviderImpl.get(
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(
at com.pega.pegarules.session.internal.mgmt.Executable.getStream(
Caused by: java.lang.NoClassDefFoundError: com/pega/pegarules/pub/database/BadTableMappingException
at com.pega.pegarules.generation.internal.cache.appcentric.AppEntryImpl.writeEntryToDatabase(
at com.pega.pegarules.session.internal.engineinterface.etier.impl.DatabaseImpl._save_privact(
at sun.reflect.GeneratedMethodAccessor241.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(
... 84 more

Steps to Reproduce

1. Migrate the rules schema to new rules schema.

2. Upgrade the new rules schema.

3. Migration of the data schema using the JAR upload of data.

Root Cause

The EJB classloader hierarchy does not have these exception classes preloaded at startup. They are in the web tier class loader hierarchy, but not in the ejb tier loader. So in the business scenario there are times that Application Based
Assembler (ABA) believes it needs to do an assembly, so it does so, then it creates entries and/or shortcuts to be written to the database.  In the JEE app servers, these requests get passed over to the ejb tier. That does the write and hits a database IntegrityConstraintViolationException, which could be a duplicate key, or some other integrity constraint from the database. The etier calls the logic to handle that db exception, but because it cannot load these classes, we get the NoClassDefFoundError errors in the log. The real cause of the exceptions are lost.


1. Local Change:
From Pega 7.1.7 (and later) engine code can preload classes from a space delimited list using the prconfig.xml setting below:

<env name="initialization/preloadengineclasses" value="" />

2. Product Update:
In the Pega Platform releases later than Pega v7.1.9, these classes are added to the existing preload list within the code so they do not need to be added via prconfig setting.

Published March 16, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us