Friday, February 19, 2010

ESB-java.lang.NullPointerException

You just have installed your ESB and have created a simple esb process.Now when you are trying to deploy the process you are getting the following error in

SOA_HOME/opmn/log/default_group~oc4j_soa~default_group~1.log.

java.lang.NullPointerException

at oracle.tip.esb.console.XMLConsoleManagerImpl.exploreEntities(Unknown Source)
at oracle.tip.esb.console.XMLConsoleManagerImpl.exploreEntities(Unknown Source)
at oracle.tip.esb.configuration.servlet.command.ServiceExplorerCommand.execute(Unknown Source)
...............
...............

..........

at java.lang.Thread.run

This happens because your HTTP listener port has changed.

To check the same.

Log in to the database using oraesb as user and pass a command


select * from oraesb and you will get all the records in there.



if you will scroll down you will find entry for DT_OC4J_HTTP_PORT
just verify the port number mentioned there it will be some changed value and not the one in which your em console is running.

you can also pass a command like this to check the value of the port

select * from esb_parameter where PARAM_NAME = "DT_OC4J_HTTP_PORT";

To overcome this issue you just need to update the right value of http port.

so it can be done easily through a sql command.

update ESB_PARAMETER set PARAM_VALUE = (port number) where PARAM_NAME = "DT_OC4J_HTTP_PORT";

where port number is the number of port in which your em console is running.

now try to deploy the process you should be able to deploy it.

I have found one pattern that this issue happen in the remote node that is the node in which database is not installed.So as i have checked when ever i try to start the remote node second i get this error in remote node.So i would recommed :-

First start the loadbalancer

Start the remote node for which database is not local

Start the host node where in database is installed.

No comments: