RE: Cocoon 2.0.3 and CastorTransformer

2002-09-23 Thread Michael Homeijer

Werner,

There aren't many mistakes you can make in things like sitemap or your xml
input for castor. I could send you some sitemap snippets or castor xml input
but they are pretty obvious. Looking at the stacktrace, I don't think you
have made any "obvious" mistakes.

I am using Xerces 1.4.4 and have no problems with it.

HTH,
Michael

-Original Message-
From: Werner Guttmann
To: [EMAIL PROTECTED]
Sent: 23-9-2002 10:55 
Subject: Re: Cocoon 2.0.3 and CastorTransformer

Michael,

good news, indeed. I'd appreciate if you could send a working example so
that I
could rule otu my own stupidity ... ;-). Re: Classpath issue, I think
you are
probably right here. In my original email, I asked whether using Xerces
1.4.4
could be the issue ...

Werner

Michael Homeijer wrote:

> Hi,
>
> I have successfully used the CastorTransformer. I am working on a new
> version that can be used to marshal and unmarshal, and doesn't use
> deprecated classes/code anymore. It's not finished, but I allready use
it in
> a project.
>
> I have it working in the latest CVS version of Cocoon, but it will
probably
> also work with 2.03. If you'r interessted, I can mail a copy of the
latest
> source.
>
> You'r problem sounds like a classpath/version issue, otherwise I can
also
> find no explanation for the NoSuchMethodError
>
> HTH,
>
> Michael
>
> -Original Message-----
> From: Werner Guttmann
> To: [EMAIL PROTECTED]
> Sent: 20-9-2002 5:07
> Subject: Re: Cocoon 2.0.3 and CastorTransformer
>
> Thanks, Vadim. Now, please find below the stack trace (just the root
> cause) from
> Catalina's app specific log file. Looking at line 94  of
> CastorTransformer.java
> (from the scratchpad of the Cocoon 2.0.3 source dist) I can see that
it
> fails on
> the line marked with --> <---, but simply woul dnot know enough to
tell
> why ?
>
> Is anybody actually using the CastorTransformer sucessfully ?
>
> Werner
>
>/**
>  * Inner class eventhandler, forward the Castor SAX events
>  * to Cocoon 2 Events
>  */
> CastorEventAdapter = new HandlerBase(){
> public void startElement(String name, AttributeList attributes)
> throws
> SAXException
> {
>   AttributesImpl a= new AttributesImpl();
>   for(int i=0;i 
> a.addAttribute("",attributes.getName(i),attributes.getName(i),
>   "",attributes.getValue(i));
>   }
>
> --->
> CastorTransformer.super.contentHandler.startElement("",name,name,a);
> <
> }
>
> public void characters(char[] chars, int offset, int length)
> throws
> SAXException
> {
>   CastorTransformer.super.contentHandler.characters(chars,
> offset,
> length);
> }
>
> public void endElement(String name) throws SAXException
> {
>
>   CastorTransformer.super.contentHandler.endElement("",
> name,name);
> }
> };
>   }
>
> java.lang.NoSuchMethodError
> at
>
org.apache.cocoon.transformation.CastorTransformer$1.startElement(Castor
> Transformer.java:94)
>
> at
org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)
> at
org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
> at
>
org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTran
> sformer.java:225)
>
> at
>
org.apache.cocoon.transformation.CastorTransformer.process(CastorTransfo
> rmer.java:173)
>
> at
>
org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTr
> ansformer.java:132)
>
> at
>
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java
> :118)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
>
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
> idator.java:1284)
>
> at
>
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
> anner.java:1806)
>
> at
>
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
> h(XMLDocumentScanner.java:1182)
>
> at
>
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
> ner.java:381)
>
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
> at
>
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractS
> treamSourc

Re: Cocoon 2.0.3 and CastorTransformer

2002-09-23 Thread Werner Guttmann

Michael,

good news, indeed. I'd appreciate if you could send a working example so that I
could rule otu my own stupidity ... ;-). Re: Classpath issue, I think you are
probably right here. In my original email, I asked whether using Xerces 1.4.4
could be the issue ...

Werner

Michael Homeijer wrote:

