[opencms-dev] Error with OpenCms.initCmsObject

Marco Arata marco.arata at eng.it
Tue Jun 10 16:29:10 CEST 2008


Hi,
this is my problem:
I call the method OpenCms.initCmsObject as described in JavaDOC API   
(http://files.opencms.org/javadoc/core/org/opencms/main/OpenCms.html)
from an external web appplication (Exo Platform) but  this error occurs:

java.lang.NullPointerException
    at org.opencms.main.OpenCmsCore.initCmsObject(OpenCmsCore.java:1907)
    at org.opencms.main.OpenCmsCore.initCmsObject(OpenCmsCore.java:827)
    at org.opencms.main.OpenCmsCore.initCmsObject(OpenCmsCore.java:852)
    at org.opencms.main.OpenCms.initCmsObject(OpenCms.java:606)
    at 
it.eng.exoportal.opencms.propagator.DocGenPropagator.createUser(DocGenPropagator.java:104)
    at 
it.eng.privacy.propagator.PropagatorUtil.propagateUserCreation(PropagatorUtil.java:40)
    at 
it.eng.privacy.exo.UserHandlerPrivacyImpl.createUser(UserHandlerPrivacyImpl.java:200)
    at 
org.exoplatform.portlets.user.component.UIAccountForm$NewAccountListener.execute(UIAccountForm.java:137)
    at 
org.exoplatform.faces.core.event.ExoActionListener.processAction(ExoActionListener.java:67)
    at 
org.exoplatform.faces.core.event.ExoActionEvent.processListener(ExoActionEvent.java:77)
    at 
javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:641)
    at javax.faces.component.UICommand.broadcast(UICommand.java:297)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    at 
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    at 
org.exoplatform.portlet.faces.lifecycle.ExoLifecycle.phase(ExoLifecycle.java:106)
    at 
org.exoplatform.portlet.faces.lifecycle.ExoLifecycle.execute(ExoLifecycle.java:53)
    at 
org.exoplatform.portlet.faces.ExoFacesPortlet.processFacesLifeCycle(ExoFacesPortlet.java:95)
    at 
org.exoplatform.portlet.faces.ExoFacesPortlet.processAction(ExoFacesPortlet.java:73)
    at 
org.exoplatform.services.portletcontainer.impl.aop.PortletMethodCommand.processAction(PortletMethodCommand.java:20)
    at 
org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)
    at 
org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:26)
    at 
org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.processAction(BaseCommandUnit.java:35)
    at 
org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)
    at 
org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:26)
    at 
org.exoplatform.services.portletcontainer.impl.aop.PortletCacheCommand.processAction(PortletCacheCommand.java:132)
    at 
org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)
    at 
org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:26)
    at 
org.exoplatform.services.portletcontainer.impl.aop.PortletSecurityCommand.processAction(PortletSecurityCommand.java:39)
    at 
org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)
    at 
org.exoplatform.container.component.ExecutionContext.executeNextUnit(ExecutionContext.java:26)
    at 
org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.processAction(BaseCommandUnit.java:35)
    at 
org.exoplatform.services.portletcontainer.impl.aop.BaseCommandUnit.execute(BaseCommandUnit.java:27)
    at 
org.exoplatform.container.component.ExecutionContext.execute(ExecutionContext.java:20)
    at 
org.exoplatform.services.portletcontainer.impl.aop.PortletCommandChain.doProcessAction(PortletCommandChain.java:35)
    at 
org.exoplatform.services.portletcontainer.impl.PortletApplicationHandler.process(PortletApplicationHandler.java:224)
    at 
org.exoplatform.services.portletcontainer.impl.servlet.ServletWrapper.service(ServletWrapper.java:69)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at 
org.exoplatform.services.portletcontainer.impl.PortletContainerDispatcher.dispatch(PortletContainerDispatcher.java:377)
    at 
org.exoplatform.services.portletcontainer.impl.PortletContainerDispatcher.process(PortletContainerDispatcher.java:316)
    at 
org.exoplatform.services.portletcontainer.impl.PortletContainerDispatcher.processAction(PortletContainerDispatcher.java:260)
    at 
org.exoplatform.services.portletcontainer.impl.PortletContainerServiceImpl.processAction(PortletContainerServiceImpl.java:116)
    at 
org.exoplatform.portal.faces.listener.portlet.PortletActionListener.execute(PortletActionListener.java:98)
    at 
org.exoplatform.faces.core.event.ExoActionListener.processAction(ExoActionListener.java:67)
    at 
org.exoplatform.faces.core.event.ExoActionEvent.processListener(ExoActionEvent.java:77)
    at 
org.exoplatform.portal.faces.component.UIPortalComponent.broadcast(UIPortalComponent.java:188)
    at 
org.exoplatform.portal.faces.renderer.html.portlet.PortletRenderer.decodeComponentAction(PortletRenderer.java:53)
    at 
org.exoplatform.portal.faces.renderer.BaseRenderer.decode(BaseRenderer.java:42)
    at 
org.exoplatform.portal.faces.component.UIPortalComponent.decode(UIPortalComponent.java:107)
    at 
org.exoplatform.faces.core.component.UIExoCommand.processDecodes(UIExoCommand.java:72)
    at 
org.exoplatform.portal.faces.component.UIPortal.processDecodes(UIPortal.java:263)
    at 
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:872)
    at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
    at 
com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at 
org.exoplatform.portal.filter.ExoRequestFilter.doFilter(ExoRequestFilter.java:78)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
    at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:619)

Can you help me?
Thanks a lot in advance. 




More information about the opencms-dev mailing list