cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Baptiste Quenot (JIRA)" <j...@apache.org>
Subject [jira] Closed: (COCOON-1705) LDAPTransformer fails with NPE on attribute change - work fine on 2.1.5.1
Date Thu, 23 Feb 2006 14:05:55 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1705?page=all ]
     
Jean-Baptiste Quenot closed COCOON-1705:
----------------------------------------

    Fix Version: 2.2-dev (Current SVN)
                 2.1.9-dev (current SVN)
     Resolution: Fixed

Fixed in revision 380119

> LDAPTransformer fails with NPE on attribute change - work fine on 2.1.5.1
> -------------------------------------------------------------------------
>
>          Key: COCOON-1705
>          URL: http://issues.apache.org/jira/browse/COCOON-1705
>      Project: Cocoon
>         Type: Bug
>   Components: * Cocoon Core
>     Versions: 2.1.8
>     Reporter: Warrell Harries
>     Assignee: Jean-Baptiste Quenot
>      Fix For: 2.1.9-dev (current SVN), 2.2-dev (Current SVN)
>  Attachments: 20060117-cocoon-ldaptr-exec_element
>
> The following works OK on 2.1.5.1 :-
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <ldapuser xmlns:ldap="http://apache.org/cocoon/LDAP/1.0">
> <ldap:execute-replace>
> 	<ldap:initializer>com.sun.jndi.ldap.LdapCtxFactory</ldap:initializer>
>     <ldap:version>3</ldap:version>
> 	<ldap:serverurl>ldap://ldap.westsussex.gov.uk</ldap:serverurl>
> 	<ldap:searchbase>ou=training,ou=IRT,ou=apps,o=wscc,dc=westsussex,dc=gov,dc=uk</ldap:searchbase>
> 	<ldap:rootdn>cn=root</ldap:rootdn>
> 	<ldap:password>passw0rd</ldap:password>
> 	<ldap:count-limit>0</ldap:count-limit>
> 	<ldap:time-limit>0</ldap:time-limit>
> 	<ldap:filter>(&amp;(uid=irttraining02))</ldap:filter>
> 	<ldap:attribute name="givenname">two</ldap:attribute>
> </ldap:execute-replace>
> </ldapuser>
> but fails with NPE on 2.1.8
> java.lang.NullPointerException
> 	at org.apache.cocoon.transformation.LDAPTransformer$LDAPQuery.execute(LDAPTransformer.java:1264)
> 	at org.apache.cocoon.transformation.LDAPTransformer.executeQuery(LDAPTransformer.java:249)
> 	at org.apache.cocoon.transformation.LDAPTransformer.endExecuteElement(LDAPTransformer.java:288)
> 	at org.apache.cocoon.transformation.LDAPTransformer.endElement(LDAPTransformer.java:781)
> 	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
> 	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
> 	at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:325)
> 	at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
> 	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:578)
> 	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:480)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:120)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
> 	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:248)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
> 	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:248)
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java:679)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message