IBM Support

webMethods Knowlegebase : wm.tn.doc:recognize ServiceException: Could not insert the new document (1738739)

Troubleshooting


Problem

TN creates 3141 individual X12 4060 850 documents, but fails to create X12 Envelope & X12 Group documents for EDI set containing 3141 850s. Without X12 Envelope, built-in 997 Functional Acknowledgement is not generated.

com.wm.app.tn.err.EXMLException: <EXMLException>

<ErrorCode></ErrorCode>

<Info>wm.tn.doc:recognize</Info>

<OriginalException>

<JavaClass>com.wm.app.tn.doc.BizDocTypeException</JavaClass>

<Message>com.wm.app.b2b.server.ServiceException: Could not insert the new document.

(0) java.lang.NullPointerException: null

(1) java.lang.NullPointerException: null

[EDIFTN.000010.000216]

</Message>

<StackTrace>com.wm.app.tn.doc.BizDocTypeException: com.wm.app.b2b.server.ServiceException: Could not insert the new document.

NOTE: Seems to only occur on one customer’s transmissions of 2000+ 850s. What's odd is that we receive 5MB 852 data that does not fail to insert the X12 Envelope or Group.

Further Details:

Calling service is DFEDICommon.utils.tn:getInboundEDIRecordsFromFileSystem. Related package are(attached);

1. DFEDICommon.zip

2. DFUtils.zip

For this process, the EDI data string is the content of a file on the wM server. The file is read using WmPublic/pub.file:getFile with loadAs=bytes. The resulting bytes are then passed to WmTN/wm.tn:receive which throws the NPE. My Catch step runs WmPublic/pub.flow:getLastError and reports lastError/errorDump.

Initial Environment: Then applied fixes (IS_8.2_Core_SP1_Fix3 and TNS_8.2_SP1_Fix3 - and problem remained.)

Version 8.2.1.0 Release Notes

Updates IS_8.2_SP1_Core_Fix2, TNS_8.2_SP1_Fix2, TNS_8-2_SP1

Build Number 315

SSL Strong (128-bit)

Server Environment

Java Version 1.6.0 (50.0)

Further Study of Environments:

Working

QA:

IS_8.2_SP1_Core_Fix2

Not Working

PROD:

IS_8.2_Core_SP1_Fix3

TNS_8.2_SP1

TNS_8.2_SP1_Fix3

MWS

MWS_8.2_SP1_Fix3

TN_8.2_SP1_MWS_Fix1

MON_8.2.1_MWS_Fix2

MWS_8.2_SP1_Fix3

Glue_8-0_Fix4

Why would this work in QA and not in Prod? Additionally customer has a 5M file that only has one ST in it and it completes with Group and Envelope, however it is larger than the file that does not work.

EDI_8.0_SP1_Fix9. The problem is still occurring. 1945 850s, but no Group or Envelope.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFIWYE","label":"IBM webMethods B2B"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Trading Networks Server (TNS)"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"}],"Version":"8.2.1"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17193789