NullPointerException using HTTP Basic Authentication

If you try to use use HTTP Basic Authentication headers to invoke a secured Web Service in BPEL 10.1.3.4

<property name="httpBasicHeaders">credentials</property>
<property name="httpBasicUsername">your_username</property>
<property name="httpBasicPassword">your_password</property>

You may encounter a NullPointerException error ONLY if you use ports 80 or 443 :

<Faulthttp://schemas.oracle.com/bpel/extensionhttp://schemas.xmlsoap.org/soap/envelope/>
<faultcode>null:bindingFault</faultcode>
<faultstring>business exception</faultstring>
<faultactor>cx-fault-actor</faultactor>
<detail>
<summary>com.collaxa.cube.ws.wsif.providers.http.WSIFOperation_HTTP@c54b88 : Could not invoke 'process'; nested exception is: java.lang.NullPointerException</summary>
<detail>java.lang.NullPointerException</detail>
</detail>
</Fault>

The simplest workaround is to try to host your web-service on ports other than 80 (http) /443 (https).

The issue is fixed in MLR 8 for 10.1.3.4 - patch number 8372150.

Posted in Labels: , |

5 comments:

  1. Anonymous Says:

    Thanks dude, this gave me huge headache.

  2. Unknown Says:

    I applied MLR 10, and I stilll have this problem

  3. Anonymous Says:

    I applied MLR , and I still get same error, any suggestions?

  4. Anonymous Says:

    I applied MLR 9, gets same error.

  5. Anonymous Says:

    Hi