I created a jira issue for this, and attached the
relevant files:
http://jira.codehaus.org/browse/CASTOR-1884


--- Werner Guttmann <[EMAIL PROTECTED]> wrote:

> Yes, please. Now that 'vanilla' users are allowed to
> create Jira issues
> (again), this should be possible.
> 
> Werner 
> 
> > -----Original Message-----
> > From: S. Sharif [mailto:[EMAIL PROTECTED] 
> > Sent: Freitag, 23. Februar 2007 03:19
> > To: [email protected]
> > Subject: RE: [castor-user] Problem with the 
> > Unmarshaller.unmarshal(org.w3c.dom.Node node)
> method
> > 
> > 
> > So is this a bug in Castor?  Should there be a
> Jira issue 
> > created for this?
> > Thanks.
> > -Saladin
> > 
> > --- Werner Guttmann <[EMAIL PROTECTED]>
> wrote:
> > 
> > > Yes, it looks like the class that internally
> converts the data 
> > > represented by the Dom Node instance is *not*
> capable of 
> > dealing with 
> > > namespaces. Let me have a word with some of my
> peer 
> > committers, and I 
> > > will be back.
> > > 
> > > Werner
> > > 
> > > Werner
> > > 
> > > > -----Original Message-----
> > > > From: S. Sharif [mailto:[EMAIL PROTECTED]
> > > > Sent: Dienstag, 20. Februar 2007 22:35
> > > > To: [email protected]
> > > > Subject: [castor-user] Problem with the 
> > > > Unmarshaller.unmarshal(org.w3c.dom.Node node)
> > > method
> > > > 
> > > > 
> > > > Hi,
> > > > 
> > > > I am trying to unmarshall a
> org.w3c.dom.Document
> > > object using
> > > > the Unmarshaller.unmarshal(org.w3c.dom.Node
> node)
> > > method.
> > > > 
> > > > So I populate an xml into a
> org.w3c.dom.Document
> > > object and
> > > > then I pass it into the unmarshal() method,
> but
> > > then I get
> > > > the following error:
> > > > 
> > > > unable to find FieldDescriptor for
> 'CRITERIAID' in
> > > 
> > > > ClassDescriptor of CRITERIAINPUT at
> > > >
> > >
> >
>
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:622)
> > > > at
> > > >
> > >
> >
>
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:768)
> > > > ....etc.
> > > > 
> > > > 
> > > > But now when I pass in the exact same xml
> using a
> > > FileReader
> > > > into the Unmarshaller.unmarshal(java.io.Reader
> > > reader) It
> > > > works fine without giving any errors.
> > > > 
> > > > Here is the input xml
> > > > 
> > > > <Document
> > > > xmlns="http://www.newjava.com/apps/doRequest";>
> > > >   <CRITERIAINPUT_LIST>
> > > >     <CRITERIAINPUT>
> > > >       <CRITERIAID>1</CRITERIAID>
> > > >     </CRITERIAINPUT>
> > > >   </CRITERIAINPUT_LIST>
> > > > 
> > > > [... more xml tags ...]
> > > > 
> > > > </Document>
> > > > 
> > > > 
> > > > It is interesting to note that when I modify
> the
> > > above xml
> > > > and remove the xmlns namespace from the root
> > > <Document> tag
> > > > 
> > > > <Document>
> > > >   <CRITERIAINPUT_LIST>
> > > >     <CRITERIAINPUT>
> > > >       <CRITERIAID>1</CRITERIAID>
> > > >     </CRITERIAINPUT>
> > > >   </CRITERIAINPUT_LIST>
> > > > 
> > > > [... more xml tags ...]
> > > > 
> > > > </Document>
> > > > 
> > > > 
> > > > and then I run the code with the
> > > > unmarshal(org.w3c.dom.Node node) , it works
> just
> > > fine without
> > > > giving any errors.
> > > > 
> > > > Any idea, why the unmarshal(org.w3c.dom.Node
> node)
> > > method is
> > > > not working when passing in Dom object
> containing
> > > a namespace?
> > > > 
> > > > Thanks.
> > > > 
> > > > -Saladin
> > > > 
> > > > 
> > > >
> > >
> >
>
**********************************************************
> > > > * Saladin Sharif
> > > > * e-mail:  [EMAIL PROTECTED]
> > > > * Visit homepage @
> > > http://gaia.ecs.csus.edu/~sharifs
> > > >
> > >
> >
>
**********************************************************
> > > > 
> > > > 
> > > >  
> > > >
> > >
> >
>
______________________________________________________________
> > > > ______________________
> > > > Sucker-punch spam with award-winning
> protection. 
> > > > Try the free Yahoo! Mail Beta.
> > > >
> > >
> >
>
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
> > > > 
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe from this list please visit:
> > > > 
> > > >     http://xircles.codehaus.org/manage_email
> > > > 
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > > 
> > >     http://xircles.codehaus.org/manage_email
> > > 
> > > 
> > 
> > 
> > 
> >  
> >
>
______________________________________________________________
> > ______________________
> > Need a quick answer? Get one in minutes from
> people who know.
> > Ask your question on www.Answers.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> > 
> >     http://xircles.codehaus.org/manage_email
> > 
> 
>
---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 



 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to