java.lang.AssertionError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This IT passed on linux build but then failed on windows. Word has it was flaky ArtifactInfo provider/ indexing {noformat} Failed org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.groupInfo (from Nexus3615ArtifactInfoProviderIT) Failing for the past 2 builds (Since #343 ) Took 53 ms. add description Error Message expected:<nexus-test-harness-repo2> but was:<nexus-test-harness-repo> Stacktrace java.lang.AssertionError: expected:<nexus-test-harness-repo2> but was:<nexus-test-harness-repo> at org.testng.Assert.fail(Assert.java:89) at org.testng.Assert.failNotEquals(Assert.java:489) at org.testng.Assert.assertEquals(Assert.java:118) at org.testng.Assert.assertEquals(Assert.java:171) at org.testng.Assert.assertEquals(Assert.java:181) at org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.validate(Nexus3615ArtifactInfoProviderIT.java:53) at org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.groupInfo(Nexus3615ArtifactInfoProviderIT.java:48) Standard Output [INFO] Loading Nexus Configuration... [INFO] Configuration loaded succesfully. [INFO] Loading Nexus configuration from X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\nexus.xml [INFO] Configuration file is invalid, attempting upgrade [INFO] Trying to upgrade the configuration file X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\nexus.xml [INFO] Upgrading old Nexus configuration file (version 1.0.8) from X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\nexus.xml [INFO] Nexus configuration file upgraded to current version 1.4.6 succesfully. [INFO] Creating backup from the old file and saving the upgraded configuration. [INFO] Loading Nexus configuration from X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\nexus.xml [INFO] Configuration loaded succesfully. [INFO] Nexus configuration validated succesfully. [INFO] Applying Nexus Configuration... [INFO] Nexus configuration validated succesfully. =================================== Application context "jetty" dump: "application-port"="63175" (raw: "63175", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\conf\jetty.properties) "application-host"="0.0.0.0" (raw: "0.0.0.0", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\conf\jetty.properties) "nexus-webapp"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus" (raw: "${bundleBasedir}/nexus", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\conf\jetty.properties) "bundleBasedir"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT", src: filter(keyIsIn:[bundleBasedir], system:properties)) "nexus-webapp-context-path"="/nexus" (raw: "/nexus", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\conf\jetty.properties) Total of 5 entries. =================================== =================================== Application context "nexus" dump: "nexus-work"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "index.template.file"="templates/index-debug.vm" (raw: "templates/index-debug.vm", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "runtime"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF" (raw: "${bundleBasedir}/nexus/WEB-INF", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "application-port"="63175" (raw: "63175", src: map: quasiParent (size:5)) "application-host"="0.0.0.0" (raw: "0.0.0.0", src: map: quasiParent (size:5)) "application-conf"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir/conf" (raw: "${nexus-work}/conf", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "nexus-webapp"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus", src: map: quasiParent (size:5)) "nexus-app"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF" (raw: "${runtime}", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "security-xml-file"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir/conf/security.xml" (raw: "${nexus-work}/conf/security.xml", src: file:X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT\nexus\WEB-INF\plexus.properties) "log-config-dir"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf", src: filter(keyStartsWith:[nexus.], system:properties)) "bundleBasedir"="X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT" (raw: "X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT", src: map: quasiParent (size:5)) "nexus-webapp-context-path"="/nexus" (raw: "/nexus", src: map: quasiParent (size:5)) Total of 12 entries. =================================== 2011-08-16 05:09:00 INFO [-main-thread-88] - org.sonatype.security.configuration.source.FileSecurityConfigurationSource - Loading Security configuration from X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-work-dir\conf\security-configuration.xml Result: org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.groupInfo() ===> FAILED Standard Error 2011-08-16 05:08:53.284:INFO::Graceful shutdown SelectChannelConnector@0.0.0.0:63175 STARTED 2011-08-16 05:08:53.284:INFO::Graceful shutdown o.e.j.w.WebAppContext{/nexus,file:/X:/s/workspace/nexus-oss/67cb98c1/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-16 05:08:54.339:INFO::stopped o.e.j.w.WebAppContext{/nexus,file:/X:/s/workspace/nexus-oss/67cb98c1/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-16 05:08:56.675:INFO::jetty-7.4.4.v20110707 2011-08-16 05:08:56.675:INFO:org.sonatype.plexus.jetty.custom.DisableTagLibsListener:Disabling TLD support for: null (context path: /nexus) 2011-08-16 05:08:57.312:INFO::NO JSP Support for /nexus, did not find org.apache.jasper.servlet.JspServlet 2011-08-16 05:08:57.323:INFO:/nexus:Configuring Nexus in bundle... 2011-08-16 05:08:57.324:INFO:/nexus:Setting Plexus basedir context variable to (pre-set in System properties): X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT 2011-08-16 05:09:02.129:INFO::started o.e.j.w.WebAppContext{/nexus,file:/X:/s/workspace/nexus-oss/67cb98c1/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},X:\s\workspace\nexus-oss\67cb98c1\nexus\nexus-test-harness\nexus-test-harness-its\target\nexus\nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-16 05:09:04.705:INFO::Started SelectChannelConnector@0.0.0.0:63175 STARTING 2011-08-16 05:09:04.726:INFO:/nexus:nexus: [Noelios Restlet Engine] - Attaching application: org.sonatype.nexus.rest.NexusApplication@2058e330 to URI: /nexus {noformat}
    via by Peter Lynch,
  • Tests fail for phone numbers
    via GitHub by sanojb
    ,
  • Build fails using JDK 8
    via GitHub by paulf
    ,
  • Test issues
    via GitHub by lokeshhctm
    ,
  • TestExchangeClient failures
    via GitHub by electrum
    ,
    • java.lang.AssertionError: expected:<nexus-test-harness-repo2> but was:<nexus-test-harness-repo> at org.testng.Assert.fail(Assert.java:89) at org.testng.Assert.failNotEquals(Assert.java:489) at org.testng.Assert.assertEquals(Assert.java:118) at org.testng.Assert.assertEquals(Assert.java:171) at org.testng.Assert.assertEquals(Assert.java:181) at org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.validate(Nexus3615ArtifactInfoProviderIT.java:53) at org.sonatype.nexus.integrationtests.nexus3615.Nexus3615ArtifactInfoProviderIT.groupInfo(Nexus3615ArtifactInfoProviderIT.java:48)

    Users with the same issue

    arturgajowyarturgajowy
    10 times, last one,
    MarkMark
    3 times, last one,
    Nikolay RybakNikolay Rybak
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    13 more bugmates