Solved

Urgent: com.evermind.server.rmi.OrionRemoteException

Posted on 2003-10-28
8
6,130 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
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Script to start/stop Weblogic 11, 12 6 151
oneTwo java challenge 31 618
JKS to store upstart data 2 106
listing all functions in JavaScript 19 217
-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 …
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 …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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