Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-136

Can't register new user in public mode in special case

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.0-Beta02
    • Fix Version/s: 3.0.0-Beta03
    • Component/s: None
    • Labels:

      Description

      Steps:
      Case 1:

      • Login portal
      • Go to Group Management --> Membership tab --> delete membership is member
      • Sign out
      • Click register in public mode --> input some fields --> save --> unknown error

      Show exception:

      javax.naming.InvalidNameException: Can not create membership record for test because membership type
      is null
      at org.exoplatform.services.organization.jbidm.MembershipDAOImpl.linkMembership(MembershipDA
      OImpl.java:95)
      at org.exoplatform.services.organization.impl.NewUserEventListener.createDefaultUserMembersh
      ips(NewUserEventListener.java:101)
      at org.exoplatform.services.organization.impl.NewUserEventListener.postSave(NewUserEventList
      ener.java:72)
      at org.exoplatform.services.organization.jbidm.UserDAOImpl.postSave(UserDAOImpl.java:293)
      at org.exoplatform.services.organization.jbidm.UserDAOImpl.createUser(UserDAOImpl.java:132)
      at org.exoplatform.webui.organization.UIAccountInputSet.save(UIAccountInputSet.java:126)
      at org.exoplatform.webui.organization.UIAccountForm$SaveActionListener.execute(UIAccountForm
      .java:101)
      at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
      at org.exoplatform.webui.core.lifecycle.UIFormLifecycle.processAction(UIFormLifecycle.java:1
      15)
      at org.exoplatform.webui.core.lifecycle.UIFormLifecycle.processAction(UIFormLifecycle.java:4
      4)
      at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
      at org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle.processAction(UIApplicationLi
      fecycle.java:58)
      at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
      at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:112)
      at org.exoplatform.webui.application.portlet.PortletApplication.processAction(PortletApplica
      tion.java:165)
      at org.exoplatform.webui.application.portlet.PortletApplicationController.processAction(Port
      letApplicationController.java:80)
      at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerI
      mpl.java:557)
      at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:109)
      at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:72)
      at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java
      :505)
      at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatc
      her.java:42)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java
      :196)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttri
      buteConversationInterceptor.java:119)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherIn
      terceptor.java:49)
      at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcher
      Interceptor.java:123)
      at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:8
      2)
      at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
      at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
      at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
      at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
      at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:
      86)
      at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:190)
      at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:
      69)
      at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterc
      eptor.java:77)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportIntercepto
      r.java:69)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.ja
      va:117)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker
      .java:230)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomization
      Interceptor.java:76)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.ja
      va:229)
      at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

      at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvok
      erService.java:152)
      at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInv
      okerService.java:173)
      at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:853)
      at org.exoplatform.portal.webui.application.UIPortletActionListener$ProcessActionActionListe
      ner.execute(UIPortletActionListener.java:98)
      at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
      at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecy
      cle.java:117)
      at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecy
      cle.java:53)
      at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
      at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPorta
      lApplicationLifecycle.java:66)
      at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPorta
      lApplicationLifecycle.java:30)
      at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
      at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:112)
      at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java
      :100)
      at org.exoplatform.web.WebAppController.service(WebAppController.java:147)
      at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
      at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:114)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(T
      hreadLocalSessionProviderInitializedFilter.java:116)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:68)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentit
      yFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilt
      er.java:112)
      at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
      at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
      va:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)

      Case 2:

      • Login portal
      • Create new portal : AAA
      • Change to portal AAA
      • Go to Group Management --> Membership tab --> delete membership is member
      • Sign out
      • Click register in public mode --> nothing happen.

      Show exception:

      WARNING: An error occured while cache user profile
      java.lang.NullPointerException: Username is null
      at org.exoplatform.web.security.Credentials.<init>(Credentials.java:48)
      at org.exoplatform.web.login.PortalLoginController.doGet(PortalLoginController.java:51)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      at org.exoplatform.container.web.AbstractHttpServlet.onService(AbstractHttpServlet.java:165)

      at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:114)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(T
      hreadLocalSessionProviderInitializedFilter.java:116)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:68)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentit
      yFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilt
      er.java:112)
      at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
      at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
      va:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)

      Or

      java.lang.IllegalArgumentException: No empty name accepted
      at org.chromattic.common.JCR.validateName(JCR.java:99)
      at org.chromattic.core.DomainSession.encodeName(DomainSession.java:337)
      at org.chromattic.core.DomainSessionImpl._getChild(DomainSessionImpl.java:436)
      at org.chromattic.core.DomainSession.getChild(DomainSession.java:480)
      at org.chromattic.core.EntityContext.getChild(EntityContext.java:225)
      at org.chromattic.core.mapper.onetomany.hierarchical.AnyChildMap.get(AnyChildMap.java:54)
      at org.gatein.mop.core.api.workspace.SiteContainer.getSite(SiteContainer.java:52)
      at org.gatein.mop.core.api.workspace.WorkspaceImpl.getSite(WorkspaceImpl.java:124)
      at org.exoplatform.portal.pom.config.tasks.PortalConfigTask$Load.run(PortalConfigTask.java:1
      39)
      at org.exoplatform.portal.pom.config.POMSession.execute(POMSession.java:289)
      at org.exoplatform.portal.pom.config.POMSessionManager.execute(POMSessionManager.java:315)
      at org.exoplatform.portal.pom.config.POMDataStorage.execute(POMDataStorage.java:73)
      at org.exoplatform.portal.pom.config.POMDataStorage.getPortalConfig(POMDataStorage.java:84)
      at org.exoplatform.portal.config.UserPortalConfigService.getUserPortalConfig(UserPortalConfi
      gService.java:138)
      at org.exoplatform.portal.application.PortalStateManager.getUserPortalConfig(PortalStateMana
      ger.java:170)
      at org.exoplatform.portal.application.PortalStateManager.restoreUIRootComponent(PortalStateM
      anager.java:104)
      at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java
      :91)
      at org.exoplatform.web.WebAppController.service(WebAppController.java:147)
      at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
      at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:114)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(T
      hreadLocalSessionProviderInitializedFilter.java:116)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:68)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentit
      yFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilt
      er.java:112)
      at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
      at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
      ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
      va:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                truong.le Truong Le
                Reporter:
                hangnguyen Hang Nguyen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified