Empty stack trace/method call from nowhere?

M

Michael Borgwardt

I sometimes use constructs like this:
new Exception().printStackTrace(System.out);
for debugging, in order to find out where a problematic call came from.

Now I've encountered a case where it seems the call came from nowhere:
the stack trace contains only the method with the debug output itself.
And this is consistent with what eclipse tells me about the usage of
the method: it's used in only one place where it should be followed
immediately by another debug message, but in the case I'm looking at,
that is missing.

Admittedly, this *is* an applet running in the Microsoft VM, but I find
it hard to believe that even the Microsoft VM generates calls from
nowhere.

Does this sound like a known issue? Under what circumstances can an
Exception's stack trace contain only the method in which it's created?
 
M

Michael Borgwardt

I found the culprit: the applet method in question was being called
from JavaScript via LiveConnect.
 
A

Andrew Thompson

I found the culprit: the applet method in question was being called
from JavaScript via LiveConnect.

Are you saying the MSVM was the only VM that responds
to LiveConnect? (I have looked at various ways to connect
Java and JS before, but never found a viable & robust one.)

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
 
M

Michael Borgwardt

Andrew said:
Are you saying the MSVM was the only VM that responds
to LiveConnect?

No, only that it is the configuration I am using.
(I have looked at various ways to connect
Java and JS before, but never found a viable & robust one.)

Well, it seems to work fine here, except that the stack traces
contain no explicit indication when a call came via LiveConnect.

There are nasty problems in other areas, though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top