db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4489) NetXAResource.start() throws NullPointerException when connection to server is lost
Date Tue, 22 Dec 2009 09:36:29 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-4489:
--------------------------------------

    Attachment: XA_NPE_Repro.java

Attaching a reproducible test case. To reproduce, start a network server on localhost:1527,
then run the attached class. When it prints "sleep 10 sec, stop server now before I wake up",
stop the network server. It then fails with an NPE when it wakes up.

The expected result is some kind of XAException, I think.

> NetXAResource.start() throws NullPointerException when connection to server is lost
> -----------------------------------------------------------------------------------
>
>                 Key: DERBY-4489
>                 URL: https://issues.apache.org/jira/browse/DERBY-4489
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 10.5.3.0, 10.6.0.0
>            Reporter: Knut Anders Hatlen
>         Attachments: XA_NPE_Repro.java
>
>
> If you have a ClientXAConnection and then stop or restart the network server, subsequent
calls to XAResource.start() will fail with a NullPointerException:
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.derby.client.net.Request.sendBytes(Request.java:1415)
>         at org.apache.derby.client.net.Request.flush(Request.java:1409)
>         at org.apache.derby.client.net.NetAgent.sendRequest(NetAgent.java:387)
>         at org.apache.derby.client.net.NetAgent.flush_(NetAgent.java:267)
>         at org.apache.derby.client.am.Agent.flowOutsideUOW(Agent.java:196)
>         at org.apache.derby.client.net.NetXAResource.start(NetXAResource.java:626)
>         at XA_NPE_Repro.main(XA_NPE_Repro.java:21)
> (This bug was originally seen when running failure-injection tests against GlassFish
with an XA connection pool and connection validation turned off.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message