aspose file tools*
The moose likes Java in General and the fly likes java.lang.VerifyError question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.lang.VerifyError question" Watch "java.lang.VerifyError question" New topic
Author

java.lang.VerifyError question

Chris Shepherd
Ranch Hand

Joined: Jun 27, 2000
Posts: 286
can any one interpret this error message for me?

According to the docs, a VerifyError msg is "Thrown when the "verifier" detects that a class file, though well formed, contains some sort of internal inconsistency or security problem. "
Is there any way to track this down? I have been doing some major reworking of may code and posting much of it would probably just be confusing. If someone could explain what the "(ILJob ;) V)" means it might give me a clue what's wrong.
The line that calls the DataScrollWindow calls it like this:

there is of course a matching constructor : DataScrollWindow(int,Job). Job is a class of my own. An instance of Job (job) exists at the time of the call to create the DataScrollWindow.
Any help with this would be appreciated.
Thanks,
Chris
--**-- Edited to disable smiles in the post
[ October 14, 2002: Message edited by: Chris Shepherd ]
Blake Minghelli
Ranch Hand

Joined: Sep 13, 2002
Posts: 331
I just recently experienced my first VerifyError. It happened when I was trying to upgrade to a newer version (1.16) of the jikes java compiler. When I tried the latest version (1.17) the problem went away. By no means am I an expert on compilers but it seems like jikes 1.16 created some invalid bytecode . From what I understand about VerifyErrors, they occur when the jvm is initializing classes before they can be used.
What compiler are you using? Has your compiler changed since the last time you compiled the classes?
By the way, that error scared me because I was worried about what other classes it screwed up so I wrote a program that goes through all of my class files and does a "Class.forName(...)". Using jikes 1.16, there were 4 classes that threw VerifyErrors.
Hope that helps.


Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
Chris Shepherd
Ranch Hand

Joined: Jun 27, 2000
Posts: 286
Thanks Blake, I went back and checked out the compiler my environment uses. It's an incremental compiler(compiles as you write the code) that came with my environment(CodeGuide). I had the option to recompile everything with javac, so I did and it seemed to fix the issue. This is the first time I'v run across anything like this with this code environment, so I'm still going to use it. I'll just have to send them a note and let them know it happened.
Thanks for the lead. It saved me a whole lot of grief.
Chris
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.VerifyError question