Negative Array Size exception in Marketplace Adapter

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

  1. Negative Array Size exception in Marketplace AdapterSymptom Getting NegativeArraySizeException while transferring file from MPA3.0 to MPA 7.10 Other terms NegativeArraySizeException, Marketplace Adapter Reason and Prerequisites If the content type is set to “application/www-form-urlencoded”, then the servlet can access...
  2. F4: exceptionSymptom Exception raised in control mode F4. Other terms SAP GUI for Windows; sapgui; F4; control mode F4; search help; exception; Reason and Prerequisites Program error. Solution The issue described above will...
  3. OBJECTS_OBJREF_NOT_ASSIGNED_NO exception in SCASE trxSymptom In basis case management(SCASE transaction) 5.0 and higher releases, system throws an OBJECTS_OBJREF_NOT_ASSIGNED_NO exception when user clicks on previous object (shift+F6) button twice after trying to open case’s documents that have...
  4. Exception condition “RECORD_POS_NOTFOUND” raised.Symptom 1. Inbound queue process fails with the error : Exception condition “RECORD_POS_NOTFOUND” raised.2. Dump on restarting of failed messages.3. Message restart takes longer time than usual and sometimes ends with the...
  5. During case edit raise exception if object is not boundSymptom While making changes to a case, if the attribute object is initial, then a dump occurs. Other terms Case, change, save, bound, dump, exception, initial Reason and Prerequisites If due to...
  6. TREX-Admin: Search raises exception CX_SY_STRUCT_COMP_NAMESymptom When executing a search on Tr-TREXADMIN (tab: Search), an error occurs with a pop-up screen. The error message says: An exception with the type CX_SY_STRUCT_COMP_NAME occurred,….. Other terms CX_SY_STRUCT_COMP_NAME TREXADMIN search...
  7. NetWeaver BPM: Exception on table filter after cancel actionSymptom In NWA Manage Task application, you have filtered the table which results in only one task instance, then you cancel this task, and remove the filter value and hit enter. The...

Symptom

Getting NegativeArraySizeException while transferring file from MPA3.0 to MPA 7.10
Other terms

NegativeArraySizeException, Marketplace Adapter

Reason and Prerequisites

If the content type is set to “application/www-form-urlencoded”, then the servlet can access this content either by calling either getInputStream() method or getParameter() method (but not both) on the HTTP request. Until SP16, we did not use getParameter() method in the messaging servlet. But with SP18 onwards, and future releases (710), we introduced getParameter() method before calling getInputStream() for some additional features released.
Due to this, InputStream is becoming empty in latest releases and this is the cause of NegativeArraySizeException.
This is issue with the JDK5; it has a bug which sets the message content
type always to application/x-www-form-urlencoded. See link for
reference:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6369510

Solution

In this we reverted back the fix provided in note: 1355027

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

Leave a Comment