eclipse - Getting a java.lang.NoSuchMethod for a method that exists java 7 -
i'm getting strange error having trouble understanding, can here explain me means? add further detail upon request.
here stack trace:
java.lang.nosuchmethoderror: com.somecompany.ctg.tla.models.tables.subtopiccolumn.gethaveanynode()ljava/lang/string; @ com.somecompany.ctg.tla.compilers.decisiontablelinker.insertsubtopics(decisiontablelinker.java:373) @ com.somecompany.ctg.tla.compilers.decisiontablelinker.attachtopics(decisiontablelinker.java:284) @ com.somecompany.ctg.tla.compilers.decisiontablebuilder.link(decisiontablebuilder.java:213) @ com.somecompany.ctg.tla.compilers.decisiontablebuilder.link(decisiontablebuilder.java:247) @ com.somecompany.ctg.tla.compilers.qa.compilertest.testcompiler(compilertest.java:54) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ org.junit.runners.model.frameworkmethod$1.runreflectivecall(frameworkmethod.java:50) @ org.junit.internal.runners.model.reflectivecallable.run(reflectivecallable.java:12) @ org.junit.runners.model.frameworkmethod.invokeexplosively(frameworkmethod.java:47) @ org.junit.internal.runners.statements.invokemethod.evaluate(invokemethod.java:17) @ org.junit.runners.parentrunner.runleaf(parentrunner.java:325) @ org.junit.runners.blockjunit4classrunner.runchild(blockjunit4classrunner.java:78) @ org.junit.runners.blockjunit4classrunner.runchild(blockjunit4classrunner.java:57) @ org.junit.runners.parentrunner$3.run(parentrunner.java:290) @ org.junit.runners.parentrunner$1.schedule(parentrunner.java:71) @ org.junit.runners.parentrunner.runchildren(parentrunner.java:288) @ org.junit.runners.parentrunner.access$000(parentrunner.java:58) @ org.junit.runners.parentrunner$2.evaluate(parentrunner.java:268) @ org.junit.runners.parentrunner.run(parentrunner.java:363) @ org.eclipse.jdt.internal.junit4.runner.junit4testreference.run(junit4testreference.java:50) @ org.eclipse.jdt.internal.junit.runner.testexecution.run(testexecution.java:38) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:459) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.runtests(remotetestrunner.java:675) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.run(remotetestrunner.java:382) @ org.eclipse.jdt.internal.junit.runner.remotetestrunner.main(remotetestrunner.java:192)
does error calling method not exist? or class calling dependent on method not exist...
the error indicates importing , using version of jar
class library missing method gethaveanynode()
.
if have 2 versions of jars
- ensure right 1 imported. looks you're compiling fine right jar , packaging wrong one.
Comments
Post a Comment