×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    2

    A strange exception!

    Hi,
    There is an exception when I try to connect to the SQLserver:

    java.lang.NullPointerException

    at com.microsoft.util.UtilByteOrderedDataReader.readString(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.getReturnedValue(Unknown Source)
    at com.microsoft.jdbc.sqlserver.tds.TDSRequest.getColumnDataForRow(Unknown Source)
    at com.microsoft.jdbc.sqlserver.SQLServerImplResultSet.getData(Unknown Source)
    at com.microsoft.jdbc.base.BaseResultSet.getString(Unknown Source)
    at com.microsoft.jdbc.base.BaseResultSet.getString(Unknown Source)
    at test.doPost(test.java:81)

    Is this the JDBC driver problem? Or what will cause this exception?

    thanx

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    19

    RE: A strange exception!

    Hi,

    My colleague also got this problem. I guess that JDBC driver isn't the cause of the problem. Most probable cause might be the string you are about to read in. Check if it contains any unseen characters such as white space and so on. Good luck to you!

    hgyang

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×