3 Replies Latest reply on Jun 6, 2014 11:04 AM by Steven Hawkins

    Getting a Null pointer exception From ConnectorWorkItem

    Madhu Garimilla Newbie

      We are using Teiid 8.7. When we try to insert into one of our H2 tables, it is throwing the below exception. There is a null check inside ConnectorWorkItem, but looks like getUpdateCounts() method is also returning null in this case. When do we get such case?

       

      Caused by: org.teiid.core.TeiidException

          at org.teiid.client.ResultsMessage.setException(ResultsMessage.java:194)

          at org.teiid.dqp.internal.process.RequestWorkItem.sendError(RequestWorkItem.java:991)

          at org.teiid.dqp.internal.process.RequestWorkItem.close(RequestWorkItem.java:552)

          at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:352)

          at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:51)

          at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:254)

          at org.teiid.dqp.internal.process.DQPCore.executeRequest(DQPCore.java:295)

          at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:601)

          at org.teiid.logging.LogManager$LoggingProxy.invoke(LogManager.java:121)

          at org.teiid.jboss.TransportService$2.invoke(TransportService.java:228)

          at $Proxy19.executeRequest(Unknown Source)

          at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:601)

          at org.teiid.transport.LocalServerConnection$1$1.call(LocalServerConnection.java:170)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

          at java.util.concurrent.FutureTask.run(FutureTask.java:166)

          at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:274)

          at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:258)

          at org.teiid.transport.LocalServerConnection$1.invoke(LocalServerConnection.java:168)

          at $Proxy19.executeRequest(Unknown Source)

          at org.teiid.jdbc.StatementImpl.execute(StatementImpl.java:634)

          at org.teiid.jdbc.StatementImpl.executeSql(StatementImpl.java:509)

          ... 63 more

      Caused by: java.lang.NullPointerException

          at org.teiid.dqp.internal.datamgr.ConnectorWorkItem$1.next(ConnectorWorkItem.java:366)

          at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.handleBatch(ConnectorWorkItem.java:384)

          at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.more(ConnectorWorkItem.java:202)

          at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:301)

          at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:110)

          at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:107)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

          at java.util.concurrent.FutureTask.run(FutureTask.java:166)

          at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:58)

          at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:274)

          at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)

          at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:214)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

          ... 1 more