Re: Inconsistent stack height error

Tobias Downer <[email protected]>
Newsgroups gmane.comp.db.mckoi
Message-ID <[email protected]>
Hi,

Both errors are exceptions generated by the JVM.  NoClassDefFoundError 
means that a class that was compiled into the binary can no longer be 
found in the classpath.  This could happen because mckoidb.jar was 
changed, or there is an incomplete copy of Mckoi available to your 
application.  I have also seen this error happen when a lower version 
JVM is used to run an application compiled against a higher version Java 
system library.

The VerifyError is also a JVM exception.  I believe in this case the 
Java verify is checking the register stack height of a method and is 
discovering it's not balanced.  You can find descriptions of the errors 
at the following links;

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/VerifyError.html
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NoClassDefFoundError.html

Did you recently recompile Mckoi or have you changed your JVM?  What 
version of Java are you using?  The VerifyError does suggest you might 
have a corrupt .class, and installing fresh mckoi .jar files may solve 
the problems.

Toby.

[email protected] wrote:

> 
> Hi Toby,
> 
> I am getting the following exception while starting my application with 
> McKoi in the embedded mode. The same build has worked and works 
> flawlessly with an empty database, so the database has probably become 
> corrupt somehow.
> 
> % Storage System: v1 file storage mode.
> % Storage System: v1 file storage mode.
> Exception in thread "Thread-2" java.lang.NoClassDefFoundError
>         at 
> com.mckoi.database.TransactionSystem.init(TransactionSystem.java:419)
>  
> % Storage System: v1 file storage mode.
> Exception in thread "Thread-1" java.lang.VerifyError: (class: 
> com/mckoi/database
> /sql/SQL, method: <init> signature: 
> (Lcom/mckoi/database/sql/SQLTokenManager;)V)
>  Inconsistent stack height 3 != -256
>         at com.mckoi.database.Expression.<clinit>(Expression.java:176)
>         at 
> com.mckoi.database.FunctionFactory.<clinit>(FunctionFactory.java:50)
> 
> Is there an explanation for the "Inconsistent stack height 3 != -256" 
> error?
> 
> Regards,
> 
> Andrei



---------------------------------------------------------------
Mckoi SQL Database mailing list  http://www.mckoi.com/database/
To unsubscribe, send a message to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.