-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFoundError #46
Comments
Can you post your pom.xml? |
I just tested on CentOS 6.3 with Maven 3.1.0 and Please attach the output of: |
Thanks for your help. As I say, It's probably not from the Hikari lib. java version "1.7.0_51" Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:5 java - status est manuel. HOSTNAME=DEV-HOPPERTIZ
|
Everything looks fine, two things you might try: First, try setting the type of the HikariCP dependency to jar in your pom: If you get a similar error, can you try the HikariCP 1.3.4-SNAPHOT? I noticed you had some exclusions for HikariCP: <exclusions>
<exclusion>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
</exclusion>
</exclusions> I've removed these from the 1.3.4 pom, so you can remove those exclusions:
Then reference version 1.3.4-SNAPSHOT in your pom. Can you paste the error you are getting if all of that still fails? |
I've try it and it's still fail. Here are the .git zip with the project and a maven.log with -X -e Thanks a lot |
Ok, I think I found the issue. Due to how we used to do things back when we used JVM instrumentation to generate proxy classes, we were setting the Thread context ClassLoader in a static initializer before proxy generation. I think this is no longer necessary. Basically, the exception you see in the stack comes from the static initialization of HikariConfig, which causes the static initialization in JavassistProxyFactory to run, and in that static initializer an exception was being thrown (probably due to using the context ClassLoader). I have checked in a proposed fix to the |
Thanks a lot for your reactivity. I check and build with : public final class JavassistProxyFactory
It's strange if you've reproduced the issue and fixed it. I hope i don't miss something. My pom have Hikari with 1.3.4-SNAPSHOT (i've updated the maven.log from http://goo.gl/pFJUQN) |
It was just a guess based on the exception stack trace. I tried to build 447 http GET https://registry.npmjs.org/maxmin In the meantime, I did just checking another change that will hopefully log Brett On Fri, Mar 21, 2014 at 12:03 AM, ggaulard [email protected] wrote:
|
I don't know why, but I did "mvn clean" then "mvm package" again an it got 2393 verbose from cache On Fri, Mar 21, 2014 at 12:52 AM, Brett Wooldridge <
|
I was wrong, it is failing at random places: https://gist.github.com/brettwooldridge/9667171 On Fri, Mar 21, 2014 at 12:58 AM, Brett Wooldridge <
|
Sorry, some of NPM dependencies are hard to configure for centos. I've share new pom at http://goo.gl/pFJUQN this skip the Javascript build and just focus on Java. I hope you don't lose to much time trying to make the previous configuration running. Thanks again. |
Good news. I checked in another change to dev last night, and with your DEBUG] org.jboss.logging - Logging Provider: [INFO][INFO] BUILD SUCCESS [INFO][INFO] Total time: 1:30.277s [INFO] |
Full gist: https://gist.github.com/brettwooldridge/9682402 On Fri, Mar 21, 2014 at 5:59 PM, ggaulard [email protected] wrote:
|
Last commit on dev is : 'Add a exception log for JavassistProxyFactory static initiaiization.' |
Actually, I'm not sure what point you had 1.3.4. I made a class loader I think I have a CentOS 6.4 virtual machine, I'll give that a try later. On Fri, Mar 21, 2014 at 6:24 PM, ggaulard [email protected] wrote:
|
I have the issue only with centos not on Windows :( |
Have you looked at the class path? Is there a Javassist library installed On Fri, Mar 21, 2014 at 8:34 PM, ggaulard [email protected] wrote:
|
I don't see anything like this. But to be sure i'll try with a virtualbox centos. |
I have successfully built your project on CentOS 6.4 under JDK 1.7.0-45 On Fri, Mar 21, 2014 at 9:51 PM, ggaulard [email protected] wrote:
|
ok no problem. |
I am getting the same issue, but i am wondering, the MVN repos what version of java is it compiled with i and the op are compiling with Java 1.7 and if the repo is compiled with 1.8 that may cause the issue. |
I don't think the main issue is from you but actually that what append:
I run some tests from Maven 3.2.1 that use your lib v1.3.3 on centos 6.5 64b.
I got a Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.zaxxer.hikari.HikariConfig. Classpath look fine with debug mode enable to maven.
It work fine on Windows and even at runtime on centos.
Do you have any clue? The only thing different is the maven lib name that start with an uppercase and everything else with a lowercase.
Maybe did you know how to force a lib to maven.
Thanks
The text was updated successfully, but these errors were encountered: