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

JDBC Problem

Hello,

I tried a JDBC call and also used some web blogs as information. But I received a error message I couldn't deal with. My request to JDBC looks like this (from sxmb_moni):

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

- <ns0:MT_User_CMDB_request xmlns:ns0="http://com.namespace">

- <STATEMENT>

- <TABLENAME action="SELECT">

<TABLE>my_table</TABLE>

</TABLENAME>

- <access>

<lastname />

</access>

- <key>

test@test.de

</key>

</STATEMENT>

</ns0:MT_User_CMDB_request>

I received the following error:

<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'dbo.exp_isos_Usr' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', key element 'lastname' contains no values</SAP:AdditionalText>

Does anybody know what it could be??

In sxmb_moni: In first column I had red lamps. When do I get a red lamp and when a red flag??

Thanks

chris

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 12:52 PM

    Hi ,

    This is the correct structure....try this way

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

    - <ns0:MT_User_CMDB_request xmlns:ns0="http://com.namespace">

    - <STATEMENT>

    - <TABLENAME action="SELECT">

    <TABLE>my_table</TABLE>

    - <access>

    <lastname />

    </access>

    - <key>

    test@test.de

    </key>

    <b></TABLENAME></b>

    </STATEMENT>

    Sekhar

    </ns0:MT_User_CMDB_request>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 12:48 PM

    Is this not the problem.

    'key element 'lastname' contains no values'

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2006 at 12:55 PM

    Hi,

    1) Kindly check whether the Table has LAST NAME field.

    2) If so see whether the FIELD LAST NAME made Mandatory

    one.

    3) As Martin Mentioned check whethere the value is

    available for the FIELD LAST NAME,

    4) The LAST NAME field might be mandatory one in the

    JAVA code you are using .

    Regards

    Agasthuri Doss

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2006 at 01:05 PM

    Hi,

    Like pointed out , this is how the strucutre should be.

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

    - <ns0:MT_User_CMDB_request xmlns:ns0="http://com.namespace">

    - <STATEMENT>

    - <TABLENAME action="SELECT">

    <TABLE>my_table</TABLE>

    - <access>

    <lastname />

    </access>

    - <key>

    test@test.de

    </key>

    <b></TABLENAME></b>

    </STATEMENT>

    </ns0:MT_User_CMDB_request>

    Take a look at my blog for more info,

    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step

    Regards,

    Bhavesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.