> Hi,
>
> I have successfully used the CastorTransformer. I am working on a new
> version that can be used to marshal and unmarshal, and doesn't use
> deprecated classes/code anymore. It's not finished, but I allready use it in
> a project.
>
> I have it working in the latest CVS version of Cocoon, but it will probably
> also work with 2.03. If you'r interessted, I can mail a copy of the latest
> source.
>
> You'r problem sounds like a classpath/version issue, otherwise I can also
> find no explanation for the NoSuchMethodError
>
> HTH,
>
> Michael
>
> -Original Message-
> From: Werner Guttmann
> To: [EMAIL PROTECTED]
> Sent: 20-9-2002 5:07
> Subject: Re: Cocoon 2.0.3 and CastorTransformer
>
> Thanks, Vadim. Now, please find below the stack trace (just the root
> cause) from
> Catalina's app specific log file. Looking at line 94  of
> CastorTransformer.java
> (from the scratchpad of the Cocoon 2.0.3 source dist) I can see that it
> fails on
> the line marked with --> <---, but simply woul dnot know enough to tell
> why ?
>
> Is anybody actually using the CastorTransformer sucessfully ?
>
> Werner
>
>/**
>  * Inner class eventhandler, forward the Castor SAX events
>  * to Cocoon 2 Events
>  */
> CastorEventAdapter = new HandlerBase(){
> public void startElement(String name, AttributeList attributes)
> throws
> SAXException
> {
>   AttributesImpl a= new AttributesImpl();
>   for(int i=0;i 
> a.addAttribute("",attributes.getName(i),attributes.getName(i),
>   "",attributes.getValue(i));
>   }
>
> --->
> CastorTransformer.super.contentHandler.startElement("",name,name,a);
> <
> }
>
> public void characters(char[] chars, int offset, int length)
> throws
> SAXException
> {
>   CastorTransformer.super.contentHandler.characters(chars,
> offset,
> length);
> }
>
> public void endElement(String name) throws SAXException
> {
>
>   CastorTransformer.super.contentHandler.endElement("",
> name,name);
> }
> };
>   }
>
> java.lang.NoSuchMethodError
> at
> org.apache.cocoon.transformation.CastorTransformer$1.startElement(Castor
> Transformer.java:94)
>
> at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)
> at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
> at
> org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTran
> sformer.java:225)
>
> at
> org.apache.cocoon.transformation.CastorTransformer.process(CastorTransfo
> rmer.java:173)
>
> at
> org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTr
> ansformer.java:132)
>
> at
> org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java
> :118)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
> org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
> idator.java:1284)
>
> at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
> anner.java:1806)
>
> at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
> h(XMLDocumentScanner.java:1182)
>
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
> ner.java:381)
>
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
> at
> org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
> at
> org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractS
> treamSource.java:206)
>
> at
> org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
> 43)
> at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
> ngEventPipeline.java:250)
>
> at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
> ingStreamPipeline.java:399)
>
> at
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
> SerializeNode.java:153)
>
> at
> 

RE: Cocoon 2.0.3 and CastorTransformer

2002-09-21 Thread Michael Homeijer

Hi,

I have successfully used the CastorTransformer. I am working on a new
version that can be used to marshal and unmarshal, and doesn't use
deprecated classes/code anymore. It's not finished, but I allready use it in
a project.

I have it working in the latest CVS version of Cocoon, but it will probably
also work with 2.03. If you'r interessted, I can mail a copy of the latest
source.

You'r problem sounds like a classpath/version issue, otherwise I can also
find no explanation for the NoSuchMethodError

HTH,

Michael

-Original Message-
From: Werner Guttmann
To: [EMAIL PROTECTED]
Sent: 20-9-2002 5:07 
Subject: Re: Cocoon 2.0.3 and CastorTransformer

Thanks, Vadim. Now, please find below the stack trace (just the root
cause) from
Catalina's app specific log file. Looking at line 94  of
CastorTransformer.java
(from the scratchpad of the Cocoon 2.0.3 source dist) I can see that it
fails on
the line marked with --> <---, but simply woul dnot know enough to tell
why ?

Is anybody actually using the CastorTransformer sucessfully ?

Werner

   /**
 * Inner class eventhandler, forward the Castor SAX events
 * to Cocoon 2 Events
 */
CastorEventAdapter = new HandlerBase(){
public void startElement(String name, AttributeList attributes)
throws
SAXException
{
  AttributesImpl a= new AttributesImpl();
  for(int i=0;i 
CastorTransformer.super.contentHandler.startElement("",name,name,a);
<
}

public void characters(char[] chars, int offset, int length)
throws
SAXException
{
  CastorTransformer.super.contentHandler.characters(chars,
offset,
length);
}

public void endElement(String name) throws SAXException
{

  CastorTransformer.super.contentHandler.endElement("",
name,name);
}
};
  }




java.lang.NoSuchMethodError
at
org.apache.cocoon.transformation.CastorTransformer$1.startElement(Castor
Transformer.java:94)

at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
at
org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTran
sformer.java:225)

at
org.apache.cocoon.transformation.CastorTransformer.process(CastorTransfo
rmer.java:173)

