Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1699

NPE on any metadata actions against Mysql

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • avatica-1.10.0
    • avatica
    • None

    Description

      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)
      

      Sadly, it looks like we missed that the getStatement method on ResultSet might return null via the javadoc.

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: