我有SQL Developer版本17.4.1.054.0712。我已经下载了适用于Sybase的jTDS驱动程序1.3.1。
我现在已经在SQLDeveloper中配置了Sybase数据库并测试了连接,并且连接成功。
但是当我尝试连接时,它会引发以下错误。
java.lang.NullPointerException
at oracle.javatools.db.jdbc.JdbcDDLDatabase.registerBuilders(JdbcDDLDatabase.java:443)
at oracle.javatools.db.AbstractDatabase.<init>(AbstractDatabase.java:127)
at oracle.javatools.db.AbstractDatabase.<init>(AbstractDatabase.java:79)
at oracle.javatools.db.ddl.DDLDatabase.<init>(DDLDatabase.java:60)
at oracle.javatools.db.jdbc.JdbcDDLDatabase.<init>(JdbcDDLDatabase.java:61)
at oracle.javatools.db.sybase.AdaptiveServerDatabaseImpl.<init>(AdaptiveServerDatabaseImpl.java:21)
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:837)
at oracle.dbtools.raptor.utils.Connections$ConnectionInfo.getDatabase(Connections.java:283)
at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:1229)
at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:1215)
at oracle.dbtools.raptor.navigator.db.DatabaseConnection.openConnectionImpl(DatabaseConnection.java:146)
at oracle.dbtools.raptor.navigator.db.DatabaseConnection.openConnectionImpl(DatabaseConnection.java:41)
at oracle.dbtools.raptor.navigator.db.BaseConnectionNode.getConnection(BaseConnectionNode.java:46)
at oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode.getObjectFactory(DatabaseTreeNode.java:90)
at oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode$LoadTask.doWork(DatabaseTreeNode.java:145)
at oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode$LoadTask.doWork(DatabaseTreeNode.java:119)
at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:199)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:702)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Suppressed: java.sql.SQLException: TDS Protocol error: Invalid packet type 0xc
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2392)
at net.sourceforge.jtds.jdbc.TdsCore.getNextRow(TdsCore.java:777)
at net.sourceforge.jtds.jdbc.JtdsResultSet.next(JtdsResultSet.java:596)
at net.sourceforge.jtds.jdbc.JtdsResultSet.close(JtdsResultSet.java:488)
at oracle.javatools.db.jdbc.JdbcDDLDatabase.registerBuilders(JdbcDDLDatabase.java:467)
... 27 more
Caused by: net.sourceforge.jtds.jdbc.ProtocolException: Invalid packet type 0xc
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2381)
... 31 more
请帮助我解决该问题。
Sqldeveloper Version : 17.4.1.054.0712
jTDS Version : 1.3.1
Sybase IQ Version : SAP IQ/16.0.110.2805