java - Cannot inherit from final class error -
what error mean .. runs fine in eclipse not in intellij idea
exception in thread "main" java.lang.verifyerror: cannot inherit final class @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclasscond(classloader.java:631) @ java.lang.classloader.defineclass(classloader.java:615) @ java.security.secureclassloader.defineclass(secureclassloader.java:141) @ java.net.urlclassloader.defineclass(urlclassloader.java:283) @ java.net.urlclassloader.access$000(urlclassloader.java:58) @ java.net.urlclassloader$1.run(urlclassloader.java:197) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:190) @ java.lang.classloader.loadclass(classloader.java:306) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:301) @ java.lang.classloader.loadclass(classloader.java:247) @ com.couchbase.client.viewconnection.createconnections(viewconnection.java:120) @ com.couchbase.client.viewconnection.<init>(viewconnection.java:100) @ com.couchbase.client.couchbaseconnectionfactory.createviewconnection(couchbaseconnectionfactory.java:179) @ com.couchbase.client.couchbaseclient.<init>(couchbaseclient.java:243) @ com.couchbase.client.couchbaseclient.<init>(couchbaseclient.java:175) @ com.couchbase.app.putincbase(app.java:122) @ examplescons.testcons.run(testcons.java:89) @ examplescons.testcons.main(testcons.java:121) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ com.intellij.rt.execution.application.appmain.main(appmain.java:120)
i error when try run couchbase using couchbase-client-1.1.6.jar intellij idea.
the message means says.
somewhere, somehow have managed create class extends superclass, superclass has been declared final
.
the cause have conflict between build classpath , launch classpath. in other words, compiling subclass against version of superclass not final
, , running against version final
. verifier saying (correctly) wrong.
if not build / 1 of classes causing this, internal conflict within couchdb client classes using. indeed fact verifyerror
rather incompatibleclasschangeerror
suggests maybe problem dynamically generated bytecodes.
Comments
Post a Comment