Error on JDBC Receiver Channel

Hi,
I configured a Receiver JDBC Channel to read data from XI own DB. We are using MS SQL Server 2005.
During the test, I'm running to the following issue. Any ideas on what could be causing this error:
Log for CC monitor:
2010-07-20 13:53:20 Success The message was successfully retrieved from the receive queue.
2010-07-20 13:53:20 Success Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
2010-07-20 13:53:20 Success JDBC adapter receiver channel RPI_LOOKUP_JDBC: processing started; party  , service RPI_DB
2010-07-20 13:53:20 Success Delivering to channel: RPI_LOOKUP_JDBC
2010-07-20 13:53:20 Success MP: Processing local module localejbs/CallSapAdapter
2010-07-20 13:53:20 Success MP: Entering module processor
2010-07-20 13:53:20 Success select sem_datetime, sem_user, sem_host, sem_flag from "/RPI/T_USER" where sem_user=dom1\user1
2010-07-20 13:53:20 Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'query' (structure 'stmt'): com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name '/RPI/T_USER'.
2010-07-20 13:53:20 Error Unable to execute statement for table or stored procedure. 'query' (Structure 'stmt') due to com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name '/RPI/T_USER'.
2010-07-20 13:53:20 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'query' (structure 'stmt'): com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name '/RPI/T_USER'.
2010-07-20 13:53:20 Error Exception caught by adapter framework: null
2010-07-20 13:53:20 Error Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'query' (structure 'stmt'): com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name '/RPI/T_USER'..
2010-07-20 13:53:20 Error The message status set to NDLV.
Here is the payload:
<root>
<stmt>
  <query action="SQL_QUERY">
   <access>
    select sem_datetime, sem_user, sem_host, sem_flag from "/RPI/T_USER" where sem_user='dom1\user1'
   </access>
  </query>
</stmt>
</root>
Connection Settings:
JDBC Driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
Connection: jdbc:sqlserver://hostname.domain.net;databaseName=XI1;
I did check on the DB and am able to see the table /RPI/T_USER, with 0 records.
Thanks in advance,
Sumant.

<root>
<stmt>
  <query action="SQL_QUERY">
   <access>
    select sem_datetime, sem_user, sem_host, sem_flag from "/RPI/T_USER" where sem_user='dom1\user1'
   </access>
  </query>
</stmt>
</root>
Not sure if select, from, where will work in lowercase. Instead of query (node under stmt) should you not mention the table_name?
<root>
<stmt>
  </RPI/T_USER action="SQL_QUERY">
   <access>
    SELECT sem_datetime, sem_user, sem_host, sem_flag FROM /RPI/T_USER WHERE sem_user='dom1\user1'
   </access>
  <//RPI/T_USER>
</stmt>
</root>
I did check on the DB and am able to see the table /RPI/T_USER, with 0 records.
How will the SELECT work then, if the table is with 0 records?
Regards,
Abhishek.

Similar Messages

  • "Error establishing socket" error on JDBC Receiver Channel.

    Dear All,
    Scenario: Soap to JDBC.
    I m getting error on JDBC Receiver Channel. messages are processed succesfully on ABAP Stack and receiver channel is on below error:
    ERROR : Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://156.5.202.194:3312;DatabaseName=ODW': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    Note: i already tested another interface with this same IP and it was fine with different port.
    jdbc:microsoft:sqlserver://IP:PORT;DatabaseName=Name
    Regards,
    Manikandan

    and it was fine with different port
    socket exception is (always) related to port....did you check with the network team about this new Port?

  • JDBC Receiver channel is not showing any payloads

    Hello Experts,
    My interface is ABAP PROXY to JDBC i am facing a strange issue in ECC moni payload is succesful in PI moni also Payload is black colour flag but my Receiver JDBC channel is not showing any thing but it is in green colour (it is not showing neither succes nor error messages logs are empty).Sender chaneels are working only problem with receiver JDBC channels
    In DEV and PROD it it is working in QUAL it is showing this problem.I take the restart of QUAL server still it is behaving like that
    Please throw some light on the issue any help is higlhly apprecaited.
    Regards
    Praveen

    Hi,
    first check in pipe line step call technical routing , mapping execution generated JDBC receiver message pay load or not.
    if it is not generated then check mapping , if is is generated then restart the channel and check what communication channel name you given in receiver agreement.
    monitor the same channel, if all JDBC receiver channels have same behavior then restart the JDBC adapter service in NWA.
    rEGARDS,
    rAJ

  • JDBC Receiver channel

    Hi,
    I have a receiver channel of JDBC type. The database configured in this channel is installed on a different net from XI. Is this a problem? I have seen an error connection of this type:
    Error during database connection to the database URL 'jdbc:odbc:thin:@<IP-Address>:<Port>:DB_PROVA using the JDBC driver 'oracle.jdbc.driver.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:thin:@<IP-Address>:<Port>:DB_PROVA': SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'
    I can't say the real <IP-Address>:<Port>:DB_PROVA string, but it's not important to solve my problem.
    Thanks!

    Hi,
    my JDBC receiver channel give me this error in Runtime Workbench:
    Error during database connection to the database URL 'jdbc:oracle:thin:@<IP_ADDRESS>:<PORT>:<SID>' using the JDBC driver 'oracle.jdbc.driver.OracleDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:oracle:thin:@<IP_ADDRESS>:<PORT>:<SID>': SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: <IP_ADDRESS>:<PORT>:<SID>'
    I have replaced the real IP address, port and sid of my database in this post because they are reserved. I want to know what this message means and what can I do to solve the problem.
    Thanks!

  • JDBC receiver channel problem

    Hi.. 
      I am doing File to JDBC scenario, for that i am using MicrosoftSqlServer.
    Driver----com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection------jdbc:microsoft:sqlserver://172.18.133.91:1433;DatabaseName=LMS
    While executing, in the JDBC receiver channel it is showing the below error.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://172.18.133.91:1433;DatabaseName=LMS': ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    Could please tell where will be the problem.
    Thanks in advance,
    Leela

    Hi ,
    Driver shoud be :
    com.microsoft.sqlserver.jdbc.SQLSeverDriver
    Connection:
    jdbd:microsoft:sqlserver://<ip address>:port;databaseName=TNS
    try with above config..make sure that they are case sensitive.
    Regards,
    Sreenivas.

  • Escape character for apostrophe ' in JDBC receiver channel

    Hi all,
    We have Proxy to JDBC scenario in our project. This interface is working fine with unicode data but when there is an apostrophe( ' ) coming in any of the field values ( ex: DOWTHERM 'J' MODEL19QAGB1G ) , the message is failing in receiver JDBC channel.
    can anyone please tell us how to handle single quote in JDBC receiver channel.
    I have read in SAP help documentation that apostrophe is a reserved character in SQL syntax and is therefore replaced by an escape character if it occurs within value strings. There is a option to JDBC receiver communication channel under "SQL SYNTAX PARAMETER"  to specify the escape character for apostrophe.
    Can any please tell us which value needs to be maintained in the channel to avoid this error.
    Regards
    Jagruthi

    Hi Prateek,
    Thanks a lot for you inputs.
    This issue is solved now. We have replaced single quote with two single quotes and then did the hasQuote mapping as described in the blog.
    /people/prateek.srivastava3/blog/2009/04/02/unicode-handling-for-ms-sql-server
    No value needs to be maintained in channel(SQL SYNTAX PARAMETER ).
    But just want to understand  the difference between replacing the ' with '' in mapping and using SQL SYNTAX PARAMETER option in communication channel.
    Both should ideally result in same  output. But it didnu2019t work when we tried with two single quotes in SQL SYNTAX PARAMETER (Escape Symbol for Apostrophe) in communication channel without doing anything in mapping.
    Regards
    Jagruthi

  • Error in File Receiver Channel

    Dear All,
    I am Getting below error in File Receiver Channel.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: FTPEx: User ABC cannot log in.
    Regards,
    Manikandan

    Hi Manikandan,
    Check the username and the password for the FTP server. If the username or the password is wrong then you would be able to post the message.
    Also, there might be a timout issue, In the timeout parameter enter some value.
    Ref: FTP Server connection Problem
    Check and update us.
    Thanks,

  • Using TEST mode in sender file channel to trigger jdbc receiver channel

    Hi
    In order to call a jdbc receiver channel every 15 minutes I intended to use a file sender channel as a trigger where I set the Processing Mode to TEST. However, I would like to make multiple simultaneous different calls to the jdbc receiver channel, so I have multiple files in the folder, where the file sender channel is listening. Quality of Service in the file sender channel is set to Best Effort as the call is syncroneous.
    However, because the messages in the folder are not deleted, only the first message is being processed no matter whether I choose Processing Sequence "By Date" or "By Name".
    I would like to avoid having to create 15 folders containing one message each, so is there another way of doing it?
    By the way, I redirect the response from the jdbc receiver channel to a different folder, but I think this is irrelevant in this case.
    I use PI 7.11
    /Mikael

    Thanks for your answer, but I would like to avoid using Availability planning.
    Right now I am thinking about using "Advanced selection for source file" and then just specify 14 different folders here each containing one trigger message, but it seems that only the oldest message (if I choose Processing Sequence = Date) or the first message alfabetically (if I choose Processing Sequence = Name) is being processed across the many folders which I think is very weird!

  • Start JDBC Receiver channel twice per day

    Hello,
    I need to get some piece of data from Oracle database twice per day. For example at 12:00am and 12:00pm. Standard JDBC Receiver channel has no needed settings. It has only "poll interval" without exact time.
    I can set up "poll interval" to 12 hours, but this can't guarantee that JDBC receiver channel will works only twice per day. For example after XI system restart JDBC adapter loses time counter. It means that JDBC adapter can starts more than 2 times per day.
    I have only one idea at this moment.
    I can create ABAP program which can be planned as ABAP job at needed time and with needed period.
    This program should send some dummy message to Integration Engine. Integration Engine should start some Integration Process which can read data from Oracle database via JDBC channel.
    What else opportunities are?
    Thanks.
    Best regards,
    Eugeny

    Message deleted
    Message was edited by: Shabarish Vijayakumar

  • Testing JDBC receiver channel

    Hi,
    I am new to XI and I am trying configure JDBC-Receiver channel for testing purpose.
    As documents says native Sql message protocal will be used for testing purpose I have selected that.Note I have given all connection parameters properly.
    In my SQL syntax parameters i have given one query
    'INSERT INTO Test  (name,age,loc) VALUES (‘Prabhakar’, ‘30’, ‘HYD’) '
    and activated the channel.
    Will it directly insert into database with the values in the specified table ?
    or do i need to do any thing else ?
    If it is wrong way,please tell me how to check my receiver channel is working fine or not without going to souruce to target scenario ?

    Hi,
    >>>>Will it directly insert into database with the values in the specified table ?
    no, it won't you need to start it with a message
    have a look at jdbc weblogs in the XI FAQ page documents section
    (link below)
    also have a look at this page:
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    for jdbc document formats (messages which you can send to the jdbc adapter) to update the database
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • JDBC Receiver Channel Error

    Hi All,
    Very Urgent!!!
    My scenario is RFC to JDBC async . Earlier scenarion is working fine but not its showing error,
    "Delivering the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error when attempting to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: The resource pool has already been destroyed."
    For that already restart JAVA stack once and change some configuration in receiver channel like, timeout parameter in advence tab and check that "Disconnect from Database after processing each message"
    But same error occurs when I try to resend the data again.
    Please suggest!!
    Thanks,
    Arthita

    Hi All,
    Now showing something else.
    Not showing previous error but status is showing "Message processing started" but after that not processed.
    Please see the SS.
    Please suggest something.
    Thanks,
    Arthita

  • A wierd error of JDBC Receiver adapter

    Dear Expert,
    I got stuck by the JDBC receiver adapter with PI 7.11, the log is
    'JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'null' (structure 'SYSTEM'): java.lang.IndexOutOfBoundsException: Index: 1, Size: 1'
    explanation :   
    (1)SYSTEM  is the first element in my XML sent to PI and I guarantee it has value, and there is no mapping with this field in the target table.
    (2)I tested mapping and comminucation channel -> successfully
    (3)db is oracle and the key field is mapped with value
    Looking forward to your insight. Thanks very very much
    Ray

    Dear Expert :
    Thanks for your reply, but I still could not figure out what had happened, it is so desperate.......
         Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'null' (structure 'BOOK'): java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    The Oracle DB table has many fields and I mapped the key and other fields which could not be null.
    I tried to create a very simple example to test like this , but still it pops up the error like before,
    you can see the error message just  replaces the  text 'SYSTEM' to 'BOOK'.
    'null' (structure 'SYSTEM'): (yesterday)  ->   'null' (structure 'BOOK'):  (today).   What could I do????
    Thanks so much for your help
      <?xml version="1.0" encoding="UTF-8" ?>
      <MT_RM_TEST>
      <BOOK>17-1627-15</BOOK>
      <NAME>Ray</NAME>
      </MT_RM_TEST>
    -> the XML above is my simple test XML sent (book and name are mapped to the key field and other fields which could not be nulll)

  • JDBC Receiver Channel Connection Reset:

    Dear Team,
    I am facing Problem in JDBC Synchronous Receiver Channel.
    when ever the JDBC Channel (Synchronous Receiver) is executing i am getting JDBC Conenction reset error in the Channel monitoring.
    Why this problem is coming and how to rectify the problem?
    In production also we are facing same kind of issue. Please help us find a work around for this Problem.
    I have checked the link
    [Re: JDBC Channel : Connection reset;
    but the link which Siv Marani has mentioned in the above forum doesn't exist any more i guess.
    Please Advice.
    Regards,
    Senthilprakash.
    Edited by: senthilprakash selvaraj on Jan 28, 2009 4:34 AM

    Hi,
    Check below links.
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D44%26threadID%3D38124
    U need to add the parameter SelectMethod=cursor in your connection parameter,
    jdbc:microsoft:sqlserver://<hostname>:1433;DatabaseName=<dbname>;SelectMethod=cursor
    Regards,
    phani

  • Error in file receiver channel "Unknown payload format 0 in the message"

    hello
    there is an errror in my receiver file channel with the status "Unknown payload format "
    my channel is file receiver channel.
    we implemented one sap note 1295430 and after that channnel is giving the error.
    Please forward your views.
    thanks.

    Hi there,
    First of all, what TBDL means - It means that the message was successfully delivered from Integration Server and that the messages are handed over to the Messaging System.
    TBDL occurs when the message is put into the receiving queue of the Messaging System.
    What can be done?
    Go to Messaging System receive servlet:
    http://<Host>:<PORT>/MessagingSystem/receive/<CONNECTION>/<PROTOCOL>
    If this was executed successfully, then the MS returns HTTP 200 to the Integration Server and the status TBDL moves to DELIVERING (check whether you have authorization to go to the above link).
    --> Log-in to SAP using - XIAPPLUSER & XIAFUSER, and check if they are blocked
    --> Check the messages:
    AF
    com.sap.aii.adapterframework.serviceuser.language
    com.sap.aii.adapterframework.serviceuser.name = XIAFUSER
    com.sap.aii.adapterframework.serviceuser.pwd
    AS
    com.sap.aii.applicationsystem.serviceuser.language
    com.sap.aii.applicationsystem.serviceuser.name = XIAPPLUSER
    com.sap.aii.applicationsystem.serviceuser.pwd
    Also, worth reading - /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically
    Let us know if you have more questions.
    regards,
    Neetesh

  • Error in SOAP Receiver channel

    Hi,
    We are working on IDOC to SOAP Scenario (Connecting to third party).
    We have configured the SOAP Receiver channel with the Target URL and teh corresponding SOAP Action.
    But the SOAP Receiver channel gives the error while processing and sends back the following error message in log :
    "Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Value cannot be null. Parameter name: s."
    Payload seems to look fine in XI and SAP.
    Any help on this ?
    Thanks and regards,
    Vikas

    Hi Vikas,
                Copy the payload from SXMB_MONI  after mapping and check with SOAPGUI or Altova, if it working fine then your payload is good. You can use the WSDL to ganarate and send independent soap request from these tools.
    Besides this IDOC is Asyc, you need to use RequestResponseBean and ResponseOneWayBean to get the response from SOAP.  Check the following  and try to simulate it.
    https://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without+BPM%29
    Server was unable to process request. ---> Value cannot be null. Parameter name: s."
    The error specifies that the request has null value, check the parameter specified in the error message and make sure that is not null while you are sending the request.
    Regards,
    Prasanna

Maybe you are looking for