NoSuchMethodError

Help
2009-09-21
2013-05-23
  • Edwin Litterst

    Edwin Litterst - 2009-09-21

    Hi,

    I am trying to use one-jar for a new project (this is not the first time I am using it).

    After packaging everything I am able to start my application but I get the exception:

    Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.simontuffs.onejar.Boot.run(Boot.java:306)
    at com.simontuffs.onejar.Boot.main(Boot.java:159)
    Caused by: java.lang.NoSuchMethodError: de.julielab.jules.types.Token.setWordCount(I)V
    at de.fiz.uima.ae.PCTFULLWordCountAE.process(PCTFULLWordCountAE.java:70)

    but this method is definitely existing. Without onejar this project is working as expected.

    Does anyone have an idea what's happening here?

    TIA,
    Eddie

     
  • Edwin Litterst

    Edwin Litterst - 2009-09-22

    I found the solution - the class was in the classpath twice - what else could it have been. :-)
    This happens when you are debugging projects from colleagues…

    Eddie

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks