Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Urgent: com.evermind.server.rmi.OrionRemoteException

Posted on 2003-10-28
8
Medium Priority
?
6,217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

618 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