NumberFormatException

3
Hi there, I am making a call to an external web service which returns a value type of long. When I try to store the returned variable, I get the following exception. (in short : NumberFormatException: For input string: "10101103845202") com.mendix.core.CoreException: Exception occurred in action 'Microflow [SnapInterfaces.TestTrafficCop]', all database changes executed by this action were rolled back at com.mendix.core.actionmanagement.CoreAction.d(SourceFile:553) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'SnapInterfaces.TestTrafficCop' for activity 'Call 'ReserveAccountID'', all database changes executed by this microflow were rolled back at kP.b(SourceFile:251) Caused by: com.mendix.core.CoreException: Exception occurred in microflow 'SnapInterfaces.ReserveAccountID' for activity 'Call web service 'reserveAccountId'', all database changes executed by this microflow were rolled back at kP.b(SourceFile:251) Caused by: java.lang.NumberFormatException: For input string: "10101103845202" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:461) at java.lang.Integer.parseInt(Integer.java:499) at cK.parseValueFromString(SourceFile:260) at bI.a(SourceFile:176) at bI.a(SourceFile:101) at kP.a(SourceFile:66) at eO.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kP.a(SourceFile:66) at eO.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:191) at dw.execute(SourceFile:183) at ju.a(SourceFile:299) at ju.a(SourceFile:230) at ju.processRequest(SourceFile:174) at fC.a(SourceFile:71) at com.mendix.core.MxRuntime.processRequest(SourceFile:916) at com.mendix.m2ee.server.handler.RuntimeHandler.handle(RuntimeHandler.java:42) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) at org.eclipse.jetty.server.Server.handle(Server.java:334) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) at java.lang.Thread.run(Thread.java:662) This only happens if I try and store the return value, if I ignore it, everything works fine. Kind Regards Frikkie Chalmers
asked
1 answers
2

Sounds like a bug (the max long value is 9223372036854775807). However, the value is parsed using as Integer according to the stacktrace (which maximum value is 2147483647). I suggest filing a bug report.

answered