I current use the script console to test a REST wrapper implemented in Ignition using the system.net.httpclient.
Since upgrading from 8.0.7 to 8.0.11 (and subsequently 8.0.12) trying to create the httpclient fails inside the script console.
# Create the JythonHttpClient
client = system.net.httpClient()
>>>
Java Traceback:
Traceback (most recent call last):
File "<input>", line 2, in <module>
at com.inductiveautomation.ignition.common.script.builtin.AbstractNetUtilities.httpClient(AbstractNetUtilities.java:498)
at jdk.internal.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class com.inductiveautomation.ignition.common.script.PyArgParser
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 com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction.__call__(ScriptManager.java:521)
at org.python.core.PyObject.__call__(PyObject.java:464)
at org.python.core.PyObject.__call__(PyObject.java:468)
at org.python.pycode._pyx777.f$0(<input>:2)
at org.python.pycode._pyx777.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: java.lang.NoClassDefFoundError: Could not initialize class com.inductiveautomation.ignition.common.script.PyArgParser
at com.inductiveautomation.ignition.common.script.builtin.AbstractNetUtilities.httpClient(AbstractNetUtilities.java:498)
at jdk.internal.reflect.GeneratedMethodAccessor37.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)
... 19 more
Traceback (most recent call last):
File "<input>", line 2, in <module>
at com.inductiveautomation.ignition.common.script.builtin.AbstractNetUtilities.httpClient(AbstractNetUtilities.java:498)
at jdk.internal.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class com.inductiveautomation.ignition.common.script.PyArgParser
>>>
Edit:
Followed advice from System.gui.transform error and reinstalled designer. It seems to have fixed it.