Monday, February 22, 2010

oracle.tip.esb.console.exception.ConsoleTransactionException

After installing ESB DT and RT log in to the esb console

http://host:port/esb

choose the default system.

Provide the cluster name,virtual host name and port and say apply and you will get an error like

An unhandled exception has been thrown in the ESB system. The exception reported is: "oracle.tip.esb.console.exception.ConsoleTransactionException: File repository not initialized.May be ESB bootstrap failed Please review ESB prameters for their correctness. at oracle.tip.esb.console.XMLConsoleManagerImpl.commit(XMLConsoleManagerImpl.java:2411) at oracle.tip.esb.console.XMLConsoleManagerImpl.commit(XMLConsoleManagerImpl.java:2380) at oracle.tip.esb.console.XMLConsoleManagerImpl.updateSystemInRepository(XMLConsoleManagerImpl.java:920) at oracle.tip.esb.console.XMLConsoleManagerImpl.updateSystemFromElement(XMLConsoleManagerImpl.java:596) at oracle.tip.esb.console.XMLConsoleManagerImpl.updateSystem(XMLConsoleManagerImpl.java:574) at oracle.tip.esb.configuration.servlet.command.UpdateSystemCommand.execute(UpdateSystemCommand.java:61) at oracle.tip.esb.configuration.servlet.CommandServlet.doJob(CommandServlet.java:109) at oracle.tip.esb.configuration.servlet.CommandServlet.doPost(CommandServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:644) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) ".


This error occurs because the esb runtime configuration is not done properly

Go to the following location

SOA_HOME/j2ee/OC4J_SOA/applications/esb-rt/META-INF/orion-application.xml

SOA_HOME/j2ee/OC4J_ESBDT/applications/esb-rt/META-INF/orion-application.xml

there you will find the following lines commented

<property name="cluster_name" value="ESB" />
<property name="primary_oc4j" value="true" />
<property name="xa_timeout" value="60" />
<property name="jms_receive_timeout" value="30" />
<property name="esbSystemForBPEL" value="BPELSystem" />
<property name="InboundRetryCount" value="3" />
<property name="InboundRetryInterval" value="5" />
<property name="InboundRetryEnabled" value="true" />
<property name="OutboundRetryCount" value="3" />
<property name="OutboundRetryInterval" value="5" />
<property name="OutboundRetryEnabled" value="true" />
<property name="PingCount" value="15" />
<property name="PingInterval" value="15" />

Uncomment these lines

Change the cluster name to ESBCLUSTER or anything which should be same in both the nodes.

SEt the "primary_oc4j" value="false"

Increase the ping count and ping interval to 30

so your configuration after changes should look like

<property name="cluster_name" value="ESBCLUSTER" />
<property name="primary_oc4j" value="false" />
<property name="xa_timeout" value="60" />
<property name="jms_receive_timeout" value="30" />
<property name="esbSystemForBPEL" value="BPELSystem" />
<property name="InboundRetryCount" value="3" />
<property name="InboundRetryInterval" value="5" />
<property name="InboundRetryEnabled" value="true" />
<property name="OutboundRetryCount" value="3" />
<property name="OutboundRetryInterval" value="5" />
<property name="OutboundRetryEnabled" value="true" />
<property name="PingCount" value="30" />
<property name="PingInterval" value="30" />

Once changes are made .Restart your container and check the issue again.

No comments: