Skip to Content
author's profile photo Former Member
Former Member

Error in Message Mapping

Hi All ,

I have two simple mesages where i map employee details of one messages to another . The employee details structure has one element salary (data Type : integer , digit = "4") . When I run the test for this message it gives me following error :

"Cannot create element /ns1:EmployeeDetails/Salary. Insufficient values in queue context

java.lang.IllegalArgumentException: Cannot create element /ns1:EmployeeDetails/Salary. Insufficient values in queue context"

can someone help me out with this. What is the possible reason for this error .

regards,

Udai

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 23, 2004 at 08:34 AM

    Hi,

    There are two possible reasons of this:

    1. Tag salary is optional in source structure and it is missing in test xml-instance.

    2. Tag salary is obligatory, but your xml test-instance is not valid to source-message's xsd. For example, the namespace or name of root tag may be mistyped. Mapping tool cannot find the value of Salary in the source message, which leads to throwing an Exception, because Salary in target message is obligatory and must be created with some value.

    Another reason of such Exception could be an incorrectly defined mapping, but I beleive in your case the reason is one of mentioned above.

    Regards,

    Alexey

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I'm pretty sure that mapping tool does not care about types of fields at all. I beleive that Exception could not be caused by type of field.

      Something other was changed also, not only field's type.

      Alexey