How to Deal with Error: B2B-50025: Repository error: java.lang.RuntimeException: AppMessage is null (Doc ID 2206017.1)

Last updated on JANUARY 04, 2017

Applies to:

Oracle SOA Suite - Version 11.1.1.1.0 to 11.1.1.9.0 [Release 11gR1 to 11g]
Information in this document applies to any platform.

Goal

The goal of this document is to provide some guidelines for dealing with B2B errors like: B2B-50025: Repository error: java.lang.RuntimeException: AppMessage is null

You may notice such errors in your B2B managed server log, and also associated with this, you may notice Application messages completed but no corresponding Business or Wire messages being created. From Business perspective, since there is no business message being created for associated Application message, we can say "the message is lost". It's not entirely true from the integration perspective, since the Application message is created in Oracle B2B, and it can be resubmitted and (maybe) this time processing can complete without hitting the race condition (and thus Business message will be created, along with the Wire message). But customers must have a mechanism for detecting these situations, where business message was not created.

The error in the log looks like this:

[ERROR] [] [oracle.soa.b2b.engine] [tid: Workmanager: , Version: 0, Scheduled=false, Started=false, Wait time: 0 ms\n] [userId: <anonymous>] [ecid: 0000LTBCJ4j9xWw_kDH7iZ1NsGFI01MGi4,0] [APP: soa-infra] B2B Label:PCBPEL_11.1.1.9.0_GENERIC_150331.1353.0846: java.lang.RuntimeException: AppMessage is null : C57E32141574B2E206E022005C888F3G

This issue is heavily noticed in the diagnostic log when at the same time a slow database performance is happening. We may conclude that a slow database performance is a key factor of increasing the number of these race conditions.

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms