Judy Judy - 1 month ago 119
Java Question

Getting following exception org.apache.bcel.verifier.exc.AssertionViolatedException

I am getting following error while executing my java code. What is this error and how it can be removed? I googled and mostly people have talked bugs related to bcel.
Can anyone direct me to the relevant website with details. Thanks for your time.

Exception in thread "main" org.apache.bcel.verifier.exc.AssertionViolatedException:
FOUND:
INTERNAL ERROR: Oops!
Exiting!!

at org.apache.bcel.verifier.exc.AssertionViolatedException.main(AssertionViolatedException.java:102)

Answer

This exception is thrown when BCEl tries to verify bytecode modifications and fails. You are clearly doing something (either yourself or through some tool) that uses BCEL to modify the bytecode your Java compiler produces. If you are working with BCEL yourself, you should be able to figure out what you are doing and why this breaks. If it's a tool, figure out which one and report a bug. Typical candidates are things like code coverage tools, badly coded AOP stuff or some crazy research tool.

Comments