You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <de...@db.apache.org> on 2006/08/18 08:07:14 UTC
[jira] Closed: (DERBY-1710) Unchecked casts from SQLException to
EmbedSQLException cause ClassCastException in NetworkServerControlImpl when
running Java SE 6
[ http://issues.apache.org/jira/browse/DERBY-1710?page=all ]
Knut Anders Hatlen closed DERBY-1710.
-------------------------------------
Resolution: Fixed
Derby Info: (was: [Patch Available])
Thank you for looking at the patch, Bryan! Committed revision 432493.
> Unchecked casts from SQLException to EmbedSQLException cause ClassCastException in NetworkServerControlImpl when running Java SE 6
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1710
> URL: http://issues.apache.org/jira/browse/DERBY-1710
> Project: Derby
> Issue Type: Bug
> Components: Network Server
> Affects Versions: 10.2.1.0
> Environment: Java SE 6 (beta)
> Reporter: Knut Anders Hatlen
> Assigned To: Knut Anders Hatlen
> Priority: Minor
> Fix For: 10.2.1.0
>
> Attachments: derby-1710.diff, derby-1710.stat
>
>
> Since Derby doesn't raise EmbedSQLExceptions when running Java SE 6 or later, casts from SQLException to EmbedSQLException fail with a ClassCastException.
> To reproduce, start a network server with Java SE 6, and with derby.drda.debug enabled:
> java -Dderby.drda.debug=true org.apache.derby.drda.NetworkServerControl start
> In another terminal, stop the server with this command:
> java org.apache.derby.drda.NetworkServerControl shutdown
> When the server stops, it will print
> java.sql.SQLException cannot be cast to org.apache.derby.impl.jdbc.EmbedSQLException
> java.lang.ClassCastException: java.sql.SQLException cannot be cast to org.apache.derby.impl.jdbc.EmbedSQLException
> at org.apache.derby.impl.drda.NetworkServerControlImpl.blockingStart(NetworkServerControlImpl.java:665)
> at org.apache.derby.impl.drda.NetworkServerControlImpl.executeWork(NetworkServerControlImpl.java:1739)
> at org.apache.derby.drda.NetworkServerControl.main(NetworkServerControl.java:239)
--
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