SerializationException: Error on Login

Hi,

I recently restored an updated backup to my customers Ignition (I design locally and then upload the backup file once I want to implement the changes) and received an error.
Since then I still am receiving the same error no matter which backup I restore (ie. previously working versions).
Also, note that the modified project is working fine on the machine I designed it on and both systems are Windows 7. Could it be different versions of Java?

The error is as follows:

“Unable to open ‘Window Name’”

SHORT ERROR:

SerializationException: Error deserializing element "<o-c m=“setBackground” s=“1;clr” " on line 1945
caused by NullPointerException

FULL ERROR:

com.inductiveautomation.ignition.common.xmlserialization.SerializationException: Error deserializing element "<o-c m=“setBackground” s=“1;clr” " on line 1945
at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer$Parser.wrapException(XMLDeserializer.java:460)
at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer$Parser.startElement(XMLDeserializer.java:549)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer._deserialize(XMLDeserializer.java:201)
at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer.deserialize(XMLDeserializer.java:164)
at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer.deserialize(XMLDeserializer.java:160)
at com.inductiveautomation.factorypmi.application.model.WindowCache._deserializeWindow(WindowCache.java:275)
at com.inductiveautomation.factorypmi.application.model.WindowCache._loadWindow(WindowCache.java:217)
at com.inductiveautomation.factorypmi.application.model.WindowCache.openWindow(WindowCache.java:430)
at com.inductiveautomation.factorypmi.application.FPMIApp$RuntimeWindowOpener.openWindow(FPMIApp.java:1477)
at com.inductiveautomation.factorypmi.application.FPMIApp.openWindow(FPMIApp.java:860)
at com.inductiveautomation.factorypmi.application.FPMIApp.openWindow(FPMIApp.java:852)
at com.inductiveautomation.factorypmi.application.FPMIApp.startup(FPMIApp.java:719)
at com.inductiveautomation.factorypmi.application.runtime.ClientPanel$11.run(ClientPanel.java:618)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(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$1.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)
Caused by: java.lang.NullPointerException
at com.inductiveautomation.ignition.common.gui.border.PanelTitledBorder.(PanelTitledBorder.java:56)
at com.inductiveautomation.ignition.common.gui.border.PanelTitledBorder.(PanelTitledBorder.java:48)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.inductiveautomation.ignition.common.xmlserialization.deserialization.handlers.ObjectDeserializationHandler.startSubElement(ObjectDeserializationHandler.java:98)
at com.inductiveautomation.ignition.common.xmlserialization.deserialization.XMLDeserializer$Parser.startElement(XMLDeserializer.java:546)
… 35 more

Ignition v7.2.8 (b178)
Java: Oracle Corporation 1.7.0


I’m sure I just need to delete a certain file or something. Let me know if you have a fix. Thanks.

-Brian

Interesting development, it appears when I initiate a client via a remote computer all windows open correctly and the client runs fine, without errors.

I am still receiving the serialization/Null pointer error when I try and open a client on the Host/Gateway computer.

It is because your server is running Java 7. We haven’t been able to fully test Java 7 so I would recommend reverting back to Java 6 on the server and on the client machines.

Yes, that was it.
Thanks.

Hi,
I have just encountered an almost identical error. I have confirmed that Java on the server is V6. HOWEVER, the Java on my local machine is V7. Will that cause the same error?
Andrew

[quote=“agrant4”]Hi,
I have just encountered an almost identical error. I have confirmed that Java on the server is V6. HOWEVER, the Java on my local machine is V7. Will that cause the same error?
Andrew[/quote]

Yes, the version of Java launching the client is what matters.

For what it’s worth, all of these errors are fixed in current releases of Ignition (and have been fixed for a while).

Thanks for the response Kevin.
I would like to update the Ignition version, but this is on a remote operating system and I am not permitted to make these changes remotely. (It is definitely on a priority list for the next service-call opportunity!)