I’m currently running an application that can only be run through a program/s commandline which uses java. When I get my error print out, how do I view the full print out?
i.e. how do i see the “13 more”
Exception:
java.lang.reflect.InvocationTargetException
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Error running java class
- Detail: Error_running_java_class
Stack trace:
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.comsol.util.application.CsBaseApplication.runExternalClassStat(Unknown Source)
at com.comsol.util.application.CsBaseApplication.runExternalClass(Unknown Source)
at com.comsol.util.compile.a$a.a(Unknown Source)
at com.comsol.util.compile.a$a.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at Enviornment.makeNextGen(Enviornment.java:269)
at Enviornment.main(Enviornment.java:44)
... 13 more
This stack trace contains everything you need to know and is not related to console output. It just skips repeating lines.
Update.
Suppose your method call
a()callsb()andb()catches exception thrown from some other methodfoobar(), wraps it in another exception and rethrows it. Here is how stack traces will look:So code that prints exception just skips repeating lines as they carry no additional value. In your question there is
InvocationTargetExceptionbeing thrown in place ofRuntimeExceptionin my example.InvocationTargetExceptionis exception typically used by reflection.