Ticket #143 (closed defect: wontfix)
Bad error handling when inserting .. in a script
| Reported by: | dumoulin | Owned by: | romain.reuillon |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.3 |
| Component: | core | Version: | 0.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Use case :
- create an application with a factor and a complete plan
- in the final processing script editor, type: "factor..a"
- try to run … and see
Trace:
java.lang.ClassNotFoundException: org.simexplorer.script.Script1 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:252) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at com.thoughtworks.xstream.core.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:79) at com.thoughtworks.xstream.core.util.ClassLoaderReference.loadClass(ClassLoaderReference.java:31) at com.thoughtworks.xstream.converters.extended.JavaClassConverter.loadClass(JavaClassConverter.java:73) at com.thoughtworks.xstream.converters.extended.JavaClassConverter.fromString(JavaClassConverter.java:50) Caused: com.thoughtworks.xstream.converters.ConversionException: Cannot load java class org.simexplorer.script.Script1 : org.simexplorer.script.Script1 ---- Debugging information ---- message : Cannot load java class org.simexplorer.script.Script1 cause-exception : java.lang.ClassNotFoundException cause-message : org.simexplorer.script.Script1 class : org.simexplorer.exception.UserBadDataError required-type : java.lang.Class path : /org.simexplorer.exception.UserBadDataError/cause/type line number : 30 ------------------------------- at com.thoughtworks.xstream.converters.extended.JavaClassConverter.fromString(JavaClassConverter.java:52) at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.fromString(SingleValueConverterWrapper.java:41) at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.unmarshal(SingleValueConverterWrapper.java:49) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:234) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:206) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:150) at com.thoughtworks.xstream.converters.extended.ThrowableConverter.unmarshal(ThrowableConverter.java:52) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:234) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:206) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:150) at com.thoughtworks.xstream.converters.extended.ThrowableConverter.unmarshal(ThrowableConverter.java:52) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861) at org.simexplorer.runtime.SimExplorerRuntimeProxy.processLogs(SimExplorerRuntimeProxy.java:142) at org.simexplorer.runtime.SimExplorerRuntimeProxy.run(SimExplorerRuntimeProxy.java:299) at org.simexplorer.runtime.SimExplorerRuntimeProxy.fork(SimExplorerRuntimeProxy.java:212) at org.simexplorer.ide.workflow.ExplorationsManager$1.run(ExplorationsManager.java:97) [catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Change History
Note: See
TracTickets for help on using
tickets.





