You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2017/03/19 18:46:41 UTC

[jira] [Resolved] (CALCITE-1699) NPE on any metadata actions against Mysql

     [ https://issues.apache.org/jira/browse/CALCITE-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Elser resolved CALCITE-1699.
---------------------------------
    Resolution: Fixed

Resolved in https://git-wip-us.apache.org/repos/asf?p=calcite.git;a=commit;h=554d963ece3bbcd7a36fc1b9922c8a5c6e1444c1

> NPE on any metadata actions against Mysql
> -----------------------------------------
>
>                 Key: CALCITE-1699
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1699
>             Project: Calcite
>          Issue Type: Bug
>          Components: avatica
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>             Fix For: avatica-1.10.0
>
>
> {noformat}
> java.lang.NullPointerException
> 	at java.util.Objects.requireNonNull(Objects.java:203)
> 	at org.apache.calcite.avatica.jdbc.StatementInfo.<init>(StatementInfo.java:40)
> 	at org.apache.calcite.avatica.jdbc.JdbcMeta.registerMetaStatement(JdbcMeta.java:340)
> 	at org.apache.calcite.avatica.jdbc.JdbcMeta.getTables(JdbcMeta.java:326)
> 	at org.apache.calcite.avatica.remote.LocalService.apply(LocalService.java:156)
> 	at org.apache.calcite.avatica.remote.Service$TablesRequest.accept(Service.java:424)
> 	at org.apache.calcite.avatica.remote.AbstractHandler.apply(AbstractHandler.java:95)
> 	at org.apache.calcite.avatica.remote.ProtobufHandler.apply(ProtobufHandler.java:46)
> 	at org.apache.calcite.avatica.server.AvaticaProtobufHandler.handle(AvaticaProtobufHandler.java:124)
> 	at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:499)
> 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
> 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
> 	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
> 	at java.lang.Thread.run(Thread.java:745)
> {noformat}
> Sadly, it looks like we missed that the {{getStatement}} method on {{ResultSet}} might return null via the javadoc.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)