SAX Parser Error in JDBC Adapter

I am using a JDBC adapter to execute SQL statements during mapping runtime. However, it issues me an error regarding the SAX Parser when I have a '&' character in the SQL statement. I am not able to remove the & since it is in the database that I access and it will result to data inconsistency. I think that when the JDBC adapter of XI converts the SQL string to the XML format, it does not include the amp; string to the &, thus causing the SAX Parser to throw the error.
Is there someway I can configure the JDBC adapter in such a way that it will replace the & with &. Or is there a way to display how the JDBC adapter converts the SQL statement to its the XML representation of it?
Thanks a lot.

Hi,
For this kind of situation use some unique character combination  like "#@!" for replacing "&" then parse the document and the restore the "&" later .
For this convert the input stream into Strring and then replace the occurences of "&".
regards.

Similar Messages

  • ERROR in JDBC adapter...

    HI
    My call to a stored proc in SQLServer fails with SQL exception
    Error processing request in sax parser: Error when executing statement for table/stored proc. 'EmployeeFetch': java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
    I understand this error is because call to DB uses SETAUTOCOMMIT false and SelectMethod=should be set to cursor..
    But where do i set these methods' for my adapter..Is it in the connections string??
    Would appreciate ur help in this..
    Regards
    Sriram V.

    Hey thx..
    Resolved the pbm..we need to set the method in Connection parameter of adapter config..and it works.. )
    jdbc:microsoft:sqlserver://10.201.103.82:1433;DatabaseName=ScottDB;SelectMethod=cursor

  • Error processing request in sax parser: Error when executing statement...

    Hello,
    I want to INSERT data from R/3 System to AS400 via JDBC adapter into a DB2 database. The interfaces from R/3 are Ok. but i have some problems to use the JDBC in DB2 Systems. The message in comunitation channel is:
    " Error processing request in sax parser: Error when executing statement for table/stored proc. 'SPE106TST' (structure 'STATEMENT'): java.sql.SQLException: SPE106TST de SADMT1 no válido para la operación."
    in the SXMB_MONI -> Request Message Mapping payloads this:
    The connection to the database is fine, Sender adapter with a SELECT * works perfect.
    Please Can anyone help me solve this problem? I'm lost.
    Best regards,
    Edited by: Nicola Occhipinti on May 22, 2008 7:40 PM

    Hi Nicola,
    This error occurs when the receiver side structure is incorrect.
    Your structure seems to be correct.
    Please use lower case for action, access and table.
    Please check whether the field names are exactly the same as in the actual Database table sadmt1.SPE106TST.
    Check if the table has permissions to write.
    You can try an alternate structure without using table tag.
    <ns0:MT_XMLSQL_SPEC xmlns:ns0="urn:damm.com/pi/EmployeeMasterData">
    <STATEMENT>
    <sadmt1.SPE106TST action="INSERT">
    <access>
    <CODEMP>D</CODEMP>
    <CODPRO>00202339</CODPRO>
    <NOMPRO>ROSIQUE PERALSGENIS</NOMPRO>
    <DIRPRO>GIRONA</DIRPRO>
    <POBPRO>S. VICENS HORTS</POBPRO>
    <RUTA>0</RUTA>
    <ORDEN>0</ORDEN>
    <NOMINA>S</NOMINA>
    </access>
    </sadmt1.SPE106TST>
    </STATEMENT>
    </ns0:MT_XMLSQL_SPEC>
    Hope your problem gets solved.
    -Shamly

  • Email receiver qpac-SAX Parsing Error

    Hi,
    Iam working on a project which needs to receive email from an
    external person and the workflow will continue from that point.
    >>I have put a email receiver qpac to accomplish the
    above task. I use the sender's(from) email address as a
    filter for incoming mails and the starting 4 letters of the form
    name to fetch the XDP attachment. The process works just fine
    when tested by sending a mail from Outlook express. But, in
    the case of Lotus Notes, the click of email submit button in
    the form opens up a new mail with the XDP Data file as
    attachment and names it weirdly with some numbers unlike
    outlook express client where in the attachment gets named as
    the form name "_data.xdp".
    Thus, my email receiver does not pick
    this email and the process gets stalled giving some SAX
    parser error. Is there any way to customise form/ lotus notes
    clients to make it work?
    Regards,
    Raghava Kumar VSS

    Hi Raghava
    Just drop the 4 starting letters, and look for the first attachment.
    There should only ever be 1 attachment, so you shouldn't have a problem.
    Howard
    http://www.avoka.com

  • Alerting: Use error header [ JDBC Adapter Error ]

    Hi all,
      In my scenario when I execute the store procedure I have one error. This error is saved in the error section into the message header.
      The question is, I would like to use this error message for sending an alert message but I don't know how to get the tag SAP:AdditionalText contained by SAP:Error xml message.
    Example:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
    -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    <SAP:Category>XIAdapterFramework</SAP:Category>
    <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
    <SAP:P1 />
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Create_Well_Finder' (structure 'StatementName'): java.sql.SQLException: ORA-01403: no data found ORA-06512: at "XXXX.XXXXXXXXXXXXXX", line 200 ORA-06512: at line 1</SAP:AdditionalText>
    <SAP:Stack />
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Is it possible to get the exception below in my alert?
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Create_Well_Finder' (structure 'StatementName'): java.sql.SQLException: ORA-01403: no data found ORA-06512: at "XXXX.XXXXXXXXXXXXXX", line 200 ORA-06512: at line 1
    Thanks in advanced
    Iván
    Edited by: Mark Smyth on May 28, 2009 11:01 AM

    create Alert category with variable SXMS_ERROR_CODE and use it in the Long Text section of the alert category....you can even use SXMS_TO_ADAPTER_ERRTXT to get error from AE....check this link for more help:
    http://help.sap.com/saphelp_nw70/helpdata/EN/d0/d4b54020c6792ae10000000a155106/content.htm
    Regards,
    Abhishek.

  • SAX Parser error when installing Oracle CCG 5.5.1

    I am trying to install Oracle CCG on Windows 2008. I already have my PeopleSoft system installed on the same box, running weblogic and jdk1.7.0_03.
    After setting the required environment variables, when I run the command "install.bat -f ccg-551-install.apf" from ccg_install folder, I get the following error:
    Starting Oracle Installation Engine 1.2.1
    Running from working directory C:\CCG\ccg_stage\
    ORACLE_HOME is C:\app\Administrator\product\11.2.0\dbhome_1
    JAVA_HOME is C:\Program Files\Java\jdk1.7.0_03
    LAUNCH_CLASSPATH is C:\app\Administrator\product\11.2.0\dbhome_1\jdbc\lib\classe
    s12.jar;C:\CCG\ccg_stage\install.jar;"C:\app\Administrator\product\11.2.0\dbhome
    _1\lib";C:\Program Files\Java\jdk1.7.0_03\lib;C:\app\Administrator\product\11.2.
    0\dbhome_1\lib;%CLASSPATH%
    Oracle CCG Installer -- Version 1.2.1 Build(installer12-Maint-1.2.1.2)
    Copyright 2009 Oracle. All rights reserved.
    Initializing. Please wait...
    FileParser: Parse error occurred: Could not load default SAX parser: org.apache.
    xerces.parsers.SAXParser: SAX2 driver class org.apache.xerces.parsers.SAXParser
    not found: org.apache.xerces.parsers.SAXParser
    Could not load default SAX parser: org.apache.xerces.parsers.SAXParser: SAX2 dri
    ver class org.apache.xerces.parsers.SAXParser not found: org.apache.xerces.parse
    rs.SAXParser
    I have tried downloading xerces.jar file and placed in the CLASSPATH folder but it did not help either. I do not have much knowledge about java and need help from someone who has installed CCG on windows.
    Thank you in advance

    Several things I would recommend here:
    1. Use JDK 1.5 instead of 1.7, I'm pretty sure 1.7 isn't supported (Don't ask why) - [http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html|http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html]
    2. Make sure to exit out all DOS command windows, then open a new one then go through setting all the environment variables, and using the same DOS command run the install command, otherwise all environment variables will be lost.
    I hope that helps.

  • Error in JDBC Adapter Configuration...Pls help..

    Hi,
      My scenario is like that..XI has to pick up the xml files from FTP and has to insert them into a particular table "clientsystemlog"in database. From sxmb_moni I can see that it is success, but there are no data in the database.
    Here are the details of the error in the Channel Monitoring:-
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
    Any hlp would be appreciated
    BR
    Soumya

    Hi,
      Here is my table structure for DB:-
    ACK_RM_MT=>Action(INSERT)(attribute)->xsd.string
                        =>Table(clientsystemlog)(element)==>>GlobalID
                                                                          ==>>LocalID
                                                                          ==>>DistributedTime, etc etc
    That is what I have created in IR for DB.
    Can you pls check whether the structure is in correct format or not.I have to insert all the elements of Table(clientsystemlog) into the table clientsystemlog in oracle database.
    But still facing the error in Action. In channel monitoring Attribute Action contains error. It seems this Action cannot be performed in the DB table clientsystemlog.
    That is why I can see in sxmb_moni msg processed successfully, but in DB, there are no records at all.
    Tell me one thing, is the table name and the elements of the table are case sensitive?
    Please provide a solution to me, I was braeking my head since last week to sort it out, but unable to sort it out.
    BR
    Soumya

  • Error in JDBC Adapter Configuration....

    Hi,
      My scenario is like this FTP->XI->Oracle Database.
    The problem is that the files are not getting posted to the database though it is running well.
    In XI receiver comm channel in JDBC adapter, I have provided the Connection path as   jdbc:oracle:thin:@esealmw275.al.sw.ericsson.se:1521:S14. Whereas in channel monitoring it is taking jdbc:oracle:THIN:@esealmw275.al.sw.ericsson.se:1521:S14. Please note it is taking THIN as in caps.
    Can anybody suggest me is this the proposed error for that, if it is so, then pls provide me the suitable solution for that.
    BR
    Soumya

    Hi Soumya,
    Have a look at ths blog...
    <a href="/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 to JDBC Adapter using SAP XI 3.0</a> by Anirban Ghatak
    Also have a look at this wiki
    https://wiki.sdn.sap.com/wiki/display/XI/JDBCTOJDBC
    Regards
    Santi
    <a href="Remember to set the thread to solved when you have received a solution to set the thread to solved when you have received a solution</a>
    Where There is a <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/16">blog</a> there is a Way.

  • Error in JDBC Adapter-"Error establishing socket"

    Hi,
    I am getting an error in the seander JDBC adapter. PFB the error:
    Error during database connection to the database URL 'jdbc:microsoft:sqlserver://Server Name;DatabaseName=DB Name;SelectMethod=cursor' using the JDBC driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://Server Name;DatabaseName=DB Name;SelectMethod=cursor': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.'
    Can any one hlep me to resolve the error.
    Thanks,
    RK

    Hi,
    Also check whether you have given database connection parameters in the following format:
    JDBC Driver:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection:   jdbc:microsoft:sqlserver://<HOSTNAME>:1433;DatabaseName=<xxxx>;SelectMethod=cursor
    I think the deployment is done, because you have not got "SAPClassNotFoundException" error.(If the deployment is not done, the driver file cant be located so this will be thrown...)
    Thanks & Regards,
    Senthil.

  • Invalid column name error in JDBC adapter

    Hi all,
    My scenario is Proxy->XI->JDBC.
    I get the following error in receiver JDBC  adapter.
    Unable to execute statement for table or stored procedure. 'Account_Master' (Structure 'STATEMENT') due to com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'A7'.
    There is no column by name A7 in the table nor there is a field by that name in the data type.
    Can anyone provide any help

    Hi Swatantra,
    compare your message-type with the database table!
    There must be difference!
    Regards Mario

  • Date Formatting error in JDBC adapter

    Hi,
    While inserting date using a Receiver JDBC Adapter i am getting a "Month not valid" error can anyone please tell me how do i pass date in the required format. Database is Oracle.

    Hi Vinay,
    Oracle's default format for DATE is "DD-MON-YY"
    With the functions to_char and to_date, a date format can be used. Example:
    select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
    will return something like: 24/03/2006 14:36:43
    Regards,
    Prateek

  • RecoverableException error in JDBC ADAPTER after stack11

    DEAR ALL,
    We have applied the Stack 11 in our XI 3.0 Development system and after
    that we are with some problems in the Adapter Framework.
    In the JDBC adapter, when we send a message it's arrive in the database
    and execute the SQL statement perfectaly but It's don't return to the
    Server the status of the message so the message status stays in error
    status. That's the error message:
    2005-04-27 20:14:12 Error Delivery of the message to the application
    using connection AFW failed, due to: RecoverableException.
    Thanks guys , for the help!

    Hi,
    did you solved the problem?
    Thanks

  • SAX parser errors in services-messages.log

    I'm having some issues with a just installed ZCM 11.3a server. I'm getting a lot of errors:
    org.jdom.JDOMException: Could not load default SAX parser: org.apache.xerces.parsers.SAXParser: SAX2 driver class org.apache.xerces.parsers.SAXParser not found: org.apache.xerces.parsers.SAXParser
    in services-messages.log
    I have googled for the error message but can't find anything related to ZCM. Any idea about how to fix it?

    jlmendez Wrote in message:
    > I'm having some issues with a just installed ZCM 11.3a server. I'm
    > getting a lot of errors:
    >
    > org.jdom.JDOMException: Could not load default SAX parser:
    > org.apache.xerces.parsers.SAXParser: SAX2 driver class
    > org.apache.xerces.parsers.SAXParser not found:
    > org.apache.xerces.parsers.SAXParser
    >
    > in services-messages.log
    >
    > I have googled for the error message but can't find anything related to
    > ZCM. Any idea about how to fix it?
    Which OS did you install ZCM 11.3a on? I'm guessing Linux based.
    HTH.
    Simon Flood
    Novell Knowledge Partner

  • OBIEE Sax Parser Error in Firefox only?

    I was working on a report in Answers and came across the following error when trying to "Display" the results
    Sax parser returned an exception. Message: An exception occurred! Type:UnexpectedEOFException, Message:The end of input was not expected, Entity publicId: , Entity systemId: , Line number: 1, Column number: 1862
    The report, when viewed on a dashboard works perfectly fine, its ONLY when I try to "Display" the results in Answers I hit the above error.
    The interesting thing also is that I tried Internet Explorer, Google Chrome and Firefox
    ONLY Firefox is throwing this error.
    I am using the latest version of Firefox (ver 22)
    OBIEE is version 10.1.3.4.0
    Again, everything with the report works just great its just when I try to display the results in answers that it throws an error.

    I think my issue just got worse
    Now when I log into Answers and try to view the report I see the following error
    State: HY000. Code: 1736874543. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005] Unresolved column
    The biggest issue I am noticing now is that my column names are actually changing!
    So when I first log into the report in Answers I see the columns being used are
    Type Animal
    Type Tree
    I click on "Display Results" which yields the above error
    Now when I click back to the columns view, the column names have changed to the following
    Adjusted Animal = Type
    High Yield Tree = Type
    The column names have totally changed
    I am now guessing there may be an error some where in the RPD, between the physical/presentation and business model layer.
    Any insight would be greatly appreciated!

  • BPM Mapping Error using JDBC adapter JDBC - SAP -  JDBC

    Hi
    I am facing an issue in XI BPM in my QA system .
    My scenario involves a JDBC sender adapter which calls an SQL in the legacy database , a BPM which process the SQL resultset and IDoc send from BPM to R/3.Once IDoc is send successfully to R/3 XI BPM sends a response back to legacy database.
    There are 4 mapping transforations inside BPM.
    First XI executes an SQL in the database and then transforms it using BPM steps.
    I  have not made any changes in the mapping or within BPM.
    However since last week the BPM is failing . When I checked the error log I found out the error due to mapping transformation in one of the steps.
    In fact XI fails to successfully map in that step.
    The same BPM and mapping works fine in the Production system.
    However when I manually tried to test the BPM and the mappings with Production payload in XI QA system it again failed.
    I believe the message is failing not due to data problem.
    I also tried by deactivating and reactivating the XI sender channel which calls the SQL in the database.
    Then I tried by restarting all backgrounds jobs related to BPM.
    Both apprpoaches failed.
    I am getting the following error in transformation step.
    <b>com.sap.aii.utilxi.misc.api.BaseRuntimeExceptionRuntimeException in Message-Mapping transformatio~</b>.
    Any inputs will be very helpful and rewarded.
    Thanks in advance.

    Please provide more detailed exception trace.
    Also, I have seen some cases where the imported/deployed classes simply disapeared!!!
    I had to make dummy changes in all my message mappings and activate them in order to get them working.
    Regards,
    Henrique

Maybe you are looking for