• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why???? (Unknow Source)  RSS feed

 
Ronnie Phelps
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is it that sometimes I can execute a jar file and I get all the line numbers to show in the stack trace and then other times I get Unknown Source?
for example
at java.io.FileInputStream.<init>(Unknown Source)
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Possibly because the source that it came from is in JNI. I also get that when the source is a CORBA agent.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Other possible causes are missing debug informations because of
- usage of accompanied compiler options
- runtime optimizations done by the hotspot engine
 
Shreesh Ponkshe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is "usage of accompanied compiler options"?
How do we workaround this to start getting a sensible stack trace?
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javac -g
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!