You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lu...@inframation.de on 2003/05/02 22:18:04 UTC

Authentication URI redirect leads to NullpointerException

Hello,

I'm using the latest 2.1 dev Snapshot on Suse 8.1 Linux (also on windows 
xp) with Tomcat 4.1.12. I get the following Exception when redirecting the 
Authentication resource:

java.lang.NullPointerException
                 at 
org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:518)
                 at 
org.apache.cocoon.components.source.impl.SitemapSource.reset(SitemapSource.java:442)
                 at 
org.apache.cocoon.components.source.impl.SitemapSource.recycle(SitemapSource.java:455)
                 at 
org.apache.cocoon.components.source.impl.SitemapSourceFactory.release(SitemapSourceFactory.java:111)
                 at 
org.apache.excalibur.source.impl.SourceResolverImpl.release(SourceResolverImpl.java:331)
                 at 
org.apache.cocoon.components.CocoonComponentManager.release(CocoonComponentManager.java:457)
                 at 
org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:518)
                 at 
org.apache.cocoon.webapps.authentication.components.AuthenticationManager.authenticate(AuthenticationManager.java:479)
                 at 
org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAction.java:121)
                 at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:133)
                 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
                 at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
                 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
                 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:162)
                 at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
                 at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:162)
                 at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325)

Here is the sitemap:

        <map:component-configurations>
                        <map:authentication-manager>
                                <map:handlers>
                                        <map:handler name="gsphandler">
                                                <map:redirect-to uri="
cocoon:/login"/>
                                                <map:authentication uri="
cocoon:raw:/authentication"/>
                                        </map:handler>
                                </map:handlers>
                        </map:authentication-manager>
                </map:component-configurations>
                <map:pipeline>
                        <map:match pattern="authentication">
                                <map:parameter name="parameters" value="
true"/>
                                <map:parameter name="
use-request-parameters" value="true"/>
                                <map:act type="BrowserTest">
                                        <map:redirect-to uri="
http://{request:serverName}:{request:serverPort}/geoservices/AuthenticationServlet?name={request-param:name}&amp;password={request-param:password}&amp;institution={request-param:institution}&amp;remoteHost={request:remoteHost}&amp;remoteAddr={request:remoteAddr}&amp;remoteUser={request:remoteUser}&amp;userAgent={result}
"/>
                                </map:act>
                        </map:match>
                </map:pipeline>

Calling the URL to the Authentication servlet directly in the 
authentication uri of the handler works fine, but then i can't get the 
request parameters. Whats going wrong? Thanks

Lutz
______________________________________

Dipl. Inform.
Lutz Wiggershaus

inframation ag
Europaplatz 4-5, D-44269 Dortmund
Tel: +49 (0) 231 427888-10, Fax: -29

mailto:Lutz.Wiggershaus@inframation.de
______________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org