Urgent: com.evermind.server.rmi.OrionRemoteException

Hello Experts,

We have an application which has EJBs deployed on the OC4J Application Server. We access it from a client running on windows. We have the server on two machines but are now having the below mentioned problem on one of them only. Any idea why this could be happening?

The following is the exception we are getting:
com.evermind.server.rmi.OrionRemoteException: Disconnected: Disconnected
        at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_R
EMOTE_SERVER(RMIConnection.java:1530)
        at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java
:1453)
        at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocati
onHandler.java:53)
        at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(Rec
overableRemoteInvocationHandler.java:22)
        at __Proxy2.create(Unknown Source)
        at com.sciatl.svt.ui.testplanning.TPEJBCallWrapper.getSelectQuerySLS(TPE
JBCallWrapper.java:118)
        at com.sciatl.svt.ui.testplanning.TPEJBCallWrapper.executeSelectQuery(TP
EJBCallWrapper.java:170)
        at com.sciatl.svt.ui.testplanning.TestCaseSearch.beforeShowWindow(TestCa
seSearch.java:197)
        at com.sciatl.svt.ui.SACommandButtonAction.actionPerformed(SACommandButt
onAction.java:75)
        at com.sciatl.svt.ui.testplanning.TestPlanEnvironment.actionPerformed(Te
stPlanEnvironment.java:818)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
n Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.NullPointerException
        at com.sciatl.svt.ui.testplanning.TPEJBCallWrapper.executeSelectQuery(TP
EJBCallWrapper.java:170)
        at com.sciatl.svt.ui.testplanning.TestCaseSearch.beforeShowWindow(TestCa
seSearch.java:197)
        at com.sciatl.svt.ui.SACommandButtonAction.actionPerformed(SACommandButt
onAction.java:75)
        at com.sciatl.svt.ui.testplanning.TestPlanEnvironment.actionPerformed(Te
stPlanEnvironment.java:818)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
n Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Is there any problem with the bean deployment? Any hints/suggestions would be greatly appreciated.
chowdryAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vzilkaCommented:
What is the exception that is printed on the OC4J server log.
0
chowdryAuthor Commented:
Thanks for the response.
Its NullPointerException in server.log and oc4j.log.

Herewith i am pasting the last few lines from server.log and oc4j.log.

# tail -20 server.log
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/GroupInfoSLS.ear... done.
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/ModifyTestPlan.ear...
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/ModifyTestPlan.ear... done.
10/28/03 5:18 PM Internal server error
java.lang.NullPointerException
        at com.evermind.server.rmi.RMIConnection.setRemoteDomain(RMIConnection.java:2515)
        at com.evermind.server.rmi.RMIConnection.handleLookupObject(RMIConnection.java:721)
        at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:406)
        at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:66)
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/SRMProjectSLS.ear...
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/SRMProjectSLS.ear... done.
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/SelectQuery.ear...
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/SelectQuery.ear... done.
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/SendMailSLS.ear...
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/SendMailSLS.ear... done.
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/nts.ear...
10/28/03 5:18 PM Auto-unpacking /oracleas_root/j2ee/home/applications/nts.ear... done.
10/28/03 5:19 PM Auto-unpacking /oracleas_root/j2ee/home/applications/tcm.ear...
10/28/03 5:19 PM Auto-unpacking /oracleas_root/j2ee/home/applications/tcm.ear... done.
10/28/03 7:27 PM 9.0.2.0.0 Stopped (JVM termination)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# cat oc4j.log
Warning: Error reading transaction-log file (/oracleas_root/j2ee/home/persistence/transaction.state)
 for recovery: premature end of file
Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
Recovery completed, 0 connections committed and 0 rolled back...
Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
java.lang.NullPointerException
        at com.evermind.server.rmi.RMIConnection.setRemoteDomain(RMIConnection.java:2515)
        at com.evermind.server.rmi.RMIConnection.handleLookupObject(RMIConnection.java:721)
        at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:406)
        at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:66)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0
vzilkaCommented:
OK. The error itself occurs on the server.
The reason is the method that is called on the client. Can you print the lines that cause the exception?
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

chowdryAuthor Commented:
--> Error reported.
at com.sciatl.svt.ui.testplanning.TPEJBCallWrapper.getSelectQuerySLS(TPE
JBCallWrapper.java:118)

