Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-18196

ArrayIndexOutOfBoundsException when uploading large POM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.12.1, 3.13.0
    • Fix Version/s: 3.15.0
    • Component/s: Maven
    • Story Points:
      3

      Description

      Deploy fails when parsing (large) pom due to ArrayIndexOutOfBoundsException:

      org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: PUT /repository/maven-releases/x123/x123/0.0.1/x123-0.0.1.pom

      java.lang.ArrayIndexOutOfBoundsException: 8213

      at org.codehaus.plexus.util.xml.pull.MXParser.parsePI(MXParser.java:2502)

      at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1283)

      at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1131)

      at org.apache.maven.model.io.xpp3.MavenXpp3Reader.nextTag(MavenXpp3Reader.java:528)

      at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parsePluginExecution(MavenXpp3Reader.java:2888)

      at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parsePlugin(MavenXpp3Reader.java:2701)

      at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuildBase(MavenXpp3Reader.java:1069)

      at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseProfile(MavenXpp3Reader.java:3069)

      at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2257)

      at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:3807)

      at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:557)

      at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:586)

      at org.sonatype.nexus.repository.maven.internal.MavenModels.readModel(MavenModels.java:133)

      at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.fillInFromModel(MavenFacetImpl.java:376)

      at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.putArtifact(MavenFacetImpl.java:327)

      at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.doPutAssetBlob(MavenFacetImpl.java:296)

      at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.doPut(MavenFacetImpl.java:249)

      at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:56)

      at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54)

      at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.put(MavenFacetImpl.java:201)

      To reproduce deploy the attached pom file to a maven repo on a 3.13 instance:

      mvn deploy:deploy-file -DgeneratePom=false -DrepositoryId=nexus -Durl=http://localhost:8081/repository/maven-releases -DpomFile=pom.xml -Dfile=pom.xml

      Acceptance 

      Looks to be related/caused by https://issues.apache.org/jira/browse/MNG-6216 and https://github.com/codehaus-plexus/plexus-utils/issues/22 and an update is needed to plexus-util 3.1.0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mdodgson Mark Dodgson
                Reporter:
                hardeepn Hardeep Nagra
                CC:
                Christian Haeussler
                Last Updated By:
                Joe Tom
                Team:
                NXRM - Cypher
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: