Oc4j RMI Cache Sychronization

How do I configure Toplink to work under ias using RMIClusteringService. When sessions.xml has the following
        <cache-synchronization-manager>
            <clustering-service>oracle.toplink.remote.rmi.RMIClusteringService</clustering-service>
            <should-remove-connection-on-error>true</should-remove-connection-on-error>
            <is-asynchronous>true</is-asynchronous>
            <naming-service-url>localhost:23791</naming-service-url>
        </cache-synchronization-manager>I get the following exception
EXCEPTION DESCRIPTION: Could not bind controller under registry name: 62e295:f27ff38271:-8000172-17-36-1:646747
INTERNAL EXCEPTION: java.rmi.MarshalException: Transport protocol not supported by server
     at oracle.toplink.exceptions.SynchronizationException.errorBindingController(Unknown Source)
     at oracle.toplink.remote.rmi.RMIClusteringService.registerDispatcher(Unknown Source)Changing the naming-service-url to ormi://localhost:23791 causes another excption
EXCEPTION DESCRIPTION: Could not bind controller under registry name: 682598:f27ff5a137:-8000172-17-36-1:8140933
INTERNAL EXCEPTION: java.lang.NumberFormatException: //localhost:23791
     at oracle.toplink.Long postings are being truncated to ~1 kB at this time.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hi Rajiv..,
Instaed of passing complete URL like : ormi://localhost:23791
just give URL as like localhost:23791
because Toplink API getting first index of ":" and treating second portion as port, which results converting following string into int //localhost:23791 is not possible.., so it is throwing numberformat exception.,
Message was edited by:
sekharS
Message was edited by:
sekharS

