Instrumentation problem with eclipse (using maven) on windows

292 views
Skip to first unread message

Khashayar MirMS

unread,
Sep 9, 2015, 12:27:24 PM9/9/15
to ActiveJDBC Group
I know that this question has been asked many times before, but I couldn't solve my problem using the answers provided to them.
I haven't used maven before and I'm not really familiar with it.
I'm using eclipse on windows and trying to use ActiveJDBC. when compiling my code I get the following error:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: org.javalite.activejdbc.InitException: failed to determine Model class name, are you sure models have been instrumented?
at org.javalite.activejdbc.Model.modelClass(Model.java:2726)
at org.javalite.activejdbc.Model.validatePresenceOf(Model.java:1885)
at database.Person.<clinit>(Person.java:17)
How can I fix this problem? I have also attached my pom.xml...

Thanks
pom.xml

Igor Polevoy

unread,
Sep 9, 2015, 12:41:21 PM9/9/15
to ActiveJDBC Group
I'm pretty sure you hae this exception not during compile,but during execution. ActiveJDBC has so-called instrumentation step you are missing. 
Please familiarize yourself: http://javalite.io/instrumentation

tx
Reply all
Reply to author
Forward
0 new messages