You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Claus Köll (JIRA)" <ji...@apache.org> on 2007/02/15 14:35:06 UTC
[jira] Created: (JCR-743) XA Transaction Recovery
XA Transaction Recovery
-----------------------
Key: JCR-743
URL: https://issues.apache.org/jira/browse/JCR-743
Project: Jackrabbit
Issue Type: Bug
Components: jca
Affects Versions: 1.2.1
Environment: J2C Resource Adapter on Websphere
Reporter: Claus Köll
If i add a node to the repository i get a XAException because i run into a Timeout ...
I see the Warn Message: Transaction rolled back because timeout expired.
The default Timeout is set to 5 sec and i dont know how to set it to a higher value
The Problem is if i restart my server websphere has a RecoveryManager and he try to recover this Transaction
and then i get a NullpointerException in JCAManagedConnectionFactory. createManagedConnection beacuse the given
ConnectionRequestInfo is null.
So i dont know why the RecoveryManager tries to recover the Transaction ? The only solution for me is to delete the Tran-Log Files wich keep Websphere to recvoer
XA Trasnactions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JCR-743) XA Transaction Recovery
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated JCR-743:
------------------------------
Fix Version/s: 1.3
Affects Version/s: 1.2.2
1.2.3
> XA Transaction Recovery
> -----------------------
>
> Key: JCR-743
> URL: https://issues.apache.org/jira/browse/JCR-743
> Project: Jackrabbit
> Issue Type: Bug
> Components: jca
> Affects Versions: 1.2.1, 1.2.2, 1.2.3
> Environment: J2C Resource Adapter on Websphere
> Reporter: Claus Köll
> Assigned To: Dominique Pfister
> Fix For: 1.3
>
>
> If i add a node to the repository i get a XAException because i run into a Timeout ...
> I see the Warn Message: Transaction rolled back because timeout expired.
> The default Timeout is set to 5 sec and i dont know how to set it to a higher value
> The Problem is if i restart my server websphere has a RecoveryManager and he try to recover this Transaction
> and then i get a NullpointerException in JCAManagedConnectionFactory. createManagedConnection beacuse the given
> ConnectionRequestInfo is null.
> So i dont know why the RecoveryManager tries to recover the Transaction ? The only solution for me is to delete the Tran-Log Files wich keep Websphere to recvoer
> XA Trasnactions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JCR-743) XA Transaction Recovery
Posted by "Claus Köll (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473406 ]
Claus Köll commented on JCR-743:
--------------------------------
I have tested more with this behaviour.
For more information my environment in detail:
Websphere 5.1.1 and Jackrabbit as J2C Resource Adapter
My Workspace configuration:
<PersistenceManager class="org.apache.jackrabbit.core.state.db.JNDIDatabasePersistenceManager">
<param name="dataSourceLocation" value="jdbc/JCR"/>
<param name="schema" value="oracle"/>
<param name="schemaObjectPrefix" value="${wsp.name}_"/>
<param name="externalBLOBs" value="false"/>
</PersistenceManager>
The DataSource jdbc/JCR is a oracle.jdbc.pool.OracleConnectionPoolDataSource. I have also tested a oracle.jdbc.xa.client.OracleXADataSource
but then i get a Exception on commit @see JCR-744
I have a SessionBean where i make some calls to to Jackrabbit within a Transaction.
I made a clean start. (starting my Server and Jackrabbit to a a empty repository).
If i add a node to the repository within transaction there are no problems.
Now i stop the server and restart it and i get always the Nullpointer Exception. First i thought that is only if a make a Rollback but that is not so.
I try to find out why Websphere try to recover the transaction ...
> XA Transaction Recovery
> -----------------------
>
> Key: JCR-743
> URL: https://issues.apache.org/jira/browse/JCR-743
> Project: Jackrabbit
> Issue Type: Bug
> Components: jca
> Affects Versions: 1.2.1
> Environment: J2C Resource Adapter on Websphere
> Reporter: Claus Köll
>
> If i add a node to the repository i get a XAException because i run into a Timeout ...
> I see the Warn Message: Transaction rolled back because timeout expired.
> The default Timeout is set to 5 sec and i dont know how to set it to a higher value
> The Problem is if i restart my server websphere has a RecoveryManager and he try to recover this Transaction
> and then i get a NullpointerException in JCAManagedConnectionFactory. createManagedConnection beacuse the given
> ConnectionRequestInfo is null.
> So i dont know why the RecoveryManager tries to recover the Transaction ? The only solution for me is to delete the Tran-Log Files wich keep Websphere to recvoer
> XA Trasnactions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (JCR-743) XA Transaction Recovery
Posted by "Dominique Pfister (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dominique Pfister resolved JCR-743.
-----------------------------------
Resolution: Fixed
WebSphere 5.1.1 tries to recover the connection's associated XAResource on startup, regardless whether it was committed or rolled back. In order to be interoperable, an anonymous, recoverable-only connection is returned, when this situation is detected.
Fixed in revision 510465.
> XA Transaction Recovery
> -----------------------
>
> Key: JCR-743
> URL: https://issues.apache.org/jira/browse/JCR-743
> Project: Jackrabbit
> Issue Type: Bug
> Components: jca
> Affects Versions: 1.2.1
> Environment: J2C Resource Adapter on Websphere
> Reporter: Claus Köll
> Assigned To: Dominique Pfister
>
> If i add a node to the repository i get a XAException because i run into a Timeout ...
> I see the Warn Message: Transaction rolled back because timeout expired.
> The default Timeout is set to 5 sec and i dont know how to set it to a higher value
> The Problem is if i restart my server websphere has a RecoveryManager and he try to recover this Transaction
> and then i get a NullpointerException in JCAManagedConnectionFactory. createManagedConnection beacuse the given
> ConnectionRequestInfo is null.
> So i dont know why the RecoveryManager tries to recover the Transaction ? The only solution for me is to delete the Tran-Log Files wich keep Websphere to recvoer
> XA Trasnactions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (JCR-743) XA Transaction Recovery
Posted by "Dominique Pfister (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCR-743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dominique Pfister reassigned JCR-743:
-------------------------------------
Assignee: Dominique Pfister
> XA Transaction Recovery
> -----------------------
>
> Key: JCR-743
> URL: https://issues.apache.org/jira/browse/JCR-743
> Project: Jackrabbit
> Issue Type: Bug
> Components: jca
> Affects Versions: 1.2.1
> Environment: J2C Resource Adapter on Websphere
> Reporter: Claus Köll
> Assigned To: Dominique Pfister
>
> If i add a node to the repository i get a XAException because i run into a Timeout ...
> I see the Warn Message: Transaction rolled back because timeout expired.
> The default Timeout is set to 5 sec and i dont know how to set it to a higher value
> The Problem is if i restart my server websphere has a RecoveryManager and he try to recover this Transaction
> and then i get a NullpointerException in JCAManagedConnectionFactory. createManagedConnection beacuse the given
> ConnectionRequestInfo is null.
> So i dont know why the RecoveryManager tries to recover the Transaction ? The only solution for me is to delete the Tran-Log Files wich keep Websphere to recvoer
> XA Trasnactions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.