Uploaded image for project: 'GateIn WSRP'
  1. GateIn WSRP
  2. GTNWSRP-308

Retrieving persisted registration fails with RichFaces 4 portlet

    Details

      Description

      Loading the RichFaces 4 Portlet from Portlet Bridge creates the following exception several times:

      11:53:48,938 ERROR [org.jboss.ws.common.invocation.InvocationHandlerJAXWS] (http-/127.0.0.1:8080-8) Method invocation failed with exception: null: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_07]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_07]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_07]
      at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_07]
      at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)
      at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)
      at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_07]
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_07]
      at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_07]
      at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
      at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)
      at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)
      at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)
      at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]
      at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)
      at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.3.GA.jar:2.0.3.GA]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.16.Final.jar:]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final.jar:]
      at org.gatein.wsrp.servlet.ServletAccessFilter.doFilter(ServletAccessFilter.java:56) [wsrp-common-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.16.Final.jar:]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.16.Final.jar:]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.16.Final.jar:]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.16.Final.jar:]
      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.2.Final.jar:7.1.2.Final]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.16.Final.jar:]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.16.Final.jar:]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.16.Final.jar:]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.16.Final.jar:]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.16.Final.jar:]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.16.Final.jar:]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.16.Final.jar:]
      at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
      Caused by: org.oasis.wsrp.v2.OperationFailed: Failed to retrieve registration information associated with handle def9e1e87f00010131acf64d7e5f4a53 Cause: org.chromattic.api.UndeclaredRepositoryException: javax.jcr.InvalidItemStateException: This kind of operation is forbidden after a session.logout().: This kind of operation is forbidden after a session.logout().: This kind of operation is forbidden after a session.logout().
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_07]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_07]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_07]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_07]
      at org.gatein.wsrp.WSRPExceptionFactory$ExceptionFactory.newInstance(WSRPExceptionFactory.java:107) [wsrp-common-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.WSRPExceptionFactory.createWSException(WSRPExceptionFactory.java:75) [wsrp-common-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.WSRPExceptionFactory.throwWSException(WSRPExceptionFactory.java:63) [wsrp-common-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.producer.handlers.RegistrationHandler.throwOperationFailedFault(RegistrationHandler.java:368) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.producer.handlers.RegistrationHandler.getRegistrationFrom(RegistrationHandler.java:343) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.producer.WSRPProducerImpl.getRegistrationOrFailIfInvalid(WSRPProducerImpl.java:500) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.producer.handlers.processors.RequestProcessor.prepareInvocation(RequestProcessor.java:113) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.producer.handlers.processors.ResourceRequestProcessor.<init>(ResourceRequestProcessor.java:67) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.producer.handlers.processors.ProcessorFactory.getProcessorFor(ProcessorFactory.java:77) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.producer.handlers.MarkupHandler.getResource(MarkupHandler.java:133) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.producer.WSRPProducerImpl.getResource(WSRPProducerImpl.java:233) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.endpoints.v2.MarkupEndpoint.getResource(MarkupEndpoint.java:174) [classes:]
      ... 41 more
      Caused by: org.gatein.registration.RegistrationException: org.chromattic.api.UndeclaredRepositoryException: javax.jcr.InvalidItemStateException: This kind of operation is forbidden after a session.logout().: This kind of operation is forbidden after a session.logout().: This kind of operation is forbidden after a session.logout().
      at org.gatein.wsrp.registration.JCRRegistrationPersistenceManager.getRegistration(JCRRegistrationPersistenceManager.java:432) [wsrp-jcr-impl-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.registration.impl.RegistrationManagerImpl.getConsumerOrRegistration(RegistrationManagerImpl.java:374) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.registration.impl.RegistrationManagerImpl.getRegistration(RegistrationManagerImpl.java:281) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.producer.handlers.RegistrationHandler.getRegistrationFrom(RegistrationHandler.java:334) [wsrp-producer-lib-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      ... 48 more
      Caused by: org.chromattic.api.UndeclaredRepositoryException: javax.jcr.InvalidItemStateException: This kind of operation is forbidden after a session.logout().: This kind of operation is forbidden after a session.logout().: This kind of operation is forbidden after a session.logout().
      at org.chromattic.core.PersistentEntityContextState.getPropertyValue(PersistentEntityContextState.java:224) [chromattic.core-1.1.4.jar:]
      at org.chromattic.core.ObjectContext.getPropertyValue(ObjectContext.java:139) [chromattic.core-1.1.4.jar:]
      at org.chromattic.core.mapper.property.JCRPropertySingleValuedPropertyMapper.get(JCRPropertySingleValuedPropertyMapper.java:65) [chromattic.core-1.1.4.jar:]
      at org.chromattic.core.mapper.property.JCRPropertySingleValuedPropertyMapper.get(JCRPropertySingleValuedPropertyMapper.java:61) [chromattic.core-1.1.4.jar:]
      at org.chromattic.core.mapper.PropertyMapper$1.invoke(PropertyMapper.java:73) [chromattic.core-1.1.4.jar:]
      at org.chromattic.core.ObjectContext.invoke(ObjectContext.java:65) [chromattic.core-1.1.4.jar:]
      at org.gatein.wsrp.registration.mapping.ConsumerMapping_Chromattic.getId(ConsumerMapping_Chromattic.java:72) [wsrp-jcr-impl-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.registration.mapping.ConsumerMapping.toModel(ConsumerMapping.java:159) [wsrp-jcr-impl-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      at org.gatein.wsrp.registration.JCRRegistrationPersistenceManager.getRegistration(JCRRegistrationPersistenceManager.java:427) [wsrp-jcr-impl-2.2.0-Beta05-SNAPSHOT.jar:2.2.0-Beta05-SNAPSHOT]
      ... 51 more
      Caused by: javax.jcr.InvalidItemStateException: This kind of operation is forbidden after a session.logout().: This kind of operation is forbidden after a session.logout().: This kind of operation is forbidden after a session.logout().
      at org.exoplatform.services.jcr.impl.core.ItemImpl.checkValid(ItemImpl.java:161) [exo.jcr.component.core-1.15.0-Beta01.jar:1.15.0-Beta01]
      at org.exoplatform.services.jcr.impl.core.PropertyImpl.getValue(PropertyImpl.java:149) [exo.jcr.component.core-1.15.0-Beta01.jar:1.15.0-Beta01]
      at org.chromattic.core.PersistentEntityContextState.getPropertyValue(PersistentEntityContextState.java:163) [chromattic.core-1.1.4.jar:]
      ... 59 more
      Caused by: javax.jcr.RepositoryException: This kind of operation is forbidden after a session.logout().
      at org.exoplatform.services.jcr.impl.core.SessionImpl.checkLive(SessionImpl.java:917) [exo.jcr.component.core-1.15.0-Beta01.jar:1.15.0-Beta01]
      at org.exoplatform.services.jcr.impl.core.ItemImpl.checkValid(ItemImpl.java:157) [exo.jcr.component.core-1.15.0-Beta01.jar:1.15.0-Beta01]
      ... 61 more

      The bulk of the page loads ok, but there are some resources that aren't loaded because of this error.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mwringe Matt Wringe
                  Reporter:
                  kenfinni Ken Finnigan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: