java.util.NoSuchElementException thrown by driver

From: Mark Lewis (mark.lewis_at_mir3.com)
Date: 08/26/04


Date: Wed, 25 Aug 2004 17:33:51 -0700

Calling connection.prepareStatement(" "); throws a
NoSuchElementException instead of something legitimate,
like a SQLException.

This is just a simple bug, but since I can't figure out how
to report it to Microsoft any other way and couldn't find
anything in the MSDN about it, I decided to post about it here.

The full stack trace is:

java.util.NoSuchElementException
        at
java.util.StringTokenizer.nextToken(StringTokenizer.java:259)
        at
com.microsoft.jdbc.base.BaseSQLStringGenerator.generateSQL(Unknown
Source)
        at com.microsoft.jdbc.base.BaseSQL.getVerb(Unknown
Source)
        at
com.microsoft.jdbc.base.BaseSQL.resultType(Unknown Source)
        at
com.microsoft.jdbc.base.BaseSQL.processSQL(Unknown Source)
        at com.microsoft.jdbc.base.BaseSQL.<init>(Unknown
Source)
        at
com.microsoft.jdbc.base.BaseStatement.preProcessSQL(Unknown
Source)
        at
com.microsoft.jdbc.base.BasePreparedStatement.<init>(Unknown
Source)
        at
com.microsoft.jdbc.base.BaseConnection.prepareStatement(Unknown
Source)
        at
com.microsoft.jdbc.base.BaseConnection.prepareStatement(Unknown
Source)
        at MyCode

-- Mark Lewis



Relevant Pages

  • Re: Stored Procedure error is not catched
    ... If the procedure does some queries before the failing update, what does the jTDS driver do? ... failed but in my java code the SQLException is not thrown. ... tell me how to fix this bug? ... you do get your expected exception. ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: string.atoi and string.atol broken?
    ... Mike Moum wrote: ... > s.atoiis legitimate, but it generates an error. ... > Is this a bug, or am I missing something obvious? ...
    (comp.lang.python)

Loading