Solved

Urgent: com.evermind.server.rmi.OrionRemoteException

Posted on 2003-10-28
8
6,105 Views
Last Modified: 2013-12-01
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.
0
Comment
Question by:chowdry
  • 4
  • 4
8 Comments
 
LVL 9

Expert Comment

by:vzilka
ID: 9641657
What is the exception that is printed on the OC4J server log.
0
 

Author Comment

by:chowdry
ID: 9641795
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
 
LVL 9

Expert Comment

by:vzilka
ID: 9641920
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
 

Author Comment

by:chowdry
ID: 9642015
--> 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 9

Expert Comment

by:vzilka
ID: 9642090
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
 

Author Comment

by:chowdry
ID: 9642450
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
 
LVL 9

Accepted Solution

by:
vzilka earned 150 total points
ID: 9642551
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
 

Author Comment

by:chowdry
ID: 9642839
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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now