Question

2
Replies
1163
Views
Close popover
Venkata Suman Palukuru (Suman Palukuru)
Tata Consultancy Services Ltd
Lead System Architect
Tata Consultancy Services Ltd
US
Suman Palukuru Member since 2015 62 posts
Tata Consultancy Services Ltd
Posted: March 8, 2017
Last activity: March 9, 2017
Closed
Solved

JSON parsing error

I have developed Service-REST , which accepts a JSON type request. The same service and JSON request is working in dev, QA and UAT environments. But getting the below error in production. Any thoughts?

2017-03-08 16:22:03,644 [http-nio-8080-exec-8] [ STANDARD] [ ] [ DMX:01.01.01] (ules.generated.pega_rules_page) ERROR pnl-pega-be-prod.watchpnl.nielsencsp.com|127.0.0.1|Rest|MWRestServicePkg|MWInputRequest|MWRestService|ADB3B5AC02427C1CC55A19E37690815F3 - Exception occurred while adopting data onto the target page : Invalid clipboard stream detected in module com.pega.pegarules.data.internal.clipboard.JSONStream.parseJSONStream(String). Reason: Unterminated string at 156 [character 0 line 2]
com.pega.pegarules.pub.clipboard.InvalidStreamError: Invalid clipboard stream detected in module com.pega.pegarules.data.internal.clipboard.JSONStream.parseJSONStream(String). Reason: Unterminated string at 156 [character 0 line 2]
From: (ADB3B5AC02427C1CC55A19E37690815F3:MWRestServicePkg)
at com.pega.pegarules.data.internal.clipboard.JSONStream.parseJSONStream(JSONStream.java:135)
at com.pega.pegarules.data.internal.clipboard.JSONStream.newJSONStream(JSONStream.java:105)
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.adoptJSONArray(ClipboardPageImpl.java:846)
at com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.adoptJSONObject(ClipboardPageImpl.java:839)
at com.pegarules.generated.pxConvertStringToPage_071017_EKjoSA9r0vq2vaRTrnqStw.pxConvertStringToPage07_10_17(pxConvertStringToPage_071017_EKjoSA9r0vq2vaRTrnqStw.java:132)
at com.pegarules.generated.pxConvertStringToPage_071017_EKjoSA9r0vq2vaRTrnqStw.invoke(pxConvertStringToPage_071017_EKjoSA9r0vq2vaRTrnqStw.java:76)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133)
at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110)
at com.pega.pegarules.generation.internal.library.LibraryFunctionUtilityImpl.resolveMethodCall(LibraryFunctionUtilityImpl.java:3136)
at com.pega.pegarules.session.internal.mgmt.Executable.resolveMethodCall(Executable.java:11018)
at com.pegarules.generated.model.ra_model_loadjsonvaluesdt_83697e4c1f1bd8b3d752ab1c4c02350f.perform(ra_model_loadjsonvaluesdt_83697e4c1f1bd8b3d752ab1c4c02350f.java:65)
at com.pega.pegarules.session.internal.mgmt.Executable.applyModel(Executable.java:4458)
at com.pegarules.generated.activity.ra_action_setrestinputvalues_f08785af4137430813e078200b450835.step3_circum0(ra_action_setrestinputvalues_f08785af4137430813e078200b450835.java:629)
at com.pegarules.generated.activity.ra_action_setrestinputvalues_f08785af4137430813e078200b450835.perform(ra_action_setrestinputvalues_f08785af4137430813e078200b450835.java:107)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646)
at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:466)
at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.runActivities(ServiceAPI.java:1896)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:390)
at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1277)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1015)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:848)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:331)
at com.pega.pegarules.integration.engine.internal.services.http.HTTPService.invoke(HTTPService.java:439)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:327)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:270)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:247)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278)
at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223)
at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:574)
at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:374)
at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273)
at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:121)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:120)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1100)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

--Suman

Low-Code App Development Data Integration Java and Activities
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.