[
https://issues.jboss.org/browse/TEIID-2331?page=com.atlassian.jira.plugin...
]
Steven Hawkins commented on TEIID-2331:
---------------------------------------
The stack trace here appears rooted in Thread.run and, therefore, I
wouldn't normally expect to see a "Caused by".
Because of the thread pools nearly all exceptions will be rooted by run. And yes it is
possible for exceptions to occur in one thread and be logged by another. However,
"Caused by" is due to how the exception bubbles up. I was hoping that there was
a higher (possibly lower, but that would be unlikely as someone would have to set the
cause on an NPE) exception that better communicated the issue. If the exception really
does originate from the RequestWorkItem, then this is an appropriate log - but I can't
make sense of the line number. Perhaps you're running a patched or pre-release
version.
We have just identified an NPE in one of our custom functions and I
suspect that's the root cause here.
It shouldn't be since we trap exceptions from udfs and rethrow them as processing
errors.
TEIID30019 Unexpected exception for request kfhsdoaNXYfM.1:
java.lang.NullPointerException
------------------------------------------------------------------------------------------
Key: TEIID-2331
URL:
https://issues.jboss.org/browse/TEIID-2331
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 8.1
Environment: Windows 7
Reporter: Sabina Norderhaug
Assignee: Steven Hawkins
Priority: Minor
We are getting this exception during continious execution. Looks like client cancelling
the execution
16:13:16,171 ERROR [org.teiid.PROCESSOR] (Worker6_QueryProcessorQueue902) TEIID30019
Unexpected exception for request kfhsdoaNXYfM.1: java.lang.NullPointerException
at
org.teiid.dqp.internal.process.RequestWorkItem.sendResultsIfNeeded(RequestWorkItem.java:753)
at
org.teiid.dqp.internal.process.RequestWorkItem$1.flushBatchDirect(RequestWorkItem.java:557)
at org.teiid.query.processor.BatchCollector.flushBatch(BatchCollector.java:191)
at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:166)
at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:382)
at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:291)
at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:49)
at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:219)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:249)
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:123)
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:298)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_03]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_03]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira