[
https://issues.apache.org/jira/browse/DERBY-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Hillegas updated DERBY-2066:
---------------------------------
Attachment: derby-2066-01-ac-makeMessageIDaSQLState.diff
Thanks, Knut. Those are good suggestions. Attaching a revised version of the
patch, derby-2066-01-ac-makeMessageIDaSQLState.diff. I will run regression
tests.
This version makes the following changes:
1) Uses Util.generateCsSQLException() to build the SQLException.
2) Changes the SQLState to a form of 08006, the SQL Standard SQLState for
connection failures.
3) Updates the localizations to reflect the message id change.
Touches the following files:
M java/engine/org/apache/derby/jdbc/EmbeddedSimpleDataSource.java
M java/engine/org/apache/derby/jdbc/AutoloadedDriver.java
M java/engine/org/apache/derby/loc/messages_de_DE.properties
M java/engine/org/apache/derby/loc/messages_zh_CN.properties
M java/engine/org/apache/derby/loc/messages_cs.properties
M java/engine/org/apache/derby/loc/messages_ko_KR.properties
M java/engine/org/apache/derby/loc/messages_pt_BR.properties
M java/engine/org/apache/derby/loc/messages_es.properties
M java/engine/org/apache/derby/loc/messages_fr.properties
M java/engine/org/apache/derby/loc/messages_pl.properties
M java/engine/org/apache/derby/loc/messages_hu.properties
M java/engine/org/apache/derby/loc/messages_it.properties
M java/engine/org/apache/derby/loc/messages_ja_JP.properties
M java/engine/org/apache/derby/loc/messages.xml
M java/engine/org/apache/derby/loc/messages_ru.properties
M java/engine/org/apache/derby/loc/messages_zh_TW.properties
M java/shared/org/apache/derby/shared/common/reference/SQLState.java
M java/shared/org/apache/derby/shared/common/reference/MessageId.java
M
java/testing/org/apache/derbyTesting/functionTests/tests/lang/ErrorCodeTest.java
> DisconnectException: The DDM object 0x1232 is not supported following
> shutdown of embedded engine while network server is running
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-2066
> URL: https://issues.apache.org/jira/browse/DERBY-2066
> Project: Derby
> Issue Type: Bug
> Components: Network Client, Network Server
> Affects Versions: 10.3.1.4
> Environment: JDK 142 windows
> Reporter: Daniel John Debrunner
> Labels: derby_triage10_5_2
> Attachments: Test_2066.java,
> derby-2066-01-aa-makeMessageIDaSQLState.diff,
> derby-2066-01-ab-makeMessageIDaSQLState.diff,
> derby-2066-01-ac-makeMessageIDaSQLState.diff
>
>
> Running all within the same JVM.
> start network server using api
> connect to database using client
> close connection
> shutdown engine (not network server) using jdbc:derby:;shutdown=true
> connect to database using client - FAILS
> Caused by: org.apache.derby.client.am.DisconnectException: The DDM object
> 0x1232 is not supported. The connection has been terminated.
> at
> org.apache.derby.client.net.NetConnectionReply.doObjnsprmSemantics(Unknown
> Source)
> at
> org.apache.derby.client.net.NetConnectionReply.parseCommonError(Unknown
> Source)
> at
> org.apache.derby.client.net.NetConnectionReply.parseSecurityCheckError(Unknown
> Source)
> at
> org.apache.derby.client.net.NetConnectionReply.parseSECCHKreply(Unknown
> Source)
> at
> org.apache.derby.client.net.NetConnectionReply.readSecurityCheck(Unknown
> Source)
> at
> org.apache.derby.client.net.NetConnection.readSecurityCheckAndAccessRdb(Unknown
> Source)
> at
> org.apache.derby.client.net.NetConnection.flowSecurityCheckAndAccessRdb(Unknown
> Source)
> at
> org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(Unknown Source)
> at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source)
> at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
> at
> org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(Unknown
> Source)
> ... 33 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira