My Oracle Support Banner

Checkin Java Px Error Does Not Reflect Upload Status on File Upload Manager (Doc ID 2148443.1)

Last updated on FEBRUARY 19, 2019

Applies to:

Oracle Agile PLM Framework - Version 9.3.3.0 to 9.3.5.0 [Release 9.3]
Information in this document applies to any platform.

Symptoms

Actual Behavior
When checkin File Folder with multiple attachment files, during the "CheckIn Files" Event Type, when the Java PX ends in error, File Upload Manager shows that the each file is set to "Completed" status. For single attachment file, checkin will end in error fine, and file upload manager shows "Error" or "Not Completed".

Expected Behavior
When checkin File Folder with multiple attachment files, during the "Check In Files" Event Type, when the Java PX ends in error, File Upload Manager shows that the each file is set to "Error" or "Not Completed" status.

Steps

  1. Create a JAR file including the following java code.
     
  2. Add the jar file created in step1 and log4j.jar to the following directory.

    /home/oracle/agile/agile933/integration/sdk/extensions

  3. Login to Java Client with admin user and setup the following Event/Event Handlers/Event Subscribers

    Event
    Event Type : Check In Files
    Name : Part - Checkin Files Event2
    API Name : PartCheckinFilesEvent2
    Enabled : Yes
    Object Type : Items

    Event Handler
    Handler Type : Java PX
    Name : CheckIn Files Pre Sample EventHandler2
    API Name : CheckInFilesPreSampleEventHandler2
    Enabled : Yes
    Event Action : agile.sample.event.item.ItemCheckinFilePreHandler

    Event Subscribers
    Name : Part CheckIn Files PreEvent2
    API Name : PartCheckInFilesPreEvent2
    Enabled : Yes
    Event : Part - Checkin Files Event2
    Event Type : Check In Files
    Object Type : Items
    Event Handler : CheckIn Files Pre Sample EventHandler
    Handler Type : Java PX
    Trigger Type : Pre
    Execution Mode : Synchronous
    Order : 0
    Error Handling Rule : Stop

  4. Login to Web Client
  5. Go to Part object P00026 and move to attachment tab
  6. Select

    Filename                                Folder Number
    -----------------------------------------------------
    attachment-07.txt; attachment-08.txt;   FOLDER00089

  7. Checkout
  8. Checkin

    Original File Name    Replace File name
    ----------------------------------------------
    attachment-07.txt     attachment-07a.txt
    attachment-08.txt     attachment-07b.txt

  9. Press replace.

    Error message shows the following
    -----------------------------------------------------------
    agile.sample.event.ff.CheckInFilePreHandlerSample
    -----------------------------------------------------------

  10. File Upload Manager

    P00026 attachment-07a.txt    --- completed 
    P00026 attachment-07b.txt    --- completed

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.