The introspection does not support JDK 1.2 by default. I was working on
a plugin for JDK 1.2 support, but haven't had time to finish it. It
should be finished before Castor 0.9.5.

--Keith

Christoph Kiehl wrote:
> 
> Hi,
> 
> I have some trouble unmarshalling Collections. I get the following
> Exception:
> 
> ValidationException: element "vec" occurs more than once.
>  at
> org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:468)
>  at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1392)
>  at
> org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
> .java:1436)
>  at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
> LDocumentScanner.java:1205)
>  at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
> java:381)
>  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
> [...]
> 
> My Class looks like this:
> 
> ------------------------------
> public class XMLElement {
> 
>     protected String name;
>     protected Collection vec = new Vector();
> 
>     public XMLElement() {
>     }
> 
>     public String getName() {
>         return this.name;
>     }
> 
>     public void setName(String name) {
>         this.name = name;
>     }
> 
>     public Collection getVec() {
>         return this.vec;
>     }
> 
>     public void setVec(Collection vec) {
>         this.vec = vec;
>     }
> 
> }
> ----------------------
> 
> If I replace Collection with Vector everything works fine ... any ideas??
> 
> Regards
> Christoph
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to