cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Madu" <andrewm...@gmail.com>
Subject Instruction INVOKEVIRTUAL constraint violated
Date Tue, 21 Mar 2006 09:26:08 GMT
Hi,
can someone please tell me why defining a class variable in a javaflow class
like so:

public class Login extends AbstractContinuable
{
    static User userGlobal = new User();
    .........


would cause the following error to be generated?:

Instruction INVOKEVIRTUAL constraint violated: Class 'Login' is referenced,
but cannot be loaded and resolved: 'VERIFIED_REJECTED Number of
LocalVariableTable attributes of Code attribute '<CODE>' (method 'static
void <clinit>()') exceeds number of local variable slots '0' ('There may be
no more than one LocalVariableTable attribute per local variable in the Code
attribute.'). '. InstructionHandle: 4: invokevirtual[182](3) 28 Execution
Frame: Local Variables: 0: Login 1: java.lang.String 2: <unknown object> 3:
<unknown object> OperandStack: Slots used: 1 MaxStack: 5. Login (Size: 1)
Execution flow: 0: ldc 24 [InstructionContext] 2: astore_1
[InstructionContext] 3: aload_0 [InstructionContext] 4: invokevirtual 28
[InstructionContext]

org.apache.bcel.verifier.exc.StructuralCodeConstraintException: Instruction
INVOKEVIRTUAL constraint violated: Class 'Login' is referenced, but cannot
be loaded and resolved: 'VERIFIED_REJECTED Number of LocalVariableTable
attributes of Code attribute '<CODE>' (method 'static void <clinit>()')
exceeds number of local variable slots '0' ('There may be no more than one
LocalVariableTable attribute per local variable in the Code attribute.'). '.
InstructionHandle: 4: invokevirtual[182](3) 28 Execution Frame: Local
Variables: 0: Login 1: java.lang.String 2: <unknown object> 3: <unknown
object> OperandStack: Slots used: 1 MaxStack: 5. Login (Size: 1) Execution
flow: 0: ldc 24 [InstructionContext] 2: astore_1 [InstructionContext] 3:
aload_0 [InstructionContext] 4: invokevirtual 28 [InstructionContext]
Are javaflow classes not allowed to have static class variable
definitions?!! How do I resolve this?

Andrew

Mime
View raw message