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

Unable to proxy myget.org repository: NullPointerException

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: nuget-v3
    • Labels:
    • Environment:
      * Linux SLES 15
      * Nexus Repository Pro 3.32.0-03

      Description

      Hello,

      when proxying (V3) the repository https://botbuilder.myget.org/F/botbuilder-v4-dotnet-daily/api/v3/index.json, installing packages results in a HTTP 500 error.

      Clientside:

      nuget.exe sources disable -name nuget.org
      nuget.exe sources add -name botbuilder -source https://nexus-test.webapp.sdst.sbaintern.de/repository/proxy_nuget_botbuilder/index.json
      nuget.exe install Microsoft.Bot.Schema
      
      An error occurred while retrieving package metadata for 'Microsoft.Bot.Schema' from source 'botbuilder'.
        Der Antwortstatuscode gibt keinen Erfolg an: 500 (Server Error).
      

      Serverside:

      2021-08-26 08:08:46,493+0200 DEBUG [qtp1075898543-691] *UNKNOWN org.sonatype.nexus.repository.view.Router - Request: Request{action='GET', path='/v3/registration/0/page/microsoft.bot.schema/page/4.10.0-preview-200522-133172/4.11.0-daily.20200909.164720.json', parameters=null, payload=HttpRequestPayloadAdapter{contentType='null', size=-1}, multipart=false}
      2021-08-26 08:08:46,493+0200 DEBUG [qtp1075898543-691] *UNKNOWN org.sonatype.nexus.repository.view.matchers.RegexMatcher - Matching: /v3/registration/0/page/microsoft.bot.schema/page/4.10.0-preview-200522-133172/4.11.0-daily.20200909.164720.json~=/index.json(:?/*)
      2021-08-26 08:08:46,493+0200 DEBUG [qtp1075898543-691] *UNKNOWN org.sonatype.nexus.repository.view.matchers.token.TokenMatcher - Matching: /v3/registration/0/page/microsoft.bot.schema/page/4.10.0-preview-200522-133172/4.11.0-daily.20200909.164720.json~=TokenParser{pattern=\Q/v3/query/\E(?<id>[^/]+), variables=[var(id,[^/]+)]}
      2021-08-26 08:08:46,493+0200 WARN  [qtp1075898543-703] *UNKNOWN org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: GET /repository/proxy_nuget_botbuilder/v3/registration/0/page/microsoft.bot.schema/page/4.11.0-daily.20200910.164987/4.12.0-daily.20201120.187396.b92aa20.json
      java.lang.NullPointerException: null
              at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3ProxyUtil.lambda$7(NugetV3ProxyUtil.java:168)
              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
              at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1361)
              at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
              at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
              at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531)
              at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3ProxyUtil.getResourceForRemote(NugetV3ProxyUtil.java:169)
              at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3ProxyUtil.buildProxyUrlOptional(NugetV3ProxyUtil.java:153)
              at com.sonatype.nexus.repository.nuget.internal.v3.NugetV3ProxyUtil.buildProxyUrl(NugetV3ProxyUtil.java:158)
              at com.sonatype.nexus.repository.nuget.orient.internal.v3.OrientNugetV3ProxyFacetImpl.rewriteRegistrationContent(OrientNugetV3ProxyFacetImpl.java:218)
              at com.sonatype.nexus.repository.nuget.orient.internal.v3.OrientNugetV3FacetSupport.getItem(OrientNugetV3FacetSupport.java:87)
              at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:57)
              at org.sonatype.nexus.transaction.TransactionInterceptor.proceedWithTransaction(TransactionInterceptor.java:66)
              at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
              at com.sonatype.nexus.repository.nuget.orient.internal.OrientNugetProxyFacet.getCachedContent(OrientNugetProxyFacet.java:73)
              at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.maybeGetCachedContent(ProxyFacetSupport.java:383)
              at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.get(ProxyFacetSupport.java:235)
              at org.sonatype.nexus.repository.proxy.ProxyHandler.handle(ProxyHandler.java:52)
              at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
              at com.sonatype.nexus.repository.nuget.internal.v3.NugetServicesHandler.handle(NugetServicesHandler.java:34)
              at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
              at com.sonatype.nexus.repository.nuget.internal.NugetSimpleHandlers.lambda$0(NugetSimpleHandlers.java:26)
              at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
              at org.sonatype.nexus.repository.storage.LastDownloadedHandler.handle(LastDownloadedHandler.java:59)
              at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
              at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39)
              at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
              at org.sonatype.nexus.repository.routing.internal.RoutingRuleHandler.handle(RoutingRuleHandler.java:52)
              at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
              at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:51)
              at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
              at com.sonatype.analytics.internal.handler.AnalyticsMeteringHandler.handle(AnalyticsMeteringHandler.java:69)
              at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
              at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:58)
              at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
              at org.sonatype.nexus.repository.view.Context.start(Context.java:179)
              at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:65)
              at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:52)
              at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:43)
              at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:213)
              at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:175)
              at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:127)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
              at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)
              at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)
              at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)
              at com.google.inject.servlet.DynamicServletPipeline.service(DynamicServletPipeline.java:71)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
              at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
              at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
              at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
              at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
              at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
              at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
              at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
              at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
              at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
              at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
              at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
              at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
              at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
              at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
              at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
              at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
              at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
              at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
              at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:450)
              at org.sonatype.nexus.security.SecurityFilter.executeChain(SecurityFilter.java:96)
              at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
              at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
              at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
              at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)
              at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
              at org.sonatype.nexus.security.SecurityFilter.doFilterInternal(SecurityFilter.java:112)
              at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
              at org.sonatype.nexus.repository.httpbridge.internal.ExhaustRequestFilter.doFilter(ExhaustRequestFilter.java:80)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
              at com.sonatype.nexus.licensing.internal.LicensingRedirectFilter.doFilter(LicensingRedirectFilter.java:116)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
              at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:112)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
              at org.sonatype.nexus.internal.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:79)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
              at org.sonatype.nexus.internal.web.EnvironmentFilter.doFilter(EnvironmentFilter.java:101)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
              at org.sonatype.nexus.internal.web.HeaderPatternFilter.doFilter(HeaderPatternFilter.java:98)
              at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
              at com.google.inject.servlet.DynamicFilterPipeline.dispatch(DynamicFilterPipeline.java:104)
              at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
              at org.sonatype.nexus.bootstrap.osgi.DelegatingFilter.doFilter(DelegatingFilter.java:73)
              at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201)
              at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
              at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:239)
              at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at org.eclipse.jetty.server.Server.handle(Server.java:516)
              at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
              at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
              at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
              at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
              at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
              at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
              at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
              at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:383)
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:882)
              at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1036)
              at java.lang.Thread.run(Thread.java:748)
      2021-08-26 08:08:46,494+0200 DEBUG [qtp1075898543-691] *UNKNOWN org.sonatype.nexus.repository.view.matchers.logic.AndMatcher - Matching: NugetMetadataMatcher{pattern=/v3/registration/(?:\d+\/)?(.+)\/index.json} AND org.sonatype.nexus.repository.view.matchers.ActionMatcher@5026afcd
      2021-08-26 08:08:46,487+0200 DEBUG [qtp1075898543-692] *UNKNOWN org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.view.handlers.TimingHandler@23292435
      2021-08-26 08:08:46,494+0200 DEBUG [qtp1075898543-703] *UNKNOWN org.apache.shiro.web.servlet.AdviceFilter - Filter execution resulted in an unexpected Exception (not IOException or ServletException as the Filter API recommends).  Wrapping in ServletException and propagating.
      2021-08-26 08:08:46,494+0200 DEBUG [qtp1075898543-692] *UNKNOWN org.sonatype.nexus.repository.view.Context - Proceeding: com.sonatype.analytics.internal.handler.AnalyticsMeteringHandler@6cdda1ba
      

      Somehow I was unable to capture HTTP responses from the remote botbuilder repository.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            seaspu Dennis Keitzel
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title