Serenity Jbehave unstable (could not load class .. )

60 views
Skip to first unread message

Николай Колев

unread,
Nov 9, 2015, 2:41:03 AM11/9/15
to Serenity BDD Users Group
Hi,

I've recently updated the version of serenity and I'm having some problems with failing tests, but not for some normal reasons. 

Sometimes I'm having errors like:
Could not load class emf.uat.permissions.ChangeExistingPermissions
java.lang.NoClassDefFoundError: Could not initialize class steps.util.CommonConstants
java.lang.ExceptionInInitializerError

The first is from the console and the other 2 are in the report. Anyone faced those before? What could be the reason? It does not happen every time .. just sometimes.

Thanks.

Dmitriy Grablyov

unread,
Nov 9, 2015, 3:29:34 AM11/9/15
to Serenity BDD Users Group
Looks like you have problems with your classpath.
What are you using as a project builder?

Regards,
Dmytro Grablov

Николай Колев

unread,
Nov 9, 2015, 3:30:15 AM11/9/15
to Serenity BDD Users Group
I found the problem. I am getting some configuration properties for my tests from a config file. One of my keys was wrong and when I ran a test that uses that property the java.lang.ExceptionInInitializerError was shown instead of IllegalArgumentException. For some reason I think serenity hide my exception and shows this one instead, and mine hidden under it. Also it was not printed in the console and went to junit report instead.
Reply all
Reply to author
Forward
0 new messages