July 22, 2014

Split-Join: Getting Fault Details in CatchAll

To get fault details in split-join’s CatchAll, call an intermediary proxy.

When split-join invokes an OSB business service and that call fails, CatchAll does not help.

Instead of detailed information of what went wrong, the fault variable contains only a single element from the BPEL extensions namespace.

Utterly useless.

At the same time, if the error is re-raised with the Re-Raise Error block, the code calling the split-join gets the correct description of the fault. The root cause fault is hidden somewhere, and it is not visible.

<soapfault xmlns="http://www.bea.com/bpel/extensions"></soapfault>

How can we get it?

It turns out, that is pretty easy.

The problem only appears when calling business services. Calls to proxies are alright.

If you insert a do-nothing intermediary proxy between the split-join and the business service, the CatchAll’s fault variable will contain the failure details:

<ext:soapfault xmlns:ext="http://www.bea.com/bpel/extensions">
  <soap-env:fault xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:Server</faultcode>
      BEA-380002: Tried all: '1' addresses, but could not connect over HTTP to server: '', port: '33333'

There is no need to mention that this method is used in GenericParallel, too, and that any response from GenericParallel will contain all the details of the faults in any of the outgoing calls.

Vladimir Dyuzhev, author of GenericParallel

About Me

My name is Vladimir Dyuzhev, and I'm the author of GenericParallel, an OSB proxy service for making parallel calls effortlessly and MockMotor, a powerful mock server.

I'm building SOA enterprise systems for clients large and small for almost 20 years. Most of that time I've been working with BEA (later Oracle) Weblogic platform, including OSB and other SOA systems.

Feel free to contact me if you have a SOA project to design and implement. See my profile on LinkedIn.

I live in Toronto, Ontario, Canada.  canada   Email me at info@genericparallel.com