[CDO/Hibernate] Unable to read xml [message #1012826] |
Fri, 22 February 2013 09:44 |
Erdal Karaca Messages: 854 Registered: July 2009 |
Senior Member |
|
|
Hi all,
When starting the server with auditing enabled, we get the following exception:
Caused by: org.xml.sax.SAXParseException; lineNumber: 10854; columnNumber: 13; Content des Elementtyps "subclass" muss "(meta*,tuplizer*,synchronize*,(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,join*,subclass*,loader?,sql-insert?,sql-update?,sql-delete?,fetch-profile*,resultset*,(query|sql-query)*)" entsprechen.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)
... 35 more
This happens with the following model:
<eClassifiers xsi:type="ecore:EClass" name="IDummyEclass" abstract="true" interface="true">
<eAnnotations source="teneo.jpa">
<details key="appinfo" value="@Transient
"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IIdentifiable" abstract="true" interface="true">
<eAnnotations source="teneo.jpa">
<details key="appinfo" value="@MappedSuperclass
"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
iD="true">
<eAnnotations source="teneo.jpa">
<details key="appinfo" value="@Id
@Column(length=36)"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
And we have classes that extend from IDummyEclass AND IIdentifiable.
If we remove the @Transient annotation, it will work again.
Thanks!
|
|
|
Re: [CDO/Hibernate] Unable to read xml [message #1014143 is a reply to message #1012826] |
Mon, 25 February 2013 08:50 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Erdal,
Seems to be a bug, can you post the hbm part around line 10854 in the generated hbm?
gr. Martin
On 02/22/2013 10:44 AM, Erdal Karaca wrote:
> Hi all,
>
> When starting the server with auditing enabled, we get the following exception:
>
>
> Caused by: org.xml.sax.SAXParseException; lineNumber: 10854; columnNumber: 13; Content des Elementtyps "subclass" muss
> "(meta*,tuplizer*,synchronize*,(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,join*,subclass*,loader?,sql-insert?,sql-update?,sql-delete?,fetch-profile*,resultset*,(query|sql-query)*)"
> entsprechen.
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> at org.dom4j.io.SAXReader.read(SAXReader.java:465)
> at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)
> ... 35 more
>
>
> This happens with the following model:
>
>
> <eClassifiers xsi:type="ecore:EClass" name="IDummyEclass" abstract="true" interface="true">
> <eAnnotations source="teneo.jpa">
> <details key="appinfo" value="@Transient
> "/>
> </eAnnotations>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="IIdentifiable" abstract="true" interface="true">
> <eAnnotations source="teneo.jpa">
> <details key="appinfo" value="@MappedSuperclass
> "/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType
> http://www.eclipse.org/emf/2002/Ecore#//EString"
> iD="true">
> <eAnnotations source="teneo.jpa">
> <details key="appinfo" value="@Id
> @Column(length=36)"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
>
>
> And we have classes that extend from IDummyEclass AND IIdentifiable.
> If we remove the @Transient annotation, it will work again.
>
> Thanks!
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
Re: [CDO/Hibernate] Unable to read xml [message #1014157 is a reply to message #1014146] |
Mon, 25 February 2013 09:15 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Erdal,
The generated hbm is traced, see here how to enable that:
http://wiki.eclipse.org/FAQ_for_CDO_and_Net4j#How_can_I_enable_tracing.3F
gr. Martin
On 02/25/2013 10:00 AM, Erdal Karaca wrote:
> Hi Martin,
> This is at server start up when it tries to create the hbm.
> It seems that I cannot export the hbm at this stage.
>
> Thanks!
>
> Martin taal wrote on Mon, 25 February 2013 09:50
>> Seems to be a bug, can you post the hbm part around line 10854 in the generated hbm?
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
Powered by
FUDForum. Page generated in 0.03450 seconds