Question

PRRuntime error

Hi,

am trying to browse the records from table A and then append/update some info and then save the instance some other table.Getting this log error.

The tracer shows that the activity has stopped executing the steps midway and ended. No error in front end.

PRPC 62SP2

Apache Tomcat

Database is SQLServer

Can anyone help resolve this pls.

2 017-12-22 10:35:27,913 [http-bio-8080-exec-6] [ STANDARD] [OffshoreCDD:01.02.05] (ngineinterface.service.HttpAPI) ERROR kbjer9322|127.0.0.1 KXS00I - 127.0.0.1: com.pega.pegarules.pub.PRRuntimeError
com.pega.pegarules.pub.PRRuntimeError: PRRuntimeError
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:683)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:589)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:2382)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:394)
at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1100)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:798)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:328)
at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:712)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:312)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:263)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:240)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:277)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:222)
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:383)
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:271)
at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.WebStandardBoot.doPost(WebStandardBoot.java:99)
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.StackOverflowError
at com.pega.jsr166backport.java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:776)
at com.pega.pegarules.priv.collections.map.ConcurrentMostRecentlyUsedMap.get(ConcurrentMostRecentlyUsedMap.java:519)
at com.pega.pegarules.exec.internal.util.collections.StringPoolImpl.doLookup(StringPoolImpl.java:422)
at com.pega.pegarules.exec.internal.util.collections.StringPoolImpl.add(StringPoolImpl.java:252)
at com.pega.pegarules.data.internal.clipboard.ReferenceElement.initialize(ReferenceElement.java:96)
at com.pega.pegarules.data.internal.clipboard.ReferenceElementFactory.acquire(ReferenceElementFactory.java:56)
at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.add(PropertyReferenceImpl.java:2941)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getReferenceObject(ClipboardPropertyImpl.java:2188)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getReference(ClipboardPropertyImpl.java:2156)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getStringValue(ClipboardPropertyImpl.java:3003)
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getRawString(ClipboardPageImpl.java:1134)
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getClassName(ClipboardPageImpl.java:3164)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.lookupDictionaryDefinition(ClipboardPropertyImpl.java:2863)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.lookupDictionaryDefinition(ClipboardPropertyImpl.java:2755)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getModeName(ClipboardPropertyImpl.java:2145)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getStringValue(ClipboardPropertyImpl.java:3003)
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getRawString(ClipboardPageImpl.java:1134)
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getClassName(ClipboardPageImpl.java:3164)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.lookupDictionaryDefinition(ClipboardPropertyImpl.java:2863)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.lookupDictionaryDefinition(ClipboardPropertyImpl.java:2755)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getModeName(ClipboardPropertyImpl.java:2145)
at com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getStringValue(ClipboardPropertyImpl.java:3003)
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getRawString(ClipboardPageImpl.java:1134)

**Moderation Team has archived 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.

Comments

Keep up to date on this post and subscribe to comments

Pega
December 22, 2017 - 7:16am

I could see "doWithRequestorLocked" exception. But couldn't predict exact root-cause.

Please share more information about the Activity and the configured obj-browse method.

To isolate the root cause, add the logger(using Log-Message method in activity) to retrieve stack trace after browsing object from the table and again while saving it in another table. It seems to be an issue with locking.Kindly share the full stack trace for further investigation. 

December 22, 2017 - 8:02am
Response to Asif Hasan

Thanks.

All the obj-browse have "ReadOnly" selected and the obj-save step has Write now and with error. 

I am still checking if there can be any lock issue, but i dont think so.

Question is why does it show Caused by stackoverflow.. is there something to do with the memory or something?

December 22, 2017 - 3:53pm
Response to KAUTUKSHET

Hi ,

I did some research on the stackoverflow error i found plenty around in the existing SR’s , however  didn’t find anything with the similar stack trace reported in 6.2 SP2 .

This needs to be looked upon by  the product team to have their say .

Please raise a SR with GCS and do mention this PSC thread you already created .

Thanks,

Arun

December 23, 2017 - 12:02am

Hi,

Looking at the exception, I feel that when you are trying to loop the table, it may be running for too long, can you please check how many records are present in the database which we are trying to modify. If possible, can you check what happens with less no. of records. Please share us your observations.

Regards,

Rachit

December 27, 2017 - 7:11am
Response to Rachit_Agarwal

Hi, The table contains approx. 30k records, so that should not be an issue. The Obj-browse is also well filtered, so that is returning minimal results, so no issues there. Any other things that you think might be affecting? Thanks.