HTTP Inbound

Darmin_M
Darmin_M Member
edited October 6, 2016 in Documentum #1

When importing a HTTP inbound document getting the following errors:

Error message: java.lang.RuntimeException: Error occured while writing content

Further details:

2012-10-16 14:27:46,248 DEBUG [http-8080-3] [com.documentum.bps.inbound.HTTPInboundServlet] - Executing method

2012-10-16 14:27:46,279 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - Transaction started

2012-10-16 14:27:46,279 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - Preparing to create a workflow

2012-10-16 14:27:46,451 DEBUG [http-8080-3] [com.documentum.bpm.sdt.docbase.DfStructuredDataTypeDAOImpl] - Executing the query: select r_object_id, r_modify_date from dmc_wfsd_type_info where sdt_name = 'primatelj' to load the SDT from cache

2012-10-16 14:27:46,482 DEBUG [http-8080-3] [com.documentum.bpm.sdt.docbase.DfStructuredDataTypeDAOImpl] - Executing the query: select r_object_id, r_modify_date from dmc_wfsd_type_info where sdt_name = 'SlanjeEmail' to load the SDT from cache

2012-10-16 14:27:46,498 DEBUG [http-8080-3] [com.documentum.bpm.sdt.docbase.DfStructuredDataTypeDAOImpl] - Executing the query: select r_object_id, r_modify_date from dmc_wfsd_type_info where sdt_name = 'fork' to load the SDT from cache

2012-10-16 14:27:46,513 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - Function: Copy

2012-10-16 14:27:46,513 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Rule:

2012-10-16 14:27:46,513 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Request/Body/URL Parameters/fork,

2012-10-16 14:27:46,513 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Node Value : 0

2012-10-16 14:27:46,513 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - To Rule:

2012-10-16 14:27:46,513 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Process Data/Packages/djelovodnik/fork

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - Function: Copy

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Rule:

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Request/Body/URL Parameters/filename,

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Node Value : testni.pdf

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - To Rule:

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Process Data/Packages/djelovodnik/object_name

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - Function: Copy

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Rule:

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Request/Body/URL Parameters/br_prot,

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Node Value : 01-2-27984/2012

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - To Rule:

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Process Data/Packages/djelovodnik/redni_broj

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - Function: Copy

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Rule:

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Request/Body/Attachment[0]/Content-Type,

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Node Value : application/pdf

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - To Rule:

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Process Data/Packages/djelovodnik/content/content-type

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - Function: Copy

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Rule:

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Request/Body/Attachment[0]/Data,

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - From Node Value : Binary Data

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - To Rule:

2012-10-16 14:27:46,607 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - /Process Data/Packages/djelovodnik/content/data

2012-10-16 14:27:46,669 DEBUG [http-8080-3] [com.documentum.bps.http.inbound.runtime.HTTPTask] - Post processing message

2012-10-16 14:27:46,669 DEBUG [http-8080-3] [com.documentum.bps.services.DfLoggerEventListener] - Response Message for process id - 4b000004800087f4: activityId - 4c000004803c9d32 workflowid - null: workitemid - null:  message - Status code: 500

