siddhi-io / siddhi

Stream Processing and Complex Event Processing Engine
http://siddhi.io
Apache License 2.0
1.53k stars 528 forks source link

【NullPointerException】StreamEventPool streamEventList is null? #1241

Open afreetgo opened 5 years ago

afreetgo commented 5 years ago

Description: I used storm + siddhi to process monitoring data, but NullPointerException appeared.

Detailed debugging screenshots are as follows: image image

**Affected Siddhi Version:3.1.x,3.2.x

mohanvive commented 5 years ago

@afreetgo Above issue does not have enough context for us to debug. Can you please provide more context to the issue?

What is the Siddhi query that you have used? Please share a test case that we could use to reproduce the issue.

afreetgo commented 5 years ago

Preliminary judgment is that it may be due to the blockage of storm threads that lead to unsuccessful assignment. I am writing a separate test case to verify it.

afreetgo commented 5 years ago

storm-siddhi-test.zip

This test code can reproduce the problem, please modify FILEPATH in TestSpout, please help to see what caused it? How to solve it? Thank you very much.

afreetgo commented 5 years ago

Set breakpoints on line 48 of SiddhiBolt

afreetgo commented 5 years ago

Adding synchronized (inputHandler) can solve this problem.