java.lang.NoClassDefFoundError: com/google/common/base/Strings

GitHub | JAnderton | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    mvn install does not work

    GitHub | 3 months ago | JAnderton
    java.lang.NoClassDefFoundError: com/google/common/base/Strings
  2. 0
    samebug tip
    Try to run your project from where the Application class is, instead of trying to run it from root.
  3. 0

    Hi, I've been successully making past releases of this project. But now it fails because of "staging rules failures". When I try to search for project ID (e.g. aigrakn-0008) in the staging repos, I don't find it and I have no way of knowing what rules are failing. The project has several modules and initially it appeared to be failing on the last one, but when I commented it out, it failed on the next one, so it's basically failing to complete the release after having uploaded everything. I run with -X -e and below I'm pasting the end of the output because the full is too long. I can package the complete output in a file if that will help. Thanks so much in advance! Boris, GRAKN.AI DEBUG] Connection [id: 7][route: {s}->https://oss.sonatype.org:443] can be kept alive indefinitely [DEBUG] Connection released: [id: 7][route: {s}->https://oss.sonatype.org:443][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] Jan 18, 2017 2:47:53 PM com.sun.jersey.api.client.filter.LoggingFilter log INFO: 87 * Client in-bound response 87 < 200 87 < Content-Type: application/xml; charset=UTF-8 87 < Date: Wed, 18 Jan 2017 19:47:53 GMT 87 < Server: nginx 87 < Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept 87 < X-Content-Type-Options: nosniff 87 < X-Frame-Options: SAMEORIGIN 87 < Content-Length: 1062 87 < Connection: keep-alive 87 < <stagingProfileRepository> <profileId>2f949f77d3c917</profileId> <profileName>ai.grakn</profileName> <profileType>repository</profileType> <repositoryId>aigrakn-1008</repositoryId> <type>open</type> <policy>release</policy> <userId>borislav@mindmaps.io</userId> <userAgent>Nexus-Client/2.9.1-02</userAgent> <ipAddress>50.162.197.128</ipAddress> <repositoryURI>https://oss.sonatype.org/content/repositories/aigrakn-1008</repositoryURI> <created>2017-01-18T19:39:44.270Z</created> <createdDate>Wed Jan 18 19:39:44 UTC 2017</createdDate> <createdTimestamp>1484768384270</createdTimestamp> <updated>2017-01-18T19:42:59.894Z</updated> <updatedDate>Wed Jan 18 19:42:59 UTC 2017</updatedDate> <updatedTimestamp>1484768579894</updatedTimestamp> <description>ai.grakn:grakn:0.10.0</description> <provider>maven2</provider> <releaseRepositoryId>releases</releaseRepositoryId> <releaseRepositoryName>Releases</releaseRepositoryName> <notifications>0</notifications> <transitioning>true</transitioning> </stagingProfileRepository> [DEBUG] PAUSE at 9.317 s [DEBUG] TICK at 12.32 s [DEBUG] Checking repository: aigrakn-1008 Jan 18, 2017 2:47:56 PM com.sun.jersey.api.client.filter.LoggingFilter log INFO: 88 * Client out-bound request 88 > GET https://oss.sonatype.org:443/service/local/staging/repository/aigrakn-1008 88 > Content-Type: application/xml; charset=UTF-8 88 > Accept: application/xml; charset=UTF-8 [DEBUG] Connection request: [route: {s}->https://oss.sonatype.org:443][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] [DEBUG] Connection leased: [id: 7][route: {s}->https://oss.sonatype.org:443][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20] [DEBUG] Stale connection check [DEBUG] CookieSpec selected: best-match [DEBUG] Re-using cached 'basic' auth scheme for https://oss.sonatype.org:443 [DEBUG] Target auth state: CHALLENGED [DEBUG] Proxy auth state: UNCHALLENGED [DEBUG] Attempt 1 to execute request [DEBUG] Sending request: GET /service/local/staging/repository/aigrakn-1008 HTTP/1.1 [DEBUG] >> "GET /service/local/staging/repository/aigrakn-1008 HTTP/1.1[\r][\n]" [DEBUG] >> "Content-Type: application/xml; charset=UTF-8[\r][\n]" [DEBUG] >> "Accept: application/xml; charset=UTF-8[\r][\n]" [DEBUG] >> "Host: oss.sonatype.org:443[\r][\n]" [DEBUG] >> "Connection: Keep-Alive[\r][\n]" [DEBUG] >> "User-Agent: Nexus-Client/2.9.1-02[\r][\n]" [DEBUG] >> "Authorization: Basic Ym9yaXNsYXZAbWluZG1hcHMuaW86U3Vuc2V0MTA=[\r][\n]" [DEBUG] >> "[\r][\n]" [DEBUG] >> GET /service/local/staging/repository/aigrakn-1008 HTTP/1.1 [DEBUG] >> Content-Type: application/xml; charset=UTF-8 [DEBUG] >> Accept: application/xml; charset=UTF-8 [DEBUG] >> Host: oss.sonatype.org:443 [DEBUG] >> Connection: Keep-Alive [DEBUG] >> User-Agent: Nexus-Client/2.9.1-02 [DEBUG] >> Authorization: Basic Ym9yaXNsYXZAbWluZG1hcHMuaW86U3Vuc2V0MTA= [DEBUG] << "HTTP/1.1 404 Not Found[\r][\n]" [DEBUG] << "Content-Type: application/xml; charset=UTF-8[\r][\n]" [DEBUG] << "Date: Wed, 18 Jan 2017 19:47:57 GMT[\r][\n]" [DEBUG] << "Server: nginx[\r][\n]" [DEBUG] << "Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept[\r][\n]" [DEBUG] << "X-Content-Type-Options: nosniff[\r][\n]" [DEBUG] << "X-Frame-Options: SAMEORIGIN[\r][\n]" [DEBUG] << "Content-Length: 143[\r][\n]" [DEBUG] << "Connection: keep-alive[\r][\n]" [DEBUG] << "[\r][\n]" [DEBUG] Receiving response: HTTP/1.1 404 Not Found [DEBUG] << HTTP/1.1 404 Not Found [DEBUG] << Content-Type: application/xml; charset=UTF-8 [DEBUG] << Date: Wed, 18 Jan 2017 19:47:57 GMT [DEBUG] << Server: nginx [DEBUG] << Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept [DEBUG] << X-Content-Type-Options: nosniff [DEBUG] << X-Frame-Options: SAMEORIGIN [DEBUG] << Content-Length: 143 [DEBUG] << Connection: keep-alive [DEBUG] Connection can be kept alive indefinitely [DEBUG] Authentication succeeded [DEBUG] << "<nexus-error>[\n]" [DEBUG] << " <errors>[\n]" [DEBUG] << " <error>[\n]" [DEBUG] << " <id>*</id>[\n]" [DEBUG] << " <msg>No such repository: aigrakn-1008</msg>[\n]" [DEBUG] << " </error>[\n]" [DEBUG] << " </errors>[\n]" [DEBUG] << "</nexus-error>" [DEBUG] Connection [id: 7][route: {s}->https://oss.sonatype.org:443] can be kept alive indefinitely [DEBUG] Connection released: [id: 7][route: {s}->https://oss.sonatype.org:443][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20] Jan 18, 2017 2:47:57 PM com.sun.jersey.api.client.filter.LoggingFilter log INFO: 88 * Client in-bound response 88 < 404 88 < Content-Type: application/xml; charset=UTF-8 88 < Date: Wed, 18 Jan 2017 19:47:57 GMT 88 < Server: nginx 88 < Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept 88 < X-Content-Type-Options: nosniff 88 < X-Frame-Options: SAMEORIGIN 88 < Content-Length: 143 88 < Connection: keep-alive 88 < <nexus-error> <errors> <error> <id>*</id> <msg>No such repository: aigrakn-1008</msg> </error> </errors> </nexus-error> [DEBUG] Repository was removed; stop watching it [DEBUG] aigrakn-1008 REMOVED [DEBUG] STOP after 13.14 s [ERROR] Remote staging finished with a failure: Staging rules failure! [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Grakn .............................................. SUCCESS [ 13.761 s] [INFO] grakn-core ......................................... SUCCESS [ 3.032 s] [INFO] grakn-graql ........................................ SUCCESS [ 9.954 s] [INFO] grakn-graph ........................................ SUCCESS [ 1.857 s] [INFO] grakn-titan-factory ................................ SUCCESS [ 1.831 s] [INFO] grakn-engine ....................................... SUCCESS [ 11.672 s] [INFO] grakn-graql-shell .................................. SUCCESS [ 1.448 s] [INFO] grakn-dashboard .................................... FAILURE [08:37 min] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 09:21 min [INFO] Finished at: 2017-01-18T14:47:57-05:00 [INFO] Final Memory: 76M/1296M [INFO] ------------------------------------------------------------------------ [DEBUG] Connection manager is shutting down [DEBUG] Connection 0.0.0.0:51790<->107.23.166.173:443 closed [DEBUG] Connection 0.0.0.0:51790<->107.23.166.173:443 closed [DEBUG] Connection manager shut down [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project grakn-dashboard: Remote staging failed: Staging rules failure! -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project grakn-dashboard: Remote staging failed: Staging rules failure! at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 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:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Remote staging failed: Staging rules failure! at org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute(DeployMojo.java:216) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Remote staging failed: Staging rules failure! at org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.finalizeDeploy(StagingDeployStrategy.java:155) at org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute(DeployMojo.java:213) ... 22 more Caused by: com.sonatype.nexus.staging.client.StagingRuleFailuresException: Staging rules failure! at com.sonatype.nexus.staging.client.internal.StagingWorkflowV3ServiceImpl.monitorRepositoryTransition(StagingWorkflowV3ServiceImpl.java:205) at com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl$7.perform(StagingWorkflowV2ServiceImpl.java:205) at com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl$7.perform(StagingWorkflowV2ServiceImpl.java:200) at com.sonatype.nexus.staging.client.internal.ExceptionConverter.runAndReturn(ExceptionConverter.java:38) at com.sonatype.nexus.staging.client.internal.StagingWorkflowV2ServiceImpl.finishStaging(StagingWorkflowV2ServiceImpl.java:199) at org.sonatype.nexus.maven.staging.deploy.strategy.AbstractStagingDeployStrategy.afterUpload(AbstractStagingDeployStrategy.java:202) at org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.finalizeDeploy(StagingDeployStrategy.java:129) ... 23 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :grakn-dashboard

    Sonatype JIRA | 2 months ago | Borislav Iordanov
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project grakn-dashboard: Remote staging failed: Staging rules failure!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 3#218991817

    GitHub | 11 months ago | rultor
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.3:deploy (deploy-to-sonatype) on project msbotframework4j-sample-lambda: Remote staging failed: Staging rules failure!
  6. 0

    GitHub comment 1#264850186

    GitHub | 4 months ago | rultor
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (jcabi-deploy-to-sonatype) on project jstk: Remote staging failed: Staging rules failure!
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.ClassNotFoundException

    com.google.common.base.Strings

    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass()
  2. Plexus
    ClassRealm.loadClass
    1. org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    2. org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
    3. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
    4. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
    4 frames
  3. org.sonatype.nexus
    DeployLifecycleParticipant.afterProjectsRead
    1. org.sonatype.nexus.maven.staging.deploy.DeployLifecycleParticipant.getPluginByGAFromContainer(DeployLifecycleParticipant.java:239)
    2. org.sonatype.nexus.maven.staging.deploy.DeployLifecycleParticipant.getNexusMavenPluginFromContainer(DeployLifecycleParticipant.java:183)
    3. org.sonatype.nexus.maven.staging.deploy.DeployLifecycleParticipant.getBuildPluginsNexusMavenPlugin(DeployLifecycleParticipant.java:164)
    4. org.sonatype.nexus.maven.staging.deploy.DeployLifecycleParticipant.afterProjectsRead(DeployLifecycleParticipant.java:96)
    4 frames
  4. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:266)
    2. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    3. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    3 frames
  5. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    3. org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    3 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  7. Plexus
    Launcher.main
    1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    4 frames