I have a screen with a bunch of numeric text fields, dropdowns, etc., where a user can enter data then hit Submit to write the values to a database. There is a dropdown at the very top that changes which “workflow” they are looking at data for. If the user changes this dropdown, it changes the values of all the fields on the screen because the values are bound to datasets that change based on the dropdown’s selectedValue.
If a certain value is selected from the dropdown, about half the time Ignition will give me this error:
[code]java.lang.ClassCastException: Value 9223372036854775807 can not be coerced to integer due to overflow.
at com.inductiveautomation.ignition.common.TypeUtilities.coerce(TypeUtilities.java:904)
at com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter.setQValue(AbstractPropertyAdapter.java:222)
at com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter.updateValue(AbstractPropertyAdapter.java:262)
at com.inductiveautomation.factorypmi.application.binding.ExpressionPropertyAdapter.runExpression(ExpressionPropertyAdapter.java:88)
at com.inductiveautomation.factorypmi.application.binding.ExpressionPropertyAdapter$1.run(ExpressionPropertyAdapter.java:58)
at com.inductiveautomation.ignition.client.util.EDTUtil$ProcessQueue.run(EDTUtil.java:113)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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)
Ignition v7.8.4 (b2016082217)
Java: Oracle Corporation 1.8.0_121[/code]
There are no values in any of the fields that are anywhere near as high as 9223372036854775807, and I don’t know why this error doesn’t come up every time I select that dropdown item. There isn’t anything special about it that I can see. It’s also frustrating that the error doesn’t give any hint as to which component caused the issue.
Have you seen this type of error before? Anything I can do to help track it down? Thanks for your time!