1 Reply Latest reply on Jul 28, 2014 7:09 PM by 0b545ebc-496e-45f3-9cf1-291c13e226d3

    Sybase Connection - NullPointerException

    alink

      Hi All,

       

      Trying to setup a Sybase connection using SQLDeveloper.  The Test button works and comes back as Success.  But once I try to browse the connection I get the following error:

       

      java.lang.NullPointerException

          at oracle.javatools.db.jdbc.JdbcDDLDatabase.registerBuilders(JdbcDDLDatabase.java:415)

          at oracle.javatools.db.AbstractDatabase.<init>(AbstractDatabase.java:127)

          at oracle.javatools.db.AbstractDatabase.<init>(AbstractDatabase.java:76)

          at oracle.javatools.db.ddl.DDLDatabase.<init>(DDLDatabase.java:49)

          at oracle.javatools.db.jdbc.JdbcDDLDatabase.<init>(JdbcDDLDatabase.java:59)

          at oracle.javatools.db.sybase.AdaptiveServerDatabaseImpl.<init>(AdaptiveServerDatabaseImpl.java:20)

          at oracle.javatools.db.sybase.anywhere.AdaptiveServerAnywhereDatabaseImpl.<init>(AdaptiveServerAnywhereDatabaseImpl.java:18)

          at oracle.javatools.db.sybase.AdaptiveServerDatabaseFactory.createDatabaseImpl(AdaptiveServerDatabaseFactory.java:33)

          at oracle.javatools.db.DatabaseFactory.createDatabaseImpl(DatabaseFactory.java:316)

          at oracle.javatools.db.DatabaseFactory.createDatabase(DatabaseFactory.java:286)

          at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:833)

          at oracle.dbtools.raptor.utils.Connections$ConnectionInfo.getDatabase(Connections.java:175)

          at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:1165)

          at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:1139)

          at oracle.dbtools.raptor.navigator.db.DatabaseConnection.openConnectionImpl(DatabaseConnection.java:146)

          at oracle.dbtools.raptor.navigator.db.AbstractConnectionNode.getConnection(AbstractConnectionNode.java:30)

          at oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode.getObjectFactory(DatabaseTreeNode.java:82)

          at oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode$LoadTask.doWork(DatabaseTreeNode.java:137)

          at oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode$LoadTask.doWork(DatabaseTreeNode.java:111)

          at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)

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

          at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

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

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

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

          at java.lang.Thread.run(Thread.java:745)

       

      Running the following:

      - SQLDeveloper 4.0.1.14

      - jTDS Driver 1.2.7

      - JDK 1.7.0-55

       

      Btw, Same thing happens with:

      - SQLDeveloper 3.2.20

      - jTDS Driver 1.2.7

      - JDK 1.6.0-26

       

       

      Tia,

       

      adym

        • 1. Re: Sybase Connection - NullPointerException
          0b545ebc-496e-45f3-9cf1-291c13e226d3

          I can confirm the have the same issue. I load the driver, set the connection properties, test the connection, which comes back as "Success", yet when you try to connect to the database:

           

          java.lang.NullPointerException

              at oracle.javatools.db.jdbc.JdbcDDLDatabase.registerBuilders(JdbcDDLDatabase.java:415)

              at oracle.javatools.db.AbstractDatabase.<init>(AbstractDatabase.java:127)

              at oracle.javatools.db.AbstractDatabase.<init>(AbstractDatabase.java:76)

              at oracle.javatools.db.ddl.DDLDatabase.<init>(DDLDatabase.java:49)

              at oracle.javatools.db.jdbc.JdbcDDLDatabase.<init>(JdbcDDLDatabase.java:59)

              at oracle.javatools.db.sybase.AdaptiveServerDatabaseImpl.<init>(AdaptiveServerDatabaseImpl.java:20)

              at oracle.javatools.db.sybase.anywhere.AdaptiveServerAnywhereDatabaseImpl.<init>(AdaptiveServerAnywhereDatabaseImpl.java:18)

              at oracle.javatools.db.sybase.AdaptiveServerDatabaseFactory.createDatabaseImpl(AdaptiveServerDatabaseFactory.java:33)

              at oracle.javatools.db.DatabaseFactory.createDatabaseImpl(DatabaseFactory.java:316)

              at oracle.javatools.db.DatabaseFactory.createDatabase(DatabaseFactory.java:286)

              at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:833)

              at oracle.dbtools.raptor.utils.Connections$ConnectionInfo.getDatabase(Connections.java:175)

              at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:1165)

              at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:1139)

              at oracle.dbtools.raptor.navigator.db.DatabaseConnection.openConnectionImpl(DatabaseConnection.java:146)

              at oracle.dbtools.raptor.navigator.db.AbstractConnectionNode.getConnection(AbstractConnectionNode.java:30)

              at oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode.getObjectFactory(DatabaseTreeNode.java:83)

              at oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode$LoadTask.doWork(DatabaseTreeNode.java:138)

              at oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode$LoadTask.doWork(DatabaseTreeNode.java:112)

              at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)

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

              at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

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

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

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

              at java.lang.Thread.run(Thread.java:745)