Just updated to 4.1.1 Final and for some reason a particular form has broken.
The Error:
Can’t setup form
java.lang.NumberFormatException: For input string: “1;”
I recognise that this is a Number format challenge but there is no clue where this might occur - and the majority of the form is not drawn (a tab is missing though the contents of the tab is just a form showing text data). Obvioulsy when the form load fails the form painting stops.
What might have changed in 4.1.1 to cause this?
How can I debug the loading of the form? Not sure where to insert a breakpoint?
lvostinar:
you should have an error in one of the logs. Can you post it ?
This is the relevant servoy_log Laurian. The code that throws this is identical to code running correctly in other areas of the solution. So for sure there is something in the form opening / startup. There are calculations in the table supporting this form but the error seems to throw before those elements are even placed. this does not occur in 4.1Final.
2009-03-05 15:31:48,390 ERROR [AWT-EventQueue-0] com.servoy.j2db.util.Debug - Throwable
java.lang.NumberFormatException: For input string: "1;"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.valueOf(Unknown Source)
at java.lang.Double.<init>(Unknown Source)
at com.servoy.j2db.util.Utils.getAsLong(Utils.java:264)
at com.servoy.j2db.util.Utils.getAsLong(Utils.java:757)
at com.servoy.j2db.persistence.Column.getAsRightType(Column.java:271)
at com.servoy.j2db.persistence.Column.getAsRightType(Column.java:382)
at com.servoy.j2db.dataprocessing.Zae.Za(Zae.java:59)
at com.servoy.j2db.dataprocessing.Zae.<init>(Zae.java:28)
at com.servoy.j2db.dataprocessing.Zvd.createRealValueList(Zvd.java:1)
at com.servoy.j2db.dataui.ComponentFactory.getRealValueList(ComponentFactory.java:171)
at com.servoy.j2db.dataui.ComponentFactory.createField(ComponentFactory.java:36)
at com.servoy.j2db.dataui.ComponentFactory.createComponentEx(ComponentFactory.java:341)
at com.servoy.j2db.dataui.ComponentFactory.createComponent(ComponentFactory.java:61)
at com.servoy.j2db.dataui.Zcc.Za(Zcc.java:313)
at com.servoy.j2db.dataui.Zcc.Za(Zcc.java:263)
at com.servoy.j2db.FormController.Za(FormController.java:1072)
at com.servoy.j2db.FormController.Za(FormController.java:393)
at com.servoy.j2db.FormManager.Zf(FormManager.java:249)
at com.servoy.j2db.FormManager.Za(FormManager.java:308)
at com.servoy.j2db.dataui.Zxd.Za(Zxd.java:66)
at com.servoy.j2db.dataui.Zxd.Zc(Zxd.java:46)
at com.servoy.j2db.dataui.SpecialTabPanel.notifyVisible(SpecialTabPanel.java:214)
at com.servoy.j2db.dataprocessing.Zfb.Za(Zfb.java:179)
at com.servoy.j2db.dataui.Zwd.notifyVisible(Zwd.java:128)
at com.servoy.j2db.FormController.notifyVisible(FormController.java:441)
at com.servoy.j2db.dataui.Zxd.notifyVisible(Zxd.java:9)
at com.servoy.j2db.dataui.SpecialTabPanel.stateChanged(SpecialTabPanel.java:228)
at com.servoy.j2db.dataui.Zyd.setSelectedIndex(Zyd.java:36)
at com.servoy.j2db.dataui.SpecialTabPanel.js_setTabIndex(SpecialTabPanel.java:390)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:179)
at org.mozilla.javascript.JavaMembers.put(JavaMembers.java:178)
at org.mozilla.javascript.NativeJavaObject.put(NativeJavaObject.java:141)
at org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:1768)
at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1532)
at org.mozilla.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1520)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3355)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2680)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:166)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3125)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:165)
at com.servoy.j2db.scripting.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:116)
at com.servoy.j2db.FormController.Za(FormController.java:283)
at com.servoy.j2db.FormController.executeFunction(FormController.java:1066)
at com.servoy.j2db.Zfb.Za(Zfb.java:5)
at com.servoy.j2db.dataui.AbstractScriptLabel.Za(AbstractScriptLabel.java:66)
at com.servoy.j2db.dataui.AbstractScriptLabel.access$800(AbstractScriptLabel.java:101)
at com.servoy.j2db.dataui.Zg.mouseReleased(Zg.java:5)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
It seems you have a valuelist with real value “1;” that is linked to a field that has dataprovider of type integer. Maybe look for “1;” in the workspace to see the valuelist that causes this , then see where it is used.
lvostinar:
It seems you have a valuelist with real value “1;” that is linked to a field that has dataprovider of type integer. Maybe look for “1;” in the workspace to see the valuelist that causes this , then see where it is used.
Thanks Laurian - I had custom values entered as 1; 2; etc - and 4.1 seemed to have no problem with it??
Changed to 1 2 3 etc and all is well with the world again! - Good lesson in reading the log too - thanks.