Comments

  • DCTM_Guru
    DCTM_Guru Member
    edited October 16, 2012 #2

    Please post your http activity configuration settings

  • Darmin_M
    Darmin_M Member
    edited October 17, 2012 #3

    setup3.png

    setup1.png

    setup1.png

  • Darmin_M
    Darmin_M Member
    edited October 17, 2012 #4

    We also have one ftp listener that is failing:

    INFO com.documentum.bps.http.inbound.runtime.HTTPListener - Init Listener: Process - PT_WF Activity - HTTP Inbound - Initiate

      INFO com.documentum.bps.http.inbound.runtime.HTTPListener - Starting Listener: Process - PT_WF Activity - HTTP Inbound - Initiate HTTP URL Suffix: DIREKCIJA

      INFO com.documentum.bps.ftp.inbound.runtime.FTPListener - Init Listener: Process - PT_WF Activity - FTP Inbound - Initiate

      INFO com.documentum.bps.ftp.inbound.runtime.FTPListener - Starting Listener: Process - PT_WF Activity - FTP Inbound - Initiate

    Listeneing for Workflow Start Events

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - Transaction started

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - Preparing to create a workflow

    Workflow Created : 640952230

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - Function: Copy

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - From Rule:

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - "5",

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - From Node Value : 5

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - To Rule:

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - /Process Data/Packages/djelovodnik/fork

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - Function: Copy

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - From Rule:

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - /FILE/FTP_CONTENT_NAME,

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - From Node Value : 01-2-279952012.pdf

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - To Rule:

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - /Process Data/Packages/djelovodnik/object_name

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - Function: Copy

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - From Rule:

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - /FILE/FTP_CONTENT_NAME,

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - From Node Value : 01-2-279952012.pdf

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - To Rule:

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - /Process Data/Packages/djelovodnik/redni_broj

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - Function: Copy

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - From Rule:

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - /FILE/FTP_CONTENT_DATA,

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - From Node Value : Binary Data

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - To Rule:

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - /Process Data/Packages/djelovodnik/content/data

    ERROR com.documentum.bps.ftp.inbound.runtime.FTPTask - Could not process the message for 'Process - PT_WF Activity - FTP Inbound - Initiate'

    Listener: 'Process - PT_WF Activity - FTP Inbound - Initiate'

    Process: 'PT_WF' - '4b000004800087f4'

    Activity: 'FTP Inbound - Initiate' - '4c0000048042b511' - Activity Template: 'FTP Inbound - Initiate'

    com.documentum.bps.inbound.MappingRuleEvaluationException: java.lang.RuntimeException: Error occured while writing content

              at com.documentum.bps.inbound.AbstractTask.executeServiceForInitiate(AbstractTask.java:266)

              at com.documentum.bps.inbound.AbstractTask.startProcessInstance(AbstractTask.java:227)

              at com.documentum.bps.inbound.AbstractTask.processMessage(AbstractTask.java:205)

              at com.documentum.bps.inbound.AbstractTask.run(AbstractTask.java:91)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

              at java.lang.Thread.run(Unknown Source)

    Caused by: java.lang.RuntimeException: Error occured while writing content

              at com.documentum.bps.utils.PackageUtils.setContentData(PackageUtils.java:718)

              at com.documentum.bps.utils.PackageUtils.setContent(PackageUtils.java:673)

              at com.documentum.bps.utils.PackageUtils.setContentInfo(PackageUtils.java:664)

              at com.documentum.bps.utils.PackageUtils.setNodeValue(PackageUtils.java:616)

              at com.documentum.bps.utils.PackageUtils.setPackageNodeValue(PackageUtils.java:493)

              at com.documentum.bps.utils.PackageUtils.setPersistentNodeValue(PackageUtils.java:433)

              at com.documentum.bps.utils.DocbaseUtils.setProcessDataValue(DocbaseUtils.java:196)

              at com.documentum.bps.inbound.AbstractTask.executeInputMappingRules(AbstractTask.java:311)

              at com.documentum.bps.inbound.AbstractTask.executeServiceForInitiate(AbstractTask.java:259)

              ... 6 more

    Caused by: DfException:: THREAD: pool-4-thread-1; MSG: [DM_SYSOBJECT_E_CANT_FETCH_ACL]error:  "Failed to fetch the ACL 'dirdms_ACL4598' in domain 'DIREKCIJA' for djelovodnik '01-2-279952012.pdf'. [ProcessACL]"; ERRORCODE: 100; NEXT: null

              at com.documentum.fc.client.impl.docbase.DocbaseExceptionMapper.newException(DocbaseExceptionMapper.java:57)

              at com.documentum.fc.client.impl.connection.docbase.MessageEntry.getException(MessageEntry.java:39)

              at com.documentum.fc.client.impl.connection.docbase.DocbaseMessageManager.getException(DocbaseMessageManager.java:137)

              at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.checkForMessages(NetwiseDocbaseRpcClient.java:305)

              at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.applyForInt(NetwiseDocbaseRpcClient.java:576)

              at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection$6.evaluate(DocbaseConnection.java:1247)

              at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.evaluateRpc(DocbaseConnection.java:1054)

              at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.applyForInt(DocbaseConnection.java:1240)

              at com.documentum.fc.client.impl.docbase.DocbaseApi.parameterizedSave(DocbaseApi.java:767)

              at com.documentum.fc.client.DfSysObject$1.evaluate(DfSysObject.java:371)

              at com.documentum.fc.client.impl.util.TransactionalFunctorWithRetry.evaluateUnderTransactionWithDeadlockRetry(TransactionalFunctorWithRetry.java:38)

              at com.documentum.fc.client.impl.util.TransactionalFunctorWithRetry.evaluate(TransactionalFunctorWithRetry.java:25)

              at com.documentum.fc.client.DfSysObject.evaluateUnderTransactionWithDeadlockRetry(DfSysObject.java:926)

              at com.documentum.fc.client.DfSysObject.doSaveImpl(DfSysObject.java:399)

              at com.documentum.fc.client.DfSysObject.doSave(DfSysObject.java:204)

              at com.documentum.fc.client.DfPersistentObject.saveEx(DfPersistentObject.java:911)

              at com.documentum.fc.client.DfPersistentObject.save(DfPersistentObject.java:906)

              at com.documentum.fc.client.DfDocument___PROXY.save(DfDocument___PROXY.java)

              at com.documentum.bps.utils.PackageUtils.setContentData(PackageUtils.java:714)

              ... 14 more

    DEBUG com.documentum.bps.ftp.inbound.runtime.FTPTask - Post processing message

  • rohan37723
    rohan37723 Member
    edited October 6, 2016 #5

    Hi Darmin

    Were you able to fix this issue? Any help would be highly appreciated.