Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.


We have an application using Sybase ASA 7 and we access the database from a Java JDBC connection. Occassionally we see a Null Pointer Exception being kicked out by the JDBC driver reporting something about a TDS error. The following is what is reported but we have no idea where to start looking. It is having a significant effect on our application:

Aug 31 09:43:51 2011:   at com.sybase.timedio.InStreamMgr.moreData(
Aug 31 09:43:51 2011:   at com.sybase.timedio.Dbio.doRead(
Aug 31 09:43:51 2011:   at com.sybase.timedio.InStreamMgr.readIfOwner(
Aug 31 09:43:51 2011:   at com.sybase.timedio.InStreamMgr.doRead(
Aug 31 09:43:51 2011:   at com.sybase.tds.TdsProtocolContext.getChunk(
Aug 31 09:43:51 2011:   at com.sybase.tds.PduInputFormatter.readPacket(
Aug 31 09:43:51 2011:   at
Aug 31 09:43:51 2011:   at
Aug 31 09:43:51 2011:   at com.sybase.tds.TdsInputStream.readUnsignedByte(
Aug 31 09:43:51 2011:   at com.sybase.tds.Tds.nextResult(
Aug 31 09:43:51 2011:   at com.sybase.jdbc.ResultGetter.nextResult(
Aug 31 09:43:51 2011:   at com.sybase.jdbc.SybStatement.nextResult(
Aug 31 09:43:51 2011:   at com.sybase.jdbc.SybStatement.queryLoop(
Aug 31 09:43:51 2011:   at com.sybase.jdbc.SybCallableStatement.executeQuery(
Aug 31 09:43:51 2011:   at com.sybase.jdbc.SybConnection.isClosed(
Aug 31 09:43:51 2011:   at powersoft.powerj.db.java_sql.Transaction.isConnected(
Aug 31 09:43:51 2011:   at digtrack.digtrackpkg.TicketBean.getTicket(
Aug 31 09:43:51 2011:   at digtrack.digtrackpkg._sk_digtrackpkg_Ticket.invoke(

Has anyone ever run into this before? It doesn't look like anything in our code that causes this. We call the DB out of a Java Jaguar (gulp) component.

asked 07 Sep '11, 08:56

Codecranker's gravatar image

accept rate: 20%

edited 07 Sep '11, 09:30

Siger%20Matt's gravatar image

Siger Matt

From the stack trace, it seems that you're using jConnect and calling "Connection.isClosed()" from your code.

The error arises due to the fact that in order for the jConnect driver to execute the "isClosed()" functionality, it has issued a "SELECT" (against the jConnect metadata system information) on the SQL Anywhere database server. While reading from this internal result set, there was a NullPointerException thrown.

Support for SQL Anywhere 7 has been end-of-life'd, as has the support for jConnect 4.5/5.5 (which was the version of jConnect released with ASA 7), so your options to pursue this issue may be limited.

Which exact version of SQL Anywhere (dbsrv7 -v) are you using? Which version of jConnect?

(07 Sep '11, 13:55) Jeff Albion
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 07 Sep '11, 08:56

question was seen: 1,844 times

last updated: 07 Sep '11, 13:56