Kishor Patil created STORM-3132:
-----------------------------------

             Summary: NPE in Values Constructor
                 Key: STORM-3132
                 URL: https://issues.apache.org/jira/browse/STORM-3132
             Project: Apache Storm
          Issue Type: Bug
          Components: storm-client
            Reporter: Kishor Patil
            Assignee: Kishor Patil


Passing null argument to the `Values` Constructor can cause worker to crash.

 

{code}2018-06-29 05:30:53.088 o.a.s.e.e.ReportError Thread-17-b-2-executor[8, 
8] [ERROR] Error
java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.NullPointerException
    at org.apache.storm.utils.Utils$2.run(Utils.java:365) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
    at org.apache.storm.executor.Executor.accept(Executor.java:282) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at org.apache.storm.utils.JCQueue.consumeImpl(JCQueue.java:133) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at org.apache.storm.utils.JCQueue.consume(JCQueue.java:110) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.executor.bolt.BoltExecutor$1.call(BoltExecutor.java:169) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.executor.bolt.BoltExecutor$1.call(BoltExecutor.java:156) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at org.apache.storm.utils.Utils$2.run(Utils.java:350) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    ... 1 more
Caused by: java.lang.NullPointerException
    at org.apache.storm.tuple.Values.<init>(Values.java:26) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.starter.trident.TridentWordCount$Split.execute(TridentWordCount.java:80)
 ~[stormjar.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.trident.planner.processor.EachProcessor.execute(EachProcessor.java:65)
 ~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.trident.planner.SubtopologyBolt$InitialReceiver.receive(SubtopologyBolt.java:227)
 ~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.trident.planner.SubtopologyBolt.execute(SubtopologyBolt.java:169)
 ~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.trident.topology.TridentBoltExecutor.execute(TridentBoltExecutor.java:247)
 ~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.executor.bolt.BoltExecutor.tupleActionFn(BoltExecutor.java:232)
 ~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at org.apache.storm.executor.Executor.accept(Executor.java:275) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at org.apache.storm.utils.JCQueue.consumeImpl(JCQueue.java:133) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at org.apache.storm.utils.JCQueue.consume(JCQueue.java:110) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.executor.bolt.BoltExecutor$1.call(BoltExecutor.java:169) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.executor.bolt.BoltExecutor$1.call(BoltExecutor.java:156) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at org.apache.storm.utils.Utils$2.run(Utils.java:350) 
~[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    ... 1 more
2018-06-29 05:30:53.116 o.a.s.u.Utils Thread-17-b-2-executor[8, 8] [ERROR] 
Halting process: Worker died
java.lang.RuntimeException: Halting process: Worker died
    at org.apache.storm.utils.Utils.exitProcess(Utils.java:470) 
[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at org.apache.storm.utils.Utils$4.run(Utils.java:753) 
[storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at 
org.apache.storm.executor.error.ReportErrorAndDie.uncaughtException(ReportErrorAndDie.java:41)
 [storm-client-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
    at java.lang.Thread.dispatchUncaughtException(Thread.java:1959) 
[?:1.8.0_131]\{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to