Similar Messages

  • Jpa (toplink) + oc4j: oracle.oc4j.rmi.OracleRemoteException

    Hi Brains, :P
    I'm trying create a query with javax.persistence.Query im my Stateless in the OC4J.
    Query query = em.createQuery("my string query");
    This line throw the exception oracle.oc4j.rmi.OracleRemoteException:
    2009-03-06 13:02:38.484 ERROR J2EE EJB-08006 [MyClass:public java.util.List my.package.ejb.session.MyClass.myMethod] exceção ao chamar método: oracle.oc4j.rmi.OracleRemoteException: java.lang.NoClassDefFoundError; nested exception is:
         java.lang.NoClassDefFoundError
    I'd like to thank all the attention.

    Hi Chris,
    I solved this question.
    I had a problem with an entity bean. And the strange that it is not part of the query. :S.
    Thanks a lot.
    ;)

  • Oracle.oc4j.rmi.OracleRemoteException while calling EJB from MDB

    Hi All,
    From Client am sending a request to a In_queue, MDB picks from that queue and sends to EJB. EJB processes it and sends back to the MDB and MDB to Client. This works fine for 20 requests. When i increase to 30 am getting EXCEPTION : oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException: Timed out
    I have increased the transaction-timeout to "999999" in orion-ejb-jar.xml. Still i get the same error. Can anybody please help me on this.
    Thank you in advance

    Hi all,
    Got the way to solve this. I increased the time of transaction-timeout to "100" in transaction-manager.xml. by default it is "30"

  • Oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.lang.NoSuchMe

    Hi
    i write simple session EJB with simple helloworld method
    Iam using jdeveloper
    Jdeveloper gave option to write sample client to test above session bean
    When i run that client i got this exception
    Am i missing anything
    This is a kind of urgent
    Any help will be appreciated
    oracle.oc4j.rmi.OracleRemoteException: Invocation error: java.lang.NoSuchMethodException: ejb.SessionEJB.helloworld()
         at com.evermind.server.rmi.RMIConnection.handleExceptionFromMethodInvocation(RMIConnection.java:745)
         at com.evermind.server.rmi.RMIConnection.obtainRemoteMethodResponse(RMIConnection.java:705)
         at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:697)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:70)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:27)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.helloworld(Unknown Source)
         at ejb.SessionEJBClient.main(SessionEJBClient.java:24)
         Nested exception is:
    java.lang.NoSuchMethodException: ejb.SessionEJB.helloworld()
         at java.lang.Class.getMethod(Class.java)
         at com.evermind.server.rmi.RMIConnection.readMethod(RMIConnection.java:492)
         at com.evermind.server.rmi.RMIConnection.handleMethodInvocation(RMIConnection.java:418)
         at com.evermind.server.rmi.RMIConnection.handleOrmiCommandRequest(RMIConnection.java:357)
         at com.evermind.server.rmi.RMIServerConnection.handleOrmiCommandRequest(RMIServerConnection.java:192)
         at com.evermind.server.rmi.RMIConnection.dispatchRequest(RMIConnection.java:325)
         at com.evermind.server.rmi.RMIConnection.processReceivedCommand(RMIConnection.java:275)
         at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:236)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:202)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
         at java.lang.Thread.run(Thread.java:534)
    Process exited with exit code 0.

    java.lang.NoSuchMethodException: ejb.SessionEJB.helloworld()
    Check the method definition.
    Does the method have parameters?
    Is the method helloWorld?

  • RMI Cache coordination on Glassfish 2.x and Eclipselink 1.2

    We are trying to get eclipseLink shared cache working on Glassfish. As of Eclipselink 1.2 this can be done in the persistence.xml and we have added the following properties. where $host is the ip addesss of the server. We have no authentication setup so have not set the username and password properites.
    <property name="eclipselink.cache.coordination.protocol" value="rmi" />
    <property name="eclipselink.cache.coordination.rmi.url" value="rmi://$host:9037" />
    <property name="eclipselink.cache.coordination.rmi.announcement-delay" value="1000" />
    <property name="eclipselink.cache.coordination.rmi.multicast-group" value="224.0.0.2" />
    <property name="eclipselink.cache.coordination.rmi.multicast-group.port" value="3121" />
    <property name="eclipselink.cache.coordination.packet-time-to-live" value="2" />
    <property name="eclipselink.cache.coordination.jndi.initial-context-factory" value="com.sun.enterprise.naming.SerialInitContextFactory" />
    <property name="eclipselink.cache.coordination.remove-connection-on-error" value="true" />
    <property name="eclipselink.cache.coordination.propagate-asynchronously" value="false" />
    <property name="eclipselink.cache.coordination.naming-service" value="0" />
    From what I have read this should work, but we are getting the following error.
    [#|2010-07-16T09:10:11.782+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.core.naming|_ThreadID=14;_ThreadName=Thread-30;_RequestID=6a82e16c-773b-4582-aa06-9415c99d721a;|NAM0002:
    Exception in NamingManagerImpl copyMutableObject().
    java.io.NotSerializableException:
    org.eclipse.persistence.sessions.coordination.RemoteCommandManager
    at
    java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
    at
    java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at
    java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
    java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at
    java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
    at
    com.sun.enterprise.naming.NamingUtils.makeCopyOfObject(NamingUtils.java:64)
    at
    com.sun.enterprise.naming.LocalSerialContextProviderImpl.rebind(LocalSerialContextProviderImpl.java:105)
    at
    com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:503)
    at javax.naming.InitialContext.rebind(InitialContext.java:408)
    at
    org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInJNDI(RMITransportManager.java:150)
    at
    org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnection(RMITransportManager.java:128)
    at
    org.eclipse.persistence.sessions.coordination.DiscoveryManager.run(DiscoveryManager.java:197)
    at java.lang.Thread.run(Thread.java:619)
    |#]
    [#|2010-07-16T09:10:11.796+0200|WARNING|sun-appserver2.1|org.eclipse.persistence.session.file:/|_ThreadID=14;_ThreadName=Thread-30;_RequestID=6a82e16c-773b-4582-aa06-9415c99d721a;|
    Local Exception Stack:
    Exception [EclipseLink-22102] (Eclipse Persistence Services -
    2.0.0.v20090725-r4721):
    org.eclipse.persistence.exceptions.RemoteCommandManagerException
    Exception Description: Could not post connection in local naming service
    under name Service[EclipseLinkCommandChannel,
    e97d5543-56ba-4ded-9d23-7f5dad7a6dc8, rmi://172.17.2.115:9037]
    Internal Exception: java.lang.RuntimeException: Cant copy Serializable
    object:
    at
    org.eclipse.persistence.exceptions.RemoteCommandManagerException.errorBindingConnection(RemoteCommandManagerException.java:87)
    at
    org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInJNDI(RMITransportManager.java:153)
    at
    org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnection(RMITransportManager.java:128)
    at
    org.eclipse.persistence.sessions.coordination.DiscoveryManager.run(DiscoveryManager.java:197)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.RuntimeException: Cant copy Serializable object:
    at
    com.sun.enterprise.naming.NamingUtils.makeCopyOfObject(NamingUtils.java:82)
    at
    com.sun.enterprise.naming.LocalSerialContextProviderImpl.rebind(LocalSerialContextProviderImpl.java:105)
    at
    com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:503)
    at javax.naming.InitialContext.rebind(InitialContext.java:408)
    at
    org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInJNDI(RMITransportManager.java:150)
    ... 3 more
    Caused by: java.io.NotSerializableException:
    org.eclipse.persistence.sessions.coordination.RemoteCommandManager
    at
    java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
    at
    java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at
    java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
    java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at
    java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
    at
    com.sun.enterprise.naming.NamingUtils.makeCopyOfObject(NamingUtils.java:64)
    ... 7 more
    |#]I suspect that it is not connecting, because I get a similar error if I choose an invalid port for the url. The IP is correct and the port 9037 is setup as the IIOP port in Glassfish.
    Any ideas on how to solve this?

    Hi Bob
    Thank you for your kind input.
    I'm using a Sonnet D800 which has eSata cables. Here are my 'Raid Properties' below. There are various 'Scan' options on the Raid but I'm scared to touch them in case they affect all my captured video I'm working with!
    Raid Type: RAID5
    Capacity 5.46TB
    Members: 7
    Partitions: 1
    Mirrors: None
    Interleave: 128KB
    Sector Size:512 bytes
    Drives: 8
    Faulted: 0
    Raid Groups: 1
    Hot Spares: 1
    Features:
    Speed Read - Always
    Rebuild Priority - Same
    Prefetch: 0
    Auto Rebuild: Yes
    I'm using a:
    2 x 2.66 GHz Quad-Core Intel Xeon
    8 GB 1066 MHz DDR3 ATI Radeon HD 4870
    Mac OXX (10.5.7)
    From Wiki "Raid 5": 'Striped set with distributed parity or interleave parity. Distributed parity requires all drives but one to be present to operate; drive failure requires replacement, but the array is not destroyed by a single drive failure. Upon drive failure, any subsequent reads can be calculated from the distributed parity such that the drive failure is masked from the end user. The array will have data loss in the event of a second drive failure and is vulnerable until the data that was on the failed drive is rebuilt onto a replacement drive. A single drive failure in the set will result in reduced performance of the entire set until the failed drive has been replaced and rebuilt.'
    I might contact Sonnet and request how I might perform a scan to ensure it's all working normally.
    I haven't tried FCP Rescue yet (downloading it now) but had successfully manually Trashed my Preferences several times.
    I have searched for Caffeine but can't seem to locate it - can you name some search terms so I might be able to find it in a search engine please?
    "The mac (like Windows) doesn't seem to understand that CPU usage = use, verse just cursor/keyboard movements." -- you never know, this might well be the problem, something as simple as a keyboard assignment for a quick triple tap of J or L for fast rewind or fast forward in the FCP viewer?

  • RMI Cache Coordination

    I'm working on getting RMI based cache coordination functioning in my application using Eclipselink 1. I am using the 'INVALIDATE_CHANGED_OBJECTS' annotation and trying to get changed objects to propigate across 2 servers. I am using a function I got from the eclipselink list:
    public void customize(Session session) throws Exception {
    AbstractSession sessionImpl = (AbstractSession) session;
    RemoteCommandManager cm = new RemoteCommandManager(sessionImpl);
    cm.setShouldPropagateAsynchronously(true);
    cm.getDiscoveryManager().setAnnouncementDelay(10);
    cm.getTransportManager().setNamingServiceType(
    TransportManager.REGISTRY_NAMING_SERVICE);
    cm.setUrl("rmi://localhost:8881");
    cm.setServerPlatform(sessionImpl.getServerPlatform());
    sessionImpl.setCommandManager(cm);
    sessionImpl.setShouldPropagateChanges(true);
    cm.initialize();
    try {
    Thread.sleep(2000);
    } catch (Exception ignore) {
    and getting my factories as such:
    emf = Persistence.createEntityManagerFactory(s);
    new RMICacheCoordinationConfig().customize(JpaHelper.getServerSession(emf));
    em = emf.createEntityManager();
    After I make a few calls, I get several stack traces related to RMI I am fairly new to Toplink/Eclipselink and have not done much in the way of RMI.
    Here are the exceptions:
    [EPS Warning]: 2007.11.30 11:02:16.972--ServerSession(31985466)--Thread(Thread[Thread-8,5,main])--Local Exception Stack:
    Exception [EclipseLink-22102] (Eclipse Persistence Services - 1.0M1 (Build 20071105)): org.eclipse.persistence.exceptions.RemoteCommandManagerException
    Exception Description: Could not post connection in local naming service under name rmi://localhost:8881/13598682 Internal Exception: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at org.eclipse.persistence.exceptions.RemoteCommandManagerException.errorBindingConnection(RemoteCommandManagerException.java:84)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInRegistry(RMITransportManager.java:157)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnection(RMITransportManager.java:110)
    at org.eclipse.persistence.sessions.coordination.DiscoveryManager.run(DiscoveryManager.java:194)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInRegistry(RMITransportManager.java:154)
    ... 3 more
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
    at java.io.DataInputStream.readByte(DataInputStream.java:241)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
    ... 8 more
    Exception in thread "Thread-8" Local Exception Stack:
    Exception [EclipseLink-22102] (Eclipse Persistence Services - 1.0M1 (Build 20071105)): org.eclipse.persistence.exceptions.RemoteCommandManagerException
    Exception Description: Could not post connection in local naming service under name rmi://localhost:8881/13598682 Internal Exception: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at org.eclipse.persistence.exceptions.RemoteCommandManagerException.errorBindingConnection(RemoteCommandManagerException.java:84)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInRegistry(RMITransportManager.java:157)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnection(RMITransportManager.java:110)
    at org.eclipse.persistence.sessions.coordination.DiscoveryManager.run(DiscoveryManager.java:194)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInRegistry(RMITransportManager.java:154)
    ... 3 more
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
    at java.io.DataInputStream.readByte(DataInputStream.java:241)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
    ... 8 more
    [EPS Warning]: 2007.11.30 11:03:17.594--ServerSession(31985466)--Thread(Thread[Finalizer,8,system])--Local Exception Stack:
    Exception [EclipseLink-22107] (Eclipse Persistence Services - 1.0M1 (Build 20071105)): org.eclipse.persistence.exceptions.RemoteCommandManagerException
    Exception Description: Could not remove local connection in local naming service under name rmi://localhost:8881/13598682 Internal Exception: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at org.eclipse.persistence.exceptions.RemoteCommandManagerException.errorUnbindingLocalConnection(RemoteCommandManagerException.java:137)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.removeLocalConnection(RMITransportManager.java:234)
    at org.eclipse.persistence.sessions.coordination.TransportManager.discardConnections(TransportManager.java:432)
    at org.eclipse.persistence.sessions.coordination.RemoteCommandManager.shutdown(RemoteCommandManager.java:179)
    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.logout(DatabaseSessionImpl.java:718)
    at org.eclipse.persistence.sessions.server.ServerSession.logout(ServerSession.java:625)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager(EntityManagerSetupImpl.java:138)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.undeploy(EntityManagerSetupImpl.java:1286)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:83)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.finalize(EntityManagerFactoryImpl.java:137)
    at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
    at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
    at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
    at sun.rmi.registry.RegistryImpl_Stub.unbind(Unknown Source)
    at java.rmi.Naming.unbind(Naming.java:135)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.removeLocalConnection(RMITransportManager.java:226)
    ... 12 more
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
    at java.io.DataInputStream.readByte(DataInputStream.java:241)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
    ... 17 more

    I'm working on getting RMI based cache coordination functioning in my application using Eclipselink 1. I am using the 'INVALIDATE_CHANGED_OBJECTS' annotation and trying to get changed objects to propigate across 2 servers. I am using a function I got from the eclipselink list:
    public void customize(Session session) throws Exception {
    AbstractSession sessionImpl = (AbstractSession) session;
    RemoteCommandManager cm = new RemoteCommandManager(sessionImpl);
    cm.setShouldPropagateAsynchronously(true);
    cm.getDiscoveryManager().setAnnouncementDelay(10);
    cm.getTransportManager().setNamingServiceType(
    TransportManager.REGISTRY_NAMING_SERVICE);
    cm.setUrl("rmi://localhost:8881");
    cm.setServerPlatform(sessionImpl.getServerPlatform());
    sessionImpl.setCommandManager(cm);
    sessionImpl.setShouldPropagateChanges(true);
    cm.initialize();
    try {
    Thread.sleep(2000);
    } catch (Exception ignore) {
    and getting my factories as such:
    emf = Persistence.createEntityManagerFactory(s);
    new RMICacheCoordinationConfig().customize(JpaHelper.getServerSession(emf));
    em = emf.createEntityManager();
    After I make a few calls, I get several stack traces related to RMI I am fairly new to Toplink/Eclipselink and have not done much in the way of RMI.
    Here are the exceptions:
    [EPS Warning]: 2007.11.30 11:02:16.972--ServerSession(31985466)--Thread(Thread[Thread-8,5,main])--Local Exception Stack:
    Exception [EclipseLink-22102] (Eclipse Persistence Services - 1.0M1 (Build 20071105)): org.eclipse.persistence.exceptions.RemoteCommandManagerException
    Exception Description: Could not post connection in local naming service under name rmi://localhost:8881/13598682 Internal Exception: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at org.eclipse.persistence.exceptions.RemoteCommandManagerException.errorBindingConnection(RemoteCommandManagerException.java:84)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInRegistry(RMITransportManager.java:157)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnection(RMITransportManager.java:110)
    at org.eclipse.persistence.sessions.coordination.DiscoveryManager.run(DiscoveryManager.java:194)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInRegistry(RMITransportManager.java:154)
    ... 3 more
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
    at java.io.DataInputStream.readByte(DataInputStream.java:241)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
    ... 8 more
    Exception in thread "Thread-8" Local Exception Stack:
    Exception [EclipseLink-22102] (Eclipse Persistence Services - 1.0M1 (Build 20071105)): org.eclipse.persistence.exceptions.RemoteCommandManagerException
    Exception Description: Could not post connection in local naming service under name rmi://localhost:8881/13598682 Internal Exception: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at org.eclipse.persistence.exceptions.RemoteCommandManagerException.errorBindingConnection(RemoteCommandManagerException.java:84)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInRegistry(RMITransportManager.java:157)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnection(RMITransportManager.java:110)
    at org.eclipse.persistence.sessions.coordination.DiscoveryManager.run(DiscoveryManager.java:194)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.createLocalConnectionInRegistry(RMITransportManager.java:154)
    ... 3 more
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
    at java.io.DataInputStream.readByte(DataInputStream.java:241)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
    ... 8 more
    [EPS Warning]: 2007.11.30 11:03:17.594--ServerSession(31985466)--Thread(Thread[Finalizer,8,system])--Local Exception Stack:
    Exception [EclipseLink-22107] (Eclipse Persistence Services - 1.0M1 (Build 20071105)): org.eclipse.persistence.exceptions.RemoteCommandManagerException
    Exception Description: Could not remove local connection in local naming service under name rmi://localhost:8881/13598682 Internal Exception: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at org.eclipse.persistence.exceptions.RemoteCommandManagerException.errorUnbindingLocalConnection(RemoteCommandManagerException.java:137)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.removeLocalConnection(RMITransportManager.java:234)
    at org.eclipse.persistence.sessions.coordination.TransportManager.discardConnections(TransportManager.java:432)
    at org.eclipse.persistence.sessions.coordination.RemoteCommandManager.shutdown(RemoteCommandManager.java:179)
    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.logout(DatabaseSessionImpl.java:718)
    at org.eclipse.persistence.sessions.server.ServerSession.logout(ServerSession.java:625)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.removeSessionFromGlobalSessionManager(EntityManagerSetupImpl.java:138)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.undeploy(EntityManagerSetupImpl.java:1286)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:83)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.finalize(EntityManagerFactoryImpl.java:137)
    at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
    at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
    at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
    Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    java.net.SocketTimeoutException: Read timed out
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
    at sun.rmi.registry.RegistryImpl_Stub.unbind(Unknown Source)
    at java.rmi.Naming.unbind(Naming.java:135)
    at org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager.removeLocalConnection(RMITransportManager.java:226)
    ... 12 more
    Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
    at java.io.DataInputStream.readByte(DataInputStream.java:241)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
    ... 17 more

  • Rmi caching  problem

    Hi,
    my problem is that i need to perform a check in the cache at client whenever data is needed. if the required data is in the cache, the client needs to perform a lookup at server which returns the last modified time. this time is then checked with time of data in cache again to make sure it is valid data.
    else the data needs to downloaded to client cache again if it has been modified.
    if anyone can help me as to wer i start with this??am really confused.
    plx help!!

    Hey man,
    First I would recommend you understand the RMI framework. There is an oreilly book which helped me a lot. http://www.unix.org.ua/orelly/java-ent/jenut/ch03_01.htm That is the link. Once you understand the concepts, I highly recommend writing a small example using various getting started with RMI tutorials all over the web. Once you get the example working, tackle your problem and make sure you are adhering to the principles of RMI. Believe me RMI is as simple as it gets but you need to know a few things. Like the difference between marshalling, unmarshalling, what happens if an argument object is implementing the Remote interface or the Serializable interface, and so on.
    My suggestion is to bind the time object of yours to a specific alias in the server and just see if you are able to retrieve that time first. dont complicate things just try that out first. If that works then half the battle is over!
    Hope that helped. If you have any other questions feel free to ask and I will try to help as much as I can.
    Cheers,
    Surya

  • OC4J jsp caching issues.

    Hi All,
    We have deployed a set of jsp reports using Oracle reports 10g (9.0.4.0.0) and are noticing that the reports server appears to have cached prior versions of the reports on the server. We have attempted to restart the OC4J instance several times, and have found that if we remove delete the report files from the deployment directory, we get a 404 error. Copying the new files back causes the old versions to still load. If we modify the files in that directory in some way, and then save them, that appears to force the reports server to load the new files, but we are hoping that there is a way to not have to do this every time we want to deploy new copies of these files.
    Any suggestions for what might cause this?
    Thanks,
    Allan

    It is standalone OC4J at the moment as in UAT. I notice memory usage going up and has to be restarted every 4 hours. I used a memory profiler from JDeveloper. From there I saw the memory go up and up without doing anything with our applications. There are a lot of String objects in memory that keep going up coming from similar methods to what I described above.

  • EJB 3.0 and Oc4J::: IllegalStateException

    Hello,
    I am trying to access a method in my EJB3.0, which basically does data update, but I am getting IllegalStateException, any idea, why am I getting that exception.
    javax.ejb.EJBException: java.lang.IllegalStateException: Cannot use resource level transactions with a container managed EntityManager; nested exception is:
         java.lang.IllegalStateException: Cannot use resource level transactions with a container managed EntityManager; nested exception is: oracle.oc4j.rmi.OracleRemoteException: java.lang.IllegalStateException: Cannot use resource level transactions with a container managed EntityManager; nested exception is:
         java.lang.IllegalStateException: Cannot use resource level transactions with a container managed EntityManager
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMICall.throwRecordedException(RMICall.java:125)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.ejb.StatefulSessionRemoteInvocationHandler.invoke(StatefulSessionRemoteInvocationHandler.java:31)
         at __Proxy1.updateCanAssignInformations(Unknown Source)
         at gov.nih.eta.beantier.etaruleservice.CanAssignmentServiceAdapter.updateCanInformations(CanAssignmentServiceAdapter.java:37)
         at gov.nih.eta.webtier.actions.ICCanAssignmentAction.execute(ICCanAssignmentAction.java:223)
         at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
         at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
         at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
         at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
    My bean method:
    public void updateCanAssignInformations(List<CanAssignmentsEntity> canAssignmentsEntityList)
              System.out.println("Calling EJB method>>>>>>>>>>>>>>>");
              CanAssignmentsEntity canAssignmentsEntity = null;          
              for(int i=0; i<canAssignmentsEntityList.size(); i++)
                   System.out.println("Step0");
                   canAssignmentsEntity = (CanAssignmentsEntity)canAssignmentsEntityList.get(i);
                   em.getTransaction().begin();
                   System.out.println("Step1");
                   CanAssignmentsEntity canAssignmentsEntity1 = em.find(CanAssignmentsEntity.class, canAssignmentsEntity.getCanAssignmentEntityPK());
                   System.out.println("Step2");
                   canAssignmentsEntity1.setCanAssignmentEntityPK(canAssignmentsEntity.getCanAssignmentEntityPK());               
                   canAssignmentsEntity1.setCreatorId("dasra");               
                   java.util.Date today = new java.util.Date();
                  java.sql.Date dateToday =  new java.sql.Date(today.getTime());             
                   canAssignmentsEntity1.setCreatorDate(dateToday);               
                   canAssignmentsEntity1.setRfaNumberInclusion(canAssignmentsEntity.getRfaNumberInclusion());               
                   canAssignmentsEntity1.setMechanismCodeInclusion(canAssignmentsEntity.getMechanismCodeInclusion());               
                   canAssignmentsEntity1.setApplTypeInclusion(canAssignmentsEntity.getApplTypeInclusion());               
                   canAssignmentsEntity1.setActivityCodeInclusion(canAssignmentsEntity.getActivityCodeInclusion());
                   System.out.println("Step1");
                   em.getTransaction().commit();
         }

    Since you're using EJBs, you can use JTA and can skip the getTransaction() calls. If you want to use getTransaction().begin() and commit(), then make sure that your EntityManager is resource-local. The configuration for this is in persistence.xml. Set a transaction-type of RESOURCE_LOCAL rather than JTA.

  • Socket Exception in Oc4j to OID server communication

    Hi,
    Problem statement -
    We have a custom JAAS login module running in oracle 10g( version-10.1.3) server and which authenticates the loged in user against oracle LDAP server(version-10.1.4 ), which is running in a separate machine. We are getting some socket exception after couple of hours, the complete stack trace is listed below. We are using ldap pooling and closing the context properly along with other resources which are opened. i am finding difficulty to resolve the issue, appreciate if any one has any idea to resolve it
    Stack Trace
    26332728 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.ldap.LDAPManagerImpl - dit exception in validating user
    com.hp.dit.exception.DITLDAPException: 030001
         at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:159)
         at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:176)
         at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
         at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
         at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
         at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
         at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
         at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
         at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
         at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
         at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.naming.CommunicationException: Connection timed out [Root exception is java.net.SocketException: Connection timed out]; remaining name 'dc=dit,c=in'
         at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1961)
         at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
         at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
         at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
         at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
         at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:137)
         ... 30 more
    Caused by: java.net.SocketException: Connection timed out
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
         at com.sun.jndi.ldap.Connection.run(Connection.java:784)
         ... 1 more
    26338902 [AJPRequestHandler-HTTPThreadGroup-40] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/01/1989
    26338910 [AJPRequestHandler-HTTPThreadGroup-40] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@3a15bb
    26349628 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.ldap.LDAPManagerImpl - exception in getting user distinguished name
    javax.naming.CommunicationException: Connection timed out [Root exception is java.net.SocketException: Connection timed out]; remaining name 'dc=dit,c=in'
         at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1961)
         at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
         at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
         at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
         at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
         at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:137)
         at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:176)
         at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
         at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
         at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
         at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
         at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
         at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
         at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
         at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
         at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.net.SocketException: Connection timed out
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
         at com.sun.jndi.ldap.Connection.run(Connection.java:784)
         ... 1 more
    26349629 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.ldap.LDAPManagerImpl - dit exception in validating user
    com.hp.dit.exception.DITLDAPException: 030001
         at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:159)
         at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:176)
         at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
         at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
         at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
         at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
         at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
         at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
         at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
         at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
         at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.naming.CommunicationException: Connection timed out [Root exception is java.net.SocketException: Connection timed out]; remaining name 'dc=dit,c=in'
         at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1961)
         at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806)
         at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
         at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
         at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
         at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
         at com.hp.dit.ldap.LDAPManagerImpl.getUserDN(LDAPManagerImpl.java:137)
         ... 30 more
    Caused by: java.net.SocketException: Connection timed out
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
         at com.sun.jndi.ldap.Connection.run(Connection.java:784)
         ... 1 more
    0 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    4 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    294 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
    451 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
    560 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    561 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    872 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.knowtan.view.ApplicationResources', returnNull=true
    8669 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    8669 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    9033 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
    9454 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
    11036 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
    11329 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
    11435 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11439 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11464 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    11595 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11604 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11604 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11607 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11613 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11615 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11648 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    12881 [AJPRequestHandler-HTTPThreadGroup-5] ERROR org.apache.struts.action.RequestProcessor - Invalid path /downloads was requested
    17516 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    17518 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    17538 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    0 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    4 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    18073 [AJPRequestHandler-HTTPThreadGroup-14] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.actions.LocalStrings', returnNull=true
    18098 [AJPRequestHandler-HTTPThreadGroup-14] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    303 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
    457 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
    560 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    560 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    857 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.knowtan.view.ApplicationResources', returnNull=true
    8951 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    8952 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    9326 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
    9734 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
    10874 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
    10907 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    10910 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    10934 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    11237 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11246 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11247 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11250 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11256 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11258 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11300 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    12583 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
    33404 [AJPRequestHandler-HTTPThreadGroup-11] INFO com.hp.dit.ldap.DITLoginModule - userRoleName govtadmin
    33962 [AJPRequestHandler-HTTPThreadGroup-14] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
    16145 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    16148 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    16168 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    1 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    4 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    304 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
    458 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
    561 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    562 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    857 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.knowtan.view.ApplicationResources', returnNull=true
    41063 [AJPRequestHandler-HTTPThreadGroup-14] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
    41089 [AJPRequestHandler-HTTPThreadGroup-17] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****18/04/1958
    41110 [AJPRequestHandler-HTTPThreadGroup-17] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1426780
    8845 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    8846 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    9209 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
    9636 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
    12923 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
    12956 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    12959 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    12983 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    49394 [AJPRequestHandler-HTTPThreadGroup-11] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
    0 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    3 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    305 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
    54351 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/01/1989
    54365 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@154598e
    460 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
    565 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    566 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    875 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.knowtan.view.ApplicationResources', returnNull=true
    37396 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
    37412 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.actions.LocalStrings', returnNull=true
    57805 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
    22424 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
    22449 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    22452 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    22472 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    44494 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    8920 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    8921 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    9304 [OC4J Launcher] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='com.hp.dit.web.action.ApplicationResources', returnNull=true
    9707 [OC4J Launcher] INFO org.apache.struts.tiles.TilesPlugin - Tiles definition factory loaded for module ''.
    65228 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****26/11/1961
    65238 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1c7d395
    11721 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
    11893 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11896 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    11919 [AJPRequestHandler-HTTPThreadGroup-4] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    70517 [AJPRequestHandler-HTTPThreadGroup-12] INFO com.hp.dit.web.action.MyAccountMenuAction - Exception Inside MyAccountActionoracle.oc4j.rmi.OracleRemoteException: com.hp.dit.exception.ToplinkRuntimeException: 040001; nested exception is:
         com.hp.dit.exception.ToplinkRuntimeException: 040001
    19299 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.tiles.TilesRequestProcessor - Tiles definition factory found for request processor ''.
    73771 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.LDAPManagerImpl - Authentication failure in LDAP in context look up
    javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
         at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2985)
         at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
         at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2732)
         at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2646)
         at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
         at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
         at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
         at com.hp.dit.ldap.LDAPManagerImpl.getDirectoryContext(LDAPManagerImpl.java:87)
         at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:179)
         at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
         at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
         at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
         at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
         at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
         at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
         at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
         at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    73775 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.LDAPManagerImpl - dit exception in validating user
    com.hp.dit.exception.DITLDAPException: 030002
         at com.hp.dit.ldap.LDAPManagerImpl.getDirectoryContext(LDAPManagerImpl.java:101)
         at com.hp.dit.ldap.LDAPManagerImpl.isValidUser(LDAPManagerImpl.java:179)
         at com.hp.dit.ldap.DITLoginModule.login(DITLoginModule.java:131)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
         at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
         at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
         at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
         at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
         at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3601)
         at com.evermind.server.http.AJPHttpServletRequest.getUserPrincipalInternal(AJPHttpServletRequest.java:261)
         at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:736)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
         at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2985)
         at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
         at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2732)
         at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2646)
         at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
         at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
         at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
         at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
         at com.hp.dit.ldap.LDAPManagerImpl.getDirectoryContext(LDAPManagerImpl.java:87)
         ... 31 more
    78597 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/11/1971
    78607 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@116ce6e
    26439 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    26441 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    26461 [AJPRequestHandler-HTTPThreadGroup-6] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    83344 [AJPRequestHandler-HTTPThreadGroup-5] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****18/04/1958
    83356 [AJPRequestHandler-HTTPThreadGroup-5] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1074641
    83612 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****16/09/1986
    83623 [AJPRequestHandler-HTTPThreadGroup-7] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1155331
    92047 [AJPRequestHandler-HTTPThreadGroup-15] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
    96447 [AJPRequestHandler-HTTPThreadGroup-17] INFO com.hp.dit.web.action.MyAccountMenuAction - Exception Inside MyAccountActionoracle.oc4j.rmi.OracleRemoteException: com.hp.dit.exception.ToplinkRuntimeException: 040001; nested exception is:
         com.hp.dit.exception.ToplinkRuntimeException: 040001
    50870 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    50880 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    50880 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    50883 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    50889 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    50891 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    50918 [AJPRequestHandler-HTTPThreadGroup-5] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    109405 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.LDAPManagerImpl - UserID not found in search
    118815 [AJPRequestHandler-HTTPThreadGroup-19] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****28/11/1961
    118826 [AJPRequestHandler-HTTPThreadGroup-19] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1ba18ce
    121088 [AJPRequestHandler-HTTPThreadGroup-19] INFO com.hp.dit.web.action.MyAccountMenuAction - Exception Inside MyAccountActionoracle.oc4j.rmi.OracleRemoteException: com.hp.dit.exception.ToplinkRuntimeException: 040001; nested exception is:
         com.hp.dit.exception.ToplinkRuntimeException: 040001
    87244 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    87254 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    87254 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    87257 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    87264 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    87267 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    87274 [AJPRequestHandler-HTTPThreadGroup-8] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    124169 [AJPRequestHandler-HTTPThreadGroup-23] INFO com.hp.dit.ldap.LDAPManagerImpl - UserID not found in search
    125928 [AJPRequestHandler-HTTPThreadGroup-23] INFO com.hp.dit.ldap.LDAPManagerImpl - UserID not found in search
    91938 [AJPRequestHandler-HTTPThreadGroup-9] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.actions.LocalStrings', returnNull=true
    92057 [AJPRequestHandler-HTTPThreadGroup-9] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/04/1951
    92281 [AJPRequestHandler-HTTPThreadGroup-9] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@177e3d4
    92301 [AJPRequestHandler-HTTPThreadGroup-9] INFO org.apache.struts.util.PropertyMessageResources - Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
    114238 [AJPRequestHandler-HTTPThreadGroup-11] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****21/02/1960
    114442 [AJPRequestHandler-HTTPThreadGroup-11] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@17a64f2
    135185 [AJPRequestHandler-HTTPThreadGroup-25] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****03/11/1927
    135208 [AJPRequestHandler-HTTPThreadGroup-25] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@1dbda4f
    139243 [AJPRequestHandler-HTTPThreadGroup-25] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser
    154238 [AJPRequestHandler-HTTPThreadGroup-28] INFO com.hp.dit.web.action.RegisterAction - day string in reg action *****30/12/1971
    154253 [AJPRequestHandler-HTTPThreadGroup-28] INFO com.hp.dit.web.action.RegisterAction - Register PAN VO is Not Nullcom.hp.dit.vo.PANRegVO@acb798
    190846 [AJPRequestHandler-HTTPThreadGroup-4] INFO com.hp.dit.ldap.DITLoginModule - userRoleName induser

    Raj,
    Thanks for your answer. It solved my problem. Thanks you very much.
    Thanks,
    Madhu.

  • Embedded OC4J  - Web Service works... not OC4J!

    I have a very interesting issue here.. when I run my EJB 3.0 - Web service in Jdeveloper using the embedded OC4J, I am able to successfully test my services.
    But, When I deploy the Web service to an OC4J server, I get the folowing error when I try to run one the exact same service:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://model.sofia.dryden.nasa.com/"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Internal Server Error (Caught exception while handling request: javax.ejb.EJBException: java.lang.StackOverflowError; nested exception is:
         java.lang.StackOverflowError; nested exception is: oracle.oc4j.rmi.OracleRemoteException: java.lang.StackOverflowError; nested exception is:
         java.lang.StackOverflowError)</faultstring></env:Fault></env:Body></env:Envelope>
    Note: This has been happening since I am working on migrating from an mySQL database to Oracle.....
    It may be something in the table structure on the oracle db.... due to the conversion process... but what is puzzling is how the embedded OC4J is very forgiving!
    -Thanks for any input...

    The version of OC4J: 10.1.3.1.0
    I am thinking it has to do with the UNIQUEID.... because the same code works fine on mySQL and SQL2005 db's....
    Perhaps it is something in the Oracle table.... (tdc)
    from the log:
    More of the stack:
    <MODULE_ID>ejb.transaction</MODULE_ID>
    <THREAD_ID>14</THREAD_ID>
    <USER_ID>mritchso</USER_ID>
    <SUPPL_ATTRS>
    <ATTR NAME="J2EE_MODULE.name">oraTdcWebservice</ATTR>
    <ATTR NAME="J2EE_APP.name">oraTdcWebservice</ATTR>
    <ATTR NAME="WEBSERVICE_PORT.name">oracleTdcSessionEJB</ATTR>
    <ATTR NAME="WEBSERVICE.name">oracleTdcSessionEJBBeanService</ATTR>
    </SUPPL_ATTRS>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>IPAddress:62846:1221082977722:2164</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>[oracleTdcSessionEJB:public java.lang.String com.nasa.dryden.sofia.model.oracleTdcSessionEJBBean.getTdc(int)] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: java.lang.StackOverflowError; nested exception is:
         java.lang.StackOverflowError</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[oracle.oc4j.rmi.OracleRemoteException: java.lang.StackOverflowError
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at oracleTdcSessionEJB_RemoteProxy_2ce1bo.getTdc(Unknown Source)
         at com.nasa.dryden.sofia.model.runtime.OracleTdcSessionEJBBeanSoapHttp_Tie.invoke_getTdc(OracleTdcSessionEJBBeanSoapHttp_Tie.java:411)
         at com.nasa.dryden.sofia.model.runtime.OracleTdcSessionEJBBeanSoapHttp_Tie.processingHook(OracleTdcSessionEJBBeanSoapHttp_Tie.java:1265)
         at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:297)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:413)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:277)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:134)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    java.lang.StackOverflowError
         at com.nasa.dryden.sofia.model.oracleTdcSessionEJBBean.<init>(oracleTdcSessionEJBBean.java:20)
         at com.nasa.dryden.sofia.model.oracleTdcSessionEJBBean.getTdc(oracleTdcSessionEJBBean.java:83)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error sending method invocation request(oc4j 10g(10.1.3.1))

    Dear,
    I have two applications a.ear and b.ear. They both are deployed on same oc4j container (10g(10.1.3.1))
    Both applications use each others session beans. In order to make communications between these two applications possible I set global-jndi-lookup-enabled attribute in <application-server> element in server.xml file, to be true.
    One of the applications use hibernate 3.1. According to some of posts from your forum, I replaced antlr.jar from toplink\jlib folder with one form with the one provided by the Hibernate 3 distribution.
    In order to integrate Hibernate with Container managed transactions, I set in hibernate.cfg.xml:
    hibernate.transaction.factory_class parameter to: org.hibernate.transaction.CMTTransactionFactory and
    hibernate.transaction.manager_lookup_class to: org.hibernate.transaction.OC4JTransactionManagerLookup.
    Everything works well since I save/update data in database. I save or update data, calling method from remote session bean.
    I am getting java.lang.NullPointerException. Here is my error log:
    2007-02-23 13:03:32.687 WARNING J2EE EJB-08002 [WorkflowManager] thread HTTPThreadGroup-12 encountered an exception while trying to end the transaction: oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is:
    javax.transaction.RollbackException
    WARN processException, Unhandled Exception thrown: class com.ed.ecomm.edcore.exception.RepException
    2007-02-23 13:03:32.750 ERROR ServletException cause
    mermig > 13:03:32.765 ERROR SecurityFilter - EXCEPTION:
    Error sending method invocation request; nested exception is:
    java.lang.NullPointerException
    javax.servlet.ServletException: Error sending method invocation request; nested exception is:
    java.lang.NullPointerException
    at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:316)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at com.ed.mermig2plus.web.filters.AuthorizationFilter.doFilter(AuthorizationFilter.java:115)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at com.ed.ecomm.edcore.web.filters.MonitoringFilter.doFilter(MonitoringFilter.java:180)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at com.ed.ecomm.edcore.web.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:93)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at com.ed.ecomm.edcore.web.filters.DoFilterPrivilegedAction.run(DoFilterPrivilegedAction.java:65)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:320)
    at com.ed.ecomm.edcore.web.filters.jaas.OracleJAASProvider.performAction(OracleJAASProvider.java:166)
    at com.ed.ecomm.edcore.web.filters.SecurityFilter.performAction(SecurityFilter.java:595)
    at com.ed.ecomm.edcore.web.filters.SecurityFilter.doFilter(SecurityFilter.java:292)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:534)
    Can you help me? I can not find anything about this exception
    The same works for me in 10.1.2.0.2
    Thanks and regards,
    -- Smiljka

    OC4J can work with many different DataSources implementations to work against many different databases. We have not hardcoded it work only against an Oracle database. We have reworked the Data Source area in 10.1.3 to make it simpler and more consistent.
    I'd recommend having a read of the the J2EE Services Guide for 10.1.3 (http://download-west.oracle.com/otn/java/oc4j/1013/doc/web.1013/b14427.pdf)
    and have a look at chapter 4 where our new and improved DataSource implementation s discussed.
    -steve-

  • Exception Handling with OC4J Web Services

    Hi,
    I want to throw some custom exceptions from my web services, based upon my business logic. From the documents I came to know that I can use "javax.xml.rpc.soap.SOAPFaultException" for the same. Following is the sample web service code which I'm trying in my environment.
    import javax.ejb.Stateless;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.soap.SOAPFaultException;
    @WebService
    @Stateless
    public class TestService {
         @WebMethod
         public void greeting()
              throw new SOAPFaultException(new QName("uri", "local"),
         "My Fault String", "My Fault Actor", null);
    Deployment of the web service goes fine and on the invocation of the "greeting" operation the exception is being thrown. But the problem is that, the soap response, which my web service client receives is as of follows,
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://service.csm.nb.md.inglife.jp.co/">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (Caught exception while handling request: oracle.oc4j.rmi.OracleRemoteException: javax.xml.rpc.soap.SOAPFaultException: My Fault String; nested exception is: javax.xml.rpc.soap.SOAPFaultException: My Fault String)</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    This means that OC4J again wraps the SOAPFaultException thrown by me. Is there any way by which I can avoid the further wrapping of my exceptions? If there is anything wrong in my approach please do let me know.
    Regards,
    Dipu

    This is one of the "classic" design problems in this kind of architecture. And, unfortunately, the answer is "it depends on how you think you need to handle it." And I'm sure there are plenty of "gurus" that will tell you one way or another is the only way to do it.
    I'll be more honest: I'll give you a couple of personal suggestions, based on experience in this architecture. These are suggestions - you may do with them what you will. I will not say this is the best, most correct, or even remotely relevant to what you're doing.
    If it's simple data validation for "typing" (e.g. String, number, Date, etc.), that is taken care of when you attempt to stuff in the information into the appropriate DTO. If it's more "sophisticated" than that (must be in a certain range, etc.), that particular checking should probably be delegated from your Controller to a helper class. That not only saves the "expense" of transmitting the information back and forth across the wire, it's "faster" to the end user so say "Ooopsie" by redirecting back to the form right then. Basically the same thing if the types are wrong.
    That only leaves the "big" problems in the business layer (EJBs), where you have to deal with concurrency, database failures, etc. Generally these kinds of exceptions are thrown back to to the Controller in one of two forms:
    1) a sublass of RuntimeException, which signals that some Very Bad Things have happened in your container. EJBException is one like that and you can see where it's being thrown from.
    2) a subclass of Exception, also called "application exceptions." They are usually something like a "duplicate record" or a validation-like error (which you mentioned) like a missing field. They're used as a signal to a failure in the logic, not the container. That way you have to decide at what layer of your architecture they should be handled and/or passed on to the next.

  • OC4J and Handle.getEJBObject()

    Hi all,
    I am developing a Stateless session bean. I want to save its remote reference through a client so that I can call it later. The code is working fine in Websphere 6.0 but not in OC4J 10.1.3.
    The Client Code is:
    Hashtable env = new Hashtable();
    //Setting properties
    env.put(Context.INITIAL_CONTEXT_FACTORY, ctxFactory);
    env.put(Context.SECURITY_PRINCIPAL, security_principal);
    env.put(Context.SECURITY_CREDENTIALS, security_credentials);
    env.put(Context.PROVIDER_URL, serverURL);
    env.put(("dedicated.rmicontext","true");
    public void callEJB(boolean startWhile)
    InitialContext ic = new InitialContext (env);
    //Looking up Home Object
    SEJBRemoteHome homeObj =
    (SEJBRemoteHome)PortableRemoteObject.narrow (ic.lookup (SEJB_Bean),SEJBRemoteHome.class);
    SEJBRemote remObj = homeObj.create ();
    Handle EjbObjHandle = null;
    EJBObject eObj = null;
    if(startWhile)
    EjbObjHandle = remObj.getHandle();
    //Saving Ejb handle
    saveEjbObjHandle(EjbObjHandle);
    //Calling EJB method
    remObj.setPollProperty(startWhile);
    else
    //Getting Handle
    EjbObjHandle = getEjbObjHandle();
    EJBObject ejbObjRef = null;
    ejbObjRef = EjbObjHandle.getEJBObject();
    remObj = (SEJBRemote)PortableRemoteObject.narrow
    (ejbObjRef,SEJBRemote.class);
    remObj.setPollProperty(startWhile);
    ejbObjRef.remove();
    }//methos to save Handle
    public void saveEjbObjHandle(Handle o)
    try {
    ObjectOutputStream objOut = new ObjectOutputStream(new
    FileOutputStream(EJBObjPath ));
    objOut.writeObject(o);
    objOut.close();
    catch (Exception e)
    e.printStackTrace();
    //method to Get handle
    public Handle getEjbObjHandle ( )
    Handle pHandleIn=null;
    try {
    ObjectInputStream objIn = new ObjectInputStream(new
    FileInputStream(EJBObjPath));
    pHandleIn = (Handle)objIn.readObject( );
    objIn.close();
    catch (Exception e)
    e.printStackTrace();
    return pHandleIn;
    Error Msg:
    oracle.oc4j.rmi.OracleRemoteException: Error looking up EJBHome at location 'SEJB_Bean'
    at com.evermind.server.ejb.StatelessSessionHandle.getEJBObject(StatelessSessionHandle.java:42)
    at com.iflex.fcubs.ssiadservices.ejb.SSIADEJBClient.callEJB(SEJBClient.java:209)
    at com.iflex.fcubs.ssiadservices.ejb.SEJBClient.main(SEJBClient.java:361)
    Nested exception is:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.evermind.server.ejb.StatelessSessionHandle.getEJBObject(StatelessSessionHandle.java:31)
    at com.iflex.fcubs.ssiadservices.ejb.SEJBClient.callEJB(SEJBClient.java:209)
    at com.iflex.fcubs.ssiadservices.ejb.SEJBClient.main(SEJBClient.java:361)
    I am getting this error while I am trying to executing else part. For if part it is initiating ejb and calling successfully the ejb method.
    Can anyone explain this to me....and solve my problem. Am I violating any rule of OC4J or J2EE. I am trying to solve this error for past 3 weeks.....but unable to solve.
    Any help will be appriciated.
    Thanks....

    Hi,
    Thank you for your reply, mean while I found this but got the error I mentioned in :]
    How to start servers after reboot ?
    Any idea ?

  • Error running the login sample under the embedded OC4J server

    Does anyone have any ideas why I am getting the following error:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\JDeveloper10g\jdev\system9.0.5.2.1618\oc4j-config>
    C:\j2sdk1.4.2_04\bin\javaw.exe -client -classpath C:\JDeveloper10g\j2ee\home\oc4j.jar;C:\JDeveloper10g\jdev\lib\jdev-oc4j.jar -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\JDeveloper10g\jdev\system9.0.5.2.1618\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    04/08/20 11:12:25 *** (WARNING) Fri Aug 20 11:12:25 CDT 2004 [Thread[Orion Launcher,5,main]] getHostTimePrefix java.net.UnknownHostException: extreme-dev: extreme-dev
    04/08/20 11:12:26 Error creating the ORB :
    04/08/20 11:12:27 java.net.UnknownHostException: extreme-dev: extreme-dev
    04/08/20 11:12:27      at java.net.InetAddress.getLocalHost(InetAddress.java:1191)
    04/08/20 11:12:27      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.sendMessage(Oc4jNotifier.java:97)
    04/08/20 11:12:27      at oracle.jdevimpl.runner.oc4j.Oc4jNotifier.postInitApplicationServer(Oc4jNotifier.java:55)
    04/08/20 11:12:27      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1585)
    04/08/20 11:12:27 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    04/08/20 11:12:27      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
    04/08/20 11:12:27      at java.lang.Thread.run(Thread.java:534)

    I tried already and the resolution only works for a app without a db connection.
    My app required to connect to Oracle 10g db.
    Now I'm and getting this error.
    connectionjavax.naming.NameNotFoundException
    exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: java.lang.NullPointerException; nested exception is:
         java.lang.NullPointerException
    Caught exception: oracle.oc4j.rmi.OracleRemoteException: java.lang.NullPointerException; nested exception is:
         java.lang.NullPointerException

Maybe you are looking for