db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anurag Shekhar (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1061) SqlException while fetching message results in recursive calls between SqlException.getSQLException and Sqlca.getJDBCMessage
Date Mon, 27 Feb 2006 17:49:16 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1061?page=comments#action_12367994 ] 

Anurag Shekhar commented on DERBY-1061:
---------------------------------------

I didn't notice that SqlException doesn't extends from SQLException.
How about creating a SQLException in Sqlca itself with out going to SqlException, with information
available in the exception ? It has SqlState and error code. 

> SqlException while fetching message results in recursive calls between SqlException.getSQLException
and Sqlca.getJDBCMessage
> ----------------------------------------------------------------------------------------------------------------------------
>
>          Key: DERBY-1061
>          URL: http://issues.apache.org/jira/browse/DERBY-1061
>      Project: Derby
>         Type: Sub-task
>     Reporter: Anurag Shekhar
>     Assignee: Anurag Shekhar

>
> stored procedure is used to fetch localised message in net work client
> because of issue 1059 the call to the stored prcedures fails resulting in SqlException.
When  SqlException.getSQLException, to set exceptionThrownOnStoredProcInvocation_, is called
it again results in a call to SqlException.getMessage which call Sqlca.getJDBCMessage. 
> The cycle repeats and finally ends up with StackOverfilowError
> fixing 1059 will solve this problem temporarily but some other situaltion may cause it
again.
> Isuggest seting SqlException itself to exceptionThrownOnStoredProcInvocation_ to break
this loop.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message