Stack trace on Exception

I am getting an exception thrown from my code where instead of seeing something like

java.lang.NullPointerException

at MyClass.mash(MyClass.java:9)

at MyClass.crunch(MyClass.java:6)

at MyClass.main(MyClass.java:3)

I am seeing "compiled code" instead of line numbers. However, this is my own code and not a third party and I was hoping to get line numbers?

However, the exception is coming from EJB method. and We are using Weblogic. So I see couple of lines in stack trace where it lists weblogic created adapater, skeleton classes, which then call my EJB method. However all the lines show compiled code.

Any ideas will be very much appreciated.

Thanks

[715 byte] By [geekseem] at [2007-9-26 1:36:03]
# 1
Choose the -classic JVM option to prevent JIT. The JIT can make it impractical for the JVM to know where it is.java -classic MyClassChuck
cmccorvey at 2007-6-29 2:21:09 > top of Java-index,Archived Forums,Java Programming...
# 2

Thanks chuck, but it tells me that classic option is not supported, am I missing something? or do I not have the correct version?

> Choose the -classic JVM option to prevent JIT. The

> JIT can make it impractical for the JVM to know where

> it is.

>

> java -classic MyClass

>

> Chuck

geekseem at 2007-6-29 2:21:09 > top of Java-index,Archived Forums,Java Programming...
# 3

The "-classic" option must be the first option after "java":

java -classic ...

Not "java -D... ... -classic MyClass

Are you using Sun JDK 1.3.1? Use \jdk1.3.1\bin\java, the one in "jre" directory may not work because the Java 2 Classic VM (essentially the same virtual machine implementation as in version 1.2 of the Java 2 SDK) is included only in the Java 2 SDK. It is not included in the Java 2 Runtime Environment. The -classic option will not work with the Java 2 Runtime Environment.

yilin at 2007-6-29 2:21:09 > top of Java-index,Archived Forums,Java Programming...
# 4
Also remember to add one more option to turn off JIT for sure (in JDK1.2, the symantec JIT bundled in JDK is turned on by default):java -classic -Djava.compiler=NONE MyClass
yilin at 2007-6-29 2:21:09 > top of Java-index,Archived Forums,Java Programming...
# 5

You can also use:

java -Xint MyClass

This option is new in Java 1.3.1 so that you don't need the "classic" option at all. The advantages are:

1. You will still be running 1.3.1, unlike with "classic" which uses java 1.2.

2. Xint is also available from JRE if you only have JRE installed on non-development machines.

yilin at 2007-6-29 2:21:09 > top of Java-index,Archived Forums,Java Programming...