473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Java Castor Exception : The prefix 'xml' is reserved

I got the following exception with Castor: "The prefix 'xml' is reserved
(XML 1.0 Specification) and cannot be declared."
I got this exception using or not a mapping file.
Can anyone tell what it means ?

Here is the stack trace :

java.lang.IllegalArgumentException: The prefix 'xml' is reserved (XML 1.0
Specification) and cannot be declared.

at org.exolab.castor.xml.Namespaces.addNamespace(Name spaces.java:130)

at
org.exolab.castor.xml.UnmarshalHandler.startPrefix Mapping(UnmarshalHandler.j
ava:1953)

at
org.apache.xerces.parsers.AbstractSAXParser.startN amespaceMapping(Unknown
Source)

at org.apache.xerces.parsers.AbstractSAXParser.startE lement(Unknown Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.startEl ement(Unknown Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanStartElement(Unkno
wn Source)

at
org.apache.xerces.impl.XMLDocumentScannerImpl$Cont entDispatcher.scanRootElem
entHook(Unknown Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatc
her.dispatch(Unknown Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown
Source)

at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(U nknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)

at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmar shaller.java:583)

at org.exolab.castor.mapping.Mapping.loadMappingInter nal(Mapping.java:515)

at org.exolab.castor.mapping.Mapping.loadMappingInter nal(Mapping.java:468)

at org.exolab.castor.mapping.Mapping.loadMapping(Mapp ing.java:395)

at Test.main(Test.java:41)

Exception in thread "main"

Jul 20 '05 #1
2 3753
"Christophe Geraud" <no***********@magnus.fr> wrote in message
news:3f***********************@news.free.fr
I got the following exception with Castor: "The prefix 'xml' is
reserved (XML 1.0 Specification) and cannot be declared."


Not knowing your source I can only guess:
You try to insert <xml:foo> elements?

Martin
Jul 20 '05 #2

"Martin Boehm" <ng********@arcor.de> a écrit dans le message de news:
3f***********************@newsread2.arcor-online.net...
"Christophe Geraud" <no***********@magnus.fr> wrote in message
news:3f***********************@news.free.fr
I got the following exception with Castor: "The prefix 'xml' is
reserved (XML 1.0 Specification) and cannot be declared."


Not knowing your source I can only guess:
You try to insert <xml:foo> elements?

Martin


Thanks for answering.
It seems that it came from the classpath (I use JBuilder).
I create a new set of libraries with Castor 9.5.2.0 & Xerces ... and now it
is ok !! ?
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Przemyslaw Wegrzyn | last post by:
Hi! I'm quite new to Python. Is there anything like Castor or JAXB available for Python ? All I have found is generateDS.py, but it seems to be very limited and a bit buggy - it seems to be...
0
by: homi | last post by:
Hi All, I am writing a Java code that uses a XML Config file to configure itself. Sample of the XML file has shown below. I want to have a peace of java code to reads that config file and import...
0
by: George Palmer | last post by:
Hi, I'm writing an xml file using Castor. It looks something like this: <a> .... </a> <b> .... </b>
2
by: timothy ma and constance lee | last post by:
Do anyone know how to popluate xml file to a java object?
0
by: Cees Wesseling | last post by:
For a couple of years I am using now my own data binding tool that can create C++ classes from a DTD. At this moment I need to reconsider this tool since I want to use W3C XML Schemas and need to...
18
by: jacksu | last post by:
I have a simple program to run xpath with xerces 1_2_7 XPathFactory factory = XPathFactory.newInstance(); XPath xPath = factory.newXPath(); XPathExpression xp = xPath.compile(strXpr);...
5
by: David Moskowitz | last post by:
Infoblazer LLC is pleased to release the XX Framework under the LGPL open source license. Version 1.0 is available for immediate download. The XX framework is a configurable, XML-centric...
0
by: manas589 | last post by:
Hi Can any one tell me how to use binding.xml while generating castor bean from an xsd file. i have one xsd file where two element are conflicting. so i thought to use binding file while...
1
by: ksrashmi | last post by:
HI I am getting following exception when i use mxml tags in jsp <%@ taglib uri="FlexTagLib" prefix="mm" %> can any one tell why i am getting this exception type Exception report message...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.