[JBoss JIRA] (GTNWSRP-258) WSRP producer as 2-node cluster with loadbalancer - registration issue
by Michal Vanco (Created) (JIRA)
WSRP producer as 2-node cluster with loadbalancer - registration issue
----------------------------------------------------------------------
Key: GTNWSRP-258
URL: https://issues.jboss.org/browse/GTNWSRP-258
Project: GateIn WSRP
Issue Type: Task
Components: Producer
Affects Versions: 2.1.0-Beta08
Environment: EPP5.2.0 ER05
Reporter: Michal Vanco
Assignee: Chris Laprun
Fix For: 2.1.0-CR01
Imagine/configure the environment: producer as 2-node cluster with loadbalancer + 1 consumer.
You register new consumer at consumer node with WSDL from loadbalancer. Loadbalancer points to one of nodes (let's wait node1) and registration is done with node1.
btw. WSDL on loadbalancer directly points to one of nodes (there is node1 or node2 at all URLs)
You put some remote portlet on page (communication is between consumer+node1 through loadbalancer), do failover - stop node1.
At this moment you would expect that remote portlet is still available, but it's not because consumer is registered with node1.
It means that after refresh of page with remote portlet -> portlet is not displayed.
You have to go to WSRP admin and refresh consumer (with WSDL of loadbalancer), now the question:
- what is expected at this moment? Registration on second node? (this should be somehow distributed from killed node)
- when you have 2 cluster nodes started on one machine - you can't continue and refresh won't be successfull (Could not transmit message, Can not connect http client invoker after 1 attempt(s)) - this should be related to unique consumer name registration on producer
- when you have 2 nodes started on different machines - you should be able to refresh, what happens with registration? Is there new registration with second node? What happens when node1 is back? (2 different registrations for same consumer?)
At this moment I've tested 2 nodes at same machine - at this scenario you can't continue using remote portlet and refresh consumer after failover.
I can provide some more details based on reply of expected behavior.
Thanks!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 12 months
[JBoss JIRA] Created: (GTNWSRP-225) org.oasis.wsrp.v2.InvalidRegistration: Invalid registration: in a load balance scenario
by Toshiya Kobayashi (JIRA)
org.oasis.wsrp.v2.InvalidRegistration: Invalid registration: in a load balance scenario
---------------------------------------------------------------------------------------
Key: GTNWSRP-225
URL: https://issues.jboss.org/browse/GTNWSRP-225
Project: GateIn WSRP
Issue Type: Bug
Components: JCR Persistence, Producer
Affects Versions: 2.0.0-GA
Reporter: Toshiya Kobayashi
Assignee: Chris Laprun
- Consumer EPP listening to 127.0.0.1
- Producer EPP listening to 127.0.0.2
- Producer EPP listening to 127.0.0.3
- Apache httpd+mod_jk listening to 127.0.0.4 which is a load-balancer for 127.0.0.2 and 127.0.0.3
I deployed simplesthelloworld with org.gatein.pc.remotable=true to Producer EPPs.
http://anonsvn.jboss.org/repos/gatein/epp/portal/tags/EPP_5_1_0_GA/exampl...
- login as root in Consumer EPP
- Go to 'WSRP'
- Create a consumer with endpoint http://127.0.0.4/wsrp-producer/v2/MarkupService?wsdl
- Go to 'Application Registory' and "Import Applications"
- Add a new page with lb._gatein-simplest-helloworld-5.1.0-epp-GA.SimplestHelloWorldPortlet (remote)
- Access the page
It works fine with sticky session but once failover happens (when one producer EPP down), the next access causes the following Exception in the other producer EPP.
==============
20:51:38,055 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
org.oasis.wsrp.v2.InvalidRegistration: Invalid registration: provided registration handle '8c7bfb890a40d09d34637686fdd2b123' is not registered with this producer
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.gatein.wsrp.WSRPExceptionFactory$ExceptionFactory.newInstance(WSRPExceptionFactory.java:107)
at org.gatein.wsrp.WSRPExceptionFactory.createWSException(WSRPExceptionFactory.java:75)
at org.gatein.wsrp.WSRPExceptionFactory.throwWSException(WSRPExceptionFactory.java:63)
at org.gatein.wsrp.producer.handlers.RegistrationHandler.throwInvalidRegistrationFault(RegistrationHandler.java:373)
at org.gatein.wsrp.producer.handlers.RegistrationHandler.getRegistrationFrom(RegistrationHandler.java:337)
at org.gatein.wsrp.producer.WSRPProducerImpl.getRegistrationOrFailIfInvalid(WSRPProducerImpl.java:505)
at org.gatein.wsrp.producer.handlers.processors.RequestProcessor.prepareInvocation(RequestProcessor.java:103)
at org.gatein.wsrp.producer.handlers.processors.RenderRequestProcessor.<init>(RenderRequestProcessor.java:62)
at org.gatein.wsrp.producer.handlers.processors.ProcessorFactory.getProcessorFor(ProcessorFactory.java:53)
at org.gatein.wsrp.producer.handlers.MarkupHandler.getMarkup(MarkupHandler.java:105)
at org.gatein.wsrp.producer.WSRPProducerImpl.getMarkup(WSRPProducerImpl.java:205)
at org.gatein.wsrp.endpoints.v2.MarkupEndpoint.getMarkup(MarkupEndpoint.java:149)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:120)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:240)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:468)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:293)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:203)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:129)
at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.gatein.wsrp.servlet.ServletAccessFilter.doFilter(ServletAccessFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:672)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
at java.lang.Thread.run(Thread.java:619)
20:51:38,587 ERROR [ChromatticSessionImpl] Attempt to insert context EntityContext[state=ObjectStatus[status=TRANSIENT],mapper=EntityMapper[class=class org.gatein.portal.wsrp.state.producer.registrations.mapping.ConsumerMapping,typeName=wsrp:consumer]] as an existing child with name tkobayas_WSRP_v2_version child of node /wsrp:consumersandgroups
20:51:38,588 ERROR [STDERR] org.chromattic.api.DuplicateNameException: Attempt to insert context EntityContext[state=ObjectStatus[status=TRANSIENT],mapper=EntityMapper[class=class org.gatein.portal.wsrp.state.producer.registrations.mapping.ConsumerMapping,typeName=wsrp:consumer]] as an existing child with name tkobayas_WSRP_v2_version child of node /wsrp:consumersandgroups
20:51:38,589 ERROR [STDERR] at org.chromattic.core.DomainSessionImpl._persist(DomainSessionImpl.java:211)
20:51:38,589 ERROR [STDERR] at org.chromattic.core.DomainSessionImpl._persist(DomainSessionImpl.java:186)
20:51:38,589 ERROR [STDERR] at org.chromattic.core.DomainSession.persist(DomainSession.java:396)
20:51:38,589 ERROR [STDERR] at org.chromattic.core.EntityContext.addChild(EntityContext.java:234)
20:51:38,589 ERROR [STDERR] at org.chromattic.core.EntityContext.addChild(EntityContext.java:224)
20:51:38,589 ERROR [STDERR] at org.chromattic.core.mapper.onetomany.hierarchical.AnyChildList.add(AnyChildList.java:87)
20:51:38,589 ERROR [STDERR] at java.util.AbstractList.add(AbstractList.java:91)
20:51:38,589 ERROR [STDERR] at org.gatein.portal.wsrp.state.producer.registrations.JCRRegistrationPersistenceManager.internalCreateConsumer(JCRRegistrationPersistenceManager.java:155)
20:51:38,589 ERROR [STDERR] at org.gatein.registration.AbstractRegistrationPersistenceManager.createConsumer(AbstractRegistrationPersistenceManager.java:44)
20:51:38,589 ERROR [STDERR] at org.gatein.registration.impl.RegistrationManagerImpl.createConsumer(RegistrationManagerImpl.java:112)
20:51:38,589 ERROR [STDERR] at org.gatein.registration.impl.RegistrationManagerImpl.getOrCreateConsumer(RegistrationManagerImpl.java:274)
20:51:38,589 ERROR [STDERR] at org.gatein.registration.impl.RegistrationManagerImpl.addRegistrationTo(RegistrationManagerImpl.java:93)
20:51:38,589 ERROR [STDERR] at org.gatein.wsrp.producer.handlers.RegistrationHandler.register(RegistrationHandler.java:99)
20:51:38,589 ERROR [STDERR] at org.gatein.wsrp.producer.WSRPProducerImpl.register(WSRPProducerImpl.java:237)
20:51:38,589 ERROR [STDERR] at org.gatein.wsrp.endpoints.v2.RegistrationEndpoint.register(RegistrationEndpoint.java:76)
20:51:38,589 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
20:51:38,589 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
20:51:38,589 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
20:51:38,589 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
20:51:38,589 ERROR [STDERR] at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:120)
20:51:38,589 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:240)
20:51:38,589 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:468)
20:51:38,589 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:293)
20:51:38,590 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:203)
20:51:38,590 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:129)
20:51:38,590 ERROR [STDERR] at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
20:51:38,590 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
20:51:38,590 ERROR [STDERR] at org.gatein.wsrp.servlet.ServletAccessFilter.doFilter(ServletAccessFilter.java:54)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
20:51:38,590 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
20:51:38,590 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
20:51:38,590 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
20:51:38,590 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
20:51:38,590 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
20:51:38,590 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
20:51:38,590 ERROR [STDERR] at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:672)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
20:51:38,590 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
20:51:38,590 ERROR [STDERR] at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
20:51:38,590 ERROR [STDERR] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
20:51:38,590 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
20:51:38,590 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
20:51:38,593 ERROR [STDERR] java.lang.NullPointerException
20:51:38,594 ERROR [STDERR] at org.gatein.portal.wsrp.state.producer.registrations.JCRRegistrationPersistenceManager.internalCreateRegistration(JCRRegistrationPersistenceManager.java:116)
20:51:38,594 ERROR [STDERR] at org.gatein.registration.AbstractRegistrationPersistenceManager.addRegistrationFor(AbstractRegistrationPersistenceManager.java:132)
20:51:38,594 ERROR [STDERR] at org.gatein.registration.impl.RegistrationManagerImpl.addRegistrationTo(RegistrationManagerImpl.java:96)
20:51:38,594 ERROR [STDERR] at org.gatein.wsrp.producer.handlers.RegistrationHandler.register(RegistrationHandler.java:99)
20:51:38,594 ERROR [STDERR] at org.gatein.wsrp.producer.WSRPProducerImpl.register(WSRPProducerImpl.java:237)
20:51:38,594 ERROR [STDERR] at org.gatein.wsrp.endpoints.v2.RegistrationEndpoint.register(RegistrationEndpoint.java:76)
20:51:38,594 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
20:51:38,594 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
20:51:38,594 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
20:51:38,594 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
20:51:38,594 ERROR [STDERR] at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:120)
20:51:38,594 ERROR [STDERR] at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:240)
20:51:38,594 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:468)
20:51:38,594 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:293)
20:51:38,594 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:203)
20:51:38,594 ERROR [STDERR] at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:129)
20:51:38,594 ERROR [STDERR] at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
20:51:38,594 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
20:51:38,594 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
20:51:38,594 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
20:51:38,594 ERROR [STDERR] at org.gatein.wsrp.servlet.ServletAccessFilter.doFilter(ServletAccessFilter.java:54)
20:51:38,594 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
20:51:38,594 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
20:51:38,594 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
20:51:38,594 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
20:51:38,594 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
20:51:38,594 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
20:51:38,594 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
20:51:38,594 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
20:51:38,595 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
20:51:38,595 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
20:51:38,595 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
20:51:38,595 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
20:51:38,595 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
20:51:38,595 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
20:51:38,595 ERROR [STDERR] at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:672)
20:51:38,595 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
20:51:38,595 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
20:51:38,595 ERROR [STDERR] at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
20:51:38,595 ERROR [STDERR] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
20:51:38,595 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
20:51:38,595 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
20:51:38,596 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
org.oasis.wsrp.v2.OperationFailed: Could not register consumer named 'tkobayas WSRP v2 version' Cause: Must pass a non null Registration
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.gatein.wsrp.WSRPExceptionFactory$ExceptionFactory.newInstance(WSRPExceptionFactory.java:107)
at org.gatein.wsrp.WSRPExceptionFactory.createWSException(WSRPExceptionFactory.java:75)
at org.gatein.wsrp.WSRPExceptionFactory.throwWSException(WSRPExceptionFactory.java:63)
at org.gatein.wsrp.producer.handlers.RegistrationHandler.register(RegistrationHandler.java:106)
at org.gatein.wsrp.producer.WSRPProducerImpl.register(WSRPProducerImpl.java:237)
at org.gatein.wsrp.endpoints.v2.RegistrationEndpoint.register(RegistrationEndpoint.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.wsf.container.jboss50.invocation.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:120)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:240)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:468)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:293)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:203)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:129)
at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.gatein.wsrp.servlet.ServletAccessFilter.doFilter(ServletAccessFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:672)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Must pass a non null Registration
at org.gatein.common.util.ParameterValidation.throwIllegalArgExceptionIfNull(ParameterValidation.java:155)
at org.gatein.registration.impl.ConsumerImpl.addRegistration(ConsumerImpl.java:178)
at org.gatein.registration.AbstractRegistrationPersistenceManager.addRegistrationFor(AbstractRegistrationPersistenceManager.java:133)
at org.gatein.registration.impl.RegistrationManagerImpl.addRegistrationTo(RegistrationManagerImpl.java:96)
at org.gatein.wsrp.producer.handlers.RegistrationHandler.register(RegistrationHandler.java:99)
... 38 more
=======================
It looks to me that it's just because the registration is not shared among the cluster.
RegistrationPersistenceManagerImpl.getRegistration() looks at only internal Map 'registrations'. I guess JCRRegistrationPersistenceManager should override the method to reload 'registrations' from JCR store when it cannot find the registration in 'registrations'.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 12 months
[JBoss JIRA] Created: (GTNWSRP-243) "WSSecurityException: Password child expected" when register consumer in Liferay portal
by Michal Vanco (JIRA)
"WSSecurityException: Password child expected" when register consumer in Liferay portal
---------------------------------------------------------------------------------------
Key: GTNWSRP-243
URL: https://issues.jboss.org/browse/GTNWSRP-243
Project: GateIn WSRP
Issue Type: Bug
Affects Versions: 2.1.0-Beta05
Environment: EPP 5.2.0 ER01, Liferay 6.0.6 on jboss 5.1.0
Reporter: Michal Vanco
Assignee: Chris Laprun
Priority: Minor
Fix For: 2.1.0-CR01
Attachments: wsrp-epp.txt, wsrp-liferay.txt
I've used to test a scenario when GateIn/EPP was producer and LR portal as consumer (and it used to work).
Now when I'm trying to add consumer in LR, error is thrown and consumer isn't registered (logs from both portals are attached).
ERROR [WSSecurityDispatcher] Internal error occured handling inbound message:
org.jboss.ws.extensions.security.exception.WSSecurityException: Password child expected in UsernameToken element
Btw. I've also reported issue we had before (GTNWSRP-75) and it should be fixed already in trunk http://issues.liferay.com/browse/LPS-19360
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years