Error running com.evermind.server.jms.JMSUtils

I'm running the following from the Developer prompt command window of a 10.1.2 midtier install.
java -classpath C:\OraHome_AppServ\j2ee\home\oc4j.jar com.evermind.server.jms.JMSUtils destinations
This gives the following error:
Oracle Application Server Containers for J2EE 10g (10.1.2.0.0) (build "041223.1874"), OC4J JMS 1.0.2b
javax.jms.JMSException: Unable to create a connection to "/0.0.0.0:9,127" as user "null".
at com.evermind.server.jms.JMSUtils.makeJMSException(JMSUtils.java:1843)
at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1859)
at com.evermind.server.jms.EvermindConnection.<init>(EvermindConnection.java:114)
at com.evermind.server.jms.EvermindConnectionFactory.createConnection(EvermindConnectionFactory.java:118)
at com.evermind.server.jms.EvermindConnectionFactory.createConnection(EvermindConnectionFactory.java:110)
at com.evermind.server.jms.JMSUtils.dest(JMSUtils.java:679)
at com.evermind.server.jms.JMSUtils.main(JMSUtils.java:265)
I'm running this to see if my Queue to Topic sample is working correctly. I suspect this is a configuration error but I'm not sure how to fix it.
Thanks,
Craig

These objects are created on the server when the oc4j.jms.debug property is true. They are used to track DMS phases that have been started but not yet completed. DMS phases are started (and these objects created) when operations on various OC4J JMS server-side objects (representing JMS connections, sessions, producers, consumers, browsers) are started, and are (supposed to be) ended (and these objects released) when those operations complete. Specifically, allocation is done via JMSObject.lock and release is via JMSObject.unlock. It's possible that you are hitting some case where one of these operations is calling lock() and then failing to call unlock(). Note that, despite the name, in most cases the lock() method doesn't check that the given JMS object isn't already locked, so multiple calls to lock() without an unlock() will typically not generate any kind of error or warning (but will produce a memory leak).
At least for debugging purposes, a modified JMSObject.class file could be used which had a member variable isLocked, set isLocked in lock(), cleared it in unlock(), and verified it is clear before setting it (throwing/logging otherwise). If you are unable (or are legally prevented) from doing such a temporary modification yourself, you should suggest that support provide you with such a modified class file as it will likely be the fastest way to find the root cause. (Note that it would not necessarily flag an error on the faulty operation, but rather on the next attempted operation on the given object or one of its "children", so you would need to backtrack to figure out what the last operation was. "children" is defined as "session is child of connection" and "consumer/producer/browser" are child of session" -- locking/unlocking a child also locks/unlocks the parent.)
As a workaround, you might try just not using oc4j.jms.debug.
-Jeff

Similar Messages

  • Anyone can explain com.evermind.server.jms.JMSObject$ActivationRecord

    Hi,
    Recently i did heap dump on my application oc4j and find out lots of com.evermind.server.jms.JMSObject$ActivationRecord are created and causing the JVM restarted (because FULL GC was taken too much time and opmn ping timeout).
    My application is an ADF JSF/Toplink application. I have configured Toplink cache synchronization between different servers (using session customizer class).
    It also has several MDB which integrated with some BPEL Processes (Using JMS Adapter).
    Platform Solaris Sparc 5.10, Oracle Application Server 10g 10.1.3 SOA Suite.
    Why and What process creates this object? i know it's part of oc4j-internal.jar.
    Appreciate any helps.
    Regards,
    Ricky

    These objects are created on the server when the oc4j.jms.debug property is true. They are used to track DMS phases that have been started but not yet completed. DMS phases are started (and these objects created) when operations on various OC4J JMS server-side objects (representing JMS connections, sessions, producers, consumers, browsers) are started, and are (supposed to be) ended (and these objects released) when those operations complete. Specifically, allocation is done via JMSObject.lock and release is via JMSObject.unlock. It's possible that you are hitting some case where one of these operations is calling lock() and then failing to call unlock(). Note that, despite the name, in most cases the lock() method doesn't check that the given JMS object isn't already locked, so multiple calls to lock() without an unlock() will typically not generate any kind of error or warning (but will produce a memory leak).
    At least for debugging purposes, a modified JMSObject.class file could be used which had a member variable isLocked, set isLocked in lock(), cleared it in unlock(), and verified it is clear before setting it (throwing/logging otherwise). If you are unable (or are legally prevented) from doing such a temporary modification yourself, you should suggest that support provide you with such a modified class file as it will likely be the fastest way to find the root cause. (Note that it would not necessarily flag an error on the faulty operation, but rather on the next attempted operation on the given object or one of its "children", so you would need to backtrack to figure out what the last operation was. "children" is defined as "session is child of connection" and "consumer/producer/browser" are child of session" -- locking/unlocking a child also locks/unlocks the parent.)
    As a workaround, you might try just not using oc4j.jms.debug.
    -Jeff

  • Got Error Like::com.evermind.server.ejb.TimeoutExpiredException.

    Hi,
    I have one big application in which we are using oracle9iAS and EJB. While I am searching some data which returns more than 15000 rows then I got Followed Error.
    I use,
    Front End ::Swing
    Middle Ware ::EJB
    Application Server ::OC4J 9i
    com.evermind.server.ejb.TimeoutExpiredException: timeout expired waiting for an instance
    at com.evermind.server.ejb.EntityEJBHome.getContextInstance(EntityEJBHome.java:309)
    at com.evermind.server.ejb.DBEntityEJBHome.createWrapperInstance(DBEntityEJBHome.java:114)
    at com.evermind.server.ejb.DBEntityEJBHome.getWrapperInstanceNoCache(DBEntityEJBHome.java:108)
    at com.evermind.server.ejb.DBEntityEJBHome.getWrapperInstance(DBEntityEJBHome.java:149)
    at FingdAttrBMHome_EntityHomeWrapper193.findBy_CompleteSQLFinder(FingdAttrBMHome_EntityHomeWrapper193.java:1086)
    at com.fritolay.mware.mf.prd.session.FGItems.FGItemAppSearchBean.approvalSearchMethod(FGItemAppSearchBean.java:1422)
    at com.fritolay.mware.mf.prd.session.FGItems.FGItemSFBean.approvalSearch(FGItemSFBean.java:9713)
    at FGItemSFRemote_StatefulSessionBeanWrapper30.approvalSearch(FGItemSFRemote_StatefulSessionBeanWrapper30.java:1186)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
    at java.lang.Thread.run(Thread.java:484)
    Error: null:null:ApprovalSearch()->Exception occured in ApprovalBDCSearch found
    Code which produce this error is as follows::
    public Collection ejbFindBy_CompleteSQLFinder(String strSql)
              throws RemoteException, FinderException, ServerSideException {
         methodName = "ejbFindBy_generalCompleteFinder(String strSql)";
         log(SIMPLE_MESSAGE, "\n\rSTARTED");
         Connection con = null;
         Statement stmt = null;
         try {
                   String selectSQL = strSql;
         log(SIMPLE_MESSAGE, "selectSql :\n\r" + selectSQL);
         con = new SqlUtility().getConnection(DATA_SOURCE_NAME);
         stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery(selectSQL);
                                       Vector v = new Vector();
                        while (rs.next()) {
              FingdAttrPK pk = new FingdAttrPK(getValue(rs,this.ITEM_SYS_NBR,"ITEM_SYS_NBR") , getValue(rs,this.CTRY_CODE,"CTRY_CODE") , getValue(rs,this.CO_CODE,"CO_CODE") , getValue(rs,this.FGITEM_ATTR_EFF_DT,"FGITEM_ATTR_EFF_DT"));
                             log(SIMPLE_MESSAGE, "" + pk );
                             v.addElement(pk);
                   }     // End of While
                             log(SUCCESSFULLY_DONE,"successfully done ....");
                        return v;
         catch (SQLException sqle) {
         log(ERROR_OCCURED, "SQL Exception while getting PK " + sqle.getMessage());
         sqle.printStackTrace();
         int iErrorCode = sqle.getErrorCode();
         String sErrorDesciption [] = new String[] {"SQL Exception while getting collection of PK " + sqle.getMessage()};
         ServerSideException sse = new ServerSideException(beanName + methodName,iErrorCode,sErrorDesciption);
         throw sse;
         finally {
         log(SIMPLE_MESSAGE, "releaseResource(Statement) : " + new SqlUtility().releaseResource(stmt));
         log(SIMPLE_MESSAGE, "releaseResource(Connection) : " + new SqlUtility().releaseResource(con));
    So, how i can solve this issue?? is there any setting in .xml files??
    Regards,
    Jignesh Patel

    Thanks to all, The problem solved
    Regards
    Madhu V

  • NPE from com.evermind.server.ThreadState.getUser() creating slsb in UserManager

    I have a UserManager subclass which has to call session beans running in the application server.
    I successfully got my BeanRemoteHome object, but when I call "home.create()", I get the following exception:
    java.lang.NullPointerException
    com.evermind.security.User com.evermind.server.ThreadState.getUser()
              ThreadState.java:135
    com.attws.it.bsa.felix.ejb.session.UserEventManagerRemote UserEventManagerRemoteHome_StatelessSessionHomeWrapper6.create()
              UserEventManagerRemoteHome_StatelessSessionHomeWrapper6.java:61
    boolean com.attws.it.bsa.felix.common.utils.LoggingUserManager.checkPassword(java.lang.String, java.lang.String)
              LoggingUserManager.java:85
    boolean com.orionsupport.security.SimpleUserManager$UserWrapper.authenticate(java.lang.String)
              SimpleUserManager.java:63
    boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:559
    void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:243
    void com.evermind.util.ThreadPoolThread.run()
              ThreadPoolThread.java:64
    My code doesn't abort anything when this fails, it just goes on. Except for not being able to get this Remote interface in the UserManager class, my application starts up fine, and I'm able to perform operations.

    As an update, I just spent the last two hours writing a MDB to take the place of the session bean, in case that was the problem. I got past the obstacles that OC4J docs presented to me (specifying "jms-destination-type" instead of "destination-type", and neglecting to mention that you need to change the DOCTYPE to specify EJB 2.0 instead of 1.1) and successfully deployed an MDB, then I put some code into my UserManager to send a queue message instead of calling a session bean. When it finally got to the point of sending the message, I got the exception in the exact same place (this is from standalone OC4J, which is why the line number is 139 instead of 135):
    java.lang.NullPointerException
         at com.evermind.server.ThreadState.getUser(ThreadState.java:139)
         at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:701)
         at com.evermind.server.ejb.MessageDrivenHome.process(MessageDrivenHome.java:892)
         at com.evermind.server.jms.ServerQueue.add(ServerQueue.java:88)
         at com.evermind.server.jms.JMSServer.addMessage(JMSServer.java:313)
         at com.evermind.server.jms.LocalQueueConnection.send(LocalQueueConnection.java:46)
         at com.evermind.server.jms.EvermindQueueSession.send(EvermindQueueSession.java:117)
         at com.evermind.server.jms.EvermindQueueSender.send(EvermindQueueSender.java:75)
         at com.evermind.server.jms.EvermindQueueSender.send(EvermindQueueSender.java:36)
         at com.evermind.server.jms.EvermindQueueSender.send(EvermindQueueSender.java:31)
         at com.attws.it.bsa.felix.common.utils.LoggingUserManager.checkPassword(LoggingUserManager.java:134)
         at com.orionsupport.security.SimpleUserManager$UserWrapper.authenticate(SimpleUserManager.java:63)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:559)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)

  • Com.evermind.server.http.HttpIOException: Connection aborted by peer: socke

    Hi
    I get an this stack on the server side while doing a forward using RequestDispatcher.
    com.evermind.server.http.HttpIOException: Connection aborted by peer: socket write error
    at com.evermind.server.http.EvermindServletOutputStream.flushBuffer(EvermindServletOutputStream.java:81)
    at com.evermind.server.http.EvermindHttpServletResponse.flushBuffer(EvermindHttpServletResponse.java:1818)
    at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:52)
    The funniest part is, i get this exception while i submit the request second time i get this error.. First time it works fine. :)
    ANy solution on this would be greatly appreciated.
    Thanks
    Manju

    Hi!
    I posted a TAR on metalink for this "read timed out" problem. This is the answer I got:
    apparently the messages that you listed seem refer to a problem in reading request data from the client - so the HttpIOException is triggered.
    I have made a little research on HttpIOException in request-reading context. There are only
    two situations in which HttpIOException can be raised without an causing IOExce
    ption, and I think none of them applies. So we'd have some kind of IOException t
    hat causes the HttpIOException. It might well be a SocketException, because the
    text "Read timed out" is as far as I know the standard text for SocketException
    if the socket's SoTimeout has been reached.
    In fact there is a configuration parameter for OC4J (though undocumented), which allows you to set the Socket's SoT
    imeout -- and the default is 15000 (measured in milliseconds). The name is "orac
    le.j2ee.http.socket.timeout", and it should be available in OC4J 9.0.3.1 and hig
    her (I am definitely sure that it exists in OC4J 9.0.4.1).
    So can you please add something like "-Doracle.j2ee.http.socket.timeout=120000" to the startup comma
    nd for your standalone OC4J container to increase the timeout from 15 seconds to
    2 minutes?
    It helped us, although some requests time out "normally" instead.
    /jonas

  • Com.evermind.server.rmi.RMIClientContext.lookup ERROR

    Hello,
    I'm trying to follow up the JavaEE_tutorial.PDF (http://www.oracle.com/technology/obe/JavaEE_tutorial_10131/index.htm) and when want to testing the Data Model I get this error:
    D:\oracle\jdevstudio10131\jdk\bin\javaw.exe -client -classpath D:\oracle\jdevstudio10131\jdev\mywork\SRDEMO\Model\classes;D:\oracle\jdevstudio10131\j2ee\home\lib\ejb30.jar;D:\oracle\jdevstudio10131\toplink\jlib\toplink-essentials.jar;D:\oracle\jdevstudio10131\j2ee\home\lib\activation.jar;D:\oracle\jdevstudio10131\j2ee\home\lib\ejb.jar;D:\oracle\jdevstudio10131\j2ee\home\lib\jms.jar;D:\oracle\jdevstudio10131\j2ee\home\lib\jta.jar;D:\oracle\jdevstudio10131\j2ee\home\lib\mail.jar;D:\oracle\jdevstudio10131\j2ee\home\lib\servlet.jar;D:\oracle\jdevstudio10131\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\.client;D:\oracle\jdevstudio10131\j2ee\home\oc4j.jar;D:\oracle\jdevstudio10131\j2ee\home\lib\oc4j-internal.jar;D:\oracle\jdevstudio10131\opmn\lib\optic.jar;D:\oracle\jdevstudio10131\toplink\jlib\toplink.jar;D:\oracle\jdevstudio10131\toplink\jlib\toplink-oc4j.jar;D:\oracle\jdevstudio10131\toplink\jlib\antlr.jar org.srdemo.client.ServiceRequestFacadeClientEmbed
    javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:292)
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at org.srdemo.client.ServiceRequestFacadeClientEmbed.main(ServiceRequestFacadeClientEmbed.java:23)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:507)
         at java.net.Socket.connect(Socket.java:457)
         at java.net.Socket.<init>(Socket.java:365)
         at java.net.Socket.<init>(Socket.java:207)
         at com.evermind.server.rmi.RMIClientConnection.createSocket(RMIClientConnection.java:682)
         at oracle.oc4j.rmi.ClientSocketRmiTransport.createNetworkConnection(ClientSocketRmiTransport.java:58)
         at oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:78)
         at oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:68)
         at com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:646)
         at com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:190)
         at com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:174)
         at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:283)
         ... 3 more
    Process exited with exit code 0.
    Thanks in advance for your help,
    Miguel

    It does work!!
    I have a incorrect connection pool in the data-sources.xml
    Bye

  • Com.evermind.server.rmi.OrionRemoteException: Error in setSessionContext():

    Dear Friends
    Here is the problem.
    please let me know the cause for the following error. This problem is coming while accessing the ejb component.
    please give replay to the following id.
    [email protected]
    com.evermind.server.rmi.OrionRemoteException: Error in setSessionContext(): null
    at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:219)
    at ResourceMgr_StatelessSessionBeanWrapper22.getSearchTechnicians(ResourceMgr_StatelessSessionBeanWrapper22.java:
    at com.dsr.sov02.resourcemgr.ResourceMgrBD.getSearchTechnicians(ResourceMgrBD.java:3849)
    at com.dsr.sov02.rovingeye.techmgmt.sf.TechMgmtSFEJB.getSearchTechnicians(TechMgmtSFEJB.java:732)
    at TechMgmtSF_StatelessSessionBeanWrapper32.getSearchTechnicians(TechMgmtSF_StatelessSessionBeanWrapper32.java:17
    at com.dsr.sov02.rovingeye.TechMgmtBD.getSearchTechnicians(TechMgmtBD.java:825)
    at com.dsr.sov02.rovingeye.TechMgmtBP.getSearchTechnicians(TechMgmtBP.java:339)
    at com.dsr.sov02.rovingeye.techmgmt.techsearch.TechSearchUCI.getSearchTechnicians(TechSearchUCI.java:124)
    at com.dsr.sov02.rovingeye.techmgmt.techsearch.TechSearchRH.processRequest(TechSearchRH.java:198)
    at com.dsr.sov02.rovingeye.RovingEyeRP.processRequest(RovingEyeRP.java:76)
    at com.dsr.sov02.rovingeye.RovingEyeFC.doGet(rovingeyefc.java:41)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
    at java.lang.Thread.run(Unknown Source)
    Nested exception is:
    java.lang.NoSuchMethodError
    at com.dsr.sov02.resourcemgr.sf.ResourceMgrEJB.setSessionContext(ResourceMgrEJB.java:87)
    at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:213)
    at ResourceMgr_StatelessSessionBeanWrapper22.getSearchTechnicians(ResourceMgr_StatelessSessionBeanWrapper22.java:
    at com.dsr.sov02.resourcemgr.ResourceMgrBD.getSearchTechnicians(ResourceMgrBD.java:3849)
    at com.dsr.sov02.rovingeye.techmgmt.sf.TechMgmtSFEJB.getSearchTechnicians(TechMgmtSFEJB.java:732)
    at TechMgmtSF_StatelessSessionBeanWrapper32.getSearchTechnicians(TechMgmtSF_StatelessSessionBeanWrapper32.java:17
    at com.dsr.sov02.rovingeye.TechMgmtBD.getSearchTechnicians(TechMgmtBD.java:825)
    at com.dsr.sov02.rovingeye.TechMgmtBP.getSearchTechnicians(TechMgmtBP.java:339)
    at com.dsr.sov02.rovingeye.techmgmt.techsearch.TechSearchUCI.getSearchTechnicians(TechSearchUCI.java:124)
    at com.dsr.sov02.rovingeye.techmgmt.techsearch.TechSearchRH.processRequest(TechSearchRH.java:198)
    at com.dsr.sov02.rovingeye.RovingEyeRP.processRequest(RovingEyeRP.java:76)
    at com.dsr.sov02.rovingeye.RovingEyeFC.doGet(rovingeyefc.java:41)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
    at java.lang.Thread.run(Unknown Source)
    Thanks in advance.
    Kumar T.

    Kumar,
    From the stack trace you have posted, it appears that in line 87 of file "ResourceMgrEJB.java" (in package "com.dsr.sov02.resourcemgr.sf"), you are invoking a non-existent method. Have you looked at that line of the code?
    Good Luck,
    Avi.

  • Caught "com.evermind.server.rmi.OrionRemoteException" while attempting to find all De

    I am getting the following error while running JSP. Can anyone guide me.
    Caught "com.evermind.server.rmi.OrionRemoteException" while attempting to find all DepartmentBean entries.
    com.evermind.server.rmi.OrionRemoteException: Database error: Io exception: The Network Adapter could not establish the connection; nested exception is: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Add entry
    I have doubt in
    My rmi.xml file
    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE rmi-server PUBLIC "Orion RMI-server" "http://xmlns.oracle.com/ias/dtds/rmi-server.dtd">
    <rmi-server port="23791" >     
         <!-- A remote server connection example -->
         <!-- <server host="the.remote.server.com" username="adminUser" password="123abc" /> -->
    <!--     <server host="169.254.162.207" username="admin" password="welcome" /> -->
    <!--     <server host="prg-fg9s9g12dnz" username="admin" password="welcome" /> -->
         <!-- path to the log-file where RMI-events/errors are stored -->
         <log>
              <file path="../log/rmi.log" />
         </log>
    </rmi-server>
    If I give server host line My oc4j server is NOT initialized.
    In My Data Sources file :
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="jdbc/DBConnection"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/DBConnection"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="RajiveShukla"
              password="pujavrms1"
              url="jdbc:oracle:thin:@localhost:1521:wbs"
              inactivity-timeout="30"
         />
    And JSP which I run is :
    <%
    * list.jsp
    * Lists all the entries stored through EmployeeBean. This JSP is the only JSP
    * that will actually connect to the entity bean. On success, it will save a
    * reference to the entity bean in the session. So there will be one reference
    * to the bean per session.
    %>
    <%@ page import="com.webstore.*,java.io.*,java.net.*,java.util.*,javax.naming.*,javax.rmi.*" %>
    <%
    // Make sure this page will not be cached by the browser
    response.addHeader("Pragma", "no-cache");
    response.addHeader("Cache-Control", "no-store");
    // We will send error messages to System.err, for verbosity. In a real
    // application you will probably not want this.
    PrintStream errorStream = System.err;
    // If we find any fatal error, we will store it in the "error" variable. If
    // an exception is caught that corresponds with this error message, then we
    // will store it in the "exception" variable.
    String error = null;
    Exception exception = null;
    // First check if the reference to the EJB is already stored in the session.
    DepartmentHome home = (DepartmentHome) session.getAttribute("DepartmentHome");
    // If not, then attempt to get the initial JNDI context.
    if (home == null) {
    // When attempting to connect to JNDI, we store the reference to the
    // initial JNDI context in this variable. We will use it to lookup the
    // entity bean.
    Context context = null;
    try {
    context = new InitialContext();
    } catch (Exception e) {
    exception = e;
    error = "Caught \"" + exception.getClass().getName() + "\" while " +
    "attempting to create the initial JNDI context.";
    errorStream.println(error);
    exception.printStackTrace(errorStream);
    // We have specified "EmployeeBean" in the web.xml file as the name
    // by which we would like to contact the EmployeeBean home interface. We will
    // have to prepend "java:comp/env/", the root `directory' for enterprise
    // beans.
    //final String location = "java:comp/env/DepartmentBean";
    if (error == null) {
    try {
    // Attempt to lookup an object at the specified location in the JNDI
    // context.
    //Object boundObject = context.lookup(location);
    Object boundObject = context.lookup("Department");
    // Try to convert it to an instance of EmployeeBean, the home
    // interface for our bean.
    home = (DepartmentHome) PortableRemoteObject.narrow(boundObject,
    DepartmentHome.class);
    // If we got this far, we've done it, let's save the reference to the
    // Employee home interface in the session for future use by both
    // this page and the other JSP pages.
    session.setAttribute("DepartmentHome", home);
    } catch (Exception e) {
    exception = e;
    error = "Caught \"" + exception.getClass().getName() + "\" while " +
    "attempting to lookup the Department bean at \"" + "\".";
    //location + "\".";
    errorStream.println(error);
    exception.printStackTrace(errorStream);
    // This is the variable we will store all records in.
    Collection recs = null;
    if (error == null) {
    try {
    recs = home.findAll();
    } catch (Exception e) {
    exception = e;
    error = "Caught \"" + exception.getClass().getName() + "\" while " +
    "attempting to find all DepartmentBean entries.";
    errorStream.println(error);
    exception.printStackTrace(errorStream);
    // Decide what the title will be.
    String title;
    if (error != null) {
    title = "Error";
    } else {
    title = "com.webstore | List of entries";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <HTML>
    <HEAD>
    <TITLE><%= title %></TITLE>
    </HEAD>
    <BODY bgcolor="#FFFFFF">
    <H1><%= title %></H1>
    <%
    // Display the error message, if any.
    if (error != null) {
    %>
    <P><BLOCKQUOTE><%= error %></BLOCKQUOTE>
    <%
    // Display the exception message, if any.
    if (exception != null) {
    %>
    <P><BLOCKQUOTE><CODE><%= exception %></CODE></BLOCKQUOTE>
    <%
    } /* if */
    } else {
    // If there are no recs to be displayed, display a descriptive text.
    if (recs.size() == 0) {
    %>
    <P><BLOCKQUOTE>No entries found.</BLOCKQUOTE>
    <%
    // Otherwise display a table with all columns, and
    // display two extra choices: "Edit" and "Delete".
    } else {
    %>
    <P><TABLE border="1" width="100%">
    <TR>
    <TD><STRONG>DptNo (long)</STRONG></TD>
    <TD><STRONG>DptName (String)</STRONG></TD>
    <TD><STRONG>Actions</STRONG></TD>
    </TR>
    <%
    Iterator iterator = recs.iterator();
    while(iterator.hasNext()) {
         Department rec = (Department) PortableRemoteObject.narrow(iterator.next(),
    Department.class);
    long dptNo = rec.getDptno();
    String dptName= rec.getDptname();
    // put all pk columns in hashtable for URLEncoding
    Hashtable cols = new Hashtable();
    cols.put("DPTNO",Long.valueOf("dptNo"));
    // URLEncode columns as params to JSP
    StringBuffer buf = new StringBuffer();
    Enumeration params = cols.keys();
    while (params.hasMoreElements()) {
    String param = (String)params.nextElement();
    String value = (String)cols.get(param);
    buf.append(URLEncoder.encode(param) +
    "=" + URLEncoder.encode(value));
    if (params.hasMoreElements())
    buf.append("&");
    String editURL = "dptedit.jsp?" + buf;
    String deleteURL = "dptdelete.jsp?" + buf;
    %>
    <TR>
    <TD><%= dptNo %></TD>
    <TD><%= dptName %></TD>
    <TD><A href="<%= editURL %>">Edit</A> <A href="<%= deleteURL %>">Delete</A></TD>
    </TR>
    <%
    } /* for */
    %>
    </TABLE>
    <%
    } /* else */
    } /* else */
    // Finally display a link to the page that allows the user to add an entry
    // to the address book.
    %>
    <P><TABLE border="1">
    <TR><TD><A href="dptadd.jsp">Add entry</A></TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    Please guide me..

    Hi Avi,
    Thanks,
    I have already used earlier..
    the data-sources file is as under.
         <data-source class="com.evermind.sql.DriverManagerDataSource" name="jdbc/DBConnection" location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS" ejb-location="com.webstore.Department" connection-driver="oracle.jdbc.driver.OracleDriver" username="RajiveShukla" password="pxujxa" url="jdbc:oracle:thin:@PRG-FG9S9G12DNZ:1521:wbs" inactivity-timeout="30"/>
    </data-sources>
    The username and password and sid, I can connect in the sqlPlus
    Do we have to give remote server name in rmi.xml.. It is not initilizing the J2EE server if we give that.??
    I am using thin driver , if any change or any settings please write me..
    Thanks in advance..
    Rajive

  • Java.lang.NullPointerException at com.evermind.server.ObjectReferenceCleane

    I am getting the below error when the server is started. Can any one let me know why do we get this error?
    13/01/13 23:33:28.432 10.1.3.5.0 Started
    13/01/14 00:46:53.915 Internal server error
    java.lang.NullPointerException
    at com.evermind.server.ObjectReferenceCleaner.resetApplicationLogger(ObjectReferenceCleaner.java:260)
    at com.evermind.server.ObjectReferenceCleaner.cleanupApplicationLogger(ObjectReferenceCleaner.java:167)
    at com.evermind.server.ObjectReferenceCleaner.loaderDestroyed(ObjectReferenceCleaner.java:94)
    at oracle.classloader.EventDispatcher.loaderDestroyed(EventDispatcher.java:254)
    at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1187)
    at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1126)
    at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1069)
    at com.evermind.server.ApplicationStateRunning.destroyClassLoaders(ApplicationStateRunning.java:1201)
    at com.evermind.server.Application.stateCleanUp(Application.java:3766)
    at com.evermind.server.Application.destroy(Application.java:802)
    at com.evermind.server.ApplicationServer.destroyApplications(ApplicationServer.java:2337)
    at com.evermind.server.ApplicationServer.destroy(ApplicationServer.java:2124)
    at com.evermind.server.ApplicationServerShutdownHandler.run(ApplicationServerShutdownHandler.java:93)
    at java.lang.Thread.run(Thread.java:662)
    13/01/14 00:48:42.413 10.1.3.5.0 Started

    I am getting the below error when the server is started. Can any one let me know why do we get this error?
    13/01/13 23:33:28.432 10.1.3.5.0 Started
    13/01/14 00:46:53.915 Internal server error
    java.lang.NullPointerException
    at com.evermind.server.ObjectReferenceCleaner.resetApplicationLogger(ObjectReferenceCleaner.java:260)
    at com.evermind.server.ObjectReferenceCleaner.cleanupApplicationLogger(ObjectReferenceCleaner.java:167)
    at com.evermind.server.ObjectReferenceCleaner.loaderDestroyed(ObjectReferenceCleaner.java:94)
    at oracle.classloader.EventDispatcher.loaderDestroyed(EventDispatcher.java:254)
    at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1187)
    at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1126)
    at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1069)
    at com.evermind.server.ApplicationStateRunning.destroyClassLoaders(ApplicationStateRunning.java:1201)
    at com.evermind.server.Application.stateCleanUp(Application.java:3766)
    at com.evermind.server.Application.destroy(Application.java:802)
    at com.evermind.server.ApplicationServer.destroyApplications(ApplicationServer.java:2337)
    at com.evermind.server.ApplicationServer.destroy(ApplicationServer.java:2124)
    at com.evermind.server.ApplicationServerShutdownHandler.run(ApplicationServerShutdownHandler.java:93)
    at java.lang.Thread.run(Thread.java:662)
    13/01/14 00:48:42.413 10.1.3.5.0 Started

  • Com.evermind.server.http.HttpIOException: Broken pipe

    i am getting this error at my server. Can anybody help me in solving this. I am using Oracle 9iAs..and this is the full error that i get
    com.evermind.server.http.HttpIOException: Broken pipe
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(Compiled Code)
    at com.evermind.server.http.HttpIOException.<init>(Compiled Code)
    at com.evermind.server.http.EvermindServletOutputStream.write(Compiled C
    ode)
    at com.evermind.server.http.EvermindServletOutputStream.write(Compiled C
    ode)
    at com.evermind.server.http.EvermindServletOutputStream.write(Compiled C
    ode)
    at com.evermind.server.http.HttpApplication.include(Compiled Code)
    at com.evermind.server.http.FileRequestDispatcher.forwardInternal(Compil
    ed Code)
    at com.evermind.server.http.FileRequestDispatcher.forward(Compiled Code)
    at Premier.RegistrationServlet.createHTML(Compiled Code)
    at Premier.RegistrationServlet.doGet(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(Compiled Cod
    e)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Com
    piled Code)
    at com.evermind.server.http.HttpRequestHandler.processRequest(Compiled C
    ode)
    at com.evermind.server.http.HttpRequestHandler.run(Compiled Code)
    at com.evermind.util.ThreadPoolThread.run(Compiled Code)

    I suggest you recompile your servlet RegistrationServlet with the debug option that way you will get the line in your source code that has triggered the Exception instead of (Compiled Code). From then on it will be easier for you to start undestanding what's going on.

  • Com.evermind.server.http.HttpIOException: Read timed out

    Hello,
    I am using embded oracle oc4j server and getting following exception, and I cant fine httpd.conf file to increase KeepTimeout
    ERROR : HttpRequestHandler-1229 com.tcs.sgv.common.exception.BaseException - The stack trace is:
    com.evermind.server.http.HttpIOException: Read timed out
         at com.evermind.server.http.EvermindServletInputStream.read(EvermindServletInputStream.java:92)
         at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
         at com.hhc.MultipartInputStreamHandler.readLine(MultipartRequest.java:831)
         at com.hhc.MultipartInputStreamHandler.readLine(MultipartRequest.java:808)
         at com.hhc.MultipartRequest.readRequest(MultipartRequest.java:394)
         at com.hhc.MultipartRequest.<init>(MultipartRequest.java:222)
         at com.tcs.sgv.fms.requesthandler.NotingRequestHandler.getNotings(NotingRequestHandler.java:1250)
         at com.tcs.sgv.fms.requesthandler.NotingRequestHandler.processRequest(NotingRequestHandler.java:304)
         at com.tcs.sgv.common.servlet.FrontServlet.processRequest(FrontServlet.java:171)
         at com.tcs.sgv.common.servlet.FrontServlet.doPost(FrontServlet.java:112)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    - 10 Jul 2009 05:10:24,782 - 703516 milliseconds
    Please help me regarding this problem

    Oracle have their own support forums at http://otn.oracle.com
    You may also want to search MetaLink.

  • Getting com.evermind.server.http.NotFoundServlet Exception

    Hi!
    My OC4J 9.0.4 is throwing "com.evermind.server.http.NotFoundServlet" exception messages in its application.log file, It is preceded by "Connection reset by peer: socket write error" or "Connection aborted by peer: socket write error". The whole text of messages are:
    "com.evermind.server.http.NotFoundServlet: destroy" or
    "com.evermind.server.http.NotFoundServlet: init"
    It appears without any explanation, My application consists of an EAR File that contains a WAR file with the JSP's of my application..
    Please could you help me with this issue?.
    Thanks for any support!

    Hi Tugdual
    You can find the full stack trace you requested obtained from the application.log file bellow:
    05/03/13 22:14:31 applicationWAR: jsp: init
    05/03/13 22:14:31 applicationWAR: 9.0.4.0.0 Started
    05/03/14 06:59:23 applicationWAR: Connection reset by peer: socket write error
    05/03/14 07:12:46 applicationWAR: Connection reset by peer: socket write error
    05/03/14 07:12:47 applicationWAR: Connection reset by peer: socket write error
    2005/03/14 07:12:47 applicationWAR: Connection reset by peer: socket write error
    05/03/14 08:06:42 applicationWAR: com.evermind.server.http.NotFoundServlet: init
    05/03/14 09:34:03 Started
    05/03/14 09:34:04 applicationWAR: jsp: init
    05/03/14 09:34:04 applicationWAR: 9.0.4.0.0 Started
    05/03/14 09:35:18 applicationWAR: com.evermind.server.http.NotFoundServlet: init
    05/03/14 15:00:02 applicationWAR: Connection reset by peer: socket write error
    05/03/14 16:47:01 applicationWAR: Connection reset by peer: socket write error
    05/03/14 16:47:01 applicationWAR: Connection reset by peer: socket write error
    My http-web-access.log file shows that the application keeps running until 09:03:33, so the server was restarted at 09:34:03 and I don't have any further information, I expect it to be enough.
    Thanks!!

  • Com.evermind.server.rmi.RMIConnectionException: Unknown command: 0

    hei!
    I have a simple SessionBean, deployed to remote OC4J.(the bean is tested locally and is fine)
    using Jdeveloper, I create a client to call my sessionBean methods.
    If I create the client to run agains the embedded oc4j, it works fine.
    If I create a client that runs agains the remote oc4j, I get this error:
    com.evermind.server.rmi.RMIConnectionException: Unknown command: 0
    and a lot of
    java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])     
    appreciate your help
    Regards
    RT

    Russel ,
    Have you started remote OC4J Server? Also can you able to browse
    JNDI tree of Remote OC4J Server from JDeveloper?
    Also provide following information in order to understand your problem fully
    1. Which OC4J version you are using?
    2. Platform in which you are testing your application?
    3. Provide full stack trace of error that you are getting
    Cheers
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Com.evermind.server.http.HttpIOException: There is no process to read data

    Hi,
    In one of our web application deployed in OC4J( Oracle9ias 9.0.2.3) containers we are getting "com.evermind.server.http.HttpIOException: There is no process to read data written to a pipe." Exception.
    The Stack Trace:
    com.evermind.server.http.HttpIOException: There is no process to read data written to a pipe.
         at com.evermind.server.http.EvermindServletOutputStream.flush(EvermindServletOutputStream.java(Compiled Code))
         at java.io.OutputStreamWriter.flush(OutputStreamWriter.java(Compiled Code))
         at java.io.OutputStreamWriter.close(OutputStreamWriter.java(Compiled Code))
         at com.ramco.security.servlet.Dispatcher.sendResponse(Dispatcher.java(Inlined Compiled Code))
         at com.ramco.security.servlet.Dispatcher.service(Dispatcher.java(Compiled Code))
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java(Compiled Code))
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java(Compiled Code))
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
         at java.lang.Thread.run(Thread.java:513)
    Can anyone help us in resolving this issue?
    Regards,
    Suresh.M

    Hi,
    No... It is yet to be resolved.
    Oracle Recommends us to go to 10g ( at least 9.0.4 ) to check the issue.
    Thanks and Regards,
    Suresh.M

  • ClassCastException: com.evermind.server.rmi.OrionRemoteException

    We have resently tried to move our application from OC4J 9.0.3 to the OC4J 9.0.4 preview.
    However when autogenerating data we get the following exception:
    com.evermind.server.rmi.OrionRemoteException: java.lang.ClassCastException: com.evermind.server.rmi.OrionRemoteException
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:275)
         at InstallSession_StatelessSessionBeanWrapper2717.createItemBatchBaseData(InstallSession_StatelessSessionBeanWrapper2717.java:268)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:479)
    at connection to wmsserver/192.168.1.95 as admin
         at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1499)
         at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1452)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:50)
         at __Proxy1.createItemBatchBaseData(Unknown Source)
         at Sampleinstall.InstallSessionClient2.main(InstallSessionClient2.java:28)
         Nested exception is:
    java.lang.ClassCastException: com.evermind.server.rmi.OrionRemoteException
         at ItemBatchLocalHome_EntityHomeWrapper343.create(ItemBatchLocalHome_EntityHomeWrapper343.java:1063)
         at install.impl.InstallSessionBean.createItemBatchBaseData(InstallSessionBean.java:120)
         at InstallSession_StatelessSessionBeanWrapper2717.createItemBatchBaseData(InstallSession_StatelessSessionBeanWrapper2717.java:254)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:479)
    at connection to wmsserver/192.168.1.95
         at com.evermind.server.rmi.OrionRemoteException.receive(OrionRemoteException.java:130)
         at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1622)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:406)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:286)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:536)
    Process exited with exit code 0.
    The method which fails is the following method, which is located in an orinary stateless session bean:
    public void createItemBatchBaseData() {
    try{
    ItemBatchLocalHome itemBatchHome = getItemBatchLocalHome();
    ItemLocalHome itemHome = getItemLocalHome(); ItemLocal item = itemHome.findByPrimaryKey("5501");
    System.out.println("Før create "+item);
    ItemBatchLocal itemBatch = itemBatchHome.create(item,
    "B05501-1",
    new Long(System.currentTimeMillis()),
    new Boolean(false),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),
    new Long(System.currentTimeMillis()),
    new Long(System.currentTimeMillis()),
    new Long(System.currentTimeMillis()),
    new Integer(0));
    System.err.println("Efter create");
    item = itemHome.findByPrimaryKey("5502");
    /* FAILS HERE >> */ itemBatch = itemBatchHome.create(item,
    ("B05502-1"),
    new Long(System.currentTimeMillis()),
    new Boolean(false),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),
    new Long(System.currentTimeMillis()),
    new Long(System.currentTimeMillis()),
    new Long(System.currentTimeMillis()),
    new Integer(0));
    catch (CreateException e) {
    System.err.println("Et eller flere batchnumre er oprettet i forvejen \n");
    e.printStackTrace();
    catch (FinderException f){
    System.err.println("Ved oprettelse af batchnummer manglede relateret vare \n");
    f.printStackTrace();
    catch (NamingException e) {
    System.err.println("Naming");
    e.printStackTrace();
    itemBatch is a CMP entity bean, with nothing but the field getters and setters, so it should be quite basic.
    It worked without problems in 9.0.3, so we are wondering what we might have missed when changing to 9.0.4.
    mvh
    NHB

    We have resently tried to move our application from OC4J 9.0.3 to the OC4J 9.0.4 preview.
    However when autogenerating data we get the following exception:
    com.evermind.server.rmi.OrionRemoteException: java.lang.ClassCastException: com.evermind.server.rmi.OrionRemoteException
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:275)
         at InstallSession_StatelessSessionBeanWrapper2717.createItemBatchBaseData(InstallSession_StatelessSessionBeanWrapper2717.java:268)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:479)
    at connection to wmsserver/192.168.1.95 as admin
         at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1499)
         at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1452)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:50)
         at __Proxy1.createItemBatchBaseData(Unknown Source)
         at Sampleinstall.InstallSessionClient2.main(InstallSessionClient2.java:28)
         Nested exception is:
    java.lang.ClassCastException: com.evermind.server.rmi.OrionRemoteException
         at ItemBatchLocalHome_EntityHomeWrapper343.create(ItemBatchLocalHome_EntityHomeWrapper343.java:1063)
         at install.impl.InstallSessionBean.createItemBatchBaseData(InstallSessionBean.java:120)
         at InstallSession_StatelessSessionBeanWrapper2717.createItemBatchBaseData(InstallSession_StatelessSessionBeanWrapper2717.java:254)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:124)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:479)
    at connection to wmsserver/192.168.1.95
         at com.evermind.server.rmi.OrionRemoteException.receive(OrionRemoteException.java:130)
         at com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse(RMIConnection.java:1622)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:406)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:286)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:536)
    Process exited with exit code 0.
    The method which fails is the following method, which is located in an orinary stateless session bean:
    public void createItemBatchBaseData() {
    try{
    ItemBatchLocalHome itemBatchHome = getItemBatchLocalHome();
    ItemLocalHome itemHome = getItemLocalHome(); ItemLocal item = itemHome.findByPrimaryKey("5501");
    System.out.println("Før create "+item);
    ItemBatchLocal itemBatch = itemBatchHome.create(item,
    "B05501-1",
    new Long(System.currentTimeMillis()),
    new Boolean(false),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),
    new Long(System.currentTimeMillis()),
    new Long(System.currentTimeMillis()),
    new Long(System.currentTimeMillis()),
    new Integer(0));
    System.err.println("Efter create");
    item = itemHome.findByPrimaryKey("5502");
    /* FAILS HERE >> */ itemBatch = itemBatchHome.create(item,
    ("B05502-1"),
    new Long(System.currentTimeMillis()),
    new Boolean(false),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),
    new Double(0),new Double(0),new Double(0),
    new Long(System.currentTimeMillis()),
    new Long(System.currentTimeMillis()),
    new Long(System.currentTimeMillis()),
    new Integer(0));
    catch (CreateException e) {
    System.err.println("Et eller flere batchnumre er oprettet i forvejen \n");
    e.printStackTrace();
    catch (FinderException f){
    System.err.println("Ved oprettelse af batchnummer manglede relateret vare \n");
    f.printStackTrace();
    catch (NamingException e) {
    System.err.println("Naming");
    e.printStackTrace();
    itemBatch is a CMP entity bean, with nothing but the field getters and setters, so it should be quite basic.
    It worked without problems in 9.0.3, so we are wondering what we might have missed when changing to 9.0.4.
    mvh
    NHB

Maybe you are looking for

  • Usage of the xp20:matches() - String  function -reg

    Hi, Our current requirement is that if we receive the message that matches the pattern (Ie input starting with A to L) both inclusive(for eg : A123 , B567,... ,L890),we need to perform some routing in the mediator depending upon the message. I have t

  • Always uploads whole page, even with minor changes // please help....

    even if I only change the permission code to the webpage or even if i change one dot, the page uploads the whole thing again. If I click "changes only" it doesn't work. The this occurs only if I upload to mobile me, when I used another ftp server the

  • Increasing volume levels from Ipod

    I have loads of AAC & MP3 files loaded on my Ipod but the volume levels are too low when played through the car AUX is there a way to increase the volumes before or after they download to the Ipod.

  • PDF Preview Issues since 10.6.5 Update

    I've noted posts of similar PDF issues since the 10.6.5 update, though not exactly like mine. Since the update some PDF's are not rendering properly. Specifically no text shows up (though the headers / graphics, underlines and text boxes were there).

  • Uninstalling Parallels on new MacBook Pro (Mountain Lion)

    Hello everyone! I recently purchased a new MacBook Pro (the lowest end 13-inch model). I had Parallels 3 (ancient!) on my old MacBook. I no longer need it on the new one and, well, that doesn't really matter because it doesn't run on it anyway. I use