java.lang.AssertionError: Expected maven-archetype packaging: jar expected:<maven-archetype> but was:<jar>

Sonatype JIRA | Peter Lynch | 5 years ago
  1. 0

    Another random IT failure on grid caused by http://jira.codehaus.org/browse/MINDEXER-34 {noformat} org.sonatype.nexus.integrationtests.nexus570.Nexus570IndexArchetypeIT.searchForArchetype (from Nexus570IndexArchetypeIT) Failing for the past 1 build (Since #342 ) Took 0.1 sec. edit description Error Message Expected maven-archetype packaging: jar expected:<maven-archetype> but was:<jar> Stacktrace java.lang.AssertionError: Expected maven-archetype packaging: jar expected:<maven-archetype> but was:<jar> 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.sonatype.nexus.integrationtests.nexus570.Nexus570IndexArchetypeIT.searchForArchetype(Nexus570IndexArchetypeIT.java:48) Standard Output [INFO] Loading Nexus Configuration... [INFO] Configuration loaded succesfully. [INFO] Loading Nexus configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/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 /opt/grid/slave/workspace/nexus-oss/374c4ad3/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 /opt/grid/slave/workspace/nexus-oss/374c4ad3/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 /opt/grid/slave/workspace/nexus-oss/374c4ad3/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"="36063" (raw: "36063", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/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:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/conf/jetty.properties) "nexus-webapp"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus" (raw: "${bundleBasedir}/nexus", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/conf/jetty.properties) "bundleBasedir"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/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:/opt/grid/slave/workspace/nexus-oss/374c4ad3/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"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/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:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF/plexus.properties) "runtime"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/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:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF/plexus.properties) "application-port"="36063" (raw: "36063", src: map: quasiParent (size:5)) "application-host"="0.0.0.0" (raw: "0.0.0.0", src: map: quasiParent (size:5)) "application-conf"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf" (raw: "${nexus-work}/conf", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF/plexus.properties) "nexus-webapp"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/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"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/WEB-INF" (raw: "${runtime}", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/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"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf/security.xml" (raw: "${nexus-work}/conf/security.xml", src: file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/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"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf", src: filter(keyStartsWith:[nexus.], system:properties)) "bundleBasedir"="/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT" (raw: "/opt/grid/slave/workspace/nexus-oss/374c4ad3/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-15 12:15:31 INFO [main-thread-164] - org.sonatype.security.configuration.source.FileSecurityConfigurationSource - Loading Security configuration from /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-work-dir/conf/security-configuration.xml Result: org.sonatype.nexus.integrationtests.nexus570.Nexus570IndexArchetypeIT.searchForArchetype() ===> FAILED Standard Error 2011-08-15 12:15:25.944:INFO::Graceful shutdown SelectChannelConnector@0.0.0.0:36063 STARTED 2011-08-15 12:15:25.944:INFO::Graceful shutdown o.e.j.w.WebAppContext{/nexus,file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-15 12:15:27.019:INFO::stopped o.e.j.w.WebAppContext{/nexus,file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-15 12:15:28.013:INFO::jetty-7.4.4.v20110707 2011-08-15 12:15:28.013:INFO:org.sonatype.plexus.jetty.custom.DisableTagLibsListener:Disabling TLD support for: null (context path: /nexus) 2011-08-15 12:15:28.486:INFO::NO JSP Support for /nexus, did not find org.apache.jasper.servlet.JspServlet 2011-08-15 12:15:28.494:INFO:/nexus:Configuring Nexus in bundle... 2011-08-15 12:15:28.494:INFO:/nexus:Setting Plexus basedir context variable to (pre-set in System properties): /opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT 2011-08-15 12:15:33.605:INFO::started o.e.j.w.WebAppContext{/nexus,file:/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus/},/opt/grid/slave/workspace/nexus-oss/374c4ad3/nexus/nexus-test-harness/nexus-test-harness-its/target/nexus/nexus-oss-webapp-1.9.3-SNAPSHOT/nexus 2011-08-15 12:15:34.328:INFO::Started SelectChannelConnector@0.0.0.0:36063 STARTING 2011-08-15 12:15:34.433:INFO:/nexus:nexus: [Noelios Restlet Engine] - Attaching application: org.sonatype.nexus.rest.NexusApplication@2d82ea6d to URI: /nexus {noformat}

    Sonatype JIRA | 5 years ago | Peter Lynch
    java.lang.AssertionError: Expected maven-archetype packaging: jar expected:<maven-archetype> but was:<jar>
  2. 0

    assertEquals(Collection, Collection) prints "null" when collections are different sizes

    GitHub | 3 years ago | dimo414
    java.lang.AssertionError: null: lists don't have the same size expected [1] but found [0]
  3. 0

    must be(expected_value) test failed messages are confusing

    GitHub | 4 years ago | epishkin
    java.lang.AssertionError: expected:<expected value> but was:<null>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Build fails using JDK 8

    GitHub | 2 years ago | paulf
    java.lang.AssertionError: expected:<b=d&c=f&a=b> but was:<a=b&b=d&c=f>
  6. 0

    compilation failed with latest build

    GitHub | 2 years ago | lokeshhctm
    java.lang.AssertionError: expected [utf-8] but found [null]

    5 unregistered visitors
    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.AssertionError

      Expected maven-archetype packaging: jar expected:<maven-archetype> but was:<jar>

      at org.testng.Assert.fail()
    2. TestNG
      Assert.assertEquals
      1. org.testng.Assert.fail(Assert.java:89)
      2. org.testng.Assert.failNotEquals(Assert.java:489)
      3. org.testng.Assert.assertEquals(Assert.java:118)
      4. org.testng.Assert.assertEquals(Assert.java:171)
      4 frames
    3. org.sonatype.nexus
      Nexus570IndexArchetypeIT.searchForArchetype
      1. org.sonatype.nexus.integrationtests.nexus570.Nexus570IndexArchetypeIT.searchForArchetype(Nexus570IndexArchetypeIT.java:48)
      1 frame