at
org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTr
ansformer.java:132)

at
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java
:118)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
idator.java:1284)

at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
anner.java:1806)

at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
h(XMLDocumentScanner.java:1182)

at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
ner.java:381)

at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
at
org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractS
treamSource.java:206)

at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:1
43)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEventPipeline.java:250)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:399)

at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
SerializeNode.java:153)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:85)

at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:156)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:140)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:144)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:328)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:293)

at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.htt

Re: Cocoon 2.0.3 and CastorTransformer

2002-09-20 Thread Werner Guttmann

Thanks, Vadim. Now, please find below the stack trace (just the root cause) from
Catalina's app specific log file. Looking at line 94  of CastorTransformer.java
(from the scratchpad of the Cocoon 2.0.3 source dist) I can see that it fails on
the line marked with --> <---, but simply woul dnot know enough to tell why ?

Is anybody actually using the CastorTransformer sucessfully ?

Werner

   /**
 * Inner class eventhandler, forward the Castor SAX events
 * to Cocoon 2 Events
 */
CastorEventAdapter = new HandlerBase(){
public void startElement(String name, AttributeList attributes) throws
SAXException
{
  AttributesImpl a= new AttributesImpl();
  for(int i=0;i 
CastorTransformer.super.contentHandler.startElement("",name,name,a);   <
}

public void characters(char[] chars, int offset, int length) throws
SAXException
{
  CastorTransformer.super.contentHandler.characters(chars, offset,
length);
}

public void endElement(String name) throws SAXException
{

  CastorTransformer.super.contentHandler.endElement("", name,name);
}
};
  }




java.lang.NoSuchMethodError
at
org.apache.cocoon.transformation.CastorTransformer$1.startElement(CastorTransformer.java:94)

at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
at
org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTransformer.java:225)

at
org.apache.cocoon.transformation.CastorTransformer.process(CastorTransformer.java:173)

at
org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTransformer.java:132)

at
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)

at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)

at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)

at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:269)
at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:222)
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:206)

at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)

at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)

at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:144)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)

at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)

at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)

at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)

at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at
com.msdw.futopt.expiry.http.ExpiryActionServlet.doPost(ExpiryActionServlet.java:172)

