File adapter: NegativeArrayException occurs while Archiving

[] [] [] [] [] [] [] [] [] []

  1. File adapter metadata changed for adapter attributesSymptom You are using the File Adapter in your business scenario for message processing. During the transport of XI to another system, you notice that the values for some of the File...
  2. FTP receiver adapter deletes file with append modeSymptom You are using the File Adapter in your business scenario for message processing. During the message processing, you notice, that, the FTP receiver adapter deletes the output file if it encounters...
  3. Receiver file adapter thread hangingSymptom The thread of receiver file adapter remains in runnable state while communication channel has the following configuration File Construction Mode=Create, Overwrite Existing File=false, Write Mode= Use Temporary File. Other terms File...
  4. File Adapter messages stuck in “To Be Delivered” statusSymptom You have upgraded to PI 7.0 SP 18 and you notice that File Adapter messages are stuck in “TBDL”(To Be Delivered) status. Additionally, the following symptoms are noticed: 1 – File...
  5. File sender adapter generates duplicate message IDs.Symptom This note attempts to solve two issues: a) File sender adapter generates duplicate message IDs and sends it to Messaging system. In the Synchronous(Best Effort) scenario cases, Messaging system does not...
  6. Temp file remains in directory when file fails with errorSymptom You are using the File Adapter in your business scenario for message processing. During file processing, you notice, that, the temporary file is not deleted(in case file fails with error). The...
  7. Adapter Framework Scheduler may fail to remove a jobSymptom XI Adapter Framework’s scheduler may fail to remove the scheduled job. When this problem occurs, the affected job may get executed continuously for some period in parallel. This problem can be...

Symptom

You have configured the File Adapter in your scenario with following options set in configuration:
1.Files are to be archived (with or without timestamp) after processing.
2.Local file system (and not the FTP server) is to be used for the files thus archived.
3.Content conversion would take place.
However, a java.lang.NegativeArrayException occurs, and the archiving of the file fails.
Other terms

File adapter, FTP Adapter, Archiving, java.lang.NegativeArrayException, Local file system
Reason and Prerequisites

This issue occured due to a programmatic error only when you chose to archive the file in local system, not on the FTP server. The NegativeArrayException was thrown only in the case of a few FTP servers that do not return the file size along with file name when the FTP adapter issues the commmand for listing of files in a specific directory.
Solution

The issue has been solved by changes in the code. The archives and the support package stack guide can be found on the SAP Service Marketplace as described in SAP Note 952402.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment