XML mapping inheritance problem; missing class indicator field

Advertisement
Hi!
I am currently working on a project which involves mapping a large domain model on a XSD schema. For this we use Toplink 10.1.3.1 which is mostly great. But now I have a problem while wanting to use class inheritance.
In my XSD I have the following defined
<xs:complexType name="Traject">
     <xs:sequence>
          <xs:element name="SoortTraject" type="SoortTraject"/>
     </xs:sequence>
</xs:complexType>
<xs:complexType name="SpecialTraject">
     <xs:complexContent>
          <xs:extension base="Traject">
               <xs:sequence>
                             [some elements] 
               </xs:sequence>
          </xs:extension>
     </xs:complexContent>
</xs:complexType>My XML is an implementation of this XSD and looks like this
<Trajecten>
        <Traject xsi:type="SpecialTraject">
                 [implementation of the elements]
         </Traject>
</Trajecten>My domain model corresponts to the XSD, so there is a Traject object and an inherited SpecialTraject object.
In the mapping I used the Advanced properties->inheritance on both descriptors telling the Traject descriptor that it was the 'Root Parent Descriptor' ('Use class indicator field' -> 'use XML Schema Type attribute', 'Use class indicator dictionary') and the SpecialTraject what it Child Descriptor was ('Traject').
When I test my mapping it always results in the same error (no matter how I configure this inheritance mapping). It says :
[TOPLINK-44] missing class indicator field
Descriptor: XMLDescriptor(Traject --> [])What am I doing wrong? Does anybody know a sollution?
Best regards,
Jouke Stoel
Developer
Advertisement

Replay

This is the changed XML descriptor file. When I deploy the file it automaticly overrides the old file so it ain't possible that I was still using the wrong file
<toplink:class-indicator-mappings>
    <toplink:class-indicator-mapping>
        <toplink:class>Traject</toplink:class>
        <toplink:class-indicator xsi:type="xsd:string">Traject</toplink:class-indicator>
    </toplink:class-indicator-mapping>
    <toplink:class-indicator-mapping>
        <toplink:class>SpecialTraject</toplink:class>
        <toplink:class-indicator xsi:type="xsd:string">SpecialTraject</toplink:class-indicator>
    </toplink:class-indicator-mapping>
</toplink:class-indicator-mappings>I have posted the stacktrace but I had to translate a bit because my exception was in Dutch :)
Locale is a great invention
Exception [TOPLINK-44] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DescriptorException
Exception description: Missing class indicator field of database row [UnmarshalRecord()].
Descriptor: XMLDescriptor(Traject --> [])
     at oracle.toplink.exceptions.DescriptorException.missingClassIndicatorField(DescriptorException.java:887)
     at oracle.toplink.internal.ox.QNameInheritancePolicy.classFromRow(QNameInheritancePolicy.java:84)
     at oracle.toplink.internal.ox.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:13)
     at oracle.toplink.internal.ox.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:62)
     at oracle.toplink.ox.record.UnmarshalRecord.startElement(UnmarshalRecord.java:352)
     at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:205)
     at oracle.toplink.internal.ox.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:189)
     at oracle.toplink.internal.ox.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:147)
     at oracle.toplink.ox.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:228)
.

Inheritance - Changing Persisted Class

Hello, I am using inheritance on the following class hierarchy. I am using a class indicator field. AbstractBase -->Concrete_1 -->Concrete_2 I have an existing Concrete_1 and need to change it to Concrete_2, but without deleting Concrete_1 and creat

Return Order incomplete because of missing address indicator (VBPA-ADRDA)

Hello, Using the VA02 to create a subsequent retun order results in a complete return order created. However, when I use BAPI BAPI_CUSTOMERRETURN_CREATE to create the return order, the incompletion log identifies a missing address indicator   (VBPA-A

XML MAPPING - swf not updating

When I make a change to the xml file it is not picking up the change in my published swf file.  When I open the project in CX and refresh the mapping updates. So it is connected but when I click on "refresh" on the sxf it is not updating. I have

Attempt to process file failed with Exception in XML Parser-format problem

Hi all, Iam getting an unusual error in the J2EE stack in XI. And the message is: 006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Er

Missing class error in AIA11g O2C PIP/

Hi All, I have installed SOA Suite 11g and deployed AIA3.1 O2C Comms PIP. After deployment, on invoking any service i get the below error and the transaction fails. Can someone tell if there is any other configuration required. Any information would

OracleAS 10.1.3 missing class error

Hi When I deploy my ear file on a newly installed OracleAS 10.1.3 I get the following error. I used to deploy the same ear file on previous version of OracleAS 10.1.2 and it worked fine. Please let me know how to fix this problem. Thanks in advance.

Missing classes from the javax.swing package?

Can anyone throw any light on what appears to be a missing class from the javax.swing package? When CelsiusConverter.java from The Swing Tutorial (code fragment shown below) is compiled the JFrame class can't be found. import java.awt.*; import java.

Caused by: oracle.xml.parser.v2.XMLParseException: '=' missing in attribute

This is a Bursting problem under EBS 5.6.3. In production we have 5.6.2 and since our development system to 5.6.3 has been upgraded, the following error occurs on every single Burst being done using the Concurrent Manager only: Caused by: oracle.xml.

Message Indicator Options - Can I turn off missed calls indicator, but keep indicator for

Can I turn off missed calls indicator, but keep indicator for other messages?  i.e. voicemails etc. Yes you can. Press the green dial key to enter the call log > Menu key > Options > Call Logging and set the logging to NONE and save. 1. If any po

How to improve class-loading performance for missing classes

Hi, do you have any ideas how we can improve the class-loading performance on a weblogic 12c running on jrockit? We spend about 20-30 ms per request in class-loading due to the way hibernate criteria API works (it tries to load quite a lot of missing

[svn:osmf:] 14538: Adding missing class to syndication library.

Revision: 14538 Revision: 14538 Author:   [email protected] Date:     2010-03-02 15:53:21 -0800 (Tue, 02 Mar 2010) Log Message: Adding missing class to syndication library. Added Paths:     osmf/trunk/libs/Syndication/org/osmf/syndication/model/exten

Redetermine pricing while changing order header usage indicator field.

Hi all experts, we have requirement that user will enter Usage indicator field at header of sales order. We need to copy that to all line item and on bases of this we have to determin price. so in which user exit i shoul copy header value to line ite

Read web.xml from a non-servlet class

Hi all, I need to read the web.xml file fron a standard class in a web project. I know how to do it from a servlet or a jsp page, but is it possible to do from a non-servlet class? Thank you, GabrieleIt's a XML file. So best approach would be to use

Retrive message mapping error from java class

Hi, I'm trying to create a scenario that if exist an error in the message mapping step this error will be inserted in a Ztable. I'm thinking in to call to the message mapping from a java class to catch the exception and this java class will be used i

oms_error Message:[oms] empty or null xml map request string.

I'm using mapviewer. I create a stored procedure in oracle that uses the utl_http package to make the map request. The omserver response with an error but when i make a map request via internet explorer the server response its ok and show me the corr

Oracle XML to HSBC XML mapping for R12 AP Check Printing

Hi, Our environment is Oracle APPS R12. We need to send an electronic payment information to HSBC bank.  So this will be generated 'like' a check from the payments process, but for payment types of WIRE, ACH, etc...and the output is an XML file in a

Problem having the cloumn fields in the heading(REP:1317)

Hi I am having a problem having a column field in the Header.I followed the instructions in the help i.e creating a field and then referencing it with a boiler text(&<field name>).But When I run the report I get the error message "REP-1317:

"Master Data Read Class Parameters" field is disabled

Hi. While creating infoobject I switch master data access from Default to Own implementation, after this screen is redisplayed  and only Name of Master Data Read Class field become enabled. I need  Master Data Read Class Parameters field, but it is d

(264361962) Q XMLM-26 Is it possible to insert some logic in XML maps?

Q<XMLM-26> Is it possible to insert some logic in XML maps? A<XMLM-26> Since you have the flexibility to defined the map yourself then yes, you certainly can provide some logic. For more complex situations Workshop also provides you with the f