java.lang.ClassCastException: java.lang.String cannot be cast to java.awt.TextField

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Tristan Chaplin, 1 year ago
java.lang.String cannot be cast to java.awt.TextField
via Google Groups by Tristan Chaplin, 1 year ago
java.lang.String cannot be cast to java.awt.TextField
java.lang.ClassCastException: java.lang.String cannot be cast to java.awt.TextField
at ij.plugin.Resizer.run(Resizer.java:91)
at ij.IJ.runPlugInUnchecked(IJ.java:175)
at ij.IJ.runPlugIn(IJ.java:157)
at ij.Executer.runCommand(Executer.java:147)
at ij.Executer.run(Executer.java:78)
at ij.IJ.run(IJ.java:269)
at ij.IJ.run(IJ.java:314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:190)
at org.python.core.PyObject.__call__(PyObject.java:432)
at org.python.core.PyObject.__call__(PyObject.java:436)
at org.python.pycode._pyx0.f$0(/Users/tchaplin/Dropbox/Neuro/Programs/python/imagej/multistackreg.py:101)
at org.python.pycode._pyx0.call_function(/Users/tchaplin/Dropbox/Neuro/Programs/python/imagej/multistackreg.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1204)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:200)
at org.python.util.jython.run(jython.java:246)
at org.python.util.jython.main(jython.java:129)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.