SQL exception in File Adapter.

Hi experts,
I have a sender adapter of type file to retrieve data from ftp conexion. If I use a ftp client I can see remove the files, but when I active the communication channel appears this error in the communication channel monitor:
Error: com.sap.aii.af.ra.ms.api.DeliveryException: Problem inserting 633c24f5-b66e-4216-17b8-b91aa544cfcc(OUTBOUND) into the database: java.sql.SQLException: ORA-01400: no se puede realizar una inserción NULL en ("SAPSR3DB"."XI_AF_MSG"."VERS_NBR")
Any idea?
What is the reason which a sql exception is raised?
Thanks in advance.
Jose Manuel

Check Temporary Tablespace is Empty.
Go thru this thread for other inputs to resolve ur problem :
java.sql.SQLException

Similar Messages

  • Com.sap.sql.DuplicateKeyException in File Adapter

    Hi,
    In my Sender File Adapter, Randomly i'm getting the following error :
    Putting message into send queue failed, due to: Message ID 710eaff0-91f3-11db-c706-001125a68f32(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: DB2 SQL error: SQLCODE: -803, SQLSTATE: 23505, SQLERRMC: 1;SAPP08DB.XI_AF_MSG.
    My poll interval is 10 sec. the funny part here is if a message takes 30 mins to get processed, and mean while next file is placed on the same location, the second one gets overwritten by the first one. as a result, i'm loosing few files. Can any one please help me out in this regard.
    Need solution for both the points above.
    Any help wud b appreciated.
    Regards
    Nilesh.

    Hi Sandro,
    The Scenario is simple. File to File.
    Source Dir : Test\Source.
    File Size : 1 KB.
    Usage of Module processor : yes.
    Content Conversion : No
    Processing mode: Delete.
    File Name : orders.txt (always the same file name).
    Target Dir : Test\Target.
    The problem is that our XI server is facing some memory problems and sometimes it will be slowed down. if orders.txt takes 30 mins (12:00 to 12:30 ) and then second orders (after the deletion of the first orders.txt) starts processing at 12:30, the second message gets overwritten by the first one. as a result same orders.txt message is sent in both the cases there by loosing the second orders.txt file.
    The quality of service is EO.
    Any update on this y it is behaving in this way.
    Regards
    Nilesh

  • BufferUnderflow Exception in file adapter

    Hi,
      I came across an usual error in file receiver channel. We are using a file channel with IDOCXmlToFlatConvertor module to convert IDOC xml to flat file. This interface is working fine but for a particular message it is giving error in adapter log -
    10.08.2011 20:39:06 Information MP: processing local module localejbs/SAP_XI_IDOC/IDOCXmlToFlatConvertor
    10.08.2011 20:39:42 Error MP: exception caught with cause java.nio.BufferUnderflowException
    10.08.2011 20:39:42 Error Adapter Framework caught exception: null
    For other messages, the channel is working fine as expected. I tried executing this failed message in a different PI system and there also it failed with same error.
    Can you provide me some directions on this, Where could be cause of the error.
    Thanks
    Amol

    Hi,
    In case of a special character the message would have failed in mapping itself for xml parsing, won't it. I will still check for any special character
    Regards,
    Amol

  • Java exception appear during file adapter to handle large xml

    Hi,Guys,
    I am using file adapter to poll one folder of my local.one get input.xml,then do something,then write out output.xml.
    input.xml format is :
    <mes:DataRequestIns xmlns:mes="http://xml.netbeans.org/schema/MessageDefined">
    <!--1 or more repetitions:-->
         <mes:DataIns>
              <mes:address>Ang Mo Kio 5,63 street</mes:address>
              <mes:birthday>14/12/1970</mes:birthday>
              <mes:firstName>Sing1</mes:firstName>
              <mes:gender>0</mes:gender>
              <mes:ID>1001</mes:ID>
              <mes:lastName>NorthMan</mes:lastName>
              <mes:postcode>2002</mes:postcode>
              <mes:telephone>6665222</mes:telephone>
              <mes:surname>Sur</mes:surname>
              <mes:status>single</mes:status>
              <mes:location>sgp</mes:location>
              <mes:HP1>11111</mes:HP1>
              <mes:HP2>22222</mes:HP2>
              <mes:passport>123456878</mes:passport>
              <mes:company>ST</mes:company>
              <mes:department>TO</mes:department>
              <mes:occupation>engineer</mes:occupation>
              <mes:experience>10</mes:experience>
              <mes:level>2</mes:level>
              <mes:certificate>high</mes:certificate>
              <mes:specialisation>computer</mes:specialisation>
              <mes:staffNumber>1020</mes:staffNumber>
              <mes:fax>00200</mes:fax>
              <mes:email>[email protected]</mes:email>
              <mes:national1>sgp</mes:national1>
              <mes:national2>sgp</mes:national2>
              <mes:interestingField>bpel</mes:interestingField>
              <mes:national>earth</mes:national>
              <mes:oversea>yes</mes:oversea>
         </mes:DataIns>
    <mes:DataIns>
    </mes:DataIns>
    </mes:DataRequestIns>
    if my input.xml contain less than 1000 records,then it's working,once greater than 1000,then appear exception.for normal case ,must have more than 10000 records need to handle,and file size is 11.2MB.
    so,Does any other way or how to use file adapter to handle it ?
    thank you
    exception :
    SEVERE: An error occured while scanning for the next trigger to fire.
    org.quartz.JobPersistenceException: Failed to obtain DB connection from data sou
    rce 'soaNonManagedDS': java.sql.SQLException: Could not retrieve datasource via
    JNDI url 'jdbc/SOALocalTxDataSource' weblogic.jdbc.extensions.ConnectionDeadSQLE
    xception: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.
    ResourceException: Could not create pool connection. The DBMS driver exception w
    *as: Socket read timed out [See nested exception: java.sql.SQLException: Could no*
    *t retrieve datasource via JNDI url 'jdbc/SOALocalTxDataSource' weblogic.jdbc.ext*
    *ensions.ConnectionDeadSQLException: weblogic.common.resourcepool.ResourceDeadExc*
    *eption: 0:weblogic.common.ResourceException: Could not create pool connection. T*
    *he DBMS driver exception was: Socket read timed out]*
    at org.quartz.impl.jdbcjobstore.JobStoreCMT.getNonManagedTXConnection(Jo
    bStoreCMT.java:167)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLoc
    k(JobStoreSupport.java:3652)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobSt
    oreSupport.java:2654)
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
    *235)*
    Caused by: java.sql.SQLException: Could not retrieve datasource via JNDI url 'jd
    bc/SOALocalTxDataSource' weblogic.jdbc.extensions.ConnectionDeadSQLException: we
    blogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceExce
    ption: Could not create pool connection. The DBMS driver exception was: Socket r
    ead timed out
    another exception:
    Message handle error.
    error while attempting to process the message "com.collaxa.cube.engine.dispatch.
    message.invoke.InvokeInstanceMessage"; the reported exception is: Transaction Ro
    lledback.: weblogic.transaction.internal.TimedOutException: Transaction timed ou
    t after 302 seconds
    BEA1-3468FC5E3C698D2A82F7
    at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTran
    sactionImpl.java:1742)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.processTim
    edOutTransactions(ServerTransactionManagerImpl.java:1609)
    at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(Transacti
    onManagerImpl.java:1885)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(Ser
    verTransactionManagerImpl.java:1519)
    at weblogic.transaction.internal.WLSTimer.timerExpired(WLSTimer.java:35)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    *; nested exception is: weblogic.transaction.internal.TimedOutException: Transact*
    ion timed out after 302 seconds
    BEA1-3468FC5E3C698D2A82F7
    This error contained an exception thrown by the message handler.
    Edited by: aris yu on Dec 27, 2009 11:55 PM

    Hi,
    we have to explicitly mention batch while configuaring file adapter.
    i.e. in step 5 : Check file contains multiple messages and mention how many messages u want to process in a batch.
    i.e. if you have 10000 msgs in ur file mention the size as 500. Then it will read 10000 records in 20 batches.
    Now while writing to a file use Append=true property.
    U have to add this property to fileadapter.wsdl (in jca:operation tag) which will be created when u complete the configuaration of file adapter with write operation.
    Regards
    PavanKumar.M

  • SQL error: Io exception: The Network Adapter could not establish the connec

    Hi,
    I am sure this question has been asked a million times and maybe i haven't searched the forum enough.
    But here's the situation. I haven't used oracle too much. So I am not too familiar with data-source and what not..
    I downloaded the latest version of oc4j(standalone) a few days back. I am trying to get the Oc4j j2eehome/demo/ormap to work .
    I deployed the application manually by editing server.xml and http-web-site.xml files...
    But i get this error
    SQL error: Io exception: The Network Adapter could not establish the connection
    I have no clue what that is..
    I know its got to do with the bean not connecting to the Database. Do i need to download the oracle database server too.. The documentation says something about the cloudscape database.. Well basically i am lost..
    Any information will be very helpful.
    regards
    -amit

    Hi Amit --
    This exception means that the container can't connect to the database instance to which it has been directed to use.
    If you are using the ormap demo, then this is an entity bean based sample and will need a database.
    The database configurations are stored at the server level in the j2ee/home/config/data-sources.xml file. In this file you will see entries that define a datasource using a set of "locations", provides details on where the database instance (host, port, sid) and what the logon details are.
    For the container, a default-data-source is defined (ie one to use if no others are supplied) in the j2ee/home/config/application.xml.
    <orion-application autocreate-tables="false"
    default-data-source="jdbc/OracleDS">
    To make it work simply, make sure that you have a datasource named jdbc/OracleDS defined in the data-sources.xml file (which should be there as a template) and that the connection details for it point to a valid database instance and user.
    cheers
    -steve-

  • Java.sql.SQLException: Io exception: The Network Adapter could not establish the conn

    Hello all!
    First of all, I want to say I read all the answers to this problem that were posted in the past in this forum.
    I try to connect from the intranet to an Oracle database, named bc01. The string I use is "jdbc:oracle:thin:@192.168.199.11:1521:bc01". On the 192.168.199.11 machine the listener and oracleservice services are started. The bc01 is correctly added to tnsnames.ora. If I issue a tnsping80 192.168.199.11 from the console it works. However, if I issue the same command from my workstation, it doesn't work (says No listener). So what am I missing here?
    Any help is much appreciated !
    Thank you very much!

    Faizan,
    Normally this error is reported when the database is either not available or the URL is invalid. Please check the URL whether you have a valid DB connection there.
    Also I see the getConnection missing e,g.
    Connection conn = ds.getConnection();
    regards
    Debu
    I am trying to setup DataSource for my application and I am using oracle 8.1.6.3 database. I have following entry in the data-sources.xml file
    <data-source
                   class="oracle.jdbc.pool.OracleDataSource"
                   name="jdbc/pool/OracleDS"
                   location="jdbc/ConnectionDS"
                   pooled-location="jdbc/pool/OracleDS"
                   url="jdbc:oracle:thin:@machine:1521:development"
                   username="user"
                   password="password"
                   min-connections="3"
                   max-connections="50"
                   wait-timeout="10"               
                   inactivity-timeout="30"
         />
    In my JSP code I am doing following to access the database
    ResultSet sqlResultSet = null;
    PreparedStatement stm = null;
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource)ic.lookup("jdbc/OracleDS");
    stm = conn.prepareStatement(updtUser);
    I got following exception when I ran teh code
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Thanks for help
    Faizan

  • Java.sql.SQLException: Io exception: The Network Adapter could not establish the

    Dear all,
    I have been trying to connect to Oracle 8 from Java but without success.
    I am using the following driver: oracle.jdbc.driver.OracleDriver
    and the thin protocol as follows:
    jdbc:oracle:thin:userid/password@databasename:1512:sid
    I am getting the error message:
    java.sql.SQLException: Io exception: The Network Adapter could not establish th
    connection
    I am using jdk1.3 with classes12.zip added to the classpath settings.
    Can anybody help please.
    Regards,
    [email protected] or [email protected]
    null

    Dear colleague,
    I am using a stand alone database running on my windows 98 laptop.
    I connect successfully via sql plus using the user id: scott and password tiger.
    Below is the entry of my tnsname.ora:
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    I am finding difficult to specify a host, but I have tried the following combinations:
    DriverManager.getConnection ("jdbc:oracle:thin:@koudry:1521:PLSExtProc","scott", "tiger");
    where the machine name is koudry and PLSExtProc the sid.
    DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:PLSExtProc","scott", "tiger");
    and also 127.0.0.1 which is the ip address of the localhost. All these give me the following error:
    Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap
    ter could not establish the connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:263)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at web.main(web.java:10)
    When I use the oci protocol like:
    DriverManager.getConnection ("jdbc:oracle:oci8:@127.0.0.1:1521:PLSExtProc","scott", "tiger");
    I get the following error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
    at oracle.jdbc.oci8.OCIDBAccess.make_c_state(Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:233)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:249)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at web.main(web.java:10)
    Below is the entry for autoexec.bat:
    set classpath=.;c:\oracle\ora81\jdbc\lib\classes12.zip;
    mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
    mode con codepage select=850
    keyb uk,,C:\WINDOWS\COMMAND\keyboard.sys
    SET Path=c:\Oracle\Ora81\lib;c:\Oracle\Ora81\bin;"C:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN";C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\DOS;C:\JDK1.3\BIN;C:\MSSQL7\BINN;C:\JDK1.3\SRC;
    Can anyone see what I am doing wrong.
    Thanks,
    Richard Koudry
    null

  • Java.sql.SQLException: Io exception: The Network Adapter could .....

    actually I changed the hostname for plesk. when I restarted the server then error appears:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    thanks & best regards

    1) What is "plesk"?
    2) java.sql.SQLException implies that you have a Java application using JDBC to connect to the database. That would seem to imply that this has nothing to do with ODBC.
    3) When the JDBC driver raises this error, there should be additional information about what particular Oracle error was raised. Do you have that information?
    4) Can you connect to the database using a different application? Like SQL*Plus, for example?
    5) Taking a wild guess, I'd tend to suspect that you would need to change the host name configured for the client's connection string. That might be in your tnsnames.ora file, it might be in a n application config file, it might be in an application dialog, or that information may have been embedded into the application.
    Justin

  • File Adapter - Exception / Error handling

    We are using File Adapter in BPEL process to read multiple records from the file. Additionally, we have also handled rejectedMessageHandlers & fatalErrorFailoverProcess exception to lunch custom BPEL process. The process is running fine and also successfully launches custom handler processes too.
    Need help / direction in addressing following issues.
    1. While reading from file, if a records errors out, the custom BPEL process is launched (as specified in rejectedMessageHandlers property). In such instance, the previously read valid records are processed but remaining records are marked as errored out. Our requirement is to make entire record set as invalid and would like to perform rollback of entire process.
    2. Whenever an error occurs during reading the records using File adapter, the associated data file is being deleted from the input directory and also NOT available in archive directory also.
    Are we missing any set up ? We are on 10.1.3.1
    thanks
    -Yj
    Sample Log file:
    <2009-04-20 11:46:14,080> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::init - Initializing the JCA activation agent, processId='bpel://localhost/default/TestFileRead~1.0/
    <2009-04-20 11:46:14,080> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:
    process='bpel://localhost/default/TestFileRead~1.0/'
    domain='default'
    WSDL location='Read.wsdl'
    portType='Read_ptt'
    operation='Read'
    activation properties={portType=Read_ptt, rejectedMessageHandlers=bpel://default|AdapterError2|initiate|payload}
    <2009-04-20 11:46:14,096> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - endpointActivation for portType=Read_ptt, operation=Read
    <2009-04-20 11:46:14,143> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Endpoint Activation called in File Adapter for endpoint: c:\temp\yj
    <2009-04-20 11:46:14,143> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed endpointActivation for portType=Read_ptt, operation=Read
    <2009-04-20 11:46:30,580> <WARN> <default.collaxa.cube.activation> <File Adapter::Inbound> PollWork::run exiting, Worker thread will die
    <2009-04-20 11:47:14,158> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Translated inbound batch index 1 of file {testdata6.txt} with corrupted message count = 1
    <2009-04-20 11:47:14,158> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Sending message to Adapter Framework for rejection to user-configured rejection handlers : {
    fileName=C:\temp\yj\testdata6.txt, startLine=3, startColumn=1, endLine=-1, endCol=-1, Exception=ORABPEL-11168
    Error while reading native data.
    [Line=3, Col=5] Expected "|" for the data starting at the specified position, while trying to read the data for "element with name C2", using "style" as "terminated" and "terminatedBy" as "|", but not found.
    Ensure that "|", exists for the data starting at the specified position.
    <2009-04-20 11:47:14,158> <WARN> <default.collaxa.cube.activation> <AdapterFramework::Inbound> [Read_ptt::Read(Root-Element)]onReject: Sending invalid inbound message to Exception Handler: bpel://default|AdapterError2|initiate|payload
    <2009-04-20 11:47:14,315> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Setting last error record to : -1
    <2009-04-20 11:47:14,658> <ERROR> <default.collaxa.cube.activation> <AdapterFramework::Inbound> onBatchFailure: Batch 'bpel://localhost/default/TestFileRead~1.0//testdata6.txt_1240205493408' (C:\temp\yj\testdata6.txt) has failed due to: ORABPEL-11168
    Error while reading native data.
    [Line=3, Col=5] Expected "|" for the data starting at the specified position, while trying to read the data for "element with name C2", using "style" as "terminated" and "terminatedBy" as "|", but not found.
    Ensure that "|", exists for the data starting at the specified position.

    Any light / idea on the following issue ?
    1. While reading from file, if a records errors out, the custom BPEL process is launched (as specified in rejectedMessageHandlers property). In such instance, the previously read valid records are processed but remaining records are marked as errored out. Our requirement is to make entire record set as invalid and would like to perform rollback of entire process. Even, if we do not configure rejectedMessageHandlers, the behavior is that valid rows are processed with the rest of BPEL process and for Invalid rows, the records are rejected. Our requirement, is that, even if there is one invalid record, the entire set of record should NOT move ahead with the BPEL process
    2. Whenever an error occurs during reading the records using File adapter, the associated data file is being deleted from the input directory and also NOT available in archive directory also. Note, in case of all valid record the file is available in archive directory

  • Exception handling In File Adapter

    My requirement is that i am reading a file using file adapter but the file is not in correct format so it is not reading that file and even not making any bpel instance.
    so i need to add exception handling that show me the above error(file read failure).
    we have log file in that it is showing this error but i need to show that error on BPEL console.
    Please help how to proceed with this.
    Thanks
    Vivek Garg

    I am able to call another bpel when error occured in file reading Bpel.
    the second Bpel will handle the error and shows the error. but addition to that i need BPEL process name which fails(File Read BPEL) and call second BPEL.
    Thanks
    Vivek Garg

  • Exception handling in File adapter when directory structure is incorrect

    hi,
    How can exception handling part be done in File adapter in cases where directory structure is incorrect, or directory
    we are referring to is not present.
    thanks
    Yatan

    If you are polling then there will be error message in log files.But i dont think we can do exception handling in such cases.
    Cheers

  • File adapter (sender) module throws exception, but adapter proceeds again

    Hello dear reader,
    I wrote a module that converts a flat file into XI-XML and tested it within the file adapter. It works fine so far. But if I force the module to throw an exception to handle an erroneous flat file, the file adapter tries to proceed the erroneous file again and again. Not very nice, isn´t it?
    Has anybody an idea, how to configure the file adapter to stop the processing of an erroneous file?
    Thank you in advance
    Yours
    Frank Waskow

    Hello Satish,
    the weblog doesn´t describe my problem correctly. Let me show you the Audit Log from the Messeage Display Tool of the Adapter Engine:
    Audit Log for Message: 06ff54a0-a258-11db-b9e2-003048226013
    Time Stamp     Status     Description
    2007-01-12 16:14:49     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:14:50     Error     Attempt to process file failed with null
    2007-01-12 16:15:00     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:15:00     Error     Attempt to process file failed with null
    2007-01-12 16:16:00     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:16:00     Error     Attempt to process file failed with null
    2007-01-12 16:17:00     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:17:00     Error     Attempt to process file failed with null
    2007-01-12 16:18:00     Success     Send text file "Invoice_error_wf.edi" from FTP server "HH-168:/XI_Infotag_Testdaten/EDIX/In", size 27993 bytes with QoS EO
    2007-01-12 16:18:00     Error     Attempt to process file failed with null
    It seems to me that the Adapter gets the error of the module, but it is not handled as an error like shown in the blog <a href="/people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically:///people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically.
    The adapter tries to proceed the same file again and again, till I delete it from the source directory.
    Any more idea?
    Frank

  • File Adapter and "permanent" module exceptions

    Hi folks,
    We have written a custom module for the file adapter which works fine .. In case of issues it will throw the standard "ModuleException".
    The file adapter is configured to move erroneous files to a specific directory .. The SAP help specifically mentions that this happens when a "permanent" exception occured ...  I quote the guide: "A permanent error occurs either during the conversion of the file content, or in a module in the module processor"
    So in case of an exception in the module processor this should work ... unfortunately it doesn't ...
    Our module throws an exception but the file is not moved and the adapter keeps on retrying to process the faulty file ...
    Anyone faced the same problem ?  Anyone any suggestion on how it should work ?
    Thanks,
    Steven

    Hi,
    When an error occurs, a module must raise a module exception.
    ModuleException can contain an exception that describes the cause of the error. To provide hints about resolving the error, the error cause is written to the trace.
    To process the message again, you do not need to set a special exception.
    In the case of receiver adapters, the messaging service for the adapter framework processes the message again. The conditions for this are set in the communication channel monitor.
    In the case of sender adapters, you must decide in the adapter implementation whether processing the message again makes sense.
    You can revert back for further queries.
    Reward if satisfied.
    Regards,
    Sushama

  • File adapter - Unexpected exception running file2xmbprocessor

    Hallo,
    I've a fileadapter running and a couple of time the adapter is running fine.
    After a while I get the following exception:
    <i>Unexpected exception running file2xmbprocessor
    java.util.NoSuchElementException
    at java.util.TreeMap$EntryIterator.nextEntry(TreeMap.java:1024)
    at java.util.TreeMap$KeyIterator.next(TreeMap.java:1051)
    at com.sap.aii.messaging.adapter.File2XMBProcessor.processFileAccess(ModuleFile2XMB.java:1383)
    at com.sap.aii.messaging.adapter.File2XMBProcessor.run(ModuleFile2XMB.java:872)
    at java.lang.Thread.run(Thread.java:534)
    File adapter processing stopped</i>
    I have no idea whats wrong.
    Any idea
    Thanks harald

    Hi Prasad,
    sorry - but I can't understand what you mean.
    The file-adapter I'm talking about runs on a fileserver. This adapter read the files and send them to the XI-System where a java-mapping is running.
    Therefore I can't believe that the problem is the mapping.
    The way I see it is that the error must be in a part of the file-read-process because the exception says
    <b><u>[fileprocessor]</u> Error: Unexpected exception running file2xmbprocessor
    java.util.NoSuchElementException
    at java.util.TreeMap$EntryIterator.nextEntry </b>
    Could you please explain what you mean.
    Thanks and best regards
    Harald

  • File Adapter FTP SSL SSL Certificate Exception

    After reviewing the results of searching on this error, I do not find anything that fits my situation:
    SAP File Adapter (PI 7.1) using FTP with FTPS connection security.
    I am not using X.509 certificate for client authentication.
    My connection is using a non-public certificate.
    I have added the SSL certificate to TrustedCAs and DEFAULT keystores.
    I am getting the following error:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error when getting an FTP connection from connection pool: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier
    Since I am using an non-public certificate, it will not validate. Even adding to the TrustedCAs and DEFAULT keystore it seems the configuration is still attempting to validate the certificate.
    Any recommendations?

    Hi,
    The main reasons for this error are:
    1. The correct server certificate could not be present in the TrustedCA
    keystore view of NWA. Please ensure you have done all the steps
    described in these two URLs:
    Security Configuration at Message Level
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/ea/c91141e109ef6fe1000000
    0a1550b0/frameset.htm
    2. The server certificate chain contains expired certificate. Check for
    it (that was the cause for other customers as well) and if it's the case
    renew it or extend the validation.
    3. Some other people have reported similar problem and mainly the
    problem was that the certificate chain was not in correct
    order. Basically the server certificate chain should be in order
    Own->Intermedite->Root. To explain in detail, if your server certificate
    is A which is issued by an intermediate CA B and then B's certificate is
    issued by the C which is the root CA (having a self signed certificate).
    Then your certificate chain contains 3 elements A->B->C. So you need to
    have the right order of certificate in the chain. If the order is B
    first followed by A followed by C, then the IAIK library used by PI
    cannot verify the server as trusted. Please generate the certificate in
    the right order and then import this certificate in the TrustedCA
    keystore view and try again. Please take this third steps as the
    principal one.
    Hope it solves your querie.
    Regards,
    Caio Cagnani

Maybe you are looking for

  • Any way to get unique filename in "Save as" dialog?

    is there any kind of 3rd-party add-on or whatever that would give an option in the "Save as" dialog to simply make up a file name that would be unique in whatever folder it's trying to save to? Mike

  • Which cable can I use to connect my ipad to my iphone

    Which cable can I use to connect my ipad to my iphone when I need to connect to the internet when not in a Wi-Fi hotspot.?

  • List of project members and business process owners

    Hi Experts, Can any one tell me where we can view list of Business Process Owners and list of Project members who are involved in a particular project. I know that we can view list of team member in authorisation view. is there any other view to view

  • Attaching files to email

    Quick question. My company does not support MSFT Entourage, so I installed Win XP in Boot Camp and now have MSFT Office so I can run OutLook. The issue is, 99% of the files I create are from Office 2008 for Mac. Currently while in Windows, I have no

  • ITunes - WiFi Sync - App picture not loading in iTunes

    Folks When I sync my iPhone to iTunes over WiFi the app icons do not all appear. Some are lost or some are just displaying a 'A". Any advice here on why this might be and what I can do to fix it? With thanks! A