com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x72 at [Source: [B@a1b98d; line: 5, column: 16]

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

    Tried to run rebuild hosted npm metadata task ( new in 2.11.2 ) against about 500MB of tgz packages from the strongloop registry. https://drive.google.com/file/d/0B2wPMwl-8cOXdmMtYlUyWjJ4STQ/view?usp=sharing Had several messages of concern - unsure as to the overall seriousness of each of these: {noformat} jvm 1 | 2015-01-28 15:21:29,126-0400 INFO [pxpool-1-thread-1] admin com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor - Failed to extract or malformed package.json from npm-hosted:/boxeen/-/boxeen-0.1.0.tgz jvm 1 | com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x72 jvm 1 | at [Source: [B@a1b98d; line: 5, column: 16] jvm 1 | at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1524) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:557) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidOther(UTF8StreamJsonParser.java:3117) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidOther(UTF8StreamJsonParser.java:3124) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._decodeUtf8_3fast(UTF8StreamJsonParser.java:2930) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishString2(UTF8StreamJsonParser.java:2201) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishString(UTF8StreamJsonParser.java:2150) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText(UTF8StreamJsonParser.java:282) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:183) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringMap(MapDeserializer.java:430) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:312) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2993) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2184) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.extractPackageJson(RecreateMetadataWalkerProcessor.java:195) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:110) ~[na:na] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:106) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:55) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:37) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25] jvm 1 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25] jvm 1 | 2015-01-28 15:21:29,230-0400 INFO [pxpool-1-thread-1] admin com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor - Failed to extract or malformed package.json from npm-hosted:/cluster-status/-/cluster-status-0.5.0-SNAPSHOT.1387314512824.tgz jvm 1 | java.lang.NumberFormatException: For input string: "1387314512824" jvm 1 | at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_25] jvm 1 | at java.lang.Integer.parseInt(Integer.java:583) ~[na:1.8.0_25] jvm 1 | at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_25] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.parseSpecialId(Version.java:207) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.access$300(Version.java:36) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version$Special.<init>(Version.java:287) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.parseSpecial(Version.java:84) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.<init>(Version.java:77) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.parse(Version.java:115) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:117) ~[na:na] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:106) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:55) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:37) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25] jvm 1 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25] jvm 1 | 2015-01-28 15:21:29,232-0400 INFO [pxpool-1-thread-1] admin com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor - Failed to extract or malformed package.json from npm-hosted:/cluster-status/-/cluster-status-0.5.0-SNAPSHOT.1387826685226.tgz jvm 1 | java.lang.NumberFormatException: For input string: "1387826685226" jvm 1 | at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_25] jvm 1 | at java.lang.Integer.parseInt(Integer.java:583) ~[na:1.8.0_25] jvm 1 | at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_25] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.parseSpecialId(Version.java:207) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.access$300(Version.java:36) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version$Special.<init>(Version.java:287) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.parseSpecial(Version.java:84) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.<init>(Version.java:77) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.parse(Version.java:115) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:117) ~[na:na] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:106) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:55) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:37) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25] jvm 1 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25] jvm 1 | 2015-01-28 15:21:29,292-0400 INFO [pxpool-1-thread-1] admin com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor - Failed to extract or malformed package.json from npm-hosted:/couchutil/-/couchutil-0.0.1.tgz jvm 1 | java.lang.NullPointerException: null jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.extractPackageJson(RecreateMetadataWalkerProcessor.java:183) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:110) ~[na:na] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:106) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:55) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:37) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25] jvm 1 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25] jvm 1 | 2015-01-28 15:21:30,150-0400 INFO [pxpool-1-thread-1] admin com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor - Failed to extract or malformed package.json from npm-hosted:/prototype/-/prototype-0.0.1.tgz jvm 1 | java.lang.IllegalArgumentException: <v0.0.1> does not match format (\d+)\.(\d+)(?:\.)?(\d*)(\.|-|\+)?([0-9A-Za-z-.]*)? jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.parse(Version.java:101) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:117) ~[na:na] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:106) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:55) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:37) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25] jvm 1 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25] jvm 1 | 2015-01-28 15:21:30,151-0400 INFO [pxpool-1-thread-1] admin com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor - Failed to extract or malformed package.json from npm-hosted:/prototype/-/prototype-0.0.5.tgz jvm 1 | java.lang.IllegalArgumentException: <v0.0.5> does not match format (\d+)\.(\d+)(?:\.)?(\d*)(\.|-|\+)?([0-9A-Za-z-.]*)? jvm 1 | at com.bolyuba.nexus.plugin.npm.internal.Version.parse(Version.java:101) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:117) ~[na:na] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:106) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:55) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:37) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25] jvm 1 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25] jvm 1 | 2015-01-28 15:21:30,198-0400 INFO [pxpool-1-thread-1] admin com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor - Failed to extract or malformed package.json from npm-hosted:/ristretto/-/ristretto-0.0.2.tgz jvm 1 | com.fasterxml.jackson.core.JsonParseException: Unexpected character ('}' (code 125)): was expecting double-quote to start field name jvm 1 | at [Source: [B@23362872; line: 8, column: 4] jvm 1 | at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1524) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:557) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:475) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleOddName(UTF8StreamJsonParser.java:1784) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._parseName(UTF8StreamJsonParser.java:1481) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:701) ~[jackson-core-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.mapObject(UntypedObjectDeserializer.java:340) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:168) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.mapArray(UntypedObjectDeserializer.java:308) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:176) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringMap(MapDeserializer.java:430) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:312) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2993) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2184) ~[jackson-databind-2.3.1.jar:2.3.1] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.extractPackageJson(RecreateMetadataWalkerProcessor.java:195) ~[na:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:110) ~[na:na] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:106) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:55) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:37) [nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418) [nexus-scheduler-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44) [nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.3.jar:1.2.3] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25] jvm 1 | at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25] jvm 1 | 2015-01-28 15:21:30,518-0400 INFO [pxpool-1-thread-1] admin com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository - Recreated npm metadata on DefaultNpmHostedRepository(id=npm-hosted) (packageRoots=563/packageVersions=1261) jvm 1 | 2015-01-28 15:21:30,518-0400 INFO [pxpool-1-thread-1] admin org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [npm-hosted] made by *TASK... jvm 1 | 2015-01-28 15:21:30,534-0400 INFO [pxpool-1-thread-1] admin com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask - Scheduled task (rebuild hosted npm data) finished :: Rebuild hosted npm metadata of repositories: [npm-hosted] (started 2015-01-28T15:21:28-04:00, runtime 0:00:01.755) {noformat}

    Sonatype JIRA | 2 years ago | Peter Lynch
    com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0x72 at [Source: [B@a1b98d; line: 5, column: 16]
  2. 0

    It is [common knowledge|https://issues.sonatype.org/browse/NEXUS-8043?focusedCommentId=298663&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-298663] that the official NPM registry contains packages that have wrongly encoded ( non UTF-8 ) pakage.json. Nexus tries to handle JSON wrongly encoded as ISO-8859-1, by falling back to that encoding when parsing JSON as UTF-8 fails. *It seems that the npm client may allow you to attempt publishing package.json that is not encoded properly - need to verify this* The [code from here|https://github.com/sonatype/nexus-internal/blob/ee9501671d3d030a88b2bcf740538b6a706bd09b/private/plugins/nexus-repository-npm/src/main/java/com/sonatype/nexus/repository/npm/internal/NpmJsonUtils.java#L75-L75] shows how Nexus performs a fallback when UTF-8 parsing fails: {code} @Nonnull static NestedAttributesMap parse(final Supplier<InputStream> streamSupplier) throws IOException { try { final Map<String, Object> backing = mapper.<Map<String, Object>>readValue(streamSupplier.get(), rawMapJsonTypeRef); return new NestedAttributesMap(String.valueOf(backing.get(NpmMetadataUtils.NAME)), backing); } catch (JsonParseException e) { // fallback if (e.getMessage().contains("Invalid UTF-8 middle byte")) { // try again, but assume ISO8859-1 encoding now, that is illegal for JSON final Map<String, Object> backing = mapper.<Map<String, Object>>readValue( new InputStreamReader(streamSupplier.get(), Charsets.ISO_8859_1), rawMapJsonTypeRef ); return new NestedAttributesMap(String.valueOf(backing.get(NpmMetadataUtils.NAME)), backing); } throw new InvalidContentException("Invalid JSON input", e); } } {code} However, parsing can fail with at least one other variation of exception message ( excluding any localized messages ): {noformat} 2016-09-02 10:17:31,147+0200 WARN [qtp2014951231-9618] deploy.milestones.npm com.sonatype.nexus.repository.npm.internal.NpmHandlers - Error: PUT /0126af95c0e2d9b0a7c78738c4c00a860b04acc8: Status{successful=false, code=400, message='null'} - Invalid JSON input org.sonatype.nexus.repository.InvalidContentException: Invalid JSON input at com.sonatype.nexus.repository.npm.internal.NpmJsonUtils.parse(NpmJsonUtils.java:84) [na:na] at com.sonatype.nexus.repository.npm.internal.NpmFacetUtils.parse(NpmFacetUtils.java:93) [na:na] at com.sonatype.nexus.repository.npm.internal.NpmHostedFacetImpl.putPackageRoot(NpmHostedFacetImpl.java:98) [na:na] at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:54) [org.sonatype.nexus.transaction:3.0.1.01] at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:53) [org.sonatype.nexus.transaction:3.0.1.01] at com.sonatype.nexus.repository.npm.internal.NpmHostedFacetImpl.putPackage(NpmHostedFacetImpl.java:81) [na:na] at com.sonatype.nexus.repository.npm.internal.NpmHandlers$3.handle(NpmHandlers.java:172) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.handlers.ContentHeadersHandler.handle(ContentHeadersHandler.java:44) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.1.01] at com.sonatype.nexus.repository.npm.internal.NpmHandlers$1.handle(NpmHandlers.java:110) [na:na] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.handlers.ConditionalRequestHandler.handle(ConditionalRequestHandler.java:72) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:45) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.Context.start(Context.java:102) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:58) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:43) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:198) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.1.01] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:160) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.1.01] at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:117) [org.sonatype.nexus.plugins.nexus-repository-httpbridge:3.0.1.01] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api:3.1.0] at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287) [com.google.inject:4.0.0] at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277) [com.google.inject:4.0.0] at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182) [com.google.inject:4.0.0] at com.google.inject.servlet.DynamicServletPipeline.service(DynamicServletPipeline.java:71) [com.google.inject:4.0.0] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85) [com.google.inject:4.0.0] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112) [org.apache.shiro.web:1.2.4] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [com.google.inject:4.0.0] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112) [org.apache.shiro.web:1.2.4] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [com.google.inject:4.0.0] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) [org.apache.shiro.web:1.2.4] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) [org.apache.shiro.web:1.2.4] at org.sonatype.nexus.security.SecurityFilter.executeChain(SecurityFilter.java:85) [org.sonatype.nexus.security:3.0.1.01] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) [org.apache.shiro.web:1.2.4] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [org.apache.shiro.core:1.2.4] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [org.apache.shiro.core:1.2.4] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) [org.apache.shiro.core:1.2.4] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) [org.apache.shiro.web:1.2.4] at org.sonatype.nexus.security.SecurityFilter.doFilterInternal(SecurityFilter.java:101) [org.sonatype.nexus.security:3.0.1.01] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [org.apache.shiro.web:1.2.4] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [com.google.inject:4.0.0] at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:97) [com.codahale.metrics.servlet:3.0.2] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [com.google.inject:4.0.0] at org.sonatype.nexus.internal.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:63) [org.sonatype.nexus.base:3.0.1.01] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [com.google.inject:4.0.0] at org.sonatype.nexus.internal.web.EnvironmentFilter.doFilter(EnvironmentFilter.java:97) [org.sonatype.nexus.base:3.0.1.01] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82) [com.google.inject:4.0.0] at com.google.inject.servlet.DynamicFilterPipeline.dispatch(DynamicFilterPipeline.java:104) [com.google.inject:4.0.0] at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133) [com.google.inject:4.0.0] at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130) [com.google.inject:4.0.0] at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203) [com.google.inject:4.0.0] at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130) [com.google.inject:4.0.0] at org.sonatype.nexus.bootstrap.osgi.DelegatingFilter.doFilter(DelegatingFilter.java:73) [org.sonatype.nexus.bootstrap:3.0.1.01] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668) [org.eclipse.jetty.servlet:9.3.7.v20160115] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581) [org.eclipse.jetty.servlet:9.3.7.v20160115] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [org.eclipse.jetty.security:9.3.7.v20160115] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) [org.eclipse.jetty.servlet:9.3.7.v20160115] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119) [org.eclipse.jetty.server:9.3.7.v20160115] at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:175) [com.codahale.metrics.jetty9:3.0.2] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.server.Server.handle(Server.java:517) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242) [org.eclipse.jetty.server:9.3.7.v20160115] at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) [org.eclipse.jetty.io:9.3.7.v20160115] at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [org.eclipse.jetty.io:9.3.7.v20160115] at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75) [org.eclipse.jetty.io:9.3.7.v20160115] at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213) [org.eclipse.jetty.util:9.3.7.v20160115] at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147) [org.eclipse.jetty.util:9.3.7.v20160115] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) [org.eclipse.jetty.util:9.3.7.v20160115] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) [org.eclipse.jetty.util:9.3.7.v20160115] at java.lang.Thread.run(Thread.java:812) [na:1.8.0_72] Caused by: com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 start byte 0xa9 at [Source: sun.nio.ch.ChannelInputStream@3400c0ff; line: 1, column: 3880] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1586) [na:na] at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:521) [na:na] at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidInitial(UTF8StreamJsonParser.java:3482) [na:na] at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidChar(UTF8StreamJsonParser.java:3476) [na:na] at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishString2(UTF8StreamJsonParser.java:2503) [na:na] at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishAndReturnString(UTF8StreamJsonParser.java:2429) [na:na] at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText(UTF8StreamJsonParser.java:318) [na:na] at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:514) [na:na] at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringMap(MapDeserializer.java:495) [na:na] at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:341) [na:na] at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26) [na:na] at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3788) [com.fasterxml.jackson.core.jackson-databind:2.7.1] at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2856) [com.fasterxml.jackson.core.jackson-databind:2.7.1] at com.sonatype.nexus.repository.npm.internal.NpmJsonUtils.parse(NpmJsonUtils.java:70) [na:na] ... 95 common frames omitted {noformat}

    Sonatype JIRA | 3 months ago | Peter Lynch
    org.sonatype.nexus.repository.InvalidContentException: Invalid JSON input
  3. 0

    Exception when writing nodes containing umlauts (JsonParseException: Invalid UTF-8 middle byte 0xfc )

    GitHub | 2 months ago | buchgeher
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.RuntimeException: com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0xfc at [Source: [B@66f3256e; line: 1, column: 80]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    com.fasterxml.jackson.core.JsonParseException: Unexpected end-of-input in VALUE_STRING

    GitHub | 2 years ago | evgeny-pasynkov
    com.fasterxml.jackson.core.JsonParseException: Unexpected end-of-input in VALUE_STRING at [Source: io.netty.buffer.ByteBufInputStream@45446053; line: 1, column: 227]
  6. 0

    Cannot send message that contains UTF-8 from browsers if long-polling is used

    GitHub | 2 years ago | alim-akbashev
    com.fasterxml.jackson.databind.JsonMappingException: Unexpected end-of-input in VALUE_STRING at [Source: io.netty.buffer.ByteBufInputStream@1e72f02a; line: 1, column: 111] (through reference chain: com.corundumstudio.socketio.demo.ChatObject["message"])

    2 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. com.fasterxml.jackson.core.JsonParseException

      Invalid UTF-8 middle byte 0x72 at [Source: [B@a1b98d; line: 5, column: 16]

      at com.fasterxml.jackson.core.JsonParser._constructError()
    2. Jackson-core
      UTF8StreamJsonParser.getText
      1. com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1524)[jackson-core-2.3.1.jar:2.3.1]
      2. com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:557)[jackson-core-2.3.1.jar:2.3.1]
      3. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidOther(UTF8StreamJsonParser.java:3117)[jackson-core-2.3.1.jar:2.3.1]
      4. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidOther(UTF8StreamJsonParser.java:3124)[jackson-core-2.3.1.jar:2.3.1]
      5. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._decodeUtf8_3fast(UTF8StreamJsonParser.java:2930)[jackson-core-2.3.1.jar:2.3.1]
      6. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishString2(UTF8StreamJsonParser.java:2201)[jackson-core-2.3.1.jar:2.3.1]
      7. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._finishString(UTF8StreamJsonParser.java:2150)[jackson-core-2.3.1.jar:2.3.1]
      8. com.fasterxml.jackson.core.json.UTF8StreamJsonParser.getText(UTF8StreamJsonParser.java:282)[jackson-core-2.3.1.jar:2.3.1]
      8 frames
    3. Jackson
      ObjectMapper.readValue
      1. com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:183)[jackson-databind-2.3.1.jar:2.3.1]
      2. com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringMap(MapDeserializer.java:430)[jackson-databind-2.3.1.jar:2.3.1]
      3. com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:312)[jackson-databind-2.3.1.jar:2.3.1]
      4. com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26)[jackson-databind-2.3.1.jar:2.3.1]
      5. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2993)[jackson-databind-2.3.1.jar:2.3.1]
      6. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2184)[jackson-databind-2.3.1.jar:2.3.1]
      6 frames
    4. com.bolyuba.nexus
      RecreateMetadataWalkerProcessor.onCollectionExit
      1. com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.extractPackageJson(RecreateMetadataWalkerProcessor.java:195)[na:na]
      2. com.bolyuba.nexus.plugin.npm.hosted.RecreateMetadataWalkerProcessor.onCollectionExit(RecreateMetadataWalkerProcessor.java:110)[na:na]
      2 frames
    5. ${project.groupId}:${project.artifactId}
      DefaultWalker.walk
      1. org.sonatype.nexus.proxy.walker.DefaultWalker.onCollectionExit(DefaultWalker.java:325)[nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      2. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:226)[nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      3. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209)[nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      4. org.sonatype.nexus.proxy.walker.DefaultWalker.walkRecursive(DefaultWalker.java:209)[nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      5. org.sonatype.nexus.proxy.walker.DefaultWalker.walk(DefaultWalker.java:89)[nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      5 frames
    6. com.bolyuba.nexus
      NpmTaskSupport.doRun
      1. com.bolyuba.nexus.plugin.npm.hosted.DefaultNpmHostedRepository.recreateNpmMetadata(DefaultNpmHostedRepository.java:106)[nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na]
      2. com.bolyuba.nexus.plugin.npm.task.NpmHostedMetadataRebuildTask.doExecute(NpmHostedMetadataRebuildTask.java:50)[nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na]
      3. com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:55)[nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na]
      4. com.bolyuba.nexus.plugin.npm.task.NpmTaskSupport.doRun(NpmTaskSupport.java:37)[nexus-npm-repository-plugin-2.11.2-SNAPSHOT/:na]
      4 frames
    7. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:151)[nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      1 frame
    8. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418)[nexus-scheduler-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      1 frame
    9. ${project.groupId}:${project.artifactId}
      MDCAwareCallable.call
      1. org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44)[nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      1 frame
    10. Shiro
      SubjectCallable.call
      1. org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.3.jar:1.2.3]
      2. org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.3.jar:1.2.3]
      2 frames
    11. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_25]
      2. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_25]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_25]
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_25]
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_25]
      6. java.lang.Thread.run(Thread.java:745)[na:1.8.0_25]
      6 frames