java.lang.NoSuchMethodError: javax.mail.Transpor t.connect(Ljava/lang/String;Ljava/lang/String;)V

sourceforge.net | 3 months ago
  1. 0

    Endeavour Agile ALM / Discussion / Installation and Configuration:Email Notifications

    sourceforge.net | 3 months ago
    java.lang.NoSuchMethodError: javax.mail.Transpor t.connect(Ljava/lang/String;Ljava/lang/String;)V
  2. 0

    When I delete my asm.jar, I correctly get org/objectweb/asm/CodeVisitor java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor The above proves I don't accidentally have another version on the class path. Once I put the correct version of asm.jar from hibernate core back in, I get the following error.... [junit] org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/ String;[Ljava/lang/String;Ljava/lang/String;)V [junit] java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(II Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V [junit] at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java: 77) [junit] at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFacto ry.java:173) [junit] at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGe neratorStrategy.java:25) [junit] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClass Generator.java:216) [junit] at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java :145) [junit] at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) [junit] at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) [junit] at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) [junit] at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69) [junit] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyF actory(CGLIBLazyInitializer.java:117) [junit] at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstanti ate(CGLIBProxyFactory.java:43) [junit] at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFacto ry(PojoEntityTuplizer.java:162) [junit] at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(Abst ractEntityTuplizer.java:135) [junit] at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEnti tyTuplizer.java:55) [junit] at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping. <init>(EntityEntityModeToTuplizerMapping.java:56) [junit] at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetam odel.java:302) [junit] at org.hibernate.persister.entity.AbstractEntityPersister.<init> (AbstractEntityPersister.java:434) [junit] at org.hibernate.persister.entity.SingleTableEntityPersister.<in it>(SingleTableEntityPersister.java:109) [junit] at org.hibernate.persister.PersisterFactory.createClassPersister (PersisterFactory.java:55) [junit] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryIm pl.java:226) [junit] at org.hibernate.cfg.Configuration.buildSessionFactory(Configura tion.java:1300) [junit] at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory (AnnotationConfiguration.java:859) [junit] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory (Ejb3Configuration.java:669) [junit] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFac tory(HibernatePersistence.java:126) [junit] at javax.persistence.Persistence.createEntityManagerFactory(Pers istence.java:51) [junit] at biz.xsoftware.rocketwar.server.test.AbstractHibTestCase.build SessionFactory(AbstractHibTestCase.java:51) [junit] at biz.xsoftware.rocketwar.server.test.AbstractHibTestCase.setUp Impl(AbstractHibTestCase.java:67) [junit] at biz.xsoftware.mock.testcase.MockTestCase.setUp(MockTestCase.j ava:52) [junit] at biz.xsoftware.mock.testcase.MockTestCase.runBare(MockTestCase .java:112) The manifest version of asm.jar is 1.5.3. The cglib is called cglib-2.1.3 but has not versoin in the manifest at all. I really don't know what is going on. Is it going through a special path of code that doesn't work and is a bug. I can't see how this can be user error right now since when I remove the asm.jar, I get classnotfound. It is interesting that the class not found is CodeVisitor while methodnot found is on Classvisitor. I am still looking into this but can't seem to figure out the bug completely.

    Hibernate JIRA | 9 years ago | Dean Hiller
    java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(II Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
  3. 0

    Using: {code} <plugin> <groupId>com.atlassian.bamboo.maven.sharing</groupId> <artifactId>bamboo-artifact-sharing-maven-plugin</artifactId> <version>3.3-m4-1</version> <executions> <execution> <id>sharing</id> <goals> <goal>share</goal> </goals> </execution> </executions> </plugin> {code} Produces: {code} [INFO] --- bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share (sharing) @ testrelease --- [DEBUG] com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:jar:3.3-m4-1: [DEBUG] org.apache.maven:maven-core:jar:2.1.0:compile [DEBUG] org.apache.maven:maven-settings:jar:2.1.0:compile [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.1.0:compile [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.1.0:compile [DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile [DEBUG] org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile [DEBUG] org.apache.maven:maven-profile:jar:2.1.0:compile [DEBUG] org.apache.maven:maven-model:jar:2.1.0:compile [DEBUG] org.apache.maven:maven-artifact:jar:2.1.0:compile [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile [DEBUG] junit:junit:jar:3.8.1:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.1.0:compile [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.1.0:compile [DEBUG] commons-cli:commons-cli:jar:1.0:compile [DEBUG] org.apache.maven:maven-plugin-api:jar:2.1.0:compile [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.1.0:compile [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.1.0:compile [DEBUG] backport-util-concurrent:backport-util-concurrent:jar:3.1:compile [DEBUG] org.apache.maven:maven-monitor:jar:2.1.0:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile [DEBUG] classworlds:classworlds:jar:1.1:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.1:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.1:compile [DEBUG] org.apache.maven:maven-project:jar:2.1.0:compile [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.1.0:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.8.1:compile [DEBUG] Created new class realm plugin>com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1 [DEBUG] Importing foreign packages into class realm plugin>com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1 [DEBUG] Included: com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:jar:3.3-m4-1 [DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.1.0 [DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.1 [DEBUG] Included: org.apache.maven.doxia:doxia-logging-api:jar:1.1 [DEBUG] Included: junit:junit:jar:3.8.1 [DEBUG] Included: commons-cli:commons-cli:jar:1.0 [DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4 [DEBUG] Included: backport-util-concurrent:backport-util-concurrent:jar:3.1 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.5.6 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.1 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.1 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.8.1 [DEBUG] Excluded: org.apache.maven:maven-core:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-model:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.1.0 [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.1.0 [DEBUG] Excluded: classworlds:classworlds:jar:1.1 [DEBUG] Excluded: org.apache.maven:maven-project:jar:2.1.0 [DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.1.0 [DEBUG] Configuring mojo com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share from plugin realm ClassRealm[plugin>com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1, parent: sun.misc.Launcher$AppClassLoader@20cf2c80] [DEBUG] Configuring mojo 'com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share' with basic configurator --> [DEBUG] (f) baseURL = http://localhost:8888 [DEBUG] (f) jobKey = B [DEBUG] (f) planResultKey = A [DEBUG] (f) project = MavenProject: org.sonatype.testrelease:testrelease:6-SNAPSHOT @ /Users/jason/ws/sonatype/grid/admin/test-release/trunk/pom.xml [DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@15837e8 [DEBUG] (f) token = C [DEBUG] -- end configuration -- [INFO] Rewriting all deployments from 'https://repository.sonatype.org/content/repositories/snapshots' to 'http://localhost:8888/plugins/servlet/maven/publish/A/B/forge-snapshots/' (Atlassian Bamboo Server) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.081s [INFO] Finished at: Tue Feb 28 10:58:11 PST 2012 [INFO] Final Memory: 6M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share (sharing) on project testrelease: Execution sharing of goal com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share failed: An API incompatibility was encountered while executing com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share: java.lang.NoSuchMethodError: org.apache.maven.artifact.manager.WagonManager.addAuthenticationInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/Users/jason/.m2/repository/com/atlassian/bamboo/maven/sharing/bamboo-artifact-sharing-maven-plugin/3.3-m4-1/bamboo-artifact-sharing-maven-plugin-3.3-m4-1.jar [ERROR] urls[1] = file:/Users/jason/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.1.0/maven-reporting-api-2.1.0.jar [ERROR] urls[2] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar [ERROR] urls[3] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar [ERROR] urls[4] = file:/Users/jason/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [ERROR] urls[5] = file:/Users/jason/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar [ERROR] urls[6] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar [ERROR] urls[7] = file:/Users/jason/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar [ERROR] urls[8] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar [ERROR] urls[9] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.1/plexus-sec-dispatcher-1.1.jar [ERROR] urls[10] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-cipher/1.1/plexus-cipher-1.1.jar [ERROR] urls[11] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.8.1/plexus-interpolation-1.8.1.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share (sharing) on project testrelease: Execution sharing of goal com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share failed: An API incompatibility was encountered while executing com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share: java.lang.NoSuchMethodError: org.apache.maven.artifact.manager.WagonManager.addAuthenticationInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ----------------------------------------------------- realm = plugin>com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/Users/jason/.m2/repository/com/atlassian/bamboo/maven/sharing/bamboo-artifact-sharing-maven-plugin/3.3-m4-1/bamboo-artifact-sharing-maven-plugin-3.3-m4-1.jar urls[1] = file:/Users/jason/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.1.0/maven-reporting-api-2.1.0.jar urls[2] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar urls[3] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar urls[4] = file:/Users/jason/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar urls[5] = file:/Users/jason/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar urls[6] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar urls[7] = file:/Users/jason/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar urls[8] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar urls[9] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.1/plexus-sec-dispatcher-1.1.jar urls[10] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-cipher/1.1/plexus-cipher-1.1.jar urls[11] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.8.1/plexus-interpolation-1.8.1.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]] ----------------------------------------------------- at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution sharing of goal com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share failed: An API incompatibility was encountered while executing com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share: java.lang.NoSuchMethodError: org.apache.maven.artifact.manager.WagonManager.addAuthenticationInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ----------------------------------------------------- realm = plugin>com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/Users/jason/.m2/repository/com/atlassian/bamboo/maven/sharing/bamboo-artifact-sharing-maven-plugin/3.3-m4-1/bamboo-artifact-sharing-maven-plugin-3.3-m4-1.jar urls[1] = file:/Users/jason/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.1.0/maven-reporting-api-2.1.0.jar urls[2] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar urls[3] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar urls[4] = file:/Users/jason/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar urls[5] = file:/Users/jason/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar urls[6] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar urls[7] = file:/Users/jason/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar urls[8] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar urls[9] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.1/plexus-sec-dispatcher-1.1.jar urls[10] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-cipher/1.1/plexus-cipher-1.1.jar urls[11] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.8.1/plexus-interpolation-1.8.1.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]] ----------------------------------------------------- at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:139) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.plugin.PluginContainerException: An API incompatibility was encountered while executing com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share: java.lang.NoSuchMethodError: org.apache.maven.artifact.manager.WagonManager.addAuthenticationInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ----------------------------------------------------- realm = plugin>com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/Users/jason/.m2/repository/com/atlassian/bamboo/maven/sharing/bamboo-artifact-sharing-maven-plugin/3.3-m4-1/bamboo-artifact-sharing-maven-plugin-3.3-m4-1.jar urls[1] = file:/Users/jason/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.1.0/maven-reporting-api-2.1.0.jar urls[2] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar urls[3] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar urls[4] = file:/Users/jason/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar urls[5] = file:/Users/jason/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar urls[6] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar urls[7] = file:/Users/jason/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar urls[8] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar urls[9] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.1/plexus-sec-dispatcher-1.1.jar urls[10] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-cipher/1.1/plexus-cipher-1.1.jar urls[11] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.8.1/plexus-interpolation-1.8.1.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]] ----------------------------------------------------- at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) ... 20 more Caused by: java.lang.NoSuchMethodError: org.apache.maven.artifact.manager.WagonManager.addAuthenticationInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V at com.atlassian.bamboo.maven.sharing.ShareMojo.setRepositoryUsernameAndPassword(ShareMojo.java:160) at com.atlassian.bamboo.maven.sharing.ShareMojo.execute(ShareMojo.java:104) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more [ERROR] {code} Docs state "Artifact sharing is configured differently when using Maven 2 or 3 as a builder for your Jobs." but there is no further details given here. The docs for this feature are generally bad. Its not clear what phase projects would need to execute for this to work, looking at the plugin.xml it looks like this will kick in during verify. When its enabled, and bamboo* properties are not set, should really explain that its doing nothing. Hopefully this feature will get move love in upcoming releases. The docs also state "Note, the version number specified above (<version>) must match the version of Bamboo you are using" but from looking at the versions here: * https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/bamboo/maven/sharing/bamboo-artifact-sharing-maven-plugin/ ... these versions don't tend to line up with any recent Bamboo release.

    Atlassian JIRA | 5 years ago | Jason Dillon
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share (sharing) on project testrelease: Execution sharing of goal com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share failed: An API incompatibility was encountered while executing com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1:share: java.lang.NoSuchMethodError: org.apache.maven.artifact.manager.WagonManager.addAuthenticationInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ----------------------------------------------------- realm = plugin>com.atlassian.bamboo.maven.sharing:bamboo-artifact-sharing-maven-plugin:3.3-m4-1 strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy urls[0] = file:/Users/jason/.m2/repository/com/atlassian/bamboo/maven/sharing/bamboo-artifact-sharing-maven-plugin/3.3-m4-1/bamboo-artifact-sharing-maven-plugin-3.3-m4-1.jar urls[1] = file:/Users/jason/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.1.0/maven-reporting-api-2.1.0.jar urls[2] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.1/doxia-sink-api-1.1.jar urls[3] = file:/Users/jason/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar urls[4] = file:/Users/jason/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar urls[5] = file:/Users/jason/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar urls[6] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar urls[7] = file:/Users/jason/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar urls[8] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar urls[9] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.1/plexus-sec-dispatcher-1.1.jar urls[10] = file:/Users/jason/.m2/repository/org/sonatype/plexus/plexus-cipher/1.1/plexus-cipher-1.1.jar urls[11] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.8.1/plexus-interpolation-1.8.1.jar Number of foreign imports: 1 import: Entry[import from realm ClassRealm[maven.api, parent: null]] -----------------------------------------------------
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    i have 2 jobs for rails projects on my jenkins installation, they work fine (testcases and coverage), now i wanted to include the "Publish Rake Stats" and the "Publish Rake Notes" from the rake plugin. i selected the corresponding RVM runtime for the project and tried to save the config, but it failed. if you need additional information, just ask, Thanks ----- Stack trace javax.servlet.ServletException: java.lang.NoSuchMethodError: hudson.plugins.rake.Rake.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631) at org.kohsuke.stapler.Stapler.service(Stapler.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:79) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Caused by: java.lang.NoSuchMethodError: hudson.plugins.rake.Rake.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V at hudson.plugins.rubyMetrics.AbstractRailsTaskPublisher.<init>(AbstractRailsTaskPublisher.java:25) at hudson.plugins.rubyMetrics.railsNotes.RailsNotesPublisher.<init>(RailsNotesPublisher.java:32) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:534) at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:447) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:690) at org.kohsuke.stapler.RequestImpl.access$100(RequestImpl.java:81) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:587) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:400) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:396) at hudson.model.Descriptor.newInstance(Descriptor.java:567) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:914) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:899) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:203) at hudson.model.Project.submit(Project.java:208) at hudson.model.Job.doConfigSubmit(Job.java:1136) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:786) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) ... 63 more

    Jenkins JIRA | 3 years ago | Axel Kämpfe
    javax.servlet.ServletException: java.lang.NoSuchMethodError: hudson.plugins.rake.Rake.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
  6. 0

    When I delete my asm.jar, I correctly get org/objectweb/asm/CodeVisitor java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor The above proves I don't accidentally have another version on the class path. Once I put the correct version of asm.jar from hibernate core back in, I get the following error.... [junit] org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/ String;[Ljava/lang/String;Ljava/lang/String;)V [junit] java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(II Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V [junit] at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java: 77) [junit] at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFacto ry.java:173) [junit] at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGe neratorStrategy.java:25) [junit] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClass Generator.java:216) [junit] at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java :145) [junit] at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) [junit] at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) [junit] at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) [junit] at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69) [junit] at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyF actory(CGLIBLazyInitializer.java:117) [junit] at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstanti ate(CGLIBProxyFactory.java:43) [junit] at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFacto ry(PojoEntityTuplizer.java:162) [junit] at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(Abst ractEntityTuplizer.java:135) [junit] at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEnti tyTuplizer.java:55) [junit] at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping. <init>(EntityEntityModeToTuplizerMapping.java:56) [junit] at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetam odel.java:302) [junit] at org.hibernate.persister.entity.AbstractEntityPersister.<init> (AbstractEntityPersister.java:434) [junit] at org.hibernate.persister.entity.SingleTableEntityPersister.<in it>(SingleTableEntityPersister.java:109) [junit] at org.hibernate.persister.PersisterFactory.createClassPersister (PersisterFactory.java:55) [junit] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryIm pl.java:226) [junit] at org.hibernate.cfg.Configuration.buildSessionFactory(Configura tion.java:1300) [junit] at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory (AnnotationConfiguration.java:859) [junit] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory (Ejb3Configuration.java:669) [junit] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFac tory(HibernatePersistence.java:126) [junit] at javax.persistence.Persistence.createEntityManagerFactory(Pers istence.java:51) [junit] at biz.xsoftware.rocketwar.server.test.AbstractHibTestCase.build SessionFactory(AbstractHibTestCase.java:51) [junit] at biz.xsoftware.rocketwar.server.test.AbstractHibTestCase.setUp Impl(AbstractHibTestCase.java:67) [junit] at biz.xsoftware.mock.testcase.MockTestCase.setUp(MockTestCase.j ava:52) [junit] at biz.xsoftware.mock.testcase.MockTestCase.runBare(MockTestCase .java:112) The manifest version of asm.jar is 1.5.3. The cglib is called cglib-2.1.3 but has not versoin in the manifest at all. I really don't know what is going on. Is it going through a special path of code that doesn't work and is a bug. I can't see how this can be user error right now since when I remove the asm.jar, I get classnotfound. It is interesting that the class not found is CodeVisitor while methodnot found is on Classvisitor. I am still looking into this but can't seem to figure out the bug completely.

    Hibernate JIRA | 9 years ago | Dean Hiller
    java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(II Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      javax.mail.Transpor t.connect(Ljava/lang/String;Ljava/lang/String;)V

      at org.endeavour.mgmt.model.email.Email.startSession()
    2. org.endeavour.mgmt
      Email.startSession
      1. org.endeavour.mgmt.model.email.Email.startSession(Email.java:92)
      1 frame