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

Repository migration fails with "com.fasterxml.jackson.databind.JsonMappingException: Invalid type marker byte 0xfa for expected field name (or END_OBJECT marker)"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.2, 3.2.0
    • Fix Version/s: 3.2.1
    • Component/s: Upgrade
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Sprint 85

      Description

      Upgrade fails with "com.fasterxml.jackson.databind.JsonMappingException: Invalid type marker byte 0xfa for expected field name (or END_OBJECT marker)".

      Initial investigation is showing that this may have something to do with migrating a proxy of the npm registry.

      2016-12-28 10:46:57,331-0500 DEBUG [plan-executor-5-thread-2] admin com.sonatype.nexus.migration.client.RepositoryChangelogClient - Fetching changelog from: http://e1djnsvap01.ert.com:8083/nexus/service/siesta/migrationagent
      2016-12-28 10:46:58,486-0500 INFO [plan-executor-5-thread-2] admin com.sonatype.nexus.migration.client.http.MigrationRequestMonitorImpl - Upgrade HTTP connection indefinite retry false
      2016-12-28 10:46:58,524-0500 WARN [plan-executor-5-thread-2] admin com.sonatype.nexus.migration.repository.ProcessChangesStep - Process changes failed
      javax.ws.rs.client.ResponseProcessingException: javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.JsonMappingException: Invalid type marker byte 0xfa for expected field name (or END_OBJECT marker)
      at [Source: java.io.BufferedInputStream@12cd19c8; line: -1, column: 610212]
      at [Source: java.io.BufferedInputStream@12cd19c8; line: -1, column: 610211] (through reference chain: java.util.ArrayList[40]->com.sonatype.nexus.migration.client.ChangeEntryXO["change"]->com.sonatype.nexus.migration.client.ChangeDetailXO["asset"]->com.sonatype.nexus.migration.client.AssetDetailXO["attributes"])
      at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:141) [na:na]
      at org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.BodyEntityExtractor.extractEntity(BodyEntityExtractor.java:59) [na:na]
      at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:104) [na:na]
      at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:64) [na:na]
      at com.sonatype.nexus.migration.client.$Proxy190.get(Unknown Source) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at sun.reflect.GeneratedMethodAccessor433.invoke(Unknown Source) [na:na]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_77]
      at java.lang.reflect.Method.invoke(Method.java:498) [na:1.8.0_77]
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:233) [groovy-all:2.4.7]
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56) [groovy-all:2.4.7]
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141) [na:na]
      at com.sonatype.nexus.migration.client.RepositoryChangelogClient$1.get(RepositoryChangelogClient.groovy:173) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at com.sonatype.nexus.migration.client.RepositoryChangelogClient$ChangelogConnection$get.call(Unknown Source) [na:na]
      at com.sonatype.nexus.migration.repository.ProcessChangesStep$_after_closure3$_closure4.doCall(ProcessChangesStep.groovy:351) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at com.sonatype.nexus.migration.repository.ProcessChangesStep$_after_closure3$_closure4.doCall(ProcessChangesStep.groovy) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at sun.reflect.GeneratedMethodAccessor431.invoke(Unknown Source) [na:na]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_77]
      at java.lang.reflect.Method.invoke(Method.java:498) [na:1.8.0_77]
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) [na:na]
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) [na:na]
      at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) [na:na]
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024) [na:na]
      at groovy.lang.Closure.call(Closure.java:414) [groovy-all:2.4.7]
      at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:54) [groovy-all:2.4.7]
      at org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:124) [groovy-all:2.4.7]
      at com.sun.proxy.$Proxy200.get(Unknown Source) [na:na]
      at com.sonatype.nexus.migration.repository.BufferingIterator.fillBuffer(BufferingIterator.java:52) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at com.sonatype.nexus.migration.repository.BufferingIterator.ensureBufferFilled(BufferingIterator.java:47) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at com.sonatype.nexus.migration.repository.BufferingIterator.hasNext(BufferingIterator.java:35) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at com.google.common.collect.Iterators$PeekingImpl.hasNext(Iterators.java:1105) [com.google.guava:20.0.0]
      at java_util_Iterator$hasNext$0.call(Unknown Source) [na:na]
      at com.sonatype.nexus.migration.repository.ProcessChangesStep.sync(ProcessChangesStep.groovy:244) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at com.sonatype.nexus.migration.repository.ProcessChangesStep$sync.callCurrent(Unknown Source) [na:na]
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52) [na:na]
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154) [na:na]
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:158) [na:na]
      at com.sonatype.nexus.migration.repository.ProcessChangesStep.doRun(ProcessChangesStep.groovy:147) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at com.sonatype.nexus.migration.plan.Step.run(Step.groovy:271) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at com.sonatype.nexus.migration.plan.Step$run$1.call(Unknown Source) [na:na]
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) [na:na]
      at com.sonatype.nexus.migration.plan.Step$run$1.call(Unknown Source) [na:na]
      at com.sonatype.nexus.migration.plan.StepExecutor.runSync(StepExecutor.groovy:168) [na:na]
      at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source) [na:na]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_77]
      at java.lang.reflect.Method.invoke(Method.java:498) [na:1.8.0_77]
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) [na:na]
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) [na:na]
      at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384) [na:na]
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024) [na:na]
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69) [na:na]
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166) [na:na]
      at com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy:197) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at com.sonatype.nexus.migration.plan.StepExecutor$_runAsync_closure1.doCall(StepExecutor.groovy) [com.sonatype.nexus.plugins.nexus-migration-plugin:3.2.0.01]
      at sun.reflect.GeneratedMethodAccessor289.invoke(Unknown Source) [na:na]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_77]
      at java.lang.reflect.Method.invoke(Method.java:498) [na:1.8.0_77]
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) [na:na]
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) [na:na]
      at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) [na:na]
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024) [na:na]
      at groovy.lang.Closure.call(Closure.java:414) [groovy-all:2.4.7]
      at groovy.lang.Closure.call(Closure.java:408) [groovy-all:2.4.7]
      at groovy.lang.Closure.run(Closure.java:495) [groovy-all:2.4.7]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_77]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_77]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_77]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_77]
      at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]
      Caused by: javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.JsonMappingException: Invalid type marker byte 0xfa for expected field name (or END_OBJECT marker)
      at [Source: java.io.BufferedInputStream@12cd19c8; line: -1, column: 610212]
      at [Source: java.io.BufferedInputStream@12cd19c8; line: -1, column: 610211] (through reference chain: java.util.ArrayList[40]->com.sonatype.nexus.migration.client.ChangeEntryXO["change"]->com.sonatype.nexus.migration.client.ChangeDetailXO["asset"]->com.sonatype.nexus.migration.client.AssetDetailXO["attributes"])
      at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:285) [na:na]
      at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readEntity(ClientResponse.java:181) [na:na]
      at org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:213) [na:na]
      at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:105) [na:na]
      ... 67 common frames omitted
      Caused by: com.fasterxml.jackson.databind.JsonMappingException: Invalid type marker byte 0xfa for expected field name (or END_OBJECT marker)
      at [Source: java.io.BufferedInputStream@12cd19c8; line: -1, column: 610212]
      at [Source: java.io.BufferedInputStream@12cd19c8; line: -1, column: 610211] (through reference chain: java.util.ArrayList[40]->com.sonatype.nexus.migration.client.ChangeEntryXO["change"]->com.sonatype.nexus.migration.client.ChangeDetailXO["asset"]->com.sonatype.nexus.migration.client.AssetDetailXO["attributes"])
      at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:339) [com.fasterxml.jackson.core.jackson-databind:2.7.1]
      at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:299) [com.fasterxml.jackson.core.jackson-databind:2.7.1]
      at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1511) [na:na]
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:262) [na:na]
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125) [na:na]
      at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:490) [na:na]
      at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95) [na:na]
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:260) [na:na]
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125) [na:na]
      at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:490) [na:na]
      at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95) [na:na]
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:260) [na:na]
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125) [na:na]
      at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:277) [na:na]
      at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:249) [na:na]
      at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:26) [na:na]
      at com.fasterxml.jackson.databind.ObjectReader._bind(ObjectReader.java:1534) [com.fasterxml.jackson.core.jackson-databind:2.7.1]
      at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:944) [com.fasterxml.jackson.core.jackson-databind:2.7.1]
      at com.fasterxml.jackson.jaxrs.base.ProviderBase.readFrom(ProviderBase.java:811) [na:na]
      at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.readFrom(AbstractReaderInterceptorContext.java:61) [na:na]
      at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:53) [na:na]
      at org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor.aroundReadFrom(GZIPDecodingInterceptor.java:59) [na:na]
      at org.jboss.resteasy.core.interception.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:55) [na:na]
      at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:251) [na:na]
      ... 70 common frames omitted
      Caused by: com.fasterxml.jackson.core.JsonParseException: Invalid type marker byte 0xfa for expected field name (or END_OBJECT marker)
      at [Source: java.io.BufferedInputStream@12cd19c8; line: -1, column: 610212]
      at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1586) [com.fasterxml.jackson.core.jackson-core:2.7.1]
      at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:521) [na:na]
      at com.fasterxml.jackson.dataformat.smile.SmileParser._handleFieldName(SmileParser.java:1572) [na:na]
      at com.fasterxml.jackson.dataformat.smile.SmileParser.nextToken(SmileParser.java:587) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.mapObject(UntypedObjectDeserializer.java:637) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:496) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.mapObject(UntypedObjectDeserializer.java:638) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:496) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.mapObject(UntypedObjectDeserializer.java:653) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:496) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.mapObject(UntypedObjectDeserializer.java:629) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:496) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.mapObject(UntypedObjectDeserializer.java:638) [na:na]
      at com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer$Vanilla.deserialize(UntypedObjectDeserializer.java:496) [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.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:490) [na:na]
      at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95) [na:na]
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:260) [na:na]
      ... 90 common frames omitted
      2016-12-28 10:46:58,528-0500 DEBUG [plan-executor-5-thread-2] admin com.sonatype.nexus.migration.plan.StepExecutor - Step finished: Step(name:Process changes, phase:SYNC)
      2016-12-28 10:46:58,529-0500 INFO [plan-executor-5-thread-4] admin com.sonatype.nexus.migration.plan.StepExecutor - Step not runnable: Step(name:End phase: SYNC, phase:SYNC)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rseddon Rich Seddon
                Last Updated By:
                Dulani Wallace
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

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