Java Pug-in 1.4.1_02 not closing sockets using URLConnection

I am developing an applet that accesses a URL to get data to be displayed on the screen (Apache, mod_plsql). The problem is that when I execute the applet using "appletviewer" in my machine, each URLConnection shares only one socket connection to the WEB server. When the same applet is executed in the browser through the Java Plug-in 1.4.1_02, each URLConnection creates a new socket connection. Is there any bug? Is this a matter of configuration? Browser version? To test the applet I am using Forte for Java 4CE, JDK 1.4.1_02 (the same version as the Plug-in). I have tried many things already without success, there are no error messages in the server nor any exception on the applet. Both my machine and the server are Windows 2000 SP3.

Have you found a solution to this? I'm having a similar problem with URLConnection always starting a new socket connection when run from within the Java Plug-In.

Similar Messages

  • Cursors are not closed when using Ref Cursor Query in a report  ORA-01000

    Dear Experts
    Oracel database 11g,
    developer suite 10.1.2.0.2,
    application server 10.1.2.0.2,
    Windows xp platform
    For a long time, I'm hitting ORA-01000
    I have a 2 group report (master and detail) using Ref Cusor query, when this report is run, I found that it opens several cursors (should be only one cursor) for the detail query although it should not, I found that the number of these cursors is equal to the number of master records.
    Moreover, after the report is finished, these cursors are not closed, and they are increasing cumulatively each time I run the report, and finally the maximum number of open cursors is exceeded, and thus I get ORA-01000.
    I increased the open cursors parameter for the database to an unbeleivable value 30000, but of course it will be exceeded during the session because the cursors are increasing cumulatively.
    I Found that this problem is solved when using only one master Ref Cursor Query and create a breake group, the problem is solved also if we use SQL Query instead of Ref Query for the master and detail queries, but for some considerations, I should not use neither breake group nor SQL Query, I have to use REF Cursor queries.
    Is this an oracle bug , and how can I overcome ?
    Thanks
    Edited by: Mostafa Abolaynain on May 6, 2012 9:58 AM

    Thank you Inol for your answer, However
    Ref Cursor give me felxibility to control the query, for example see the following query :
    function QR_1RefCurDS return DEF_CURSORS.JOURHEAD_REFCUR is
    temp_JOURHEAD DEF_CURSORS.JOURHEAD_refcur;
              v_from_date DATE;
              v_to_date DATE;
              V_SERIAL_TYPE number;
    begin
    SELECT SERIAL_TYPE INTO V_SERIAL_TYPE
    FROM ACC_VOUCHER_TYPES
    where voucher_type='J'
    and IDENT_NO=:IDENT
    AND COMP_NO=TO_NUMBER(:COMPANY_NO);
         IF :no_date=1 then
                   IF V_SERIAL_TYPE =1 THEN     
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT
              AND ((TO_NUMBER(VOCH_NO)=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (TO_NUMBER(VOCH_NO) BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (TO_NUMBER(VOCH_NO)<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))
                   ORDER BY TO_NUMBER(VOCH_NO);
                   ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT               
              AND ((VOCH_NO=:FROM_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NULL)
              OR (VOCH_NO BETWEEN :FROM_NO AND :TO_NO and :FROM_NO IS NOT NULL AND :TO_NO IS NOT NULL )
              OR (VOCH_NO<=:TO_NO and :FROM_NO IS NULL AND :TO_NO IS NOT NULL )
              OR (:FROM_NO IS NULL AND :TO_NO IS NULL ))     
                   ORDER BY VOCH_NO;          
                   END IF;
         ELSE
                   v_from_date:=to_DATE(:from_date);
                   v_to_date:=to_DATE(:to_date);                         
              IF V_SERIAL_TYPE =1 THEN
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
              AND IDENT=:IDENT                         
                   AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,TO_NUMBER(VOCH_NO);     
              ELSE
                   open temp_JOURHEAD for select VOCH_NO, VOCH_DATE
                   FROM JOURHEAD
                   WHERE COMP_NO=TO_NUMBER(:COMPANY_NO)
                   AND IDENT=:IDENT                         
              AND ((voch_date between v_from_date and v_to_date and :from_date is not null and :to_date is not null)
                   OR (voch_date <= v_to_date and :from_date is null and :to_date is not null)
                   OR (voch_date = v_from_date and :from_date is not null and :to_date is null)
                   OR (:from_date is null and :to_date is null ))     
                   ORDER BY VOCH_DATE,VOCH_NO;          
              END IF;
         END IF;               
         return temp_JOURHEAD;
    end;

  • "Descriptor not a socket" - Exception

    Hello,
    my WebLogic 11 (10.3.6) throws sometime a Socket Exception:
    <26.09.2012 14:27 Uhr MESZ> <Error> <Socket> <BEA-000403> <IOException occurred on socket: Socket[addr=/2.148.104.94,port=59900,localport=7001]
    java.net.SocketException: recv failed: Descriptor not a socket.
    java.net.SocketException: recv failed: Descriptor not a socket
         at jrockit.net.SocketNativeIO.readBytesPinned(Native Method)
         at jrockit.net.SocketNativeIO.socketRead(SocketNativeIO.java:32)
         at java.net.SocketInputStream.socketRead0(SocketInputStream.java)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at weblogic.socket.SocketMuxer.readFromSocket(SocketMuxer.java:988)
         at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:922)
         at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:889)
         at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:339)
         at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Does anybode know the reason?
    Bye
    Axel

    It would be easier to help you if you could post the relevant code. Another idea is to post this in the JDBC forum.
    Jamie

  • AS Java sessions are not closed until they time out

    Hello Experts,
    we have a SAP PI system to integrate SAP R/3 with external applications and recently we are facing a problem with inactive sessions. There's a new application we are setting up that consumes a webservice published by this SAP PI system. The scenario is SOAP --> PI --> PROXY. What we have noticed is that when the application sends loads of requests sometimes the system fails. This is because we are reaching the maximum number of open sessions in AS Java (1000). Investigating a bit more we found out that the sessions are not "closed" once the communication between the application and SAP PI has finished. Those sessions are open until they are automatically timed-out by the system after 1800 sec.
    We have found the notes below in SAPNet:
    Note 1363751 - ICM: Java Web sessions are not terminated
    Note 1307940 - New HTTP session opened for every web service call
    However, none of them are applicable to our system because it is more updated:
    SAP PI 7.1 EHP1 SP002
    Kernel Patch Level: 87
    We have tried to close connections from the application that consumes the webservice but with no success. The sessions remain in the server until they are timed-out. Could you please tell us if this is the normal behavior of an AS Java system? Is this the way it should work? If so, can you tell us how to decrease this timeout so the inactive sessions are cleaned faster? We tried to find it but we didn't manage. Is there any way to close the session once the communication has finished?
    Thank you in advance.
    Roger Allué i Vall

    Hi Roger,
    You can do the following things to help solving your issue:
    1. Decrease session timeout default value of the web container: Use the NetWeaver Administrator
    Open Application Modules plugin within NWA
    Configuration Management -> Infrastructure -> Application Modules
    Set the desired timeout web module you are using, in minutes.
    The default value 0 in the NWA means that the value is not modified
    and the default value of 30 minutes timeout will be used.
    2. Increase the max. no. of Sessions in Configtool
    The max. number of Sessions can be set in Configtool in the Expert
    mode. There is no limitation for the parameter.
    Thanks,
    Anderson

  • Logical error with Sockets, not closing properly

    Hi again everybody, I am still in need of help it seems. I have been working on a way to transfer files from computer a to computer b but I cannot get the Sockets/Streams to work properly!
    The problem I keep getting is "IOException: java.net.SocketException: Software caused connection abort: socket write error"
    According to some threads in this forum its either because of a firewall blocking or because of an error such as the client trying to write to a stream that is closed in the other end ( or something like that, I cannot remember 100%).
    The thing is: I am only getting this the second time I try to send the file, the first time it works just fine.
    I can solve the problem by restarting the server (resetting the socket) after every time I send the file but that is not a solution, but merely a confirmation that I indeed have a bug.
    Can you please have a look at my code and point out where I missed something? I have been staring blindly at the code on and off for over a day now.
    CLIENT:
    import java.io.*;
    import java.net.*;
    * This is the FileSender class
    * Final version will take a File and Socket pointer
    * and send the file over the socket using the according handshake-protocol.
    * Current version opens it's own socket and can only send one File.
    * parameters:
    *  // File myFile, Socket mySocket <-- Final version goal
    *  String[] args  ()
    * @author Glader
    *     @version 1.2
    public class FileSender {
         private static Socket clientSocket = null;
    //     private static DataOutputStream output; <-- ver 1.0
         private static ObjectOutputStream output = null;
         private static FileInputStream file;
         private static BufferedReader input = null;
         private static final boolean DEBUG = true;
          * @param args
         public static void main(String[] args) {  // NOTE: REBUILD BEFORE FINAL!!!
              if(args.length != 1){
    //               throw new IllegalArgumentException("Error in FileSender: recieved " + args.length + " arguments, expected 2.");
                   System.err.println("Usage: Provide the method with ONE valid filepath/filename");
              else{
                   try{
                        if(DEBUG){ // <--- DEBUG BLOCK
                             if(input != null)
                                  System.out.println("input was not null at beginning of runtime!");
                             if(output != null)
                                  System.out.println("output was not null at beginning of runtime!");
                             if(clientSocket != null)
                                  System.out.println("clientSocket was not null at beginning of runtime!");
                   file = new FileInputStream(args[0]);
                   if(DEBUG){ // <---- DEBUG BLOCK
                        System.out.println("The following argument was entered: " + args[0]);
                             File myFile = new File(args[0]);
                             String sizeString = "";
                             long fileLength = myFile.length();
                             if(fileLength == 0){ // The file does not exist
                                  sizeString = "File does not exist";
                             }else if((fileLength / 1048576) != 0){ // The file is larger than 1Mb
                                  sizeString = "Filesize: " + (fileLength / 1048576) + " Mb";
                             }else if((fileLength / 1024) != 0){ // The file is larger than 1Kb
                                  sizeString = "Filesize: " + (fileLength / 1024) + " Kb";
                             }else{ // The file is larger than 1b
                                  sizeString = "Filesize: " + fileLength + " b";
                             System.out.println(sizeString);
                   send(file);
                   try{
                   input.close();
                   output.close();
                   clientSocket.close();
                   file.close();
                   }catch(IOException e){
                   catch(FileNotFoundException ex){
                        System.err.println("Error: No file was found at " + args[0] + " Double-check and try again.");
                   }finally{
                        try{
                        file.close();
                        }catch(IOException e){
                             //Nothing we can do
               * Send method
              private static void send(FileInputStream inFile){
              try{
                   clientSocket = new Socket("192.168.0.167", 2345);  //open a socket
                   input = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); // read what the server is saying
                   output = new ObjectOutputStream(clientSocket.getOutputStream());
                   if(DEBUG){  // <----- DEBUG BLOCK
                        String debugString = "";
                        if(input == null)
                             debugString += "input is null";
                        if(debugString.length() != 0)
                             debugString += ", ";
                        if(output == null)
                             debugString += "output is null";
                        if(debugString.length() == 0)
                             debugString += "input & output are OK";
                        System.out.println("status at start of 'send'-method: " + debugString);
                   if(clientSocket != null && inFile != null){
                        try{
                             long currentTime = System.currentTimeMillis();
                             boolean finished = false;
                             int flushTicker = 0;
                             int packetTicker = 0;
                             if(DEBUG){ // <--- DEBUG BLOCK
                                  System.out.println("packet-counter at " + packetTicker + " before sending data");
                             while(!finished){
                                  byte[] buffer = new byte[1024];
                                       if(flushTicker % 100 == 0) // clear cache, prevents OutOfMemory error
                                            output.reset();
                                       flushTicker++;
                                       packetTicker++;
                                       int bytesRead = inFile.read(buffer);
                                       if(bytesRead == -1){
                                            output.writeObject(new Packet(null, "finished", false, bytesRead));
                                            finished = true;
                                            output.flush();
                                       output.writeObject(new Packet(buffer, "", true, bytesRead));
                                       output.flush();
                             if(DEBUG) // <--- DEBUG BLOCK
                                  System.out.println("Number of packets sent: " + packetTicker);
                                  if(DEBUG){ // <---- DEBUG BLOCK
                                       // System.out.println("buffer contains: " + buffer.length + " bytes");
                                  long time = 0;
                                       if(DEBUG){
                                            time = ((System.currentTimeMillis() - currentTime)/1000);
                                       if(time == 0){// The operation took a very short time, cannot measure in seconds
                                            System.out.println("The operation took ~" + (System.currentTimeMillis() - currentTime) + " ms");
                                       }else{
                                       System.out.println( "The operation took " + time + " Seconds");
                             catch(UnknownHostException e){
                                  System.err.println("Trying to connect to unknown host: " + e);
                             catch(IOException e){
                                  System.err.println("IOException: " + e);
                   else{ // SOCKET OR FILE WERE NULL!
                        String result = "";
                        if(clientSocket == null){
                             result += "socket";
                        }else if(output == null){
                             result += "output";
                        }else if(input == null){
                             result += "input";
                        System.out.println("Error occured, " + result + " was null.");
              catch(UnknownHostException e){
                   System.err.println("Couldn't find the host");
                   try{
                   clientSocket.close();
                   }catch(IOException io){
                        //Nothing left to do
              catch(IOException e){
                   System.err.println("Couldn't get I/O from the connection");
              finally{
                   try{
                        if(clientSocket != null)
                             clientSocket.close();
                   }catch(IOException e){
                        //Nothing we can do
    }SERVER:
    import java.io.*;
    import java.net.ServerSocket;
    import java.net.Socket;
    * This is the main class for listening to incoming connections
    * It listens to an incoming ObjectInputStream and is able to
    * follow user-specified commands to execute various methods.
    * @author Glader
    * @version 1.1
    public class FileListener {
         static Socket incoming = null; // Socket connection with the client
         static ServerSocket ss = null;
         static ObjectInputStream is; // Data recieved from the connection
         static OutputStream out = null; // talk back to the client
         static FileOutputStream fout;
         static String response;
         private static final boolean DEBUG = true;
          * @param args
         public static void main(String[] args) {
              int port = 2345;
              boolean finished = false;
              while(true){
                   try{ // Establish server socket
                        ss = new ServerSocket(port);
                        }catch(IOException e){
              try{ // Wait for a client to connect
                   incoming = ss.accept();
                   if(DEBUG){ // <--- DEBUG BLOCK
                        if(ss != null)
                             System.out.println("ObjectInputStream initialized");
                   try{ // Read Objects from the incoming Stream
                   is = new ObjectInputStream(incoming.getInputStream());
                   fout = new FileOutputStream(new File("min fil.avi"));
                   int packetTicker = 0;
                   while(!finished){ // read until there are no more packets incoming
                   Packet currentPacket = (Packet) is.readObject();
                   packetTicker++;               
                   String command = currentPacket.getCommand();
                   if(command.length() != 0){ // The client is telling us something
                        // Insert a checking loop for all possible commands from the client here
                        if(command.equals("initiating")){
                             OutputStream out = incoming.getOutputStream();
                             out.write(10); // 10 signals that the client is cleared to send.
                        if(command.equals("finished")){
                             finished = true;
                             if(DEBUG){ // <--- DEBUG BLOCK
                             System.out.println("Connection terminated, client said \"" + command + "\"");
                             System.out.println("Total amount of packets recieved: " + packetTicker);
                   if(currentPacket.containsFileData()){
                        if(currentPacket.amountOfData() == -1)
                             finished = true;
                        if(currentPacket.amountOfData() != 1024){ // Special handling for not entirely full packets
                                  fout.write(currentPacket.getFileData(), 0, currentPacket.amountOfData());
                        }else{
                        fout.write(currentPacket.getFileData());
                   fout.close();
                   is.close();
                   incoming.close();
                   catch(ClassNotFoundException ex){
                        System.err.println("Error when reading Packet: " + ex);
                   finally{
                        if(fout != null){
                             fout.close();
                        }if(is != null){
                             is.close();
                        }if(incoming != null){
                             incoming.close();
                        }if(out != null)
                             out.close();
              catch (IOException ex){
                   System.err.println("Error getting inputStream");
         

    Follow-up question, need more information to solve the problem:
    My server now uses a ObjectOutputStream to send packets to the client, which successfully reads them BUT:
    the problem still remains! I am still getting a "SocketException socket write error" the second time I use the sender!
    Right now this is what the send-method in FileSender looks like.
    (Look at "// Connection Loop" for the biggest change.)
    What am I doing wrong here?
              private static void send(FileInputStream inFile){
                   if(DEBUG) // <--- DEBUG BLOCK
                        System.out.println("Flag reached: Beginning of \"send\"");
              try{
                   clientSocket = new Socket("192.168.0.167", 2345);  //open a socket
                   output = new ObjectOutputStream(clientSocket.getOutputStream()); // Outgoing Packets to the server
                   if(DEBUG){  // <----- DEBUG BLOCK
                        String debugString = "";
                        if(input == null)
                             debugString += "input is null";  // Expected with current code
                        if(debugString.length() != 0)
                             debugString += ", ";
                        if(output == null)
                             debugString += "output is null";
                        if(debugString.length() == 0)
                             debugString += "input & output are OK";
                        System.out.println("status at start of 'send'-method: " + debugString);
                   if(clientSocket != null && inFile != null){
                        try{
                             long currentTime = System.currentTimeMillis();
                             boolean finished = false;
                             boolean accepted = false;
                             int flushTicker = 0;
                             int packetTicker = 0;
                             // Connection loop with 500ms timeout
                             input = new ObjectInputStream(clientSocket.getInputStream()); // Incoming Packets from the server
                             while((System.currentTimeMillis() - currentTime) <= 500){ // try connecting for 500ms
                                  output.writeObject(new Packet(null, "initiating", false, 0)); // send the first request Packet
                                  try{
                                  Packet currentPacket = (Packet) input.readObject();
                                  String command = currentPacket.getCommand();
                                  if(DEBUG) // <--- DEBUG BLOCK
                                       System.out.println("Command sent from Server: " + command);
                                  if(command.equals("ready")){
                                       accepted = true;
                                  if(accepted){
                             while(!finished){
                                  byte[] buffer = new byte[1024];
                                       if(flushTicker % 100 == 0) // clear cache, prevents OutOfMemory error
                                            output.reset();
                                       flushTicker++;
                                       packetTicker++;
                                       int bytesRead = inFile.read(buffer);
                                       if(bytesRead == -1){
                                            output.writeObject(new Packet(null, "finished", false, bytesRead));
                                            finished = true;
                                            output.flush();
                                       output.writeObject(new Packet(buffer, "", true, bytesRead));
                                       output.flush();
                             catch(ClassNotFoundException e){
                                  System.err.println("ClassNotFoundException: " + e);
                                  while(bytesRead != -1){
                                  if(DEBUG) // <--- DEBUG BLOCK
                                       System.out.println("bytesRead: " + bytesRead);
                                  else{
                                  output.writeObject(new Packet(buffer, "", true));
                                  flushTicker++;
                                  if(bytesRead == -1){ // no more bytes to be read from the file
                                  long time = 0;
                                       if(DEBUG){
                                            System.out.println("Number of packets sent: " + packetTicker);
                                            time = ((System.currentTimeMillis() - currentTime)/1000);
                                       if(time == 0){// The operation took a very short time, cannot measure in seconds
                                            System.out.println("The operation took ~" + (System.currentTimeMillis() - currentTime) + " ms");
                                       }else{
                                       System.out.println( "The operation took " + time + " Seconds");
                             catch(UnknownHostException e){
                                  System.err.println("Trying to connect to unknown host: " + e);
                             catch(IOException e){
                                  System.err.println("IOException: " + e);
                   else{ // SOCKET OR FILE WERE NULL!
                        String result = "";
                        if(clientSocket == null){
                             result += "socket";
                        }else if(output == null){
                             result += "output";
                        }else if(input == null){
                             result += "input";
                        System.out.println("Error occured, " + result + " was null.");
              catch(UnknownHostException e){
                   System.err.println("Couldn't find the host");
                   try{
                   clientSocket.close();
                   }catch(IOException io){
                        //Nothing left to do
              catch(IOException e){
                   System.err.println("Couldn't get I/O from the connection");
              finally{
                   try{
                        if(clientSocket != null)
                             clientSocket.close();
                   }catch(IOException e){
                        //Nothing we can do
              }

  • The Sun Java Application Server 8.1 could not start anymore

    Very incredible I was working fine from may days with Stydio Creator 2
    but yesterday I run the project and it does not work anymore, please can you suggest something:
    The Sun Java Application Server 8.1 could not start.
    from the Output console:
    C:\Sun\Creator2\SunAppServer8\bin\asadmin.bat start-domain --domaindir C:\Sun\Creator2\SunAppServer8\domains\ creator
    Failed to start server localhost:4848
    Deployment error: Failed to start server localhost:4848. See the server log file for details.
    Exception=Deployment error: Failed to start server localhost:4848. See the server log file for details.
    Deployment error: Failed to start server localhost:4848. See the server log file for details.
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:198)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:75)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:242)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
    Caused by: Failed to start server localhost:4848
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:152)
    ... 10 more
    and in the log file:
    [#|2006-02-24T11:49:51.296+0100|WARNING|sun-appserver-pe8.1_02|
    javax.enterprise.system.core|_ThreadID=25;|CORE5061: Exception :
    com.sun.appserv.server.ServerLifecycleException: [C4073]: A JMS destination limit was reached.
    Too many Subscribers/Receivers for Queue :
    temporary_destination://queue/192.168.0.159/3376/2 user=admin, broker=127.0.0.1:27676(2403)
         at com.sun.enterprise.jms.JmsProviderLifecycle.onTermination(JmsProviderLifecycle.java:476)
         at com.sun.enterprise.server.ApplicationServer.onTermination(ApplicationServer.java:454)
         at com.sun.enterprise.server.Shutdown.startShutdown(Shutdown.java:42)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeShutdownEventListener(AdminEventMulticaster.java:1445)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleShutdownEvent(AdminEventMulticaster.java:1434)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:443)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
         at com.sun.enterprise.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:90)
         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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:595)
    thanks

    I just had the same problem this morning. I believe the app server starts and if you browser directly to your app you'd get it, but the connection between the appserver and the IDE is somehow lost. An easier solution than completely reinstalling for me was to delete the .Creator folder in my home directory (C;|Documents and Setting\<username>\.Creator) and restart Creator

  • JMS session is not closed even after calling close()

    Hi All,
    I am using JMS to receive and publish topics for a process,in my java code i
    am creating new JMS Session on demand(ie., whenever a new topic is
    received) after processing the topic i am closing the session with close(),but
    still the session is not closed.In a period of time more sessions are created
    and FD leaks occurs which stops the process functionality.
    Later i moved the on demand session code to a static block, its working fine
    and no FD leak occurs.
    Is this a known behavior or any java bug is there to point this issue,please
    help me regarding this.
    Thanks,
    Ants Balajei

    You should try avoid creating sessions on demand but cache/pool them...
    http://activemq.apache.org/how-do-i-use-jms-efficiently.html
    James
    http://www.iona.com/
    Open Source the Enterprise Way

  • Database Connections Not Closing

    I'm using iBatis for PostgreSQL database access and frequently have problems with connections not being closed. Here is a copy of my sqlMapConfig file:
    ============================
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE sqlMapConfig
    PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN"
    "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
    <sqlMapConfig>
    <properties resource="ibatis.properties" />
    <settings
    lazyLoadingEnabled="true"
    cacheModelsEnabled="true"
    enhancementEnabled="false"
    useStatementNamespaces="false"
    />
    <transactionManager type="JDBC" commitRequired="true">
    <dataSource type="DBCP">
    <property name="driverClassName" value="${driver}" />
    <property name="url" value="${url}" />
    <property name="username" value="${username}" />
    <property name="password" value="${password}" />
    <property name="maxActive" value="10"/>
    <property name="maxIdle" value="5"/>
    <property name="maxWait" value="5000"/>
    <property name="logAbandoned" value="true"/>
    <property name="removeAbandoned" value="true"/>
    <property name="removeAbandonedTimeout" value="1"/>
    <property name="Driver.logUnclosedConnections" value="true"/>
    </dataSource>
    </transactionManager>
    <sqlMap resource="job-sqlMap.xml" />
    </sqlMapConfig>
    ============================
    Due to the logAbandoned and removeAbandoned settings, I get a report in my log file whenever there is a connection that was not properly closed. Here is one of those log entries:
    23:22:51.483 (10) Finalizing a Connection that was never closed:
    java.lang.Throwable: Connection was created at this point:
    at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:175)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
    at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
    at org.postgresql.Driver.makeConnection(Driver.java:393)
    at org.postgresql.Driver.connect(Driver.java:267)
    at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
    at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:84)
    at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
    at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.init(JdbcTransaction.java:48)
    at com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTransaction.getConnection(JdbcTransaction.java:89)
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)
    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567)
    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541)
    at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)
    at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:94)
    at edu.calpoly.lib.multimedia.big.db.AutomaticPeriodUpdateIBatisImplDBHandler.getGamesWithAutomaticUpdatePolicy(AutomaticPeriodUpdateIBatisImplDBHandler.java:154)
    at edu.calpoly.lib.multimedia.big.game.AutoUpdateThread.run(AutoUpdateThread.java:155)
    The file: AutomaticPeriodUpdateIBatisImplDBHandler.java contains an iBatis call on line # 154:
    --> list = sqlMap.queryForList("getGamesWithAutoPolicy", null);
    from the map file:
    <select id="getGamesWithAutoPolicy" resultClass="java.util.HashMap">
    <![CDATA[
    SELECT gameid, policy
    FROM update_policy
    ]]>
    </select>
    Here is the code for the entire method that uses this transaction:
    ============================
    public List getGamesWithAutomaticUpdatePolicy() throws BIGDatabaseFacadeException
    List list = new ArrayList();
    try
    sqlMap.startTransaction();
    list = sqlMap.queryForList("getGamesWithAutoPolicy", null);
    sqlMap.commitTransaction();
    catch(SQLException sqle)
    throw new BIGDatabaseFacadeException(sqle);
    finally
    try
    sqlMap.endTransaction();
    catch(SQLException sqle)
    throw new BIGDatabaseFacadeException(sqle);
    return list;
    ============================
    I know that this should be handled as an automatic transaction, but I tried adding the start, commit and end transaction commands in my desperate attempt to fix this problem (but it still didn't help).
    Here is my code for creation of sqlMap -
    --> sqlMap = SqlMapClientBuilder.buildSqlMapClient(Resources.getResourceAsReader("sqlMaps.xml"));
    Except for the fact that occasionally connections are not closed, overall my database access using iBatis works very well.
    In the course of trying to fix this problem I've worked to update all my lib files to the latest versions, and here is current status:
    My iBatis lib file: ibatis-2.3.4.726.jar
    My JDBC driver: postgresql-8.4-701.jdbc3.jar
    Required commons files:
    commons-dbcp-1.2.2.jar
    commons-pool-1.5.3.jar
    Note that I tried adding --> commitRequired="true" to the transactionManager in sqlMaps.xml, hoping it might help, but no joy.
    Please help me figure out why my database connections often do not close. Thank you very much!

    I'm sorry, but I don't understand what you mean by "close the session." I believe iBatis is supposed to take care of all that automatically. My understanding is that all the user does is create the sqlMapClient and then use it along with various map files to query and update the database. iBatis does the rest.

  • DriverManagerConnectionPoolConnection not closed with TopLink cahce synch

    We're using TopLink in several JVMs and have configured cache synchronisation over JMS. The JMS topic runs on Oracle AQ. Every once in a while we get the follwoing error from OC4J:
    DriverManagerConnectionPoolConnection not closed, check your code!
    Now this could be some connection we forget to close, but we do use TopLink for all our databasecommunication. I also see that every time it shows up the last steps of the stacktrace involves the TopLink cache and the AQ classes:
    05/05/12 11:42:27 com.evermind.sql.DriverManagerConnectionPoolConnection@10e3c8c was Created at:
    05/05/12 11:42:27 java.lang.Throwable: DriverManagerConnectionPoolConnection created
    05/05/12 11:42:27      at com.evermind.sql.DriverManagerConnectionPoolConnection.<init>(DriverManagerConnectionPoolConnection.java:29)
    05/05/12 11:42:27      at com.evermind.sql.DriverManagerPooledConnection.getNewLogicalConnection(DriverManagerPooledConnection.java:375)
    05/05/12 11:42:27      at com.evermind.sql.DriverManagerPooledConnection.getConnection(DriverManagerPooledConnection.java:121)
    05/05/12 11:42:27      at com.evermind.sql.OrionPooledDataSource.getConnection(OrionPooledDataSource.java:347)
    05/05/12 11:42:27      at com.evermind.sql.OrionCMTConnection.setConnection(OrionCMTConnection.java:191)
    05/05/12 11:42:27      at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:141)
    05/05/12 11:42:27      at com.evermind.sql.OrionCMTConnection.setAutoCommit(OrionCMTConnection.java:479)
    05/05/12 11:42:27      at com.evermind.sql.ConnectionBCELProxy.setAutoCommit(ConnectionBCELProxy.java:105)
    05/05/12 11:42:27      at oracle.jms.AQjmsDBConnMgr.extraInit(AQjmsDBConnMgr.java:740)
    05/05/12 11:42:27      at oracle.jms.AQjmsDBConnMgr.getConnection(AQjmsDBConnMgr.java:568)
    05/05/12 11:42:27      at oracle.jms.AQjmsDBConnMgr.<init>(AQjmsDBConnMgr.java:367)
    05/05/12 11:42:27      at oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:246)
    05/05/12 11:42:27      at oracle.jms.AQjmsTopicConnectionFactory.createTopicConnection(AQjmsTopicConnectionFactory.java:214)
    05/05/12 11:42:27      at oracle.toplink.remote.jms.JMSClusteringService.createRemoteConnection(JMSClusteringService.java:67)
    05/05/12 11:42:27      at oracle.toplink.remote.jms.JMSClusteringService.retreiveRemoteSessions(JMSClusteringService.java:199)
    05/05/12 11:42:27      at oracle.toplink.remote.jms.JMSClusteringService.run(JMSClusteringService.java:177)
    05/05/12 11:42:27      at oracle.toplink.remote.jms.JMSClusteringService.initialize(JMSClusteringService.java:164)
    05/05/12 11:42:27      at oracle.toplink.remote.CacheSynchronizationManager.initialize(CacheSynchronizationManager.java:112)
    05/05/12 11:42:27      at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:534)
    05/05/12 11:42:27      at org.springframework.orm.toplink.SessionFactoryBean.afterPropertiesSet(Unknown Source)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1072)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:343)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments(AbstractAutowireCapableBeanFactory.java:574)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:477)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments(AbstractAutowireCapableBeanFactory.java:574)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:477)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
    05/05/12 11:42:27      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317)
    05/05/12 11:42:27      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
    05/05/12 11:42:27      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
    05/05/12 11:42:27      at org.springframework.context.access.ContextJndiBeanFactoryLocator.createBeanFactory(ContextJndiBeanFactoryLocator.java:40)
    05/05/12 11:42:27      at org.springframework.beans.factory.access.JndiBeanFactoryLocator.useBeanFactory(JndiBeanFactoryLocator.java:68)
    05/05/12 11:42:27      at org.springframework.ejb.support.AbstractEnterpriseBean.loadBeanFactory(AbstractEnterpriseBean.java:115)
    05/05/12 11:42:27      at org.springframework.ejb.support.AbstractStatelessSessionBean.ejbCreate(AbstractStatelessSessionBean.java:63)
    For those of you familiar with the Spring Framework you'll notice I'm invoking an SLSB throug it, and that thet start of the stackrace is missing, but this error also shows up in other contexts. This is only one of them. They all have in common the AQ and Cache sync lines.
    Anyone have any ideas? Is it even tied to TopLink or might it be an AQ issue?
    Anders,

    What version of OC4J are you using?
    If you are using a 10.1.3 preview release, this may be an issue with OC4J connection pooling in that preview release.
    You could try using AS JMS and TopLink connection pooling to determine which is causing the issue.

  • Connection not closed in the database server end

    Hi,
    Our database server (sql server 2000) and java application are running in two different boxes. Because the java application sent to the db server quite a few queries that can not be completed (applications hangs there) due to huge amount of data (18 million records in one table and 1 million records in another table and there are joins among the three tables), we stopped the java program. However, in the db server end, the connections associated with these problem queries were not closed although the java app end already closed these connections by calling connection.close(). When this happened, we have to manually close the connection from sql server enterprise manager.
    Here are the questions.
    1)what could be the reason why db server does not close the connection?
    2)Is there any solution in the java end that could close the connection in the db server end when this situation happens? I say this situation happens, I mean in most cases when java application closes connection, db server closes connections in its end too.
    Thanks
    Mark

    mark.lin wrote:
    Thanks for your answers and questions.
    Here are the answers to your questions
    1)The jdbc driver is jturboJTurbo? Never heard of it. You mean this?
    http://www.newatlanta.com/products/jturbo/index.jsp
    Why pay for something when you have two options available that are free? One of them is from Microsoft itself. Whose idea was this?
    2)It's a desk top application.
    It seems to me that it should not be driver issue. I was this happened the Microsoft's own jdbc driver. By jdbc specification, although you don't close the connection explicitly in the program, the connection will be automatically closed in the java app end during garbage collection. Very bad - never depend on this. Always close your ResultSet, Statement, and Connection in reverse order of opening in a finally block, each one wrapped in individual try/catch blocks.
    One should never, ever depend on the GC to take care of resources like database connections or resource handles. Those should be cleaned up by your code.
    I tested this by intentionally not closing a connection. When I stops the application, the connection in the sql server end was also closed.
    But if you don't close the application and fail to close connections, you can see where eventually you'll exhaust the pool.
    It seems to me this is a sql server issue rather than a jdbc driver issue. I need way to prove this.
    Like I suggested, it's easy to swap in the jTDS driver and try it again. What do you have to lose?
    Or call Microsoft support and ask them. Or maybe JTurbo. You're paying for it - might as well use the support.
    %

  • TopLink logical connection not closed

    Hi everybody,
    I have a problem when using db adapter for polling databases tables. This is using TopLink to access database's data.
    My process was running w/o errors till I have started to use external data source defined in OAS.
    My oc4j-ra.xml file contains:
    ============================================================
         <connector-factory location="eis/DB/TestData" connector-name="Database Adapter">
              <config-property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
              <config-property name="connectionString" value=""/>
              <config-property name="userName" value=""/>
              <config-property name="password" value=""/>
              <config-property name="minConnections" value="5"/>
              <config-property name="maxConnections" value="5"/>
              <config-property name="minReadConnections" value="1"/>
              <config-property name="maxReadConnections" value="1"/>
              <config-property name="usesExternalConnectionPooling" value="true"/>
              <config-property name="dataSourceName" value="jdbc/TESTDS"/>
              <config-property name="usesExternalTransactionController" value="true"/>
              <config-property name="platformClassName" value="oracle.toplink.internal.databaseaccess.Oracle9Platform"/>
              <config-property name="usesNativeSequencing" value="true"/>
              <config-property name="sequencePreallocationSize" value="50"/>
              <config-property name="tableQualifier" value=""/>
              <config-property name="defaultNChar" value="false"/>
              <config-property name="usesBatchWriting" value="true"/>
         </connector-factory>
    ============================================================
    Once I have switched to this oc4j-ra.xml configuration file I got the following error in files logs (using the -Djdbc.connection.debug=true flag)
    ============================================================
    06/09/25 11:40:46 OrionCMTConnection not closed, check your code!
    06/09/25 11:40:46 Logical connection not closed, check your code!
    06/09/25 11:40:46 Created at:
    06/09/25 11:40:46 java.lang.Throwable: OrionCMTConnection created
    06/09/25 11:40:46      at com.evermind.sql.OrionCMTConnection.<init>(OrionCMTConnection.java:121)
    06/09/25 11:40:46      at com.evermind.sql.OrionCMTConnectionFinalize.<init>(OrionCMTConnectionFinalize.java:42)
    06/09/25 11:40:46      at com.evermind.util.ClassOptimizerFactory.getOrionCMTConnection(ClassOptimizerFactory.java:80)
    06/09/25 11:40:46      at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:237)
    06/09/25 11:40:46      at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:227)
    06/09/25 11:40:46      at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:102)
    06/09/25 11:40:46      at oracle.toplink.sessions.DatabaseLogin.connect(DatabaseLogin.java:218)
    06/09/25 11:40:46      at oracle.toplink.internal.databaseaccess.DatabaseAccessor.reconnect(DatabaseAccessor.java:1323)
    06/09/25 11:40:46      at oracle.toplink.internal.databaseaccess.DatabaseAccessor.incrementCallCount(DatabaseAccessor.java:1198)
    06/09/25 11:40:46      at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:633)
    06/09/25 11:40:46      at oracle.toplink.publicinterface.Session.executeCall(Session.java:793)
    06/09/25 11:40:46      at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:131)
    06/09/25 11:40:46      at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
    06/09/25 11:40:46      at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:194)
    06/09/25 11:40:46      at oracle.toplink.internal.queryframework.CallQueryMechanism.selectAllRows(CallQueryMechanism.java:565)
    06/09/25 11:40:46      at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:733)
    06/09/25 11:40:46      at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:708)
    06/09/25 11:40:46      at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:447)
    06/09/25 11:40:46      at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
    06/09/25 11:40:46      at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:125)
    06/09/25 11:40:46      at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
    06/09/25 11:40:46      at oracle.toplink.threetier.ClientSession.internalExecuteQuery(ClientSession.java:390)
    06/09/25 11:40:46      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    06/09/25 11:40:46      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
    06/09/25 11:40:46      at oracle.toplink.publicinterface.Session.executeQuery(Session.java:876)
    06/09/25 11:40:46      at oracle.tip.adapter.db.inbound.DestructivePollingStrategy.poll(DestructivePollingStrategy.java:211)
    06/09/25 11:40:46      at oracle.tip.adapter.db.InboundWork.runOnce(InboundWork.java:247)
    06/09/25 11:40:46      at oracle.tip.adapter.db.InboundWork.run(InboundWork.java:213)
    06/09/25 11:40:46      at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    06/09/25 11:40:46      at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
    06/09/25 11:40:46      at java.lang.Thread.run(Thread.java:534)
    ============================================================
    Any clue on this?
    Thankfully,
    amo

    Thanks Marc,
    I have finally noticed that was not related with some TopLink error.
    So, is there any other way to refer in the DBAdapter to an OAS datasource?
    Regards,
    amo

  • JNDI subsystem is not ready to use and java.lang.NoClassDefFoundError: org

    Hi,
    I am installing Access point management system on WebLogic Server 9.2 MP3.In the Admin server logs i am facing the following error:
    Sep 25, 2011 6:29:33 AM com.alcatel.hdm.providers.authentication.JDBCHelper initializeDS
    WARNING: Could not initialize datasource: /motive/jdbc/MotiveTxDataSource: JNDI subsystem is not ready for use
    Sep 25, 2011 6:29:33 AM com.alcatel.hdm.providers.authentication.JDBCHelper initializeDS
    WARNING: Could not initialize datasource: /motive/jdbc/MotiveTxDataSource: JNDI subsystem is not ready for use
    Sep 25, 2011 6:30:03 AM com.alcatel.hdm.providers.authentication.JDBCHelper initializeDS
    WARNING: Could not initialize datasource: /motive/jdbc/MotiveTxDataSource: JNDI subsystem is not ready for use
    Sep 25, 2011 6:30:03 AM com.alcatel.hdm.providers.authentication.JDBCHelper initializeDS
    WARNING: Could not initialize datasource: /motive/jdbc/MotiveTxDataSource: JNDI subsystem is not ready for use
    Sep 25, 2011 6:30:03 AM com.alcatel.hdm.providers.authentication.JDBCHelper initializeDS
    WARNING: Could not initialize datasource: /motive/jdbc/MotiveTxDataSource: JNDI subsystem is not ready for use
    Sep 25, 2011 6:30:03 AM com.alcatel.hdm.providers.authentication.JDBCHelper initializeDS
    WARNING: Could not initialize datasource: /motive/jdbc/MotiveTxDataSource: JNDI subsystem is not ready for use
    Sep 25, 2011 6:31:20 AM net.sf.ehcache.config.ConfigurationFactory parseConfiguration
    WARNING: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: zip:/opt/hdmres_HAserver1/domains/HDMDomain/servers/necapms01-s0
    9_7204/tmp/_WL_user/nec-res-femto-1_3_0/r4j89a/APP-INF/lib/ehcache-1.6.0.jar!/ehcache-failsafe.xml
    My access point is not able to communicate with the Application.I am not sure due to above error or nor but this is the error i am getting.
    Another error is related to log4j due to which trace logs are not generating
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Error> <JMSClientExceptions> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Defa
    ult (self-tuning)'> <<anonymous>> <> <> <1316911802433> <BEA-055165> <The following exception has occurred:
    java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
    java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
    at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145)
    at org.apache.log4j.Category.forcedLog(Category.java:379)
    at org.apache.log4j.Category.error(Category.java:310)
    at motive.serversupport.jms.SubscriberConnection.onException(SubscriberConnection.java:280)
    at weblogic.jms.client.JMSExceptionContext$1.run(JMSExceptionContext.java:54)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.jms.client.JMSExceptionContext.invokeListener(JMSExceptionContext.java:50)
    at weblogic.jms.client.JMSSession.onException(JMSSession.java:2610)
    at weblogic.jms.client.JMSConsumer.pushException(JMSConsumer.java:736)
    at weblogic.jms.client.JMSConsumer.invoke(JMSConsumer.java:753)
    at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:759)
    at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:129)
    at weblogic.messaging.dispatcher.DispatcherImpl.dispatchNoReply(DispatcherImpl.java:160)
    at weblogic.jms.dispatcher.DispatcherAdapter.dispatchNoReply(DispatcherAdapter.java:27)
    at weblogic.jms.frontend.FESession.pushException(FESession.java:3072)
    at weblogic.jms.frontend.FEConsumer.pushException(FEConsumer.java:361)
    at weblogic.jms.frontend.FEConsumer.invoke(FEConsumer.java:824)
    at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:759)
    at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:129)
    at weblogic.messaging.dispatcher.DispatcherImpl.dispatchNoReply(DispatcherImpl.java:160)
    at weblogic.jms.dispatcher.DispatcherAdapter.dispatchNoReply(DispatcherAdapter.java:27)
    at weblogic.jms.backend.BESessionImpl.removeConsumerWithError(BESessionImpl.java:1453)
    at weblogic.jms.backend.BEConsumerImpl.closeWithError(BEConsumerImpl.java:662)
    at weblogic.jms.backend.BEDestinationImpl.closeAllConsumers(BEDestinationImpl.java:1048)
    at weblogic.jms.backend.BETopicImpl.closeAllConsumers(BETopicImpl.java:757)
    at weblogic.jms.backend.BEDestinationImpl.shutdownInternal(BEDestinationImpl.java:851)
    at weblogic.jms.backend.BEDestinationImpl.shutdown(BEDestinationImpl.java:824)
    at weblogic.jms.backend.BackEnd.removeDestination(BackEnd.java:1476)
    at weblogic.jms.backend.BEDestinationRuntimeDelegate.unprepare(BEDestinationRuntimeDelegate.java:269)
    at weblogic.jms.backend.udd.UDDEntity.unprepare(UDDEntity.java:466)
    at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1695)
    at weblogic.jms.module.JMSModule$EntityState.setState(JMSModule.java:1667)
    at weblogic.jms.module.JMSModule$EntityState.access$100(JMSModule.java:1608)
    at weblogic.jms.module.JMSModule.unprepare(JMSModule.java:462)
    at weblogic.jms.module.ModuleCoordinator.unprepare(ModuleCoordinator.java:313)
    at weblogic.application.internal.flow.ModuleListenerInvoker.unprepare(ModuleListenerInvoker.java:136)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.previous(DeploymentCallbackFlow.java:366)
    at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:52)
    at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:42)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.unprepare(DeploymentCallbackFlow.java:107)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.unprepare(DeploymentCallbackFlow.java:98)
    at weblogic.application.internal.BaseDeployment$1.previous(BaseDeployment.java:621)
    at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:52)
    at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:42)
    at weblogic.application.internal.BaseDeployment.unprepare(BaseDeployment.java:255)
    at weblogic.application.internal.DeploymentStateChecker.unprepare(DeploymentStateChecker.java:196)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.unprepare(AppContainerInvoker.java:118)
    at weblogic.deploy.internal.targetserver.BasicDeployment.unprepare(BasicDeployment.java:284)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doUnprepare(DeploymentAdapter.java:84)
    at weblogic.management.deploy.internal.DeploymentAdapter.unprepare(DeploymentAdapter.java:210)
    at weblogic.management.deploy.internal.AppTransition$7.transitionApp(AppTransition.java:75)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.unprepare(ConfiguredDeployments.java:204)
    at weblogic.management.deploy.internal.ConfiguredDeployments.undeploy(ConfiguredDeployments.java:192)
    at weblogic.management.deploy.internal.DeploymentServerService.shutdownApps(DeploymentServerService.java:188)
    at weblogic.management.deploy.internal.DeploymentServerService.shutdownHelper(DeploymentServerService.java:120)
    at weblogic.application.ApplicationService.halt(ApplicationService.java:142)
    at weblogic.t3.srvr.ServerServicesManager.haltInternal(ServerServicesManager.java:417)
    at weblogic.t3.srvr.ServerServicesManager.halt(ServerServicesManager.java:264)
    at weblogic.t3.srvr.T3Srvr.shutdown(T3Srvr.java:865)
    at weblogic.t3.srvr.T3Srvr.forceShutdown(T3Srvr.java:773)
    at weblogic.t3.srvr.ServerRuntime.forceShutdown(ServerRuntime.java:330)
    at weblogic.server.RemoteLifeCycleOperationsImpl.forceShutdown(RemoteLifeCycleOperationsImpl.java:57)
    at weblogic.server.RemoteLifeCycleOperationsImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)
    at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)
    at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    >
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JMS> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)
    '> <hdm_admin> <> <> <1316911802443> <BEA-040324> <JMSServer "necapms01-s09_7204_jms" is suspending.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JMS> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)
    '> <hdm_admin> <> <> <1316911802456> <BEA-040325> <JMSServer "necapms01-s09_7204_jms" is suspended.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802467> <BEA-001514> <Destroying Data Source HDMJDBCPool.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802471> <BEA-001515> <Data Source HDMJDBCPool has been successfully destroyed.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802471> <BEA-001508> <Destroying Connection Pool HDMJDBCPool.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802478> <BEA-001128> <Connection for pool "HDMJDBCPool" closed.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802480> <BEA-001128> <Connection for pool "HDMJDBCPool" closed.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Warning> <Common> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-t
    uning)'> <hdm_admin> <> <> <1316911802480> <BEA-000632> <Resource Pool "HDMJDBCPool" shutting down, ignoring 1 resources still in use by applications..>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802483> <BEA-001126> <Destroyed Connection Pool named HDMJDBCPool.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802489> <BEA-001514> <Destroying Data Source DashboardJDBCDataSource4HDMJDBCDataSource.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802489> <BEA-001515> <Data Source DashboardJDBCDataSource4HDMJDBCDataSource has been successfully destroyed.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802490> <BEA-001508> <Destroying Connection Pool DashboardJDBCDataSource4HDMJDBCDataSource.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802492> <BEA-001128> <Connection for pool "DashboardJDBCDataSource4HDMJDBCDataSource" closed.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802492> <BEA-001126> <Destroyed Connection Pool named DashboardJDBCDataSource4HDMJDBCDataSource.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802498> <BEA-001514> <Destroying Data Source CPEAuthDataSource.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802498> <BEA-001515> <Data Source CPEAuthDataSource has been successfully destroyed.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802498> <BEA-001508> <Destroying Connection Pool CPEAuthDataSource.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802500> <BEA-001128> <Connection for pool "CPEAuthDataSource" closed.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802501> <BEA-001126> <Destroyed Connection Pool named CPEAuthDataSource.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <MessagingBridge> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (
    self-tuning)'> <hdm_admin> <> <> <1316911802594> <BEA-200001> <The messaging bridge service has successfully shut down.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JMS> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)
    '> <hdm_admin> <> <> <1316911802596> <BEA-040308> <JMS service is suspending.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JMS> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)
    '> <hdm_admin> <> <> <1316911802599> <BEA-040107> <Undeployed 8 default connection factories.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JMS> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)
    '> <hdm_admin> <> <> <1316911802600> <BEA-040015> <JMS shutdown is complete.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802601> <BEA-001144> <Force Suspending the JDBC service.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802601> <BEA-001146> <Force suspend of the JDBC service completed.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802601> <BEA-001147> <Shutting down the JDBC service.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <JDBC> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning
    )'> <hdm_admin> <> <> <1316911802602> <BEA-001149> <Shutdown of the JDBC service completed.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <Cluster> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tun
    ing)'> <hdm_admin> <> <> <1316911802604> <BEA-000103> <Disconnecting from cluster HDMCluster>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Notice> <Server> <necapms01-s09> <necapms01-s09_7204> <DynamicSSLListenThread[DefaultAdministration]> <<WLS Kernel>> <> <> <131
    6911802605> <BEA-002607> <Channel "DefaultAdministration" listening on 10.66.12.212:9203 was shutdown.>
    ####<Sep 25, 2011 6:20:02 AM GMT+05:30> <Info> <WebLogicServer> <necapms01-s09> <necapms01-s09_7204> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (s
    elf-tuning)'> <hdm_admin> <> <> <1316911802605> <BEA-000236> <Stopping execute threads.>
    ####<Sep 25, 2011 6:25:52 AM GMT+05:30> <Notice> <WebLogicServer> <> <> <main> <> <> <> <1316912152282> <BEA-000395> <Following extensions directory contents added to t
    he end of the classpath:
    /opt/hdmres_HAserver1/weblogic92/platform/lib/p13n/p13n-schemas.jar:/opt/hdmres_HAserver1/weblogic92/platform/lib/p13n/p13n_common.jar:/opt/hdmres_HAserver1/weblogic92/
    platform/lib/p13n/p13n_system.jar:/opt/hdmres_HAserver1/weblogic92/platform/lib/wlp/netuix_common.jar:/opt/hdmres_HAserver1/weblogic92/platform/lib/wlp/netuix_schemas.j
    ar:/opt/hdmres_HAserver1/weblogic92/platform/lib/wlp/netuix_system.jar:/opt/hdmres_HAserver1/weblogic92/platform/lib/wlp/wsrp-common.jar>
    ####<Sep 25, 2011 6:25:52 AM GMT+05:30> <Info> <WebLogicServer> <> <> <main> <> <> <> <1316912152587> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Serve
    r VM Version 1.5.0_15-b04 from Sun Microsystems Inc.>
    ####<Sep 25, 2011 6:27:38 AM GMT+05:30> <Notice> <Security> <> <> <main> <> <> <> <1316912258744> <BEA-090169> <Loading trusted certificates from the jks keystore file
    /opt/hdmres_HAserver1/weblogic92/server/lib/DemoTrust.jks.>
    ####<Sep 25, 2011 6:27:38 AM GMT+05:30> <Notice> <Security> <> <> <main> <> <> <> <1316912258775> <BEA-090169> <Loading trusted certificates from the jks keystore file
    /opt/hdmres_HAserver1/jdk150_15/jre/lib/security/cacerts.>
    ####<Sep 25, 2011 6:29:28 AM GMT+05:30> <Info> <Management> <> <> <main> <> <> <> <1316912368207> <BEA-141107> <Version: WebLogic Server Temporary Patch for CR370311 Tu
    e Jun 03 14:20:55 IST 2008
    Please suggest your valuable opinion to resolve these issues.
    Thanks,
    Harish Chowdhary
    >

    Hello,
    I recommend not the xmlpull jar file, but the xpp3-*.jar file found with your Enterprise installation.  It's in the "external" subfolder where you got your other Enterprise jar files.
    You'll have to remove the xmlpull jar, since they'd version conflict.
    Sincerely,
    Ted Ueda

  • ServerSocket not closing...JRockit Bug?

    The following sample program does not behave as expected with JRockit, but works
    fine with Sun JVM.
    import java.net.*;
    import java.io.*;
    public class SocketTest {
    static ServerSocket soc = null;
    public static void main(String [] args) throws Exception {
    int port = Integer.parseInt(args[0]);
    soc = new ServerSocket(port);
    Runtime.getRuntime().exec("notepad");
    soc.close();
    System.exit(0);
    When this program is run with JRockit JVM, till I close the notepad, the server
    socket is not getting freed even though the parent process has exited!! But, with
    sun jvm as soon as the parent process exits, the port does get freed.
    Isn't this a BUG?
    Rgds,
    Thiru

    I am able to reproduce the problem in JRockit 8.1. I can see that the socket
    is not getting released till the notepad is closed by using netstat.
    I am not sure about the version that you are using. There is no 1.4
    compatible version in JRockit 70SP4 (its only 1.3 compatible). If you want
    to use 1.4 compatible, you need to upgrade to 8.1
    This issue is fixed in 81SP1 (CR102658). Please download 81SP1 (1.4.1)and
    try.
    http://commerce.bea.com/showallversions.jsp?family=WLJR
    Sathish Santhanam
    Developer Relations Engineer
    BEA Support
    "Thirumalesh C" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    I am testing whether the socket is freed up or not using a tool (nettool)which
    >
    allows me tunnel one port to another.
    In fact after running the test program, before closing notepad, if you runanother
    program
    that tries to bind to the same socket, it fails.
    Rgds,
    Thiru
    "Thirumalesh C" <[email protected]> wrote:
    Hi,
    Thanks for the reply.
    I had tried that too, it did not work.
    Below is the code.
    import java.net.*;
    import java.io.*;
    public class SocketTest {
    static ServerSocket soc = null;
    public static void main(String [] args) throws Exception {
    int port = Integer.parseInt(args[0]);
    soc = new ServerSocket();
    InetSocketAddress isoc = new InetSocketAddress("mymachine",port);
    soc.setReuseAddress(true);
    soc.bind(isoc);
    Runtime.getRuntime().exec("notepad");
    soc.close();
    System.exit(0);
    Even with this, I have the same problem.
    I am using JRockit 7.0 (1.4.0) on Windows 2000 platform with SP4.
    Please note that the same program works fine with Sun JVM 1.4.1
    Rgds,
    Thiru
    "Cecilia Borg" <[email protected]> wrote:
    Thiru,
    I'm not sure what you mean by "the socket is not getting freed", can
    you
    describe in more detail how you did that check? On what platform and
    with
    which version of JRockit do you experience this?
    Could you have experienced problems the timeout state that with your
    ServerSocket connection? In that case, you can try to use the
    setReuseAddress-method in the ServerSocket class.
    In the api for ServerSocket:setReuseAddress in JDK 1.4.1:
    setReuseAddress
    public void setReuseAddress(boolean on)
    throws SocketExceptionEnable/disable the
    SO_REUSEADDR
    socket option.
    When a TCP connection is closed the connection may remain in a timeout
    state
    for a period of time after the connection is closed (typically known
    as the
    TIME_WAIT state or 2MSL wait state). For applications using a well known
    socket address or port it may not be possible to bind a socket to the
    required SocketAddress if there is a connection in the timeout state
    involving the socket address or port.
    Enabling SO_REUSEADDR prior to binding the socket usingbind(SocketAddress)
    allows the socket to be bound even though a previous connection is in
    a
    timeout state
    Kind regards, Cecilia Borg
    BEA WebLogic JRockit Customer Centric Engineering

  • OC4J AQ/JMS - Logging DriverManagerConnectionPoolConnection not closed

    Hi,
    Since I do not directly utilise JDBC resource, I cannot work out how I might investigate this supposed leak.
    Every now and then (and it does appear to happen sporadically - I cannot identify a pattern), I get the
    messages.
    DriverManagerConnectionPoolConnection not closed, check your code!
    I turned the logging on (using -Djdbc.connection.debug=true), and the following exceptions is thrown:
    Created at:
    java.lang.Throwable: DriverManagerConnectionPoolConnection created
    at com.evermind.sql.DriverManagerConnectionPoolConnection.<init>(DriverManagerConnectionPoolConnection.java:27)
    at com.evermind.sql.DriverManagerPooledConnection.getNewLogicalConnection(DriverManagerPooledConnection.java:341)
    at com.evermind.sql.DriverManagerPooledConnection.getConnection(DriverManagerPooledConnection.java:117)
    at com.evermind.sql.OrionPooledDataSource.getConnection(OrionPooledDataSource.java:235)
    at com.evermind.sql.DriverManagerXADataSource.getNonAutoCommitConnection(DriverManagerXADataSource.java:285)
    at com.evermind.sql.DriverManagerXAConnection.start(DriverManagerXAConnection.java:101)
    at com.evermind.server.TransactionEnlistment.<init>(TransactionEnlistment.java:45)
    at com.evermind.server.ApplicationServerTransaction.enlistResource(ApplicationServerTransaction.java:247)
    at com.evermind.sql.OrionCMTConnection.tryToDelistEnlist(OrionCMTConnection.java:308)
    at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:112)
    at com.evermind.sql.FilterConnection.getTypeMap(FilterConnection.java:135)
    at com.evermind.sql.FilterConnection.getTypeMap(FilterConnection.java:136)
    at oracle.jms.AQjmsConsumer.dequeue(AQjmsConsumer.java:1240)
    at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:981)
    at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:918)
    at oracle.jms.AQjmsConsumer.receive(AQjmsConsumer.java:834)
    at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:905)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Thread.java:479)
    Here is the ejb.jar sections of interest:
    <transaction-type>Container</transaction-type>
    <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    <resource-ref>
    <res-ref-name>jms/MessageQueueConnectionFactory</res-ref-name>
    <res-type>javax.jms.QueueConnectionFactory</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-env-ref>
    <resource-env-ref-name>jms/MessageSendQueue</resource-env-ref-name>
    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
    </resource-env-ref>
    <resource-env-ref>
    <resource-env-ref-name>jms/MessageStatusQueue</resource-env-ref-name>
    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
    </resource-env-ref>
    Here is the orion-ejb.jar <enterprise-beans> definition:
    <enterprise-beans>
         <message-driven-deployment name="MessagingServer" destination-location="java:comp/resource/CallistaMessagingJMSContext/Queues/CORQ_MSG_SEND_QUEUE" connection-factory-location="java:comp/resource/CallistaMessagingJMSContext/QueueConnectionFactories/jmsFactory" max-instances="100">
         <resource-ref-mapping name="jms/MessageQueueConnectionFactory" location="java:comp/resource/CallistaMessagingJMSContext/QueueConnectionFactories/jmsFactory" />
         <resource-env-ref-mapping name="jms/MessageSendQueue" location="java:comp/resource/CallistaMessagingJMSContext/Queues/CORQ_MSG_SEND_QUEUE" />
         <resource-env-ref-mapping name="jms/MessageStatusQueue" location="java:comp/resource/CallistaMessagingJMSContext/Queues/CORQ_MSG_STATUS_QUEUE" />
         </message-driven-deployment>
    </enterprise-beans>
    The orion-application.xml has the following resource provider mapping for the OJMS Context:
    <resource-provider class="oracle.jms.OjmsContext" name="CallistaMessagingJMSContext">
    <description> OJMS/AQ </description>
    <property name="datasource" value="jdbc/ejb/CallistaMessageOwnerDS" />
    </resource-provider>
    Here is the matching 'jdbc/ejb/CallistaMessageOwnerDS' datasource definition for the JMS:
    <data-source
         class="com.evermind.sql.DriverManagerDataSource"
         name="CallistaMessageOwnerJDBCDatasource"
         location="jdbc/CallistaMessageOwnerCoreDS"
         xa-location="jdbc/xa/CallistaMessageOwnerXADS"
         ejb-location="jdbc/ejb/CallistaMessageOwnerDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
         username="*********"
         password="****"
              url="jdbc:oracle:thin:@myhost.com.au:1529:ORCL"
         inactivity-timeout="30"
    />
    I would appreciate any input into any mistakes I may have made (perhaps I need to use a different datasource, or define it in a different way)
    Any help - including an indication that this is an error I can safely ignore :-) would be appreciated.
    Thanks
    Jason

    I'm have the same issue. I'm currently trying to seen if the Oracle 9.2.0.5.0 patch corrects the issue (waiting for the file down load). There is a known issue in Oracle and cleaning up Inactive connections. I assuming the two are related ... I hope it works.

  • OrionCMTConnection not closed, check your code. OrionCMTConnection created

    Hi everybody, I have an application running in OAS 10g, this application generally works fine, but in the opmn log of my instance in found the next message :
    07/01/09 17:01:56 OrionCMTConnection not closed, check your code!
    07/01/09 17:01:56 Logical connection not closed, check your code!
    07/01/09 17:01:56 Created at:
    07/01/09 17:01:56 java.lang.Throwable: OrionCMTConnection created
    07/01/09 17:01:56 at com.evermind.sql.OrionCMTConnection.<init>(OrionCMTConnection.java:121)
    07/01/09 17:01:56 at com.evermind.sql.OrionCMTConnectionFinalize.<init>(OrionCMTConnectionFinalize.java:42)
    07/01/09 17:01:56 at com.evermind.util.ClassOptimizerFactory.getOrionCMTConnection(ClassOptimizerFactory.java:80)
    07/01/09 17:01:56 at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:237)
    07/01/09 17:01:56 at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:217)
    07/01/09 17:01:56 at view.base_control_maq.consulta_t_orden_produccion_cod(base_control_maq.java:1934)
    07/01/09 17:01:56 at control_maq._detalle__control__actividad._jspService(_detalle__control__actividad.java:280)
    07/01/09 17:01:56 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
    07/01/09 17:01:56 at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
    07/01/09 17:01:56 at templetas.template._jspService(_template.java:68)
    07/01/09 17:01:56 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
    07/01/09 17:01:56 at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
    07/01/09 17:01:56 at control_maq._control__actividad._jspService(_control__actividad.java:125)
    07/01/09 17:01:56 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
    07/01/09 17:01:56 at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    07/01/09 17:01:56 at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1001)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
    07/01/09 17:01:56 at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:560)
    07/01/09 17:01:56 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)
    07/01/09 17:01:56 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    07/01/09 17:01:56 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/01/09 17:01:56 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    07/01/09 17:01:56 at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    07/01/09 17:01:56 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    07/01/09 17:01:56 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    07/01/09 17:01:56 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    07/01/09 17:01:56 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    07/01/09 17:01:56 at java.lang.Thread.run(Thread.java:534)
    This error occurred with other java files too, but in the code apparently the jdbc connections are closed. I'm searching since a week the problem and different solutions in the forum but this does not apply for my problem, please help me.
    Regards
    Jeanette.

    Thanks Frances, but I set -Ddatasource.verbose=true and get some like this:
    Releasing connection com.evermind.sql.DriverManagerXAConnection@1cf6046 to pool (Pool size: 5)
    com.evermind.sql.OrionCMTDataSource@1a9a15f: Cache timeout, closing connection (Pool size: 4)
    com.evermind.sql.OrionCMTDataSource@1a9a15f: Cache timeout, closing connection (Pool size: 3)
    com.evermind.sql.OrionCMTDataSource@1a9a15f: Cache timeout, closing connection (Pool size: 2)
    com.evermind.sql.OrionCMTDataSource@1a9a15f: Cache timeout, closing connection (Pool size: 1)
    null: Releasing connection com.evermind.sql.DriverManagerXAConnection@6409e1 to pool (Pool size: 1)
    I suppose that some connections were closed well and others didn't close in the right form and use cache timeout.
    Nevertheless even now I don’t know how to correct the message of connection:
    07/01/11 18:31:44 OrionCMTConnection not closed, check your code!
    07/01/11 18:31:44 Logical connection not closed, check your code!
    07/01/11 18:31:44 Created at:
    07/01/11 18:31:44 java.lang.Throwable: OrionCMTConnection created
    07/01/11 18:31:44 at com.evermind.sql.OrionCMTConnection.<init>(OrionCMTConnection.java:121)
    07/01/11 18:31:44 at com.evermind.sql.OrionCMTConnectionFinalize.<init>(OrionCMTConnectionFinalize.java:42).........
    This time in the log I found other lines before the OrionCMTConnection….:
    null: Releasing connection com.evermind.sql.DriverManagerXAConnection@d35cb2 to pool (Pool size: 1)
    INFO - GenericFilterBean.init(118) | Initializing filter 'hibernateFilter'
    INFO - GenericFilterBean.init(143) | Filter 'hibernateFilter' configured successfully
    INFO - AbstractBeanFactory.getBean(219) | Creating shared instance of singleton bean 'sessionFactory'
    INFO - AbstractBeanFactory.getBean(219) | Creating shared instance of singleton bean 'sessionFactory'
    INFO - AbstractBeanFactory.getBean(219) | Creating shared instance of singleton bean 'dataSource'
    INFO - AbstractBeanFactory.getBean(219) | Creating shared instance of singleton bean 'dataSource'
    INFO - Environment.<clinit>(464) | Hibernate 3.0.5
    INFO - Environment.<clinit>(477) | hibernate.properties not found
    INFO - Environment.<clinit>(510) | using CGLIB reflection optimizer
    INFO - Environment.<clinit>(540) | using JDK 1.4 java.sql.Timestamp handling
    I'm totally disoriented now.. please help me
    Jane.

Maybe you are looking for