You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by jtbamcai <jt...@bipt106.bi.ehu.es> on 2003/01/10 14:30:07 UTC
problem accessing xml files
Hi,
I'm trying to access to some data in a xml file. But when the file
references some schema:
<manifest xmlns = "http://www.imsglobal.org/xsd/imscp_v1p1"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "http://www.imsglobal.org/xsd/imscp_v1p1
Schemas/imscp_v1p1p3.xsd"
>
,cocoon throws an error like this:
stack-trace
java.lang.NullPointerException
at
clases.ametzaga.proyecto.ControlContenido.act(ControlContenido.java:71)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActionSetNode.call(ActionSetNode.java:177)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActSetNode.invoke(ActSetNode.java:111)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:162)
But if I delete all instances from the xml document to all the schemas,
the application runs well.
<manifest>
Thanks in advance,
Iker.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: problem accessing xml files
Posted by Joerg Heinicke <jo...@gmx.de>.
jtbamcai wrote:
> Hi,
> I'm trying to access to some data in a xml file. But when the file
> references some schema:
>
> <manifest xmlns = "http://www.imsglobal.org/xsd/imscp_v1p1"
> xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation = "http://www.imsglobal.org/xsd/imscp_v1p1
> Schemas/imscp_v1p1p3.xsd"
> >
> ,cocoon throws an error like this:
>
> stack-trace
>
> java.lang.NullPointerException
> at
> clases.ametzaga.proyecto.ControlContenido.act(ControlContenido.java:71)
But isn't this your own class, so a not-Cocoon class? How does the java
code look like?
Joerg
> at
> org.apache.cocoon.components.treeprocessor.sitemap.ActionSetNode.call(ActionSetNode.java:177)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.ActSetNode.invoke(ActSetNode.java:111)
> at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
> at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:162)
>
> But if I delete all instances from the xml document to all the schemas,
> the application runs well.
> <manifest>
>
> Thanks in advance,
> Iker.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>