File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.lang.VerifyError question" Watch "java.lang.VerifyError question" New topic

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.
--**-- 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.
I agree. Here's the link:
subject: java.lang.VerifyError question
It's not a secret anymore!