Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-1441

java.lang.NullPointerException - on queries involving lookup (temp table cache does not have buffermanager set on it)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 7.1.1
    • Fix Version/s: 7.1.1, 7.3
    • Component/s: Query Engine
    • Labels:
      None

      Description

      The following java.lang.NullPointerException is received in ER7 when running queries involving lookup...example query: SELECT IntKey, lookup('BQT1.MediumA', 'StringKey', 'IntKey', IntKey) AS Y FROM BQT1.MediumA ORDER BY IntKey

      This seems to only happen when running the production profile. I am getting 57 query failures on most if not all sources and the queries involve lookup.

      2011-01-18 10:00:26,935 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker2_QueryProcessorQueue8) Loading materialized view table #CODE_BQT1.MEDIUMA.INTKEY.STRINGKEY
      2011-01-18 10:00:27,154 ERROR [org.teiid.PROCESSOR] (Worker2_QueryProcessorQueue8) Unexpected exception for request 0wHCuxdsAg78.0
      java.lang.NullPointerException
      at org.teiid.dqp.internal.process.CachedResults.prepare(CachedResults.java:115)
      at org.teiid.dqp.internal.process.SessionAwareCache.put(SessionAwareCache.java:166)
      at org.teiid.query.tempdata.TempTableDataManager.loadGlobalTable(TempTableDataManager.java:508)
      at org.teiid.query.tempdata.TempTableDataManager.registerQuery(TempTableDataManager.java:410)
      at org.teiid.query.tempdata.TempTableDataManager.lookupCodeValue(TempTableDataManager.java:595)
      at org.teiid.query.eval.Evaluator.evaluate(Evaluator.java:962)
      at org.teiid.query.eval.Evaluator.internalEvaluate(Evaluator.java:633)
      at org.teiid.query.eval.Evaluator.evaluate(Evaluator.java:603)
      at org.teiid.query.processor.relational.ProjectNode.updateTuple(ProjectNode.java:218)
      at org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:181)
      at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:274)
      at org.teiid.query.processor.BatchIterator.finalRow(BatchIterator.java:70)
      at org.teiid.common.buffer.AbstractTupleSource.getCurrentTuple(AbstractTupleSource.java:69)
      at org.teiid.query.processor.BatchIterator.getCurrentTuple(BatchIterator.java:82)
      at org.teiid.common.buffer.AbstractTupleSource.nextTuple(AbstractTupleSource.java:48)
      at org.teiid.query.processor.relational.SortUtility.initialSort(SortUtility.java:214)
      at org.teiid.query.processor.relational.SortUtility.sort(SortUtility.java:168)
      at org.teiid.query.processor.relational.SortNode.sortPhase(SortNode.java:96)
      at org.teiid.query.processor.relational.SortNode.nextBatchDirect(SortNode.java:85)
      at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:274)
      at org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:107)
      at org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:150)
      at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:105)
      at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:115)
      at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:250)
      at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:184)
      at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:49)
      at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:188)
      at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:116)
      at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:290)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:636)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  shawkins Steven Hawkins
                  Reporter:
                  wgibson Warren Gibson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: