Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5373

Drill JDBC error in the process of connection via SQuirrel: java.lang.NoClassDefFoundError: javax/validation/constraints/NotNull

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10.0
    • 1.11.0
    • Client - JDBC
    • None
    • SQuirrel SQL Client Version 3.7

    Description

      When I tried to connect to drillbit by SQuirrel via jdbc I've got an error:

      java.lang.NoClassDefFoundError: javax/validation/constraints/NotNull
      	at org.apache.drill.jdbc.impl.DrillMetaImpl.drillFieldMetaData(DrillMetaImpl.java:263)
      	at org.apache.drill.jdbc.impl.DrillMetaImpl$MetadataAdapter.getMeta(DrillMetaImpl.java:322)
      	at org.apache.drill.jdbc.impl.DrillMetaImpl.serverGetCatalogs(DrillMetaImpl.java:1034)
      	at org.apache.drill.jdbc.impl.DrillMetaImpl.getCatalogs(DrillMetaImpl.java:1077)
      	at oadd.org.apache.calcite.avatica.AvaticaDatabaseMetaData.getCatalogs(AvaticaDatabaseMetaData.java:609)
      	at org.apache.drill.jdbc.impl.DrillDatabaseMetaDataImpl.getCatalogs(DrillDatabaseMetaDataImpl.java:1168)
      	at net.sourceforge.squirrel_sql.fw.sql.SQLDatabaseMetaData.getCatalogs(SQLDatabaseMetaData.java:456)
      	at net.sourceforge.squirrel_sql.client.gui.session.CatalogsPanel.initInBackground(CatalogsPanel.java:93)
      	at net.sourceforge.squirrel_sql.client.gui.session.CatalogsPanel.<init>(CatalogsPanel.java:56)
      	at net.sourceforge.squirrel_sql.client.gui.session.SessionPanel$MyToolBar.createGUI(SessionPanel.java:556)
      	at net.sourceforge.squirrel_sql.client.gui.session.SessionPanel$MyToolBar.<init>(SessionPanel.java:525)
      	at net.sourceforge.squirrel_sql.client.gui.session.SessionPanel.propertiesHaveChanged(SessionPanel.java:435)
      	at net.sourceforge.squirrel_sql.client.gui.session.SessionPanel.initialize(SessionPanel.java:117)
      	at net.sourceforge.squirrel_sql.client.gui.session.SessionInternalFrame.createGUI(SessionInternalFrame.java:123)
      	at net.sourceforge.squirrel_sql.client.gui.session.SessionInternalFrame.<init>(SessionInternalFrame.java:53)
      	at net.sourceforge.squirrel_sql.client.gui.WindowManager.createInternalFrame(WindowManager.java:405)
      	at net.sourceforge.squirrel_sql.client.mainframe.action.ConnectToAliasCommand$Runner.run(ConnectToAliasCommand.java:394)
      	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
      	at java.awt.EventQueue.access$300(EventQueue.java:103)
      	at java.awt.EventQueue$3.run(EventQueue.java:706)
      	at java.awt.EventQueue$3.run(EventQueue.java:704)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
      	at net.sourceforge.squirrel_sql.client.Main$1.dispatchEvent(Main.java:99)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
      
      

      This annotation was added in DRILL-5301. But it requires a new dependency for the jdbc module.

      Attachments

        Issue Links

          Activity

            People

              vitalii Vitalii Diravka
              vitalii Vitalii Diravka
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: