My Oracle Support Banner

Rmi Invocation of Remote BPEL Process Error (Doc ID 365533.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle(R) BPEL Process Manager - Version:
This problem can occur on any platform.


The following java code is used to invoke a remote BPEL process. it works fine for java
application, but it fails when you embedded this code in JSP. The error message is

Error Message
Invoking BPEL process as a remote process

java.lang.Exception: Failed to create "ejb/collaxa/system/DomainManagerBean"
bean; exception reported is: "java.lang.NullPointerException: domain was null
at com.evermind.server.rmi.RMIServer.addNode(
at com.evermind.server.rmi.RMIServer.getConnection(
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.init(
at javax.naming.InitialContext.(

Java source code

import java.util.Properties;
import java.util.Map;
import java.util.Hashtable;
import javax.naming.InitialContext;
import javax.naming.Context;


public class RMIClient

public static void main(String[] args) throws Exception {

String ssn = "123456789";
if (args.length == 1) {
ssn = args[0];

System.out.println("ssn is " + ssn);
String xml = "<ssn xmlns=\"\">" + ssn + "</ssn>";
String jndiFactory = "com.evermind.server.rmi.RMIInitialContextFactory";
String jndiUsername = "admin";
String jndiPassword = "welcome";
String jndiProviderUrl =
Hashtable jndi = new Hashtable();
jndi.put(Context.PROVIDER_URL, jndiProviderUrl);
jndi.put(Context.INITIAL_CONTEXT_FACTORY, jndiFactory);
jndi.put(Context.SECURITY_PRINCIPAL, jndiUsername);
jndi.put(Context.SECURITY_CREDENTIALS, jndiPassword);
Locator locator = new Locator("default","ias01bpel",jndi);

IDeliveryService deliveryService =
(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", xml );
NormalizedMessage res = deliveryService.request("CreditRatingService",
"process", nm);
Map payload = res.getPayload();
System.out.println( "BPELProcess CreditRatingService executed!<br>" );
System.out.println( "Credit Rating is " + payload.get("payload") );
}catch(Exception e)


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.