Hate to be the bearer of bad news… in 8.1.6, still occurring, in the designer script console, seemingly random, but fairly consistent every dozen or so calls, I get the following… Good news, I have not noticed any issues in Perspective sessions after removing the Thread/Classloader snippet.
Java Traceback:
Traceback (most recent call last):
File "<input>", line 4, in <module>
File "<module:opcenter>", line 1832, in __init__
File "<module:opcenter>", line 1846, in cdo
File "<module:opcenter>", line 430, in cdo_metadata
File "<module:opcenter>", line 361, in submit_and_return
File "<module:opcenter>", line 311, in submit
File "<module:opcenter>", line 591, in xml
File "<module:opcenter>", line 652, in dict
File "<module:opcenter>", line 652, in dict
File "C:\...\C0\pylib\xmltodict.py", line 295, in parse
parser = expat.ParserCreate(
File "C:\...\C0\pylib\xml\parsers\expat.py", line 59, in ParserCreate
return XMLParser(encoding, namespace_separator)
File "C:\...\C0\pylib\xml\parsers\expat.py", line 91, in __init__
self._reader = XMLReaderFactory.createXMLReader(_xerces_parser_name)
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at java.xml/org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown Source)
at java.xml/org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
org.xml.sax.SAXException: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at org.python.core.Py.JavaError(Py.java:552)
at org.python.core.Py.JavaError(Py.java:543)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:190)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:206)
at org.python.core.PyObject.__call__(PyObject.java:480)
at org.python.core.PyObject.__call__(PyObject.java:484)
at xml.parsers.expat$py.__init__$3(C:/.../C0/pylib/xml/parsers/expat.py:139)
at xml.parsers.expat$py.call_function(C:/.../C0/pylib/xml/parsers/expat.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:199)
at org.python.core.PyFunction.__call__(PyFunction.java:482)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.__call__(PyMethod.java:228)
at org.python.core.PyMethod.__call__(PyMethod.java:223)
at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19)
at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1112)
at org.python.core.PyType.type___call__(PyType.java:1880)
at org.python.core.PyType.__call__(PyType.java:1863)
at org.python.core.PyObject.__call__(PyObject.java:497)
at org.python.core.PyObject.__call__(PyObject.java:501)
at xml.parsers.expat$py.ParserCreate$1(C:/.../C0/pylib/xml/parsers/expat.py:59)
at xml.parsers.expat$py.call_function(C:/.../C0/pylib/xml/parsers/expat.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:154)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at xmltodict$py.parse$12(C:/.../C0/pylib/xmltodict.py:312)
at xmltodict$py.call_function(C:/.../C0/pylib/xmltodict.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyFunction.function___call__(PyFunction.java:471)
at org.python.core.PyFunction.__call__(PyFunction.java:466)
at org.python.pycode._pyx236.dict$29(<module:opcenter>:654)
at org.python.pycode._pyx236.call_function(<module:opcenter>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:139)
at org.python.core.PyFunction.__call__(PyFunction.java:413)
at org.python.core.PyFunction.__call__(PyFunction.java:408)
at org.python.core.PyProperty.property___get__(PyProperty.java:82)
at org.python.core.PyProperty.__get__(PyProperty.java:71)
at org.python.core.PyObject.object___findattr__(PyObject.java:3848)
at org.python.core.PyObject.object___getattribute__(PyObject.java:3832)
at org.python.core.PyObject$object___getattribute___exposer.__call__(Unknown Source)
at org.python.core.Deriveds.__findattr_ex__(Deriveds.java:59)
at org.python.core.PyObjectDerived.__findattr_ex__(PyObjectDerived.java:1036)
at org.python.core.PyObject.__getattr__(PyObject.java:1025)
at org.python.pycode._pyx236.xml$27(<module:opcenter>:639)
at org.python.pycode._pyx236.call_function(<module:opcenter>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:154)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at org.python.core.PyFunction.__call__(PyFunction.java:418)
at org.python.core.PyProperty.property___set__(PyProperty.java:95)
at org.python.core.PyProperty.__set__(PyProperty.java:87)
at org.python.core.PyObject.object___setattr__(PyObject.java:3884)
at org.python.core.PyObject.object___setattr__(PyObject.java:3874)
at org.python.core.PyObject$object___setattr___exposer.__call__(Unknown Source)
at org.python.core.PyObjectDerived.__setattr__(PyObjectDerived.java:1043)
at org.python.pycode._pyx236.submit$11(<module:opcenter>:356)
at org.python.pycode._pyx236.call_function(<module:opcenter>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:139)
at org.python.core.PyFunction.__call__(PyFunction.java:413)
at org.python.core.PyMethod.__call__(PyMethod.java:126)
at org.python.pycode._pyx236.submit_and_return$12(<module:opcenter>:368)
at org.python.pycode._pyx236.call_function(<module:opcenter>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:139)
at org.python.core.PyFunction.__call__(PyFunction.java:413)
at org.python.core.PyMethod.__call__(PyMethod.java:126)
at org.python.pycode._pyx236.cdo_metadata$14(<module:opcenter>:465)
at org.python.pycode._pyx236.call_function(<module:opcenter>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:146)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at org.python.core.PyMethod.__call__(PyMethod.java:141)
at org.python.pycode._pyx236.cdo$101(<module:opcenter>:1852)
at org.python.pycode._pyx236.call_function(<module:opcenter>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:154)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at org.python.core.PyFunction.__call__(PyFunction.java:418)
at org.python.core.PyProperty.property___set__(PyProperty.java:95)
at org.python.core.PyProperty.__set__(PyProperty.java:87)
at org.python.core.PyObject.object___setattr__(PyObject.java:3884)
at org.python.core.PyObject.object___setattr__(PyObject.java:3874)
at org.python.core.PyObject$object___setattr___exposer.__call__(Unknown Source)
at org.python.core.PyObjectDerived.__setattr__(PyObjectDerived.java:1043)
at org.python.pycode._pyx236.__init__$99(<module:opcenter>:1832)
at org.python.pycode._pyx236.call_function(<module:opcenter>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:199)
at org.python.core.PyFunction.__call__(PyFunction.java:482)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.__call__(PyMethod.java:228)
at org.python.core.PyMethod.__call__(PyMethod.java:223)
at org.python.core.Deriveds.dispatch__init__(Deriveds.java:19)
at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1112)
at org.python.core.PyType.type___call__(PyType.java:1880)
at org.python.core.PyType.__call__(PyType.java:1863)
at org.python.core.PyObject.__call__(PyObject.java:480)
at org.python.core.PyObject.__call__(PyObject.java:484)
at org.python.pycode._pyx238.f$0(<input>:4)
at org.python.pycode._pyx238.call_function(<input>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.core.Py.exec(Py.java:1658)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:276)
at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:131)
at com.inductiveautomation.ignition.designer.gui.tools.jythonconsole.JythonConsole$ConsoleWorker.doInBackground(JythonConsole.java:605)
at com.inductiveautomation.ignition.designer.gui.tools.jythonconsole.JythonConsole$ConsoleWorker.doInBackground(JythonConsole.java:593)
at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at java.xml/org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown Source)
at java.xml/org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
... 117 more
Caused by: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.xml/org.xml.sax.helpers.NewInstance.newInstance(Unknown Source)
... 124 more
Traceback (most recent call last):
File "<input>", line 4, in <module>
File "<module:opcenter>", line 1832, in __init__
File "<module:opcenter>", line 1846, in cdo
File "<module:opcenter>", line 430, in cdo_metadata
File "<module:opcenter>", line 361, in submit_and_return
File "<module:opcenter>", line 311, in submit
File "<module:opcenter>", line 591, in xml
File "<module:opcenter>", line 652, in dict
File "<module:opcenter>", line 652, in dict
File "C:\...\C0\pylib\xmltodict.py", line 295, in parse
parser = expat.ParserCreate(
File "C:\...\C0\pylib\xml\parsers\expat.py", line 59, in ParserCreate
return XMLParser(encoding, namespace_separator)
File "C:\...\C0\pylib\xml\parsers\expat.py", line 91, in __init__
self._reader = XMLReaderFactory.createXMLReader(_xerces_parser_name)
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at java.xml/org.xml.sax.helpers.XMLReaderFactory.loadClass(Unknown Source)
at java.xml/org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
org.xml.sax.SAXException: org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser