Uploaded image for project: 'mod-inventory-storage'
  1. mod-inventory-storage
  2. MODINVSTOR-558

/item-storage/items fails because "module name: netty_parent"

    XMLWordPrintable

Details

    • CP: Non-roadmap backlog
    • Core: Platform

    Description

      Overview:
      /item-storage/items query=barcode=4539876054383 fails with NullPointerException caused by null routingContext.
      Steps to Reproduce:
      Run target/mod-inventory-storage-fat.jar from master.
      POST /_/tenant
      to install mod-inventory-storage module for the tenant.
      The log shows:

      19 Aug 2020 16:42:37:732 INFO  PomReader [] module name: netty_parent, version: 4.1.49.Final
      

      The incorrect module name netty_parent is used to create the database schema diku_netty_parent.

      This will also show on every reference environment build when mod-courses fails to retrieve some sample data form mod-inventory-storage. Worth noting that inventory storage was recently updated to java 11.

      stacktrace from mod-inventory-storage from folio-snapshot

      19 Aug 2020 03:33:47:779 INFO  LogUtil [reqId=590661/proxy;547430/tenant] org.folio.rest.RestVerticle start  invoking postServicePointsUsers
      19 Aug 2020 03:33:47:779 INFO  LogUtil [reqId=590661/proxy;547430/tenant] 172.17.0.1:42734 POST /service-points-users null HTTP_1_1 201 444 1 tid=diku Created 
      19 Aug 2020 03:33:47:780 INFO  TenantRefAPI [] servicePointUser result : {
        "userId" : "e14b1bc1-8784-4b55-bfbe-e5ec8ce0b07a",
        "servicePointsIds" : [ "7c5abc9f-f3d7-4856-b8d7-6712462ca007", "c4c90014-c8c9-4ade-8f24-b5e313319f4b", "3a40852d-49fd-4df2-a1f9-6e2641a6e91f" ],
        "defaultServicePointId" : "7c5abc9f-f3d7-4856-b8d7-6712462ca007"
      }
      19 Aug 2020 03:33:47:781 INFO  LogUtil [reqId=590661/proxy;547430/tenant] org.folio.rest.RestVerticle start  invoking postServicePointsUsers
      19 Aug 2020 03:33:47:782 INFO  LogUtil [reqId=590661/proxy;547430/tenant] 172.17.0.1:42734 POST /service-points-users null HTTP_1_1 201 444 1 tid=diku Created 
      19 Aug 2020 03:33:47:782 INFO  LogUtil [reqId=590661/proxy;547430/tenant] org.folio.rest.RestVerticle start  invoking postTenant
      19 Aug 2020 03:33:47:782 INFO  LogUtil [reqId=590661/proxy;547430/tenant] 10.36.1.111:39076 POST /_/tenant null HTTP_1_1 201 0 8736 tid=diku Created 
      19 Aug 2020 03:34:50:177 ERROR RestVerticle [reqId=386527/item-storage] null
      java.lang.reflect.InvocationTargetException: null
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
      	at org.folio.rest.RestVerticle.invoke(RestVerticle.java:967) ~[mod-inventory-storage-fat.jar:?]
      	at org.folio.rest.RestVerticle.route(RestVerticle.java:544) ~[mod-inventory-storage-fat.jar:?]
      	at org.folio.rest.RestVerticle.lambda$1(RestVerticle.java:290) ~[mod-inventory-storage-fat.jar:?]
      	at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1034) ~[mod-inventory-storage-fat.jar:?]
      	at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:131) ~[mod-inventory-storage-fat.jar:?]
      	at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:133) ~[mod-inventory-storage-fat.jar:?]
      	at io.vertx.ext.web.impl.RouterImpl.handle(RouterImpl.java:54) ~[mod-inventory-storage-fat.jar:?]
      	at io.vertx.ext.web.impl.RouterImpl.handle(RouterImpl.java:36) ~[mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.http.impl.WebSocketRequestHandler.handle(WebSocketRequestHandler.java:50) ~[mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.http.impl.WebSocketRequestHandler.handle(WebSocketRequestHandler.java:32) ~[mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.http.impl.Http1xServerConnection.handleMessage(Http1xServerConnection.java:136) ~[mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366) [mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.impl.EventLoopContext.execute(EventLoopContext.java:43) [mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:229) [mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.net.impl.VertxHandler.channelRead(VertxHandler.java:173) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:93) [mod-inventory-storage-fat.jar:?]
      	at io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.channelRead(WebSocketServerExtensionHandler.java:101) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.http.impl.Http1xUpgradeToH2CHandler.channelRead(Http1xUpgradeToH2CHandler.java:109) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [mod-inventory-storage-fat.jar:?]
      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [mod-inventory-storage-fat.jar:?]
      	at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [mod-inventory-storage-fat.jar:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [mod-inventory-storage-fat.jar:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:311) [mod-inventory-storage-fat.jar:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:425) [mod-inventory-storage-fat.jar:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.http.impl.Http1xOrH2CHandler.end(Http1xOrH2CHandler.java:61) [mod-inventory-storage-fat.jar:?]
      	at io.vertx.core.http.impl.Http1xOrH2CHandler.channelRead(Http1xOrH2CHandler.java:38) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576) [mod-inventory-storage-fat.jar:?]
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [mod-inventory-storage-fat.jar:?]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [mod-inventory-storage-fat.jar:?]
      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [mod-inventory-storage-fat.jar:?]
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [mod-inventory-storage-fat.jar:?]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: java.lang.NullPointerException
      	at org.folio.rest.persist.PgUtil.streamGet(PgUtil.java:585) ~[mod-inventory-storage-fat.jar:?]
      	at org.folio.rest.persist.PgUtil.streamGet(PgUtil.java:557) ~[mod-inventory-storage-fat.jar:?]
      	at org.folio.rest.impl.ItemStorageAPI.getItemStorageItems(ItemStorageAPI.java:48) ~[mod-inventory-storage-fat.jar:?]
      	... 61 more
      19 Aug 2020 03:34:50:190 INFO  LogUtil [reqId=386527/item-storage] 10.36.1.111:39640 GET /item-storage/items query=barcode=4539876054383 HTTP_1_1 400 0 -1 tid=null Bad Request 
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                adam Adam Dickmeiss (Inactive)
                ian Ian Hardy
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases