Hi,

I've created a (fairly large) JibX mapping, which compiles without
problems. However, when a do a test run (create an object, serialize to
XML and then deserialize the same XML), JibX fails with a exception:
"Element "{http://www.atosorigin.com/cmp/cdm}MobileCredentials"; has no
mapping that extends nl.atosorigin.cmp.esb.messages.cdm.UserCredentials"

Based on the description on the main site, I cannot see anything wrong
with the mapping. Any ideas?

Regards,

Jeroen

Mapping:

<?xml version="1.0" encoding="UTF-8"?>

<binding> 
  <mapping name="AuthenticateUserMessage"
class="nl.atosorigin.cmp.esb.messages.cdm.AuthenticateUserMessage"> 
    <namespace uri="http://www.atosorigin.com/cmp/cdm";
default="elements"/>  
    <structure field="customer" usage="optional" name="customer"
type="nl.atosorigin.cmp.esb.messages.cdm.Customer"> 
      <value name="customerid" field="customerid"/>  
      <value name="firstName" field="firstName"/>  
      <value name="lastName" field="lastName"/>  
      <structure name="paymentInformation"> 
        <collection field="paymentInformation" type="java.util.HashSet"
usage="optional"></collection> 
      </structure>  
      <structure name="mediaDevices"> 
        <collection field="mediaDevices" type="java.util.HashSet"
usage="optional"></collection> 
      </structure>  
      <structure field="commercialInformation"
name="commercialInformation"
type="nl.atosorigin.cmp.esb.messages.cdm.CommercialInformation"> 
        <collection field="contentHistory" type="java.util.HashSet"
usage="optional"> 
          <structure name="contentHistory"
type="nl.atosorigin.cmp.esb.messages.cdm.Content"> 
            <value name="contentid" field="contentid"/>  
            <value name="title" field="title" usage="optional"/>  
            <value name="author" field="author" usage="optional"/>  
            <value name="size" field="size" usage="optional"/>  
            <value name="location" field="location"/>  
            <value name="publishDate" field="publishDate"
usage="optional"/>  
            <value name="updateDate" field="updateDate"
usage="optional"/>  
            <value name="summary" field="summary" usage="optional"/>  
            <value name="description" field="description"
usage="optional"/>  
            <value name="cost" field="cost" usage="optional"/>  
            <value name="type" field="type"/>  
            <collection field="tags" type="java.util.HashSet"
usage="optional"> 
              <structure name="tags"
type="nl.atosorigin.cmp.esb.messages.cdm.Tag"> 
                <value name="name" field="name"/> 
              </structure> 
            </collection> 
          </structure> 
        </collection>  
        <value name="loyaltyStatus" field="loyaltyStatus"/>  
        <collection field="tags" type="java.util.HashSet"
usage="optional"> 
          <structure name="tags"
type="nl.atosorigin.cmp.esb.messages.cdm.Tag"> 
            <value name="name" field="name"/> 
          </structure> 
        </collection> 
      </structure>  
      <structure name="memberships"> 
        <collection field="memberships" type="java.util.ArrayList"
usage="optional"></collection> 
      </structure> 
    </structure>  
    <collection field="newContent" type="java.util.ArrayList"
usage="optional"> 
      <structure name="newContent"
type="nl.atosorigin.cmp.esb.messages.cdm.Content"> 
        <value name="contentid" field="contentid"/>  
        <value name="title" field="title" usage="optional"/>  
        <value name="author" field="author" usage="optional"/>  
        <value name="size" field="size" usage="optional"/>  
        <value name="location" field="location"/>  
        <value name="publishDate" field="publishDate"
usage="optional"/>  
        <value name="updateDate" field="updateDate" usage="optional"/>  
        <value name="summary" field="summary" usage="optional"/>  
        <value name="description" field="description"
usage="optional"/>  
        <value name="cost" field="cost" usage="optional"/>  
        <value name="type" field="type"/>  
        <collection field="tags" type="java.util.HashSet"
usage="optional"> 
          <structure name="tags"
type="nl.atosorigin.cmp.esb.messages.cdm.Tag"> 
            <value name="name" field="name"/> 
          </structure> 
        </collection> 
      </structure> 
    </collection>  
    <collection field="advicedContent" type="java.util.ArrayList"
usage="optional"> 
      <structure name="advicedContent"
type="nl.atosorigin.cmp.esb.messages.cdm.Content"> 
        <value name="contentid" field="contentid"/>  
        <value name="title" field="title" usage="optional"/>  
        <value name="author" field="author" usage="optional"/>  
        <value name="size" field="size" usage="optional"/>  
        <value name="location" field="location"/>  
        <value name="publishDate" field="publishDate"
usage="optional"/>  
        <value name="updateDate" field="updateDate" usage="optional"/>  
        <value name="summary" field="summary" usage="optional"/>  
        <value name="description" field="description"
usage="optional"/>  
        <value name="cost" field="cost" usage="optional"/>  
        <value name="type" field="type"/>  
        <collection field="tags" type="java.util.HashSet"
usage="optional"> 
          <structure name="tags"
type="nl.atosorigin.cmp.esb.messages.cdm.Tag"> 
            <value name="name" field="name"/> 
          </structure> 
        </collection> 
      </structure> 
    </collection>  
    <structure name="userCredentials"> 
      <structure field="userCredentials"/> 
    </structure> 
  </mapping>  
  <mapping class="nl.atosorigin.cmp.esb.messages.cdm.Community"
abstract="true"></mapping>  
  <mapping class="nl.atosorigin.cmp.esb.messages.cdm.MediaDevices"
abstract="true"></mapping>  
  <mapping class="nl.atosorigin.cmp.esb.messages.cdm.UserCredentials"
abstract="true"></mapping>  
  <mapping class="nl.atosorigin.cmp.esb.messages.cdm.PaymentInformation"
abstract="true"></mapping>  
  <mapping name="DebetAccount"
class="nl.atosorigin.cmp.esb.messages.cdm.DebetAccount"
extends="nl.atosorigin.cmp.esb.messages.cdm.PaymentInformation"> 
    <structure
map-as="nl.atosorigin.cmp.esb.messages.cdm.PaymentInformation"/>  
    <value name="debetBalance" field="debetBalance"/> 
  </mapping>  
  <mapping name="WebCredentials"
class="nl.atosorigin.cmp.esb.messages.cdm.WebCredentials"
extends="nl.atosorigin.cmp.esb.messages.cdm.UserCredentials"> 
    <structure
map-as="nl.atosorigin.cmp.esb.messages.cdm.UserCredentials"/>  
    <value name="username" field="username"/>  
    <value name="password" field="password"/> 
  </mapping>  
  <mapping name="MobilePhone"
class="nl.atosorigin.cmp.esb.messages.cdm.MobilePhone"
extends="nl.atosorigin.cmp.esb.messages.cdm.MediaDevices"> 
    <structure
map-as="nl.atosorigin.cmp.esb.messages.cdm.MediaDevices"/>  
    <value name="phoneNumber" field="phoneNumber"/>  
    <value name="connectionType" field="connectionType"/> 
  </mapping>  
  <mapping name="WebBrowser"
class="nl.atosorigin.cmp.esb.messages.cdm.WebBrowser"
extends="nl.atosorigin.cmp.esb.messages.cdm.MediaDevices"> 
    <structure
map-as="nl.atosorigin.cmp.esb.messages.cdm.MediaDevices"/>  
    <value name="speed" field="speed"/>  
    <value name="type" field="type"/> 
  </mapping>  
  <mapping name="SportCommunity"
class="nl.atosorigin.cmp.esb.messages.cdm.SportCommunity"
extends="nl.atosorigin.cmp.esb.messages.cdm.Community"> 
    <structure map-as="nl.atosorigin.cmp.esb.messages.cdm.Community"/>  
    <value name="sportUnion" field="sportUnion"/>  
    <value name="sportsClub" field="sportsClub"/>  
    <value name="sportCardNumber" field="sportCardNumber"/> 
  </mapping>  
  <mapping name="CustomerCredentials"
class="nl.atosorigin.cmp.esb.messages.cdm.CustomerCredentials"
extends="nl.atosorigin.cmp.esb.messages.cdm.UserCredentials"> 
    <structure
map-as="nl.atosorigin.cmp.esb.messages.cdm.UserCredentials"/>  
    <value name="customerid" field="customerid"/> 
  </mapping>  
  <mapping name="MobileCredentials"
class="nl.atosorigin.cmp.esb.messages.cdm.MobileCredentials"
extends="nl.atosorigin.cmp.esb.messages.cdm.UserCredentials"> 
    <structure
map-as="nl.atosorigin.cmp.esb.messages.cdm.UserCredentials"/>  
    <value name="mobileNumber" field="mobileNumber"/> 
  </mapping>  
  <mapping name="CreditCard"
class="nl.atosorigin.cmp.esb.messages.cdm.CreditCard"
extends="nl.atosorigin.cmp.esb.messages.cdm.PaymentInformation"> 
    <structure
map-as="nl.atosorigin.cmp.esb.messages.cdm.PaymentInformation"/>  
    <value name="creditcardNumber" field="creditcardNumber"/>  
    <value name="expirationDate" field="expirationDate"/> 
  </mapping> 
</binding>

ÿþDit bericht is vertrouwelijk en kan 
geheime informatie bevatten enkel

bestemd voor de geadresseerde. Indien 
dit bericht niet voor u is bestemd,

verzoeken wij u dit onmiddellijk aan 
ons te melden en het bericht te

vernietigen.

Aangezien de integriteit van het 
bericht niet veilig gesteld is middels

verzending via internet, kan Atos 
Origin niet aansprakelijk worden 
gehouden

voor de inhoud daarvan.

Hoewel wij ons inspannen een virusvrij 
netwerk te hanteren, geven

wij geen enkele garantie dat dit 
bericht virusvrij is, noch aanvaarden 
wij

enige aansprakelijkheid voor de 
mogelijke aanwezigheid van een virus in 
dit

bericht.

 

Op al onze rechtsverhoudingen, 
aanbiedingen en overeenkomsten 
waaronder

Atos Origin goederen en/of diensten 
levert zijn met uitsluiting van alle

andere voorwaarden de 
Leveringsvoorwaarden van Atos Origin 
van toepassing.

Deze worden u op aanvraag direct 
kosteloos toegezonden.

 

This e-mail and the documents attached 
are confidential and intended solely

for the addressee; it may also be 
privileged. If you receive this e-mail

in error, please notify the sender 
immediately and destroy it.

As its integrity cannot be secured on 
the Internet, the Atos Origin group

liability cannot be triggered for the 
message content. Although the

sender endeavours to maintain a 
computer virus-free network, the sender

does not warrant that this transmission 
is virus-free and will not be

liable for any damages resulting from 
any virus transmitted.

 

On all offers and agreements under 
which Atos Origin supplies goods and/or

services of whatever nature, the Terms 
of Delivery from Atos Origin

exclusively apply. 

The Terms of Delivery shall be promptly 
submitted to you on your request.

 

Atos Origin Nederland B.V. / Utrecht

KvK Utrecht 30132762
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to