I have seen the following error in several different forms in both WM 6 and 7. This occurs on Bizflow work item completion (or save) but not (as far as I've seen) on DB operations not related to WIH completion. Could this possible be the result of duplicate control names in different partial pages? The error only occurs intermittently... (also, the offending string varies but is always a pair of the same number; 1,1 or 2,2 etc)
-java exception:
type Exception report
message For input string: "3,3"
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.NumberFormatException: For input string: "3,3"
java.lang.NumberFormatException.forInputString(Unknown Source)
java.lang.Integer.parseInt(Unknown Source)
java.lang.Integer.parseInt(Unknown Source)
com.hyfinity.sxforms.InputProcessor.processRepeat(InputProcessor.java:456)
com.hyfinity.sxforms.InputProcessor.processStructure(InputProcessor.java:345)
com.hyfinity.sxforms.SXForms.processInput(SXForms.java:104)
com.hyfinity.xgate.InputProcessor.performSXFormsProcessing(InputProcessor.java:243)
com.hyfinity.xgate.InputProcessor.processInput(InputProcessor.java:187)
com.hyfinity.xgate.HTTP2Java.processAction(HTTP2Java.java:1076)
com.hyfinity.xgate.HTTP2Java.doPost(HTTP2Java.java:638)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
-java exception:
type Exception report
message For input string: "3,3"
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.NumberFormatException: For input string: "3,3"
java.lang.NumberFormatException.forInputString(Unknown Source)
java.lang.Integer.parseInt(Unknown Source)
java.lang.Integer.parseInt(Unknown Source)
com.hyfinity.sxforms.InputProcessor.processRepeat(InputProcessor.java:456)
com.hyfinity.sxforms.InputProcessor.processStructure(InputProcessor.java:345)
com.hyfinity.sxforms.SXForms.processInput(SXForms.java:104)
com.hyfinity.xgate.InputProcessor.performSXFormsProcessing(InputProcessor.java:243)
com.hyfinity.xgate.InputProcessor.processInput(InputProcessor.java:187)
com.hyfinity.xgate.HTTP2Java.processAction(HTTP2Java.java:1076)
com.hyfinity.xgate.HTTP2Java.doPost(HTTP2Java.java:638)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
RE: Java number exception on save
Without seeing your exact project it is hard to be certain as to what is causing this, but I think you are right that it could be a duplicate issue due to partial pages.
From looking at the stack trace my best guess would be that this is related to a repeating structure on the page. For each repeat there is a hidden field that indicates how many entries in the repeat there are (eg how many rows in a table), which is then used on submission to make sure there is the correct number of sections in the XML structure being bound to.
I would guess that in this error case, you have the same partial page (containing the repeat) loaded into the full page in two different locations. This will mean there are two copies of the same repeat count field. On submission, if multiple values are received for the same field then by default they are joined together in a comma separated string, which leads to the '3,3' value you see in the error.
Could this scenario (a partial page loaded in twice) be what is happening in your project?
You mention that the problem is only happening intermittently though, and only on BizFlow wih actions, which seems strange, as if the problem was related to two partial pages being loaded I would expect you to get the error every time this happens.
If you are able to share a project export (and ideally some steps to replicate the problem) I can look into this further for you.
Regards,
Gerard
RE: Java number exception on save
RE: Java number exception on save
I'm glad you managed to track it down, and thanks for the explanation.
Let me know if you have any more questions.
Regards,
Gerard