Solved

Urgent: com.evermind.server.rmi.OrionRemoteException

Posted on 2003-10-28
8
6,124 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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
 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

832 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