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

PegaRULES Web Application Error

SA-4723

Summary



We are getting "Pega rules Web application error" while trying to access the server.

The error occurred in one server after server restart.

For some performance issues, we had restarted another server in the environment and after server restart, we got the same error. In order to test what is happening in environment, we had restarted another server again. Now that server also facing same issue (Pega rules Web application error).

Please find the below complete error which we are getting while trying to access the server:

PegaRULES Web Application Error
Message: An has occurred processing this request. Please contact your system administrator.
PegaRULES 6.2 SP1 (coreAssemblyCached_62_0096)

From WAS end, it was a clean start with logs saying “open for e-business”. But even the WAS server is up, the application server is throwing this error while trying to access it.

The error occurs in all the three servers which we restarted, its like if we restart a node, the error is occurring while loading the classes from DB.


Error Messages



On Screen:
PegaRULES Web Application Error
Message: An has occurred processing this request. Please contact your system administrator.
PegaRULES 6.2 SP1 (coreAssemblyCached_62_0096)
-------------------

Log File extract at start up

2014-12-04 09:25:21,003 [ XXXXXXXXXXXXXXXXXX] [ STANDARD] [ ] ( etier.impl.EngineStartup) ERROR - PegaRULES initialization failed. Server: XXXXXXXXXXXXXX
com.pega.pegarules.pub.context.InitializationFailedError: PRNodeImpl init failed
at com.pega.pegarules.session.internal.mgmt.PREnvironment.getThreadAndInitialize(PREnvironment.java:380)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.getThreadAndInitialize(PRSessionProviderImpl.java:1494)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineStartup.initEngine(EngineStartup.java:606)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._initEngine_privact(EngineImpl.java:165)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.doStartup(EngineImpl.java:138)
at com.pega.pegarules.web.servlet.WebAppLifeCycleListener._contextInitialized_privact(WebAppLifeCycleListener.java:259)
at com.pega.pegarules.web.servlet.WebAppLifeCycleListener.contextInitialized(WebAppLifeCycleListener.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:349)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:390)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:439)
at com.pega.pegarules.internal.web.servlet.WebAppLifeCycleListenerBoot.contextInitialized(WebAppLifeCycleListenerBoot.java:83)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1717)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:384)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:299)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:732)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:617)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1127)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:740)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2051)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:385)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:328)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:113)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:895)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1646)
Caused by:
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:875)
at com.pega.pegarules.data.internal.access.DatabaseImpl.setDataNodeState(DatabaseImpl.java:7278)
at com.pega.pegarules.session.internal.mgmt.PRNodeImpl.initializeSystem(PRNodeImpl.java:1273)
at com.pega.pegarules.session.internal.mgmt.PREnvironment.getThreadAndInitialize(PREnvironment.java:369)
... 36 more
2014-12-04 09:25:21,003 [ xxxxxxxxxxxxxx] [ STANDARD] [ ] ( etier.impl.EngineStartup) INFO - PegaRULES initialization failed. Server: xxxxxxxxxxxxxx
2014-12-04 09:25:21,207 [ xxxxxxxxxxxxxx] [ STANDARD] [ ] (ervlet.WebAppLifeCycleListener) ERROR - Enterprise tier failed to initialize properly, PegaRULES not available
2014-12-04 09:25:21,219 [ xxxxxxxxxxxxxx] [ STANDARD] [ ] (ervlet.WebAppLifeCycleListener) INFO - Web Tier initialization is complete.
2014-12-04 10:07:01,562 [deferrable Alarm : 2] [ ] [ ] ( etier.impl.EngineStartup) WARN - PegaRULES shutdown initiated.
2014-12-04 10:07:03,945 [deferrable Alarm : 2] [ ] [ ] (ervlet.WebAppLifeCycleListener) ERROR - Exception during shutdown processing
java.lang.RuntimeException: Unable to create engine instance - class path be wrong, or contain invalid contents
at com.pega.pegarules.pub.PegaRULES.getEngine(PegaRULES.java:60)
at com.pega.pegarules.priv.LogHelper.doAlert(LogHelper.java:1137)
at com.pega.pegarules.priv.LogHelper.alert(LogHelper.java:923)
at com.pega.pegarules.priv.LogHelper.alert(LogHelper.java:898)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineStartup.shutEngine(EngineStartup.java:671)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._shutdownEngine_privact(EngineImpl.java:186)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.doShutdown(EngineImpl.java:171)
at com.pega.pegarules.web.servlet.WebAppLifeCycleListener._contextDestroyed_privact(WebAppLifeCycleListener.java:140)
at com.pega.pegarules.web.servlet.WebAppLifeCycleListener.contextDestroyed(WebAppLifeCycleListener.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:349)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:390)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:439)
at com.pega.pegarules.internal.web.servlet.WebAppLifeCycleListenerBoot.contextDestroyed(WebAppLifeCycleListenerBoot.java:67)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextDestroyed(WebApp.java:1805)
at com.ibm.ws.webcontainer.webapp.WebApp.destroy(WebApp.java:3135)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.destroy(WebAppImpl.java:805)
at com.ibm.ws.container.AbstractContainer.destroy(AbstractContainer.java:74)
at com.ibm.ws.webcontainer.webapp.WebGroup.destroy(WebGroup.java:203)
at com.ibm.ws.webcontainer.webapp.WebGroup.removeWebApplication(WebGroup.java:241)
at com.ibm.ws.webcontainer.VirtualHost.removeWebApplication(VirtualHost.java:309)
at com.ibm.ws.webcontainer.VirtualHostImpl.removeWebApplication(VirtualHostImpl.java:208)
at com.ibm.ws.webcontainer.WSWebContainer.removeWebApplication(WSWebContainer.java:803)
at com.ibm.ws.webcontainer.component.WebContainerImpl.uninstall(WebContainerImpl.java:408)
at com.ibm.ws.webcontainer.component.WebContainerImpl.stop(WebContainerImpl.java:679)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stop(ApplicationMgrImpl.java:1150)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStop(DeployedApplicationImpl.java:1324)
at com.ibm.ws.runtime.component.DeployedModuleImpl.stop(DeployedModuleImpl.java:646)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.stop(DeployedApplicationImpl.java:1098)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stopApplication(ApplicationMgrImpl.java:921)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stop(ApplicationMgrImpl.java:874)
at com.ibm.ws.runtime.component.ContainerHelper.stopComponent(ContainerHelper.java:475)
at com.ibm.ws.runtime.component.ContainerHelper.stopComponents(ContainerHelper.java:459)
at com.ibm.ws.runtime.component.ContainerImpl.stopComponents(ContainerImpl.java:650)
at com.ibm.ws.runtime.component.ContainerImpl.stop(ContainerImpl.java:638)
at com.ibm.ws.runtime.component.ApplicationServerImpl.stop(ApplicationServerImpl.java:257)
at com.ibm.ws.runtime.component.ContainerHelper.stopComponent(ContainerHelper.java:475)
at com.ibm.ws.runtime.component.ContainerHelper.stopComponents(ContainerHelper.java:459)
at com.ibm.ws.runtime.component.ContainerImpl.stopComponents(ContainerImpl.java:650)
at com.ibm.ws.runtime.component.ContainerImpl.stop(ContainerImpl.java:638)
at com.ibm.ws.runtime.component.ServerImpl.stop(ServerImpl.java:615)
at com.ibm.ws.runtime.component.ServerCollaborator$ShutdownHook$1.run(ServerCollaborator.java:738)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5365)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5453)
at com.ibm.ws.runtime.component.ServerCollaborator$ShutdownHook.run(ServerCollaborator.java:728)
at com.ibm.ws.runtime.component.ServerCollaborator$StopAction.alarm(ServerCollaborator.java:692)
at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:133)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1646)
Caused by:
java.lang.ClassCastException: com.pega.pegarules.session.internal.mgmt.EngineImpl incompatible with com.pega.pegarules.pub.context.Engine
at com.pega.pegarules.pub.PegaRULES.getEngine(PegaRULES.java:58)
... 50 more


Steps to Reproduce



The error "Pega rules Web application error" is occurring while accessing the server URL


Root Cause



The root cause of this problem is a defect in customer application code/rules. An import of some of the PRPC Engine .jar files into the ‘customer’ codeset  in the PR_ENGINECLASSES 
table occurred therefore duplicating some (but not all) of the engine classes. This resulted in the issues observed when bootstrapping the PRPC system at start up.

Resolution



This issue was resolved by making the following change to the PRPC operating environment:
 

  1. Restoring the PR_ENGINECLASSES table to its state before the import of PRPC .jar files to the ‘customer’ codeset.

  2. Restart the PRPC system.


  3.  
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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