at
com.msdw.futopt.expiry.http.ExpiryActionServlet.doGet(ExpiryActionServle

Re: Cocoon 2.0.3 and CastorTransformer

2002-09-20 Thread Vadim Gritsenko

Werner Guttmann wrote:

>Thanks, Vadim, for pointing this out. I just changed this back to be in line
>with the CASTOR_URI declaration in CastorTransformer.java, i.e. use a
>namespace declaration of
>
>xmlns:castor="http://castor.exolab.org/cocoontransfomer";
>
>in my page. Though now I am facing the same problem as in my original email,
>iow I am still getting a NPE. Any idea why ?
>

No, I don't; and I have not read your original email: I've not worked 
with Castor (yet).

Vadim



>Werner
>
>Vadim Gritsenko wrote:
>
>  
>
>>Werner Guttmann wrote:
>>...
>>
>>
>>
>>>PS Btw, the Castor sample shipped with Cocoon 2.0.3 has an error in the
>>>namespace documentation of the test.xml file, iow it really reads
>>>
>>>
>>>http://castor.exolab.org/cocoontransfomer";>
>>>
>>>  
>>>
>>Actually, this is not error in demo; it's a typo in a transformer
>>itself. Thanks for pointing this out.
>>
>>This namespace typo can easily be fixed because this transformer is
>>still in the scratchpad (== alpha).
>>
>>Vadim
>>...
>>
>>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Cocoon 2.0.3 and CastorTransformer

2002-09-20 Thread Werner Guttmann

Thanks, Vadim, for pointing this out. I just changed this back to be in line
with the CASTOR_URI declaration in CastorTransformer.java, i.e. use a
namespace declaration of

xmlns:castor="http://castor.exolab.org/cocoontransfomer";

in my page. Though now I am facing the same problem as in my original email,
iow I am still getting a NPE. Any idea why ?

Werner

Vadim Gritsenko wrote:

> Werner Guttmann wrote:
> ...
>
> >PS Btw, the Castor sample shipped with Cocoon 2.0.3 has an error in the
> >namespace documentation of the test.xml file, iow it really reads
> >
> >
> >http://castor.exolab.org/cocoontransfomer";>
> >
>
> Actually, this is not error in demo; it's a typo in a transformer
> itself. Thanks for pointing this out.
>
> This namespace typo can easily be fixed because this transformer is
> still in the scratchpad (== alpha).
>
> Vadim
> ...
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Cocoon 2.0.3 and CastorTransformer

2002-09-20 Thread Vadim Gritsenko

Werner Guttmann wrote:
...

>PS Btw, the Castor sample shipped with Cocoon 2.0.3 has an error in the
>namespace documentation of the test.xml file, iow it really reads
>
>
>http://castor.exolab.org/cocoontransfomer";>
>

Actually, this is not error in demo; it's a typo in a transformer 
itself. Thanks for pointing this out.

This namespace typo can easily be fixed because this transformer is 
still in the scratchpad (== alpha).

Vadim
...



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Cocoon 2.0.3 and CastorTransformer

2002-09-19 Thread Werner Guttmann

Alan, thanks, that helped to solve one problem, in other words: I am not
getting the NullPointer exception anymore. Strangely enough, it looks like
the CastorTransformer is not kicking in at all now. Please find below
various fragments of code

from the sitemap:

   
 props/castor-bind.xml
   

and

  

  
  
  

  

And here's my viewAccountNatures.xml:



http://castor.exolab.org/cocoontransformer";>
  
  


With all these configs, I'd expect to see the following output ...



  
1
TRADING
  


but I still get

  
  http://castor.exolab.org/cocoontransformer";>

  

Any other idea ? I am at the end of my knowledge. Looking at various log
files, I can see that a CastorTransformer instrance is being created, added
to the pool, used, returned from the poo, etc. Not asingle exception ,
either

Thanks
Werner

PS Btw, the Castor sample shipped with Cocoon 2.0.3 has an error in the
namespace documentation of the test.xml file, iow it really reads


http://castor.exolab.org/cocoontransfomer";>








when it should be


http://castor.exolab.org/cocoontransformer";> 









Alan Hodgkinson wrote:

> Dear Werner,
>
> > When trying to use CastorTransformer in the following scenario
> >
> > 
> > http://castor.exolab.org/cocoontransfomer";>
> >>  mapping="props/castor-bind.xml" />
> > 
> >
> > I get the following exception:
> >   java.lang.NoSuchMethodError
>
> Check the spelling of the XML namespace.
>
> > cocoontransfomer
>
> You probably meant
>
>   cocoontransformer
>   ^
>
> That said, I'd never heard of the CastorTransformer. Based on your mail
> message I had a look in the scratchpad source and mail archives to find
> out more about it.
>
> In the mail archives, I found a message that mentioned the exact same
> problem.
>
> HTH,
>
> Alan.
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Cocoon 2.0.3 and CastorTransformer

2002-09-18 Thread Alan Hodgkinson


Dear Werner,

> When trying to use CastorTransformer in the following scenario
> 
> 
> http://castor.exolab.org/cocoontransfomer";>
> mapping="props/castor-bind.xml" />
> 
> 
> I get the following exception:
>   java.lang.NoSuchMethodError

Check the spelling of the XML namespace.

> cocoontransfomer

You probably meant 

  cocoontransformer
  ^

That said, I'd never heard of the CastorTransformer. Based on your mail 
message I had a look in the scratchpad source and mail archives to find 
out more about it. 

In the mail archives, I found a message that mentioned the exact same 
problem. 

HTH,

Alan.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Cocoon 2.0.3 and CastorTransformer

2002-09-18 Thread Werner Guttmann

Hi,

I am trying to use Cocoon 2.0.3 (Solaris 8, Java 1.3.1_03) with Castor
XML to have an object model inserted into a Cocoon pipeline for further
processing/transformation.

When trying to use CastorTransformer in the following scenario



http://castor.exolab.org/cocoontransfomer";>
  


I get the following exception:

java.lang.NoSuchMethodError
at
org.apache.cocoon.transformation.CastorTransformer$1.startElement(CastorTransformer.java:94)

at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:876)

at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)

at
org.apache.cocoon.transformation.CastorTransformer.insertBean(CastorTransformer.java:225)

at
org.apache.cocoon.transformation.CastorTransformer.process(CastorTransformer.java:173)

at
org.apache.cocoon.transformation.CastorTransformer.startElement(CastorTransformer.java:132)

at
org.apache.cocoon.www.xml.view_account_natures_from_castor_xml.generate(view_account_natures_from_castor_xml.java:109)

at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:258)

at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)

at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)

at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140)

at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)

at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:144)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:328)

at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)

at org.apache.cocoon.Cocoon.process(Cocoon.java:575)

It seems like I've got things configured correctly as I can see in the
stack trace that the CastorTransformer kicks in. I just cannot get my
head around the NullPointerException per se. Any idea what mightbe going
wrong ?

Could this be a problem related to

a) the version of Castor I am using (i.e. 0.9.3.9)
b) the version of Xerces I am using (1.4.4)

Thanks
Werner


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>