Support Article

NumberFormatException from guardrail report

SA-32915

Summary



The guardrail report generates a NumberFormatException with Autonomic Event Services (AES) 7.2.


Error Messages



2017-01-19 16:23:41,130 [ TP_http : 51] [TABTHREAD0] [ AES:07.14] ( internal.mgmt.Executable) ERROR your_node|your_ip your_userid - Exception
java.lang.NumberFormatException: For input string: "1126.0000000000"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:59)
at java.lang.Integer.parseInt(Integer.java:469)
at java.lang.Integer.parseInt(Integer.java:510)
at com.pega.pegarules.priv.desktop.reporting.FusionChartDataGeneration.combineData(FusionChartDataGeneration.java:914)
at com.pega.pegarules.priv.desktop.reporting.FusionChartDataGeneration.processResultRow(FusionChartDataGeneration.java:837)
at com.pega.pegarules.priv.desktop.reporting.FusionChartDataGeneration.generate(FusionChartDataGeneration.java:639)
at com.pegarules.generated.activity.ra_action_pzcreatechartresults_a443d42d3ff8f2340bb1744b0dfa098c.step10_circum0(ra_action_pzcreatechartresults_a443d42d3ff8f2340bb1744b0dfa098c.java:995)
at com.pegarules.generated.activity.ra_action_pzcreatechartresults_a443d42d3ff8f2340bb1744b0dfa098c.perform(ra_action_pzcreatechartresults_a443d42d3ff8f2340bb1744b0dfa098c.java:280)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)
at com.pegarules.generated.activity.ra_action_pzpopulatereport_54077c8795a913a7c9f273021a9797af.step26_circum0(ra_action_pzpopulatereport_54077c8795a913a7c9f273021a9797af.java:1988)
at com.pegarules.generated.activity.ra_action_pzpopulatereport_54077c8795a913a7c9f273021a9797af.perform(ra_action_pzpopulatereport_54077c8795a913a7c9f273021a9797af.java:518)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)
at com.pegarules.generated.activity.ra_action_runreport_9b5f068bf627f3c1f7df7e2a78ceab44.step25_circum0(ra_action_runreport_9b5f068bf627f3c1f7df7e2a78ceab44.java:2276)
at com.pegarules.generated.activity.ra_action_runreport_9b5f068bf627f3c1f7df7e2a78ceab44.perform(ra_action_runreport_9b5f068bf627f3c1f7df7e2a78ceab44.java:557)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)
at com.pegarules.generated.activity.ra_action_pxshowreport_73af1287d09b5bf48b0dd9afe0494643.step11_circum0(ra_action_pxshowreport_73af1287d09b5bf48b0dd9afe0494643.java:1111)
at com.pegarules.generated.activity.ra_action_pxshowreport_73af1287d09b5bf48b0dd9afe0494643.perform(ra_action_pxshowreport_73af1287d09b5bf48b0dd9afe0494643.java:290)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3510)
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10587)
at com.pegarules.generated.activity.ra_action_showreport_392253ae77d3bc9fc45f21225b205114.step8_circum0(ra_action_showreport_392253ae77d3bc9fc45f21225b205114.java:669)
at com.pegarules.generated.activity.ra_action_showreport_392253ae77d3bc9fc45f21225b205114.perform(ra_action_showreport_392253ae77d3bc9fc45f21225b205114.java:171)
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.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3093)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:390)
at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
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.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:817)
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$4.run(EngineImpl.java:275)
at java.security.AccessController.doPrivileged(AccessController.java:338)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:272)
at com.pega.pegarules.session.internal.engineinterface.etier.ejb.EngineBean.invokeEngine(EngineBean.java:225)
at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
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: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.invokeMethodPropagatingException(AppServerBridgeToPega.java:246)
at com.pega.pegarules.internal.etier.ejb.EngineBeanBoot.invokeEngine(EngineBeanBoot.java:168)
at com.pega.pegarules.internal.etier.interfaces.EJSLocalStatelessEngineBMT_f2439d86.invokeEngine(Unknown Source)
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.GeneratedMethodAccessor68.invoke(Unknown Source)
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: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 com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1111)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:914)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:456)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:518)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:309)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:84)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1720)


Steps to Reproduce



Click Guardrail report.


Root Cause



A defect in Pegasystems’ code or rules.

The data type of the column in the table is not compatible with the type specified in the graph on the report.

Resolution



The graph on the report is correct, so make the following changes to the columns:
  1. Change the schema name DATA as appropriate.
  2. Use the syntax as appropriate to the database on which AES is deployed.
Oracle:
ALTER TABLE
DATA.PEGAAM_GUARDRAIL
MODIFY
(
WARNINGCOUNT NUMERIC(22,0),
WARNINGSEVERITY NUMERIC(22,0)
);

MS/SQL:
ALTER TABLE DATA.PEGAAM_GUARDRAIL
ALTER COLUMN WARNINGCOUNT DECIMAL(22,0);
go
ALTER TABLE DATA.PEGAAM_GUARDRAIL
ALTER COLUMN WARNINGSEVERITY DECIMAL(22,0);
go

DB2:
ALTER TABLE DATA.PEGAAM_GUARDRAIL
ALTER COLUMN WARNINGCOUNT SET DATA TYPE NUMERIC(22,0)
ALTER COLUMN WARNINGSEVERITY SET DATA TYPE NUMERIC(22,0);

Postgres/SQL:
ALTER TABLE DATA.PEGAAM_GUARDRAIL
ALTER COLUMN WARNINGCOUNT TYPE NUMERIC(22,0),
ALTER COLUMN WARNINGSEVERITY TYPE NUMERIC(22,0);


Published January 25, 2017 - Updated August 23, 2017

Have a question? Get answers now.

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