Debug error [invalid number pattern..] Smart Client

Questions, answers, tips and ideas on Servoy Client

Debug error [invalid number pattern..] Smart Client

Postby tgs » Fri Mar 04, 2016 12:25 pm

Hello,

I get a debug error in the Java Console of the Smart Client, but not in Seroy Developer and cannot find out where I what should fix?

It would be very kind to get help for fixing this.

Code: Select all
Mär 04, 2016 10:58:27 AM com.servoy.j2db.util.Debug error
SCHWERWIEGEND: Invalid number pattern : '###.##0,00', continue using default pattern ...
java.lang.IllegalArgumentException: Malformed pattern "###.##0,00"
   at java.text.DecimalFormat.applyPattern(DecimalFormat.java:3411)
   at java.text.DecimalFormat.<init>(DecimalFormat.java:464)
   at com.servoy.j2db.util.RoundHalfUpDecimalFormat.checkPattern(RoundHalfUpDecimalFormat.java:130)
   at com.servoy.j2db.util.RoundHalfUpDecimalFormat.<init>(RoundHalfUpDecimalFormat.java:54)
   at com.servoy.j2db.smart.dataui.DataField.installFormat(DataField.java:1470)
   at com.servoy.j2db.ui.scripting.AbstractRuntimeFormattedValuelistComponent.setComponentFormat(AbstractRuntimeFormattedValuelistComponent.java:85)
   at com.servoy.j2db.component.ComponentFactory.createField(ComponentFactory.java:1368)
   at com.servoy.j2db.component.ComponentFactory.createComponentEx(ComponentFactory.java:345)
   at com.servoy.j2db.component.ComponentFactory.createComponent(ComponentFactory.java:257)
   at com.servoy.j2db.smart.dataui.DataRendererFactory.placeElements(DataRendererFactory.java:300)
   at com.servoy.j2db.smart.dataui.DataRendererFactory.completeRenderers(DataRendererFactory.java:266)
   at com.servoy.j2db.FormController.createDataRenderers(FormController.java:449)
   at com.servoy.j2db.FormController.init(FormController.java:279)
   at com.servoy.j2db.FormManager.leaseFormPanel(FormManager.java:920)
   at com.servoy.j2db.FormManager.leaseFormPanel(FormManager.java:1)
   at com.servoy.j2db.scripting.CreationalPrototype.get(CreationalPrototype.java:171)
   at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1518)
   at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1505)
   at org.mozilla.javascript.gen.BaustoffCenter_forms_dtl_offers_m_jasperreport_96._c_m_jasperreport_0(Unknown Source)
   at org.mozilla.javascript.gen.BaustoffCenter_forms_dtl_offers_m_jasperreport_96.call(Unknown Source)
   at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:88)
   at org.mozilla.javascript.gen.BaustoffCenter_forms_dtl_offers_m_doPrint_88._c_m_doPrint_0(BaustoffCenter/forms/dtl_offers/m_doPrint:347)
   at org.mozilla.javascript.gen.BaustoffCenter_forms_dtl_offers_m_doPrint_88.call(BaustoffCenter/forms/dtl_offers/m_doPrint)
   at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:107)
   at org.mozilla.javascript.gen.BaustoffCenter_forms_frm_offers__m_doPrint_87._c_m_doPrint_0(BaustoffCenter/forms/frm_offers_/m_doPrint:347)
   at org.mozilla.javascript.gen.BaustoffCenter_forms_frm_offers__m_doPrint_87.call(BaustoffCenter/forms/frm_offers_/m_doPrint)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
   at org.mozilla.javascript.gen.BaustoffCenter_forms_frm_offers__m_doPrint_87.call(BaustoffCenter/forms/frm_offers_/m_doPrint)
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:628)
   at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:824)
   at com.servoy.j2db.FormController.executeFunction(FormController.java:1277)
   at com.servoy.j2db.FormController.executeFunction(FormController.java:1144)
   at com.servoy.j2db.FormController$ScriptExecuter.executeFunction(FormController.java:1056)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:284)
   at com.servoy.j2db.ui.BaseEventExecutor.fireEventCommand(BaseEventExecutor.java:250)
   at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:218)
   at com.servoy.j2db.ui.BaseEventExecutor.fireActionCommand(BaseEventExecutor.java:213)
   at com.servoy.j2db.smart.dataui.AbstractScriptButton$2.actionPerformed(AbstractScriptButton.java:660)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
   at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
   at java.awt.Component.processMouseEvent(Component.java:6535)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
   at java.awt.Component.processEvent(Component.java:6300)
   at java.awt.Container.processEvent(Container.java:2236)
   at java.awt.Component.dispatchEventImpl(Component.java:4891)
   at java.awt.Container.dispatchEventImpl(Container.java:2294)
   at java.awt.Component.dispatchEvent(Component.java:4713)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
   at java.awt.Container.dispatchEventImpl(Container.java:2280)
   at java.awt.Window.dispatchEventImpl(Window.java:2750)
   at java.awt.Component.dispatchEvent(Component.java:4713)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
   at java.awt.EventQueue.access$500(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:709)
   at java.awt.EventQueue$3.run(EventQueue.java:703)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
   at java.awt.EventQueue$4.run(EventQueue.java:731)
   at java.awt.EventQueue$4.run(EventQueue.java:729)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Mär 04, 2016 10:58:27 AM com.servoy.j2db.util.Debug error
SCHWERWIEGEND: Invalid number pattern : '###.##0,00', continue using default pattern ..., script stacktrace:
   at BaustoffCenter/forms/dtl_offers/m_doPrint:347 (m_doPrint)
   at BaustoffCenter/forms/frm_offers_/m_doPrint:347 (m_doPrint)


Regards Thomas
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 833
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: Debug error [invalid number pattern..] Smart Client

Postby Bernd.N » Fri Mar 04, 2016 2:41 pm

I think it needs be the opposite (american standard): #,##0.00
The locale will then take care of converting it for Germany, for example.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 477
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Debug error [invalid number pattern..] Smart Client

Postby tgs » Fri Mar 04, 2016 2:53 pm

Thank you Bernd for the reply!

I agree with you, but where is this conversion fault?
I could not find it out and was in hope that the debug log perhaps shows the mentioned position.

Regards Thomas
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 833
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 1 guest