Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-7235

NullPointerException in LogDataOffsetCallback when UI tries to fetch log

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.5.1
    • Component/s: None
    • Labels:
    • Release Notes:
      Fixed a problem with a NPE when the CDAP UI fetches a log.
    • Rank:
      1|hzzll3:

      Description

      This is the stacktrace:

      2016-09-07 17:12:36,361 - ERROR [netty-executor-116:c.c.c.l.g.h.LogDataOffsetCallback@47] - Got exception: 
      java.lang.NullPointerException: null
         at co.cask.cdap.logging.gateway.handlers.LogDataOffsetCallback.encodeSend(LogDataOffsetCallback.java:47)
         at co.cask.cdap.logging.gateway.handlers.AbstractJSONCallback.handleEvent(AbstractJSONCallback.java:69)
         at co.cask.cdap.logging.gateway.handlers.AbstractChunkedCallback.handle(AbstractChunkedCallback.java:87)
         at co.cask.cdap.logging.read.AvroFileReader.readLog(AvroFileReader.java:98)
         at co.cask.cdap.logging.read.FileLogReader.getLogNext(FileLogReader.java:96)
         at co.cask.cdap.logging.read.DistributedLogReader.getLogNext(DistributedLogReader.java:64)
         at co.cask.cdap.logging.gateway.handlers.LogHandler.doNext(LogHandler.java:184)
         at co.cask.cdap.logging.gateway.handlers.LogHandler.runIdNext(LogHandler.java:171)
         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:497)
         at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80)
         at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38)
         at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
         at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
         at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
         at org.jboss.netty.channel.SimpleChannelUpstreamHandler.messageReceived(SimpleChannelUpstreamHandler.java:124)
         at co.cask.cdap.common.http.AuthenticationChannelHandler.messageReceived(AuthenticationChannelHandler.java:64)
         at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
         at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
         at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
         at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
         at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
         at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
         at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Assignee:
              gokul Gokul Gunasekaran
              Reporter:
              terence Terence Yim
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: