]
Michal Vanco updated GTNWSRP-161:
---------------------------------
Attachment: F_test_WSRP_TestCase_15_GateInAsProducerAndConsumer-3.jpg
F_test_WSRP_TestCase_16_GateInAsProducerAndConsumerWithoutAutoImportWsrpPortlet-5.jpg
Problem with JCR when deleting consumer
---------------------------------------
Key: GTNWSRP-161
URL:
https://jira.jboss.org/browse/GTNWSRP-161
Project: GateIn WSRP
Issue Type: Bug
Affects Versions: 2.0.0-CR02
Environment: EPP5.1.0 ER04 (wsrp 2.0.0-CR02, jcr 1.12.6-CR01)
Reporter: Michal Vanco
Assignee: Chris Laprun
Fix For: 2.0.0-GA
Attachments: F_test_WSRP_TestCase_15_GateInAsProducerAndConsumer-3.jpg,
F_test_WSRP_TestCase_16_GateInAsProducerAndConsumerWithoutAutoImportWsrpPortlet-5.jpg
I saw a random issue which can't be reproduced with same scenario.
It is happening when delete consumer.
Then if you want to create consumer with same name, you get another problem.
See description below...
There is what is happening in log:
...
--Delete consumer: wsrp2-gatein--
14:55:29,090 INFO [ProducerInfo] Consumer with id 'wsrp2-gatein' deregistered.
14:55:29,111 INFO [WSRPConsumer] Consumer with id 'wsrp2-gatein' stopped
14:55:29,111 INFO [WSRPConsumer] Consumer with id 'wsrp2-gatein' deactivated
14:55:29,157 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not
have been displayed.
sourceId=pbG0a11647a_2dced7_2d46a0_2d8f8a_2dfef96d50b490:j_id36:status[severity=(ERROR 2),
summary=(javax.jcr.ItemNotFoundException: FATAL: Parent is null for
/wsrp:producerinfos/wsrp2-gatein/endpoint parent UUID: 46c7bf7b0a1059dc0162fd0860ecd185),
detail=(FATAL: Parent is null for /wsrp:producerinfos/wsrp2-gatein/endpoint parent UUID:
46c7bf7b0a1059dc0162fd0860ecd185)]
...
and after that in other tests when using same consumer name:
...
--Create new consumer: wsrp2-gatein--
14:58:18,663 ERROR [ChromatticSessionImpl] Attempt to insert context
EntityContext[state=ObjectStatus[status=TRANSIENT],mapper=EntityMapper[class=class
org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfoMapping,typeName=wsrp:producerinfo]]
as an existing child with name wsrp2-gatein child of node /wsrp:producerinfos
14:58:18,672 ERROR [STDERR] org.chromattic.api.DuplicateNameException:
Attempt to insert context
EntityContext[state=ObjectStatus[status=TRANSIENT],mapper=EntityMapper[class=class
org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfoMapping,typeName=wsrp:producerinfo]]
as an existing child with name wsrp2-gatein child of node /wsrp:producerinfos
...
14:58:21,916 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not
have been displayed.
sourceId=pbG0a11647a_2dced7_2d46a0_2d8f8a_2dfef96d50b490:j_id41:status[severity=(ERROR
2),
summary=(ProducerInfo 'wsrp2-gatein' hasn't been persisted and thus cannot be
updated.), detail=()]
I was also able to get this error on local instance as well, but I wasn't able to
reproduce it with same scenario. Also in hudson it failed in one build
and pass in other build.
Screenshots are attached.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: