java.lang.IllegalArgumentException: Tar does not contains /package.json?

Sonatype JIRA | Alexander Kostromin | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have a pair of npm repository. One of them is a proxy repo to http://registry.npmjs.org Other is a hosted repo, that is a mirror of the first. Artifacts from first repo is copying to the second. And than I build metadata on second hosted repository I see error, that some artifact Tar does not contains /package.json (see error.txt attach) What else, if I unpack a pair of artifact, I can see that they have different structures. ftp-0.3.6.tgz - I can see on hosted repository, ftp-0.3.9.tgz - I couldn't see and have error 2016-02-12 11:14:06 INFO [ool-1-thread-13] - com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor - Failed to extract or malformed package.json from npmjs:/ftp/-/ftp-0.3.9.tgz {noformat} 2016-02-12 11:14:06 INFO [ool-1-thread-13] - com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor - Failed to extract or malformed package.json from npmjs:/ftp/-/ftp-0.3.7.tgz java.lang.IllegalArgumentException: Tar does not contains /package.json? at com.google.common.base.Preconditions.checkArgument(Preconditions.java:148) ~[guava-16.0.1.jar:na] at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.extractPackageJson(RecreateMetadataWalkerProcessor.java:189) ~[na:na] at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:112) ~[na:na] at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325) [nexus-core-2.12.0-01.jar:2.12.0-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.12.0-01.jar:2.12.0-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.12.0-01.jar:2.12.0-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.12.0-01.jar:2.12.0-01] at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) [nexus-core-2.12.0-01.jar:2.12.0-01] at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:109) [nexus-npm-repository-plugin-2.12.0-01/:na] at com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50) [nexus-npm-repository-plugin-2.12.0-01/:na] {noformat}

    Sonatype JIRA | 1 year ago | Alexander Kostromin
    java.lang.IllegalArgumentException: Tar does not contains /package.json?
  2. 0

    GitHub comment 17#166389572

    GitHub | 1 year ago | timmolter
    java.lang.IllegalArgumentException: DER length more than 4 bytes: 32
  3. 0

    Crash when putting glasses on with running program

    GitHub | 2 years ago | coolacid
    java.lang.IllegalArgumentException: Container 27 doesn't exists
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JAX-RS jersey handle WebApplicationException

    Stack Overflow | 3 years ago | Sat
    java.lang.IllegalArgumentException: Invalid siteKey ONE
  6. 0

    Google Auto Factory: not annotated with @Provided?

    Stack Overflow | 3 years ago | amchang87
    java.lang.IllegalArgumentException: me.magneto.groups.adapters.MembersAdapterFactoryImpl not annoated with @Provided
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.IllegalArgumentException

    Tar does not contains /package.json?

    at com.google.common.base.Preconditions.checkArgument()
  2. Guava
    Preconditions.checkArgument
    1. com.google.common.base.Preconditions.checkArgument(Preconditions.java:148)[guava-16.0.1.jar:na]
    1 frame
  3. com.bolyuba.nexus
    RecreateMetadataWalkerProcessor.onCollectionExit
    1. com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.extractPackageJson(RecreateMetadataWalkerProcessor.java:189)[na:na]
    2. com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:112)[na:na]
    2 frames
  4. ${project.groupId}:${project.artifactId}
    DefaultWalker.walk
    1. org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325)[nexus-core-2.12.0-01.jar:2.12.0-01]
    2. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226)[nexus-core-2.12.0-01.jar:2.12.0-01]
    3. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209)[nexus-core-2.12.0-01.jar:2.12.0-01]
    4. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209)[nexus-core-2.12.0-01.jar:2.12.0-01]
    5. org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89)[nexus-core-2.12.0-01.jar:2.12.0-01]
    5 frames
  5. com.bolyuba.nexus
    NpmHostedMetadataRebuildTask.doExecute
    1. com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:109)[nexus-npm-repository-plugin-2.12.0-01/:na]
    2. com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50)[nexus-npm-repository-plugin-2.12.0-01/:na]
    2 frames