ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  XML Data Binding with Castor
Subject:   (URGENT)problem with loading mapping.xml
Date:   2006-05-31 22:38:34
From:   rajaraju
Hi All,


1)Please tell me the cause of this problem.


2)how to solve this problem?


i am getting this problem while loading mapping.xml


Error is
there:org.exolab.castor.mapping.MappingException:
Nested error: org.xml.sax.SAXException: The namespace associated with the prefix: xmlns is null.
org.xml.sax.SAXException: The namespace associated
with the prefix: xmlns is null.
at
org.exolab.castor.xml.UnmarshalHandler.resolveNamespace(UnmarshalHandler.java:2751)
at
org.exolab.castor.xml.UnmarshalHandler.processAttribute(UnmarshalHandler.java:2512)
at
org.exolab.castor.xml.UnmarshalHandler.processAttributes(UnmarshalHandler.java:2218)
at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1922)
at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1149)
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.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:291)
at
org.exolab.castor.mapping.Mapping.loadMappingInternal(Mapping.java:296) at
org.exolab.castor.mapping.Mapping.loadMappingInternal(Mapping.java:269)
at
org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:222)
at
com.hcl.scorm.mappingbeans.manifest.organizations.sequencing.TestSeq.main(TestSeq.java:124)


if u want i can send my mapping.xml also.


its urgent so plz help me.


thanks in advance
rajasekhar