-->source code.
 public static SelectQuerySLS getSelectQuerySLS()
{
        Hashtable env = getDefaultEnvironmentHashtable();
        env.put(Context.PROVIDER_URL, "ormi://"+
            getIpAndPort()+ "/SelectQuery");
        SelectQuerySLS selectQuerySLS=null;
        try
        {
            Context ctx = new InitialContext(env);

            SelectQuerySLSHome selectQuerySLSHome=
                (SelectQuerySLSHome) ctx.lookup("SelectQuerySLS");
/**Line 118 --> */            selectQuerySLS = selectQuerySLSHome.create();
            TraceMessage.printMessageWithDateTime("selectQuery sLS  created ");
        } catch(Throwable e) {
            e.printStackTrace();
        }
        return selectQuerySLS;
    }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PS: As i said earlier, the same client is working fine with other 2 servers.
0
vzilkaCommented:
Did you try stopping the server, removing the directory under application-deployment, restarting the server?
Maybe the creation of the EJB stubs was problematic.
0
chowdryAuthor Commented:
Yes, we did that. But the exception still comes. And, if we look at it, the beginning of the exception is not the line we gave first. The beginning is a NoSuchMethodException at:
at com.sciatl.svt.util.EJBCallWrapper.executeStmt(EJBCallWrapper.java:1060)

The line 1060 is shown below:
public static int executeStmt(String strQuery)
    {
        int iResult = 0;

        try
        {
            // Call the Remote method
            iResult = selectQuerySLS.executeStmt(strQuery); /*--> line 1060*/
        }
        catch(Throwable e)
        {
            e.printStackTrace();
        }
        return iResult;
    }

The implementation for the function executeStmt() is present in the Stateless session EJBean in the server.

The full listing is:
com.evermind.server.rmi.OrionRemoteException: Invocation error: java.lang.NoSuchMethodException
      at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1470)
      at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:53)
      at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
      at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:50)
      at __Proxy3.executeStmt(Unknown Source)
      at com.sciatl.svt.util.EJBCallWrapper.executeStmt(EJBCallWrapper.java:1060)
      at com.sciatl.svt.ui.testplanning.TestPlanEnvironment.actionPerformed(TestPlanEnvironment.java:772)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

      Nested exception is:
java.lang.NoSuchMethodException
      at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1530)
      at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1453)
      at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:53)
      at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
      at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:50)
      at __Proxy3.executeStmt(Unknown Source)
      at com.sciatl.svt.util.EJBCallWrapper.executeStmt(EJBCallWrapper.java:1060)
      at com.sciatl.svt.ui.testplanning.TestPlanEnvironment.actionPerformed(TestPlanEnvironment.java:772)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
com.evermind.server.rmi.OrionRemoteException: Disconnected: Connection reset by peer: JVM_recv in socket input stream read
      at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1530)
      at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1453)
      at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:53)
      at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
      at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:50)
      at __Proxy3.executeStmt(Unknown Source)
      at com.sciatl.svt.util.EJBCallWrapper.executeStmt(EJBCallWrapper.java:1060)
      at com.sciatl.svt.ui.testplanning.TestPlanEnvironment.actionPerformed(TestPlanEnvironment.java:783)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
com.evermind.server.rmi.OrionRemoteException: Invocation error: java.lang.NoSuchMethodException
      at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1470)
      at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:53)
      at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
      at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:50)
      at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.handleRecovery(RecoverableRemoteInvocationHandler.java:62)
      at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:26)
      at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:50)
      at __Proxy3.executeStmt(Unknown Source)
      at com.sciatl.svt.util.EJBCallWrapper.executeStmt(EJBCallWrapper.java:1060)
      at com.sciatl.svt.ui.testplanning.TestPlanEnvironment.actionPerformed(TestPlanEnvironment.java:783)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

Thanks.
0
vzilkaCommented:
Is it possible you have another EJB in the same name on this server? Is this server a full copy of the other (working) servers?
The reason for the exception is that the JAR file found in the OC4J is probably different from the one used by the other servers, and the EJB you have in OC4J is an old one, which does not implement the executeStmt method.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chowdryAuthor Commented:
Thanks a lot. It worked. We removed all the jar and class files with the same name in all folders which were in class path. Then we undeployed and deployed again and it worked fine.

Thanks again. Have a nice day.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.