NullPointerException

Hi,

Today we note that our project is having problems when we try to edit TAGS properties (double click). Ignition show us the following message:

[quote]java.lang.NullPointerException
at com.inductiveautomation.ignition.designer.sqltags.editor.AlertingCategory$7.optionToAttribute(AlertingCategory.java:416)
at com.inductiveautomation.ignition.designer.sqltags.editor.AlertingCategory$7.optionToAttribute(AlertingCategory.java:407)
at com.inductiveautomation.ignition.designer.sqltags.editor.editors.PropBasedFixedDropdownEditor.isValueModified(PropBasedFixedDropdownEditor.java:59)
at com.inductiveautomation.ignition.designer.sqltags.editor.borders.EditorBorder.stateChanged(EditorBorder.java:54)
at com.inductiveautomation.ignition.designer.sqltags.editor.editors.AbstractTagPropEditor.fireStateChanged(AbstractTagPropEditor.java:213)
at com.inductiveautomation.ignition.designer.sqltags.editor.editors.FixedDropdownEditor$1.itemStateChanged(FixedDropdownEditor.java:55)
at javax.swing.JComboBox.fireItemStateChanged(Unknown Source)
at javax.swing.JComboBox.selectedItemChanged(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at com.inductiveautomation.ignition.designer.sqltags.editor.editors.FixedDropdownEditor.init(FixedDropdownEditor.java:79)
at com.inductiveautomation.ignition.designer.sqltags.editor.editors.PropBasedFixedDropdownEditor.init(PropBasedFixedDropdownEditor.java:42)
at com.inductiveautomation.ignition.designer.sqltags.editor.AbstractTagEditingCategory.init(AbstractTagEditingCategory.java:99)
at com.inductiveautomation.ignition.designer.sqltags.editor.AlertingCategory.init(AlertingCategory.java:182)
at com.inductiveautomation.ignition.designer.sqltags.editor.TagEditorPanel.refreshPagesForTag(TagEditorPanel.java:233)
at com.inductiveautomation.ignition.designer.sqltags.editor.TagEditorPanel.editTags(TagEditorPanel.java:215)
at com.inductiveautomation.ignition.designer.sqltags.editor.TagEditorPanel.editTags(TagEditorPanel.java:184)
at com.inductiveautomation.ignition.designer.sqltags.TagBrowserPanel$TreeDoubleClickListener.mousePressed(TagBrowserPanel.java:321)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
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)

Ignition v7.1.7 (b6048)
Java: Sun Microsystems Inc. 1.6.0_19
[/quote]

The special of this is that occurs now that we migrated the project to another server and this server is running IGNITION 7.1.7. This error doesn’t occurr on previous versions (we used to develop under the 7.1.4 version).

This only happens with some TAGS and despite we can edit properties, the tags values works fine.

Any clue?

Thanks in advance.

Hi,

I believe that indicates that something is wrong with the “Alert Timestamp Source” property of the tag. Do the tags in question have alerting enabled?

There are a few things you could try:

  1. Try editing multiple tags at once. Select them, right click, hit “edit”. If the window opens, go to “Alerting”, and set the timestamp source to “value”. Close the window. Edit it again and set it back to “system”, if that’s what you want.

  2. Export the tags to CSV and see what value it has under the timestamp source column. It should be 0 for system. If blank, that might be causing the problem.

That feature was added in 7.0.9, so I don’t know that it was caused by the upgrade, but obviously something went wrong. We’ll look into it more, because this type of error should never come up.

Regards,

Thank you very much.

When you mentioned the alarms i checked that and i noticed that there were the problem. It seems like the code in the CSV file (exporting tags) for the 7.1.7 version is diferent to the 7.1.4 version. So i rebuild the alarms and all works fine.