[
https://jira.jboss.org/jira/browse/GTNPORTAL-855?page=com.atlassian.jira....
]
Marek Posolda commented on GTNPORTAL-855:
-----------------------------------------
I am able to reproduce it with latest trunk with same scenario as described and same
exceptions in both nodes in server.log. NullPointerException coming from JBoss cache on
node2, RollbackException on node1. Exception occurs directly after creating new page or
navigation node.
I have GateIn trunk from today (revision 2716) deployed on EAP 5.0.1 CR3. AS configuration
"production".
JBoss cache versions:
3.2.2.GA in server/production/lib
3.2.3.CR1 in server/production/deploy/gatein.ear/lib
configuration.properties are configured to use cluster (attaching newest version), MySQL
5.1 is used as shared database and JCA datasources are in server/production/deploy (so
HSQLDB configuration in configuration.properties should be ignored thanks to
org.exoplatform.commons.InitialContextInitializer2 )
I am able to simulate it in lab on more hosts and also on localhost with virtual hosts. I
am running portal on localhost this way:
./run.sh -c production -b 127.0.1.1 -g portalFailoverPartition -u 239.10.15.18
-Djboss.messaging.ServerPeerID=0
./run.sh -c production2 -b 127.0.1.2 -g portalFailoverPartition -u 239.10.15.18
-Djboss.messaging.ServerPeerID=1
Is more info needed?
javax.transaction.RollbackException when creating navigation node in
GateIn (cluster test with 2 GateIn nodes)
--------------------------------------------------------------------------------------------------------------
Key: GTNPORTAL-855
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-855
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: GateIn trunk (revision 2166) deployed on EAP5,
Sun JDK 1.6,
MySQL 5.1 shared database (between two GateIn nodes)
Reporter: Marek Posolda
Assignee: Julien Viet
Fix For: 3.1.0-GA
Attachments: configuration.properties, exception-node1-rollbackException.txt,
exception-node2-rollbackException.txt
I have a problem when having two GateIn instances on different servers running in
cluster. Steps to simulate:
1) Run node1 with -Dexo.profiles=cluster
2) Run node2 with -Dexo.profiles=cluster
3) Login as root in node1 and go to portalnavigation -> Edit navigations -> Add
node -> Use existing page in page selector (portal::classic::homepage) -> Fill node
name and title -> click to Save
4) Now I am not able to see my new node. But I am not able to see it after logout. I can
see exceptions in server logs in both node1 and node2.
Exception on node2 is "[TxInterceptor] prepare failed!
java.lang.NullPointerException".
Exception on node1 is "[TxIsolatedOperation] Transaction has been rolled back
javax.transaction.RollbackException:
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted]
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit
transaction."
Exception on node2 (NullPointerException) occurs first and exception
"RollbackExcption" on node1, where new navigations were created, occurs after
it. And I can see only when having cluster with more nodes. It doesn't occur in single
node.
For completeness: I am using shared database MySQL with JBoss datasources in
server/production/deploy directory and "no-tx-datasource" datasource. Both nodes
are executed with "-Dexo.profiles=cluster". I am attaching my
server/production/conf/gatein/configuration.xml.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira