Judy Judy - 1 year ago 1071
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:

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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download