Hi Laurent, in line 345 is another exception catched and rethrown. Can you please provide information about this original exception?
Thanks Carsten > -----Original Message----- > From: Laurent Trillaud [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 06, 2003 10:32 AM > To: [EMAIL PROTECTED] > Subject: [portal] NPE when using more than 1 applications > > > Hi > The goal is to retrieved handler application information inside the > portal page by an action > > The application is declare like this : > <authentication-manager> > <handlers> > <handler name="portalhandler"> > <redirect-to uri="cocoon:/login" /> > <authentication > uri="cocoon:raw:/sunrise-authuser" /> > <applications> > <application loadondemand="true" > name="portal"> > <configuration name="portal"> > <profiles>... > </profiles> > </configuration> > </application> > <application name="myapp"> > <load > uri="cocoon:raw:/myapp/load-myapp"/> > </application> > </applications> > </handler> > </handlers> > </authentication-manager> > > Myapp load is loaded succesfuly at login > > Now I use it like this: > > <map:match pattern="portal"> > <map:act type="auth-protect"> > <map:parameter name="handler" value="portalhandler" /> > <map:parameter name="application" value="myapp" /> > > <map:act type="xsp-action" src="myAction.xsp"> > <map:generate type="portal" label="content"> > <map:parameter name="portal-name" value="portal" /> > </map:generate> > <map:transform src="{global:skin}styles/portal-page.xsl" /> > <map:transform type="cinclude" /> > <map:transform type="encodeURL" /> > <map:serialize type="html" /> > </map:act> > <map:redirect-to uri="logout"/> > </map:act> > </map:match> > > I have change the application name from portal to myapp to get my > context. In fact I got also the portal context because it is declare as > module. > At this point I have both authentication and application in session. > But I got this Null pointer exception, when I access to the portal page. > > Original Exception: > org.apache.avalon.framework.CascadingRuntimeException: Exception during > loading of profile. > at > org.apache.cocoon.portal.profile.impl.AbstractUserProfileManager.getPort > alLayout(AbstractUserProfileManager.java:345) > at > org.apache.cocoon.portal.impl.PortalManagerImpl.showPortal(PortalManager > Impl.java:105) > at > org.apache.cocoon.portal.generation.PortalGenerator.generate(PortalGener > ator.java:86) > > Any ideas? > Laurent > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
