Hi Fausto,
Fausto wrote:
I don't know what to send you. What shoud I send?
Can you please create a new issue at
http://jira.codehaus.org/browse/CASTOR
and attach at least the XML schema you are about to read and the Java
class that shows how you are reading in the XML schema using the
SchemaReader class.
Don't you have any idea about what could be rising this error?
Not without having some code here locally to see what exactly you are
doing. Sometimes assessing a stack trace is enough to highlight the
problem, sometimes it is not. If you want us to have a look at your
problem, we need something more substantial.
How does Castor gets or creates the built-in simple types?
Should I send this on devel list?
No, please do attach the relevant files to a new Jira issue.
Thank you,
Fausto.
On Tue, Mar 18, 2008 at 5:19 PM, Werner Guttmann
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
Hi,
not sure about the source of this problem, to be honest. Can you please
create a new JIra issue, and attach all relevant files so that we can
try to replay your problem.
Thanks
Werner
PS In general, there's no difference between a SVN checkout for a
release and a source distribution. But please keep in mind that a
checkout against SVN trunk will produce a code base that most definitely
will have changed since e.g. 1.2 your case.
Fausto wrote:
> Hi,
>
> I'm trying to debug another issue I was having, than I downloaded the
> source for Castor 1.2, instead of checkout. Please, let me know if
> checking out would solve this issue.
>
> While calling the SchemaReader.read() method, I get this exception:
>
> org.exolab.castor.xml.schema.SchemaException: An error occured at
line:
> 9: Error: The schema built in types could not be loaded or created.;
> org.exolab.castor.mapping.MappingException: Nested error:
> org.exolab.castor.xml.MarshalException
> at
>
org.exolab.castor.xml.schema.reader.IncludeUnmarshaller.<init>(IncludeUnmarshaller.java:177)
> at
>
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:536)
> at
>
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:255)
> at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
> at
>
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
> at
>
org.exolab.castor.xml.schema.reader.SchemaReader.read(SchemaReader.java:304)
> at
soapclient.SampleXMLCreator.readSchema(SampleXMLCreator.java:52)
> at soapclient.SampleXMLCreator.fetch(SampleXMLCreator.java:58)
> at
>
soapclient.SampleXMLCreatorView.btnFetchXSDActionPerformed(SampleXMLCreatorView.java:155)
> at
>
soapclient.SampleXMLCreatorView.access$2(SampleXMLCreatorView.java:153)
> at
>
soapclient.SampleXMLCreatorView$4.actionPerformed(SampleXMLCreatorView.java:100)
> at
>
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
> at
>
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
> at
>
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
> at
>
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
> at
>
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
> at java.awt.Component.processMouseEvent(Component.java:6038)
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
> at java.awt.Component.processEvent(Component.java:5803)
> at java.awt.Container.processEvent(Container.java:2058)
> at java.awt.Component.dispatchEventImpl(Component.java:4410)
> at java.awt.Container.dispatchEventImpl(Container.java:2116)
> at java.awt.Component.dispatchEvent(Component.java:4240)
> at
>
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
> at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
> at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
> at java.awt.Container.dispatchEventImpl(Container.java:2102)
> at java.awt.Window.dispatchEventImpl(Window.java:2429)
> at java.awt.Component.dispatchEvent(Component.java:4240)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
> at
>
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
> at
>
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
> at
>
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
> at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
> at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
> Caused by: org.exolab.castor.xml.XMLException: An error occured
at line:
> 9: Error: The schema built in types could not be loaded or created.;
> org.exolab.castor.mapping.MappingException: Nested error:
> org.exolab.castor.xml.MarshalException
> at
>
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:258)
> at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
> at
>
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
> at
>
org.exolab.castor.xml.schema.reader.IncludeUnmarshaller.<init>(IncludeUnmarshaller.java:171)
> ... 42 more
>
> I'm not sure if my code is correctly configured to run. Is there any
> guide where I can check the steps necessary to run the code I've got?
>
> Thank you,
> Fausto.
>
> --
>
> Obrigado,
> Fausto.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Obrigado,
Fausto.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email