[JBoss JIRA] Created: (GTNPORTAL-1677) NullPointerException with LDAP in GroupDAOImpl.findGroups
by Boleslaw Dawidowicz (JIRA)
NullPointerException with LDAP in GroupDAOImpl.findGroups
---------------------------------------------------------
Key: GTNPORTAL-1677
URL: https://jira.jboss.org/browse/GTNPORTAL-1677
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.1.0-GA
Reporter: Boleslaw Dawidowicz
Assignee: Boleslaw Dawidowicz
Fix For: 3.2.0-GA
After configuring GateIn with LDAP, configuring portlets in edit mode fails with a NullPointerException:
Caused by: java.lang.NullPointerException
at org.exoplatform.services.organization.idm.GroupDAOImpl.findGroups(GroupDAOImpl.java:364)
at org.exoplatform.webui.organization.UIGroupMembershipSelector.<init>(UIGroupMembershipSelector.java:68)
... 76 more
This is caused by a failing null check in the findGroups method. If parent is null and id is not null a NPE is thrown:
if ((parent == null && id == null) || (id != null && id.equals(parent.getId())))
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] Created: (GTNWSRP-158) javax.jcr.ItemNotFoundException Parent is null exception when using the Netunity Cache MarkupPortlet
by Matt Wringe (JIRA)
javax.jcr.ItemNotFoundException Parent is null exception when using the Netunity Cache MarkupPortlet
----------------------------------------------------------------------------------------------------
Key: GTNWSRP-158
URL: https://jira.jboss.org/browse/GTNWSRP-158
Project: GateIn WSRP
Issue Type: Bug
Affects Versions: 2.0.0-CR02
Reporter: Matt Wringe
Assignee: Chris Laprun
Fix For: 2.0.0-CR02
When using the NetUnity CacheMarkup portlet the following error will sometimes appear:
11:44:27,785 ERROR [STDERR] org.chromattic.api.UndeclaredRepositoryException: javax.jcr.ItemNotFoundException: FATAL: Parent is null for /wsrp:producerinfos/netunity/registration/-__urn_-_netunitysoftware_-_wsrp2interop__-ProducerRegistrationState/description parent UUID: 36abfa87c0a800c552ca3aec2b4db521
11:44:27,785 ERROR [STDERR] at org.chromattic.core.DomainSession.getName(DomainSession.java:231)
11:44:27,785 ERROR [STDERR] at org.chromattic.core.EntityContext.getAttribute(EntityContext.java:154)
11:44:27,785 ERROR [STDERR] at org.chromattic.core.EntityContext.getName(EntityContext.java:175)
11:44:27,785 ERROR [STDERR] at org.chromattic.core.DomainSessionImpl.remove(DomainSessionImpl.java:626)
11:44:27,785 ERROR [STDERR] at org.chromattic.core.DomainSessionImpl._remove(DomainSessionImpl.java:595)
11:44:27,785 ERROR [STDERR] at org.chromattic.core.DomainSession.remove(DomainSession.java:273)
11:44:27,786 ERROR [STDERR] at org.chromattic.core.mapper.onetomany.hierarchical.AnyChildList.remove(AnyChildList.java:171)
11:44:27,786 ERROR [STDERR] at java.util.AbstractList$Itr.remove(AbstractList.java:360)
11:44:27,786 ERROR [STDERR] at java.util.AbstractList.removeRange(AbstractList.java:559)
11:44:27,786 ERROR [STDERR] at java.util.AbstractList.clear(AbstractList.java:217)
11:44:27,786 ERROR [STDERR] at org.gatein.portal.wsrp.state.consumer.mapping.RegistrationInfoMapping.initFrom(RegistrationInfoMapping.java:86)
11:44:27,786 ERROR [STDERR] at org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfoMapping.initFrom(ProducerInfoMapping.java:85)
11:44:27,786 ERROR [STDERR] at org.gatein.portal.wsrp.state.consumer.JCRConsumerRegistry.update(JCRConsumerRegistry.java:116)
11:44:27,786 ERROR [STDERR] at org.gatein.wsrp.consumer.registry.AbstractConsumerRegistry.updateProducerInfo(AbstractConsumerRegistry.java:249)
11:44:27,786 ERROR [STDERR] at org.gatein.wsrp.consumer.ProducerInfo.refreshInfo(ProducerInfo.java:556)
11:44:27,786 ERROR [STDERR] at org.gatein.wsrp.consumer.ProducerInfo.internalRefresh(ProducerInfo.java:475)
11:44:27,786 ERROR [STDERR] at org.gatein.wsrp.consumer.ProducerInfo.detailedRefresh(ProducerInfo.java:342)
...
Note that is error can be difficult to reproduce. I cannot reproduce it in a predictable manner. It will sometimes occur when loading the page (even on the first load on a clean server), or when switching views, or when submitting the cache values. The best way I have found to get the error is to just keep on submiting cache values, it might take a while before the error will appear though :(
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] Created: (GTNWSRP-163) org.chromattic.api.UndeclaredRepositoryException javax.jcr.InvalidItemStateException: (delete) Property not found
by Matt Wringe (JIRA)
org.chromattic.api.UndeclaredRepositoryException javax.jcr.InvalidItemStateException: (delete) Property not found
-----------------------------------------------------------------------------------------------------------------
Key: GTNWSRP-163
URL: https://jira.jboss.org/browse/GTNWSRP-163
Project: GateIn WSRP
Issue Type: Bug
Affects Versions: 2.0.0-GA
Reporter: Matt Wringe
Assignee: Chris Laprun
Fix For: 2.0.0-GA
Attachments: JCRInvalidItemStateException.txt
Ran into an issue when using some netunity portlets, loaded these portlets on three different portlet pages and loaded each of these pages in a new browser tab. When "reloading all tabs" I ran into this issue, its not reproducible and I have only seen it once :(
14:08:13,862 ERROR [portal:UIPortletLifecycle] Portlet render threw an exception
org.exoplatform.services.portletcontainer.PortletContainerException: org.chromattic.api.UndeclaredRepositoryException: javax.jcr.InvalidItemStateException: (delete) Property not found []:1[http://www.gatein.org/jcr/wsrp/1.0/]producerinfos:1[]netunity:1[]registration:1[]-__urn_-_netunitysoftware_-_wsrp2interop__-ProducerRegistrationState:1[http://www.jcp.org/jcr/1.0]uuid:1 5615d5d8c0a800c5789c60f60c4601e8. Probably was deleted by another session : (delete) Property not found []:1[http://www.gatein.org/jcr/wsrp/1.0/]producerinfos:1[]netunity:1[]registration:1[]-__urn_-_netunitysoftware_-_wsrp2interop__-ProducerRegistrationState:1[http://www.jcp.org/jcr/1.0]uuid:1 5615d5d8c0a800c5789c60f60c4601e8. Probably was deleted by another session : (delete) Property not found []:1[http://www.gatein.org/jcr/wsrp/1.0/]producerinfos:1[]netunity:1[]registration:1[]-__urn_-_netunitysoftware_-_wsrp2interop__-ProducerRegistrationState:1[http://www.jcp.org/jcr/1.0]uuid:1 5615d5d8c0a800c5789c60f60c4601e8. Probably was deleted by another session : (delete) Property not found []:1[http://www.gatein.org/jcr/wsrp/1.0/]producerinfos:1[]netunity:1[]registration:1[]-__urn_-_netunitysoftware_-_wsrp2interop__-ProducerRegistrationState:1[http://www.jcp.org/jcr/1.0]uuid:1 5615d5d8c0a800c5789c60f60c4601e8. Probably was deleted by another session : (delete) Property not found []:1[http://www.gatein.org/jcr/wsrp/1.0/]producerinfos:1[]netunity:1[]registration:1[]-__urn_-_netunitysoftware_-_wsrp2interop__-ProducerRegistrationState:1[http://www.jcp.org/jcr/1.0]uuid:1 5615d5d8c0a800c5789c60f60c4601e8. Probably was deleted by another session
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 1 month
[JBoss JIRA] Created: (GTNWSRP-161) Problem with JCR when deleting consumer
by Michal Vanco (JIRA)
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
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: http://www.atlassian.com/software/jira
14 years, 1 month