3 Replies Latest reply on Apr 4, 2014 5:18 AM by Rakesh Balguri

    NullPointerException in JDBCExecutionFactory.initCapabilities

    Rakesh Balguri Expert

      Hi,

       

      I am using teiid 8.6 final and one of our translator extends the DB2ExecutionFactory.

      When I execute a SQL against this translator I am getting a NullPointerException in JDBCExecutionFactory.initCapabilities().

      This works fine in teiid 8.5. The following is the stacktrace:

       

      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:970)

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

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

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

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

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

        at sun.reflect.GeneratedMethodAccessor74.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$3.invoke(TransportService.java:251)

        at $Proxy26.executeRequest(Unknown Source)

        at sun.reflect.GeneratedMethodAccessor74.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:168)

        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:273)

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

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

        at $Proxy26.executeRequest(Unknown Source)

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

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

        ... 59 more

      Caused by: java.lang.NullPointerException

        at org.teiid.translator.jdbc.JDBCExecutionFactory.initCapabilities(JDBCExecutionFactory.java:247)

        at org.teiid.translator.jdbc.JDBCExecutionFactory.initCapabilities(JDBCExecutionFactory.java:65)

        at org.teiid.translator.BaseDelegatingExecutionFactory.initCapabilities(BaseDelegatingExecutionFactory.java:472)

        at org.teiid.dqp.internal.datamgr.ConnectorManager.getCapabilities(ConnectorManager.java:143)

        at org.teiid.dqp.internal.process.CachedFinder.findCapabilities(CachedFinder.java:104)

        at org.teiid.query.metadata.TempCapabilitiesFinder.findCapabilities(TempCapabilitiesFinder.java:67)

        at org.teiid.query.optimizer.relational.rules.CapabilitiesUtil.getCapabilities(CapabilitiesUtil.java:436)

        at org.teiid.query.optimizer.relational.rules.CapabilitiesUtil.supports(CapabilitiesUtil.java:456)

        at org.teiid.query.optimizer.relational.rules.CapabilitiesUtil.requiresCriteria(CapabilitiesUtil.java:441)

        at org.teiid.query.optimizer.relational.rules.RulePlaceAccess.addAccessNode(RulePlaceAccess.java:191)

        at org.teiid.query.optimizer.relational.rules.RulePlaceAccess.execute(RulePlaceAccess.java:85)

        at org.teiid.query.optimizer.relational.RelationalPlanner.executeRules(RelationalPlanner.java:606)

        at org.teiid.query.optimizer.relational.RelationalPlanner.optimize(RelationalPlanner.java:255)

        at org.teiid.query.optimizer.QueryOptimizer.optimizePlan(QueryOptimizer.java:159)

        at org.teiid.dqp.internal.process.Request.generatePlan(Request.java:408)

        at org.teiid.dqp.internal.process.PreparedStatementRequest.generatePlan(PreparedStatementRequest.java:115)

        at org.teiid.dqp.internal.process.Request.processRequest(Request.java:435)

        at org.teiid.dqp.internal.process.PreparedStatementRequest.processRequest(PreparedStatementRequest.java:289)

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

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

        ... 80 more