Unexpected closed connections

We are running Weblogic 5.1 sp10 on SUN OS 5.8 with JDK 1.3/SYBASE JConnect 5.2.
After we changed the program to use connection pooling from regular JDBC connection,
the connection could randomly be closed even within the scope. Here is the snippet
of the code
db = new Database(poolName);
con = db.getConnection();
stmt = con.createStatement();
stmt.execute(q1);
rs = stmt.executeQuery(query);
if (!rs.next()) {
return null;
MOSdeal mosDeal = new MOSdeal(rs);
return (mosDeal);
} catch (SQLException e) {
log.write("SQLException in DealEntity - " + e.getMessage() +"\n"
throw e;
} catch (MOSException e) {
throw e;
} finally {
try {
rs.close();

Frank,
Using connection pools is much faster then using regular connections,
so it does affect object concurrency characteristics.
So the only thing I could offer is to declare method where you get the
exception
as synchronized.
Regards,
Slava Imeshev
"Frank Lin" <[email protected]> wrote in message
news:[email protected]...
>
Due to the requirement of the apps., this program is designed to besingleton with
guaranteed only one thread. It ran in production for 2 years withoutproblem until
we change it from regular JDBC connection to connection pooling.
"Slava Imeshev" <[email protected]> wrote:
Frank,
I would guess there is something wrong with concurrent
processing of your code. A different thread could close the
connection. Make sure your code is thread-safe.
Also you could try to use our newsgroup search engine
at http://search.beasys.com/weblogic/gonews/
using JConnect as a keyword.
Regards,
Slava Imeshev
"Frank Lin" <[email protected]> wrote in message
news:[email protected]...
Hi, Slava, thank you for your reply. Here is the info you were
requesting.
>>>
What I meant the connection randomly closed is that the try block ofrs.close(),st.close(),con.close()
occationally throws a exception. And here is the JDBC connection pooldef.
in
weblogic.properties file(IP and user name/password are pseudo).
weblogic.jdbc.connectionPool.MOSpool=\
url=jdbc:sybase:Tds:XXX.XXX.XX.XX:9999,\
driver=com.sybase.jdbc2.jdbc.SybDriver,\
loginDelaySecs=1,\
initialCapacity=20,\
maxCapacity=50,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=5,\
testTable=sysobjects,\
refreshMinutes=30,\
testConnsOnReserve=true,\
testConnsOnRelease=true,\
props=user=XXXX;password=XXXX,\
allow=XXXX
"Slava Imeshev" <[email protected]> wrote:
Hi Frank,
o What do you mean saying "connection could randomly be closed"?
o Could you also post the definition of the connection pool?
o Could you post text of the exception, if any?
Regards,
Slava Imeshev
"Frank Lin" <[email protected]> wrote in message
news:[email protected]...
We are running Weblogic 5.1 sp10 on SUN OS 5.8 with JDK 1.3/SYBASEJConnect 5.2.
After we changed the program to use connection pooling from regularJDBC
connection,
the connection could randomly be closed even within the scope. Hereis the
snippet
of the code
db = new Database(poolName);
con = db.getConnection();
stmt = con.createStatement();
stmt.execute(q1);
rs = stmt.executeQuery(query);
if (!rs.next()) {
return null;
MOSdeal mosDeal = new MOSdeal(rs);
return (mosDeal);
} catch (SQLException e) {
log.write("SQLException in DealEntity - " +
e.getMessage()
+"\n"
throw e;
} catch (MOSException e) {
throw e;
} finally {
try {
rs.close();

Similar Messages

  • Unexpected closed connection

    Hi
    We're in the process of migrating from weblogic 7 using jdk 1.3 to weblogic 8.1 jrocket 1.4 jdk and we've hit a brick wall.
    We keep getting an SQLException when running exactly the same code and test data in Weblogic 8.1. The exception is thrown when we're about to execute a statement. The exception thrown is that the connection is already closed. However we haven't closed the connection and as I said the setup is exactly the same as before.
    It seems to be happening when the query being executed in the Statement object is returning an empty resultset.
    I was wondering if anyone else has heard of problems with the opta JDBC drivers and jdk 1.4 or Weblogic 8. We've not had the opportunity to test it with any other drivers yet.
    Cheers in advance.
    Navid
    ps. our db is MS SQL Server

    There's no problem with Opta and JDK 1.4 but infact it was a problem with our code!
    Navid
    Joe Weinstein <[email protected]> wrote:
    >
    >
    Navid wrote:
    Hi
    We're in the process of migrating from weblogic 7 using jdk 1.3 toweblogic 8.1 jrocket 1.4 jdk and we've hit a brick wall.
    We keep getting an SQLException when running exactly the same codeand test data in Weblogic 8.1. The exception is thrown when we're about
    to execute a statement. The exception thrown is that the connection
    is already closed. However we haven't closed the connection and as I
    said the setup is exactly the same as before.
    It seems to be happening when the query being executed in the Statementobject is returning an empty resultset.
    I was wondering if anyone else has heard of problems with the optaJDBC drivers and jdk 1.4 or Weblogic 8. We've not had the opportunity
    to test it with any other drivers yet.
    Cheers in advance.
    Navid
    ps. our db is MS SQL ServerHi. I don't immediately know about this issue, but I have some
    suspicions. Could you show me the code that gets the connection
    and the code that gets the exception?
    thanks
    Joe

  • Gateway unexpectedly closed the connection..

    When I try to Test Connection for the Active Directory Resources it shows the following error
    The gateway unexpectedly closed the connection with an exception, check the gateway trace for more information. ==> java.net.SocketException: Connection reset by peer: socket write error
    Previously it has working fine for me...

    Kannan SB wrote:
    I Have resolved my issue... I had remove the Gateway service and reinstall the service & restart the machine and try it got success...Still I have face the same issue, only it works for sometime I means while we restart the service it will work after some mins it got failed to perform the service.. Please suggest me for that....
    I have migrated Sun Identity Manager 8.1 Patch 7 to Oracle Waveset 8.1.1 Still the issue persists ...

  • The file server connection has unexpectedly closed down

    I am connected to a small network. I had been connecting fine for quite some time but as of yesterday I keep getting this message after 10-15 minutes of logging into the network server:
    "The file server xxxxxx has unexpectedly closed down."
    And where I have placed the x's is the name of our network sever.
    What are some reasons why this keeps happening and what are some solutions?

    Affected computers are ones prior to G5 series after Mac OS X Server 10.4.9 Update or Mac OS X 10.4.9 Update was completed. Workarounds I translated from the Apple Japan site is at your own risk when you perform them. You need to restart the computer after the procedure.
    CASE 1:
    When accessing from Mac OS 9.x to Mac OS X Server and you copies a file to the server, the link is down.
    Step 1. Disable AFP service and other services.
    Step 2. Download "MacOSXSrvrCombo10.4.8PPC.dmg" from Apple Web site and mount it.... This includes the original step 2) and 3)
    Step 3. Display the contents of "MacOSXSrvrCombo10.4.8PPC.mpkg" within "Mac OS X Server 10.4.8 Combined Update"
    Step 4. Expands "MacOSXSvrCmbBase10.4.8PPC.pkg/Contents/Archive.pax.gz"
    Step 5. Replaces "Archive/System/Library/CoreServices/AppleFileServer.app"
    with "/System/Library/CoreServices/AppleFileServer.app"
    CASE 2:
    When accessing from Mac OS 9.x to Mac OS X and you copies a file to the server, the link is down.
    Step 1. Disables File Sharing service.
    Step 2. Download "MacOSXUpdCombo10.4.8PPC.dmg" from Apple Web site and mount it.... This includes the original step 2) and 3)
    Step 3. Display the contents of "MacOSXUpdCombo10.4.8PPC.pkg" within "Mac OS X 10.4.8 Combined Update "
    Step 4. Expands "MacOSXUpdCombo10.4.8PPC.pkg/Contents/Archive.pax.gz"
    Step 5. Replaces "Archive/System/Library/CoreServices/AppleFileServer.app"
    with "/System/Library/CoreServices/AppleFileServer.app"
    Another person solved by deleting AFP related passwords or AppleShare password via launched Keychain Access utility.
    Best wishes!

  • CF 6.1 - JRUN Closed Connection/Server errors occurring on a daily basis

    We seem to be having issues with Jrun Closed Connection/Server errors occuring on a daily basis now. The server will stop responding to requests until the ColdFusion service is restarted.
    We're using CF 6.1, the following error message is from the log files and seems to be Java/JVM related but I was hesitant to make any changes to the JVM parameters.
    Any suggestions on how to resolve this daily issue of restarting CF service? Other than upgrading to more recent version of CF which we'll be doing later this year.
    Thanks,
    Dave
    >>>>>>>>>>>>
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77FCAFF8
    Function=[Unknown.]
    Library=C:\WINNT\system32\ntdll.dll
    NOTE: We are unable to locate the function name symbol for the error
          just occurred. Please refer to release documentation for possible
          reason and solutions.
    Current Java thread:
              at java.io.WinNTFileSystem.list(Native Method)
              at java.io.File.list(File.java:915)
              at coldfusion.mail.MailSpooler.refreshSpoolFiles(MailSpooler.java:1484)
              at coldfusion.mail.MailSpooler.run(MailSpooler.java:897)
              at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:201)
              at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:70)
    Dynamic libraries:
    0x00400000 - 0x0040F000           C:\CFusionMX\runtime\bin\jrun.exe
    0x77F80000 - 0x77FFC000           C:\WINNT\system32\ntdll.dll
    0x7C570000 - 0x7C624000           C:\WINNT\system32\KERNEL32.dll
    0x7C2D0000 - 0x7C335000           C:\WINNT\system32\ADVAPI32.dll
    0x77D30000 - 0x77D9F000           C:\WINNT\system32\RPCRT4.dll
    0x78000000 - 0x78045000           C:\WINNT\system32\MSVCRT.dll
    0x08000000 - 0x082A7000           C:\CFusionMX\runtime\jre\bin\server\jvm.dll
    0x77E10000 - 0x77E6F000           C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7D000           C:\WINNT\system32\GDI32.dll
    0x77570000 - 0x775A0000           C:\WINNT\system32\WINMM.dll
    0x10000000 - 0x10007000           C:\CFusionMX\runtime\jre\bin\hpi.dll
    0x00770000 - 0x0077E000           C:\CFusionMX\runtime\jre\bin\verify.dll
    0x00780000 - 0x00798000           C:\CFusionMX\runtime\jre\bin\java.dll
    0x007A0000 - 0x007AD000           C:\CFusionMX\runtime\jre\bin\zip.dll
    0x39A70000 - 0x39A7F000           C:\CFusionMX\runtime\jre\bin\net.dll
    0x75030000 - 0x75044000           C:\WINNT\system32\WS2_32.dll
    0x75020000 - 0x75028000           C:\WINNT\system32\WS2HELP.DLL
    0x782C0000 - 0x782CC000           C:\WINNT\System32\rnr20.dll
    0x77980000 - 0x779A5000           C:\WINNT\system32\DNSAPI.DLL
    0x75050000 - 0x75058000           C:\WINNT\system32\WSOCK32.dll
    0x77340000 - 0x77353000           C:\WINNT\system32\iphlpapi.dll
    0x77520000 - 0x77525000           C:\WINNT\system32\ICMP.dll
    0x77320000 - 0x77337000           C:\WINNT\system32\MPRAPI.dll
    0x75150000 - 0x75160000           C:\WINNT\system32\SAMLIB.DLL
    0x7CDC0000 - 0x7CE10000           C:\WINNT\system32\NETAPI32.DLL
    0x7C340000 - 0x7C34E000           C:\WINNT\system32\Secur32.dll
    0x77BF0000 - 0x77C01000           C:\WINNT\system32\NTDSAPI.dll
    0x77950000 - 0x7797B000           C:\WINNT\system32\WLDAP32.DLL
    0x751C0000 - 0x751C6000           C:\WINNT\system32\NETRAP.dll
    0x7CE20000 - 0x7CF0F000           C:\WINNT\system32\OLE32.DLL
    0x779B0000 - 0x77A4C000           C:\WINNT\system32\OLEAUT32.DLL
    0x773B0000 - 0x773DF000           C:\WINNT\system32\ACTIVEDS.DLL
    0x77380000 - 0x773A3000           C:\WINNT\system32\ADSLDPC.DLL
    0x77830000 - 0x7783E000           C:\WINNT\system32\RTUTILS.DLL
    0x77880000 - 0x7790E000           C:\WINNT\system32\SETUPAPI.DLL
    0x7C0F0000 - 0x7C154000           C:\WINNT\system32\USERENV.DLL
    0x774E0000 - 0x77514000           C:\WINNT\system32\RASAPI32.dll
    0x774C0000 - 0x774D1000           C:\WINNT\system32\rasman.dll
    0x77530000 - 0x77552000           C:\WINNT\system32\TAPI32.dll
    0x71710000 - 0x71794000           C:\WINNT\system32\COMCTL32.DLL
    0x70A70000 - 0x70AD6000           C:\WINNT\system32\SHLWAPI.DLL
    0x77360000 - 0x77379000           C:\WINNT\system32\DHCPCSVC.DLL
    0x777E0000 - 0x777E8000           C:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000           C:\WINNT\system32\rasadhlp.dll
    0x39FB0000 - 0x39FBC000           C:\CFusionMX\runtime\bin\portscan.dll
    0x74FD0000 - 0x74FED000           C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000           C:\WINNT\System32\wshtcpip.dll
    0x3AAC0000 - 0x3AAC5000           C:\CFusionMX\runtime\jre\bin\rmi.dll
    0x3B9D0000 - 0x3B9D6000           C:\CFusionMX\runtime\jre\bin\ioser12.dll
    0x3BBE0000 - 0x3BC60000           C:\CFusionMX\lib\izmjniado.dll
    0x3C270000 - 0x3C278000           C:\CFusionMX\lib\CFXNeo.dll
    0x780A0000 - 0x780B2000           C:\WINNT\system32\MSVCIRT.dll
    0x780C0000 - 0x78121000           C:\WINNT\system32\MSVCP60.dll
    0x3C280000 - 0x3C28B000           C:\CFusionMX\lib\cfregistry.dll
    0x3C3A0000 - 0x3C3A8000           C:\CFusionMX\lib\PerfmonClient.dll
    0x3C5C0000 - 0x3C5CC000           C:\CFusionMX\lib\cfindex.dll
    0x3C5D0000 - 0x3C7C2000           C:\CFusionMX\lib\vdk200.dll
    0x3C7D0000 - 0x3C805000           C:\CFusionMX\lib\LIBALLRSEI.dll
    0x7CA00000 - 0x7CA23000           C:\WINNT\system32\rsaenh.dll
    0x7C740000 - 0x7C7CC000           C:\WINNT\system32\CRYPT32.dll
    0x77430000 - 0x77441000           C:\WINNT\system32\MSASN1.dll
    0x3EE10000 - 0x3EE3E000           C:\CFusion\CustomTags\GetUserGroups.dll
    0x77800000 - 0x7781E000           C:\WINNT\system32\WINSPOOL.DRV
    0x76620000 - 0x76631000           C:\WINNT\system32\MPR.DLL
    0x7CF30000 - 0x7D176000           C:\WINNT\system32\SHELL32.dll
    0x3F650000 - 0x3F75A000           C:\CFusionMX\runtime\jre\bin\awt.dll
    0x75E60000 - 0x75E7A000           C:\WINNT\system32\IMM32.dll
    0x3F760000 - 0x3F7B0000           C:\CFusionMX\runtime\jre\bin\fontmanager.dll
    0x72800000 - 0x72846000           C:\WINNT\system32\ddraw.dll
    0x728A0000 - 0x728A6000           C:\WINNT\system32\DCIMAN32.dll
    0x72CF0000 - 0x72D84000           C:\WINNT\system32\D3DIM700.DLL
    0x690A0000 - 0x690AB000           C:\WINNT\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    PSYoungGen      total 5824K, used 1523K [0x10010000, 0x10800000, 0x138f0000)
      eden space 3520K, 26% used [0x10010000,0x100fa4e0,0x10380000)
      from space 2304K, 25% used [0x105c0000,0x106528b0,0x10800000)
      to   space 2304K, 0% used [0x10380000,0x10380000,0x105c0000)
    PSOldGen        total 29824K, used 22612K [0x138f0000, 0x15610000, 0x30010000)
      object space 29824K, 75% used [0x138f0000,0x14f051e0,0x15610000)
    PSPermGen       total 20736K, used 20580K [0x30010000, 0x31450000, 0x38010000)
      object space 20736K, 99% used [0x30010000,0x314293b0,0x31450000)
    Local Time = Fri Dec 13 13:50:53 2013
    Elapsed Time = 19424
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Server VM (1.4.2-b28 mixed mode)
    space 3520K, 26% used space 2304K, 25% used space 2304K, 0% used space 29824K, 75% used space 20736K, 99% used# An error report file has been saved as hs_err_pid2920.log.
    # Please refer to the file for further information.

    CF6, Java 1.4.2 and Windows NT - have not seen those for a long time myself.
    Perhaps this is the issue from error report:
    PSPermGen       total 20736K, used 20580K
    object space 20736K, 99% used
    I guess Java non heap space Permanent Generation is full the next object trying to load into that space can’t fit, plus all the objects in there are referenced so no objects can be removed so free space can’t be made available. One would need to do some work with Java logging and know what JVM.CONFIG looks like to know if that guess is accurate.
    You could try increase that parameter 10Mb or so and see what happens? In JVM.CONFIG, JVM args, -XX:MaxPermSize=NNm where NN = numbers.
    Needless to say you are running a lot of end of life product and should plan to migrate to something more current.
    HTH, Carl.

  • Every time I try to drag an ebook from ADE to my ereader, a window comes up saying that ADE has unexpectedly closed. What can I do?

    Every time I try to drag an ebook from ADE to my ereader, a window comes up saying that ADE has unexpectedly closed. What can I do?

    Syncing to a new iTunes library or computer will erase your iPod. Only if you back up your device manually before syncing, you can restore it from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your iPod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your iPod for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread:http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved: iTunes: About iOS backups
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device
    As for your second problem, see if restrictions for app installation and deleting apps are active in Settings/General/Restrictions. If yes, allow to install and delete app again.
    Don't forget to authorize your PC in iTunes:
    About iTunes Store authorization and deauthorization
    Message was edited by: Ingo2711

  • Just closing connection enough?

    Hi friends..This is my first post...I am a newbie Java Developer..Okay Here goes
    I have just made a LAN based Java application using Swing,JDBC with backend as MS-Access..The backend is on a shared network drive..
    The application is distributed as jar files on the LAN PCs..
    Everywhere I have connected to the database I have just closed the connection explicitly like this
    con.close();
    I do not close the associated resultset and statement explicitly
    The specification says associated statements and resultsets close when you close
    the connection,even if you don't explicitly close them
    Also I am not using connection pool..its simple basic connection using DriverManager
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbcdbcSN name";
    String user = "";
    String pw = "";
    con = DriverManager.getConnection(url, user, pw);
    Statement stmt = con.createStatement();
    String select = "" ;
    ResultSet rows = stmt.executeQuery(select);
    Till now no performance problems..over 4K records have been added..
    JVM is not exiting or anything..
    On the net everyone says to explicitly close everything..but I did not know that
    earlier..
    My question is
    Is closing just the connection enough..?
    Is there any way I can check whether statements and resultsets have been implicitly closed?
    Later on will it cause any performance problems or anything...?
    Shud I change my code and add rs.close() and stmt.close() everywhere..?
    If specification says everything closes on
    closing connection why do ppl insist on closing everything explicitly..?
    Or is this driver dependent..don't the drivers go through the specification..
    My driver is the Sun JDBC ODBC bridge.....
    There would be 8-10 users maximum at a time using the application concurrently...
    Any help would be appreciated..Thanks in advance..

    @jschell
    Thanks for your help
    I was running a few more tests..can you please explain the the following code...
    Code
    import java.sql.*;
    import java.io.*;
    class gc5test
    public static void main(String args[])
    Connection con = null;
    long memoryBeforeSelects;
    long memoryAfterSelects;
    long memoryAfterConnectionClose;
    try
    PrintWriter pw= new PrintWriter("c:\\log1.txt");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:pravahcon";
    String user = "admin";
    String pass = "ash123";
    for(int i=1;i<=20;i++)
    pw.println("Connection No"+i);
    memoryBeforeSelects = Runtime.getRuntime().freeMemory();
    pw.println("Free Memory before making connection " + memoryBeforeSelects / 1024 + " kB");
    con = DriverManager.getConnection(url, user, pass);
    Statement stmt = con.createStatement();
    String select = "SELECT * FROM Users" ;
    ResultSet rows = stmt.executeQuery(select);
    memoryAfterSelects = Runtime.getRuntime().freeMemory();
    pw.println("Free Memory after making connection " + memoryAfterSelects / 1024 + " kB");
    rows.close();
    stmt.close();
    con.close();
    memoryAfterConnectionClose = Runtime.getRuntime().freeMemory();
    pw.println("Free Memory after closing connection " + memoryAfterConnectionClose / 1024 + " kB");
    pw.close();
    catch (ClassNotFoundException f)
    System.out.println(f.getMessage());
    System.exit(0);
    catch (SQLException g)
    System.out.println(g.getMessage());
    System.exit(0);
    catch (Exception e)
    System.out.println(e.getMessage());
    System.exit(0);
    Output
    Connection No1
    Free Memory before making connection 4729 kB
    Free Memory after making connection 4675 kB
    Free Memory after closing connection 4675 kB
    Connection No2
    Free Memory before making connection 4675 kB
    Free Memory after making connection 4638 kB
    Free Memory after closing connection 4620 kB
    Connection No3
    Free Memory before making connection 4620 kB
    Free Memory after making connection 4584 kB
    Free Memory after closing connection 4584 kB
    Connection No4
    Free Memory before making connection 4584 kB
    Free Memory after making connection 4548 kB
    Free Memory after closing connection 4529 kB
    Connection No5
    Free Memory before making connection 4529 kB
    Free Memory after making connection 4493 kB
    Free Memory after closing connection 4493 kB
    Connection No6
    Free Memory before making connection 4493 kB
    Free Memory after making connection 4457 kB
    Free Memory after closing connection 4457 kB
    Connection No7
    Free Memory before making connection 4439 kB
    Free Memory after making connection 4403 kB
    Free Memory after closing connection 4403 kB
    Connection No8
    Free Memory before making connection 4403 kB
    Free Memory after making connection 4367 kB
    Free Memory after closing connection 4367 kB
    Connection No9
    Free Memory before making connection 4349 kB
    Free Memory after making connection 4313 kB
    Free Memory after closing connection 4313 kB
    Connection No10
    Free Memory before making connection 4313 kB
    Free Memory after making connection 4277 kB
    Free Memory after closing connection 4277 kB
    Connection No11
    Free Memory before making connection 4259 kB
    Free Memory after making connection 4223 kB
    Free Memory after closing connection 4223 kB
    Connection No12
    Free Memory before making connection 4223 kB
    Free Memory after making connection 4187 kB
    Free Memory after closing connection 4169 kB
    Connection No13
    Free Memory before making connection 4169 kB
    Free Memory after making connection 4817 kB
    Free Memory after closing connection 4800 kB
    Connection No14
    Free Memory before making connection 4800 kB
    Free Memory after making connection 4766 kB
    Free Memory after closing connection 4766 kB
    Connection No15
    Free Memory before making connection 4766 kB
    Free Memory after making connection 4714 kB
    Free Memory after closing connection 4714 kB
    Connection No16
    Free Memory before making connection 4714 kB
    Free Memory after making connection 4678 kB
    Free Memory after closing connection 4678 kB
    Connection No17
    Free Memory before making connection 4678 kB
    Free Memory after making connection 4627 kB
    Free Memory after closing connection 4627 kB
    Connection No18
    Free Memory before making connection 4627 kB
    Free Memory after making connection 4592 kB
    Free Memory after closing connection 4575 kB
    Connection No19
    Free Memory before making connection 4575 kB
    Free Memory after making connection 4540 kB
    Free Memory after closing connection 4540 kB
    Connection No20
    Free Memory before making connection 4540 kB
    Free Memory after making connection 4489 kB
    Free Memory after closing connection 4489 kB
    The memory is not being freed immediately after closing connection explicitly in first 12 iterations..
    In the first 12 iterations memory after making connection and memory after closing
    connection are the same/or very less difference...
    Only in the 13th iteration the memory increases from 4169 to 4817..
    Why is this happening..?
    I am closing everything explicitly..
    Shouldn't the memory be reclaimed immediately..?
    Insted it is happening later on..
    Am I missing something here..?

  • Closing connection

    Hello, I work with jdeveloper. I had 10.1.2 which used java version 1.4.2 and I used a simple connection class to call stored procedures in an Oracle db. I have jdeveloper 10.1.3 which uses java version 1.5.0 and the same class fails when I try to use ResultSets. I use to close the connection then return the resultset to whatever called it, now it tells me the connection is already closed when I try to access the resultset. I know this is why it's failing now, because it works if I don't close anything.
    Can someone tell me how/why this has changed, and what I can do about it?
    Thanks
    Classes that use to work:
    public class dbConn {
    public dbConn() {
    public static Connection getCon()
    InitialContext ctx = null;
    DataSource ds = null;
    Connection conn = null;
    try {
    ctx = new InitialContext();
    ds = (DataSource) ctx.lookup("jdbc/app1");
    conn = ds.getConnection();
    catch(Exception e){
    System.out.println("Connection Error");
    e.printStackTrace();
    return conn;
    public static void closeCon(CallableStatement proc, Connection conn)
    try {
    proc.close();
    conn.close();
    catch(SQLException e){
    System.out.println("Error closing connections: "+e);
    public static void main()
    public static ResultSet GenResSet(String uname, String procName)
    Connection conn = null;
    CallableStatement proc = null;
    ResultSet rs = null;
    String callString = "{ call "+procName+"(?,?) }";
    try {
    conn = dbConn.getCon();
    proc = conn.prepareCall(callString);
    proc.registerOutParameter(1,OracleTypes.CURSOR);
    proc.setString(2, uname);
    proc.execute();
    rs = (ResultSet)proc.getObject(1);
    catch(SQLException e) {
    System.out.println("sql error");
    e.printStackTrace();
    finally {
    dbConn.closeCon(proc,conn);
    return rs;
    }

    Ok thanks. So I can learn.. what exactly is my
    misconception about how it works? My beginner view is
    you stored a cursor set from a database query in a
    result set then you could iterate through it. Why
    does it have to be stored in a collection first? I
    was closing the connection before I returned it, or
    so I thought. It went through the finally code to
    close everytime, but I could still use the results.
    Maybe it wasn't closing them?That's exactly your misconception. After you close the connection, your ResultSet is not valid. In simple words, you need a live connection to fetch values from the ResultSet. In your method, you close the connection in the finally block and return the resultset. You will need to hold the results in something else, which would be some suitable collection.

  • Closing connections question

    Hi, My application seems to be running out of memory despite closing the resultsets and connections used.
    I have a DBHelper class (DBHelper.java) with the following 2 methods:
    public Connection getConn(){
    // setups a JDBC connection and returns it
    // Close all connections
    public void cleanUp(){          
    try{
    if(this.conn != null && !this.conn.isClosed()){
    this.production_Conn.close();
    catch(SQLException e){
    System.out.println(e.getMessage());
    So let's say if I have another class, e.g. Class A, that creates a Connection object using DBHelper.getConn() method, will calling DBHelper.cleanUp() be sufficient to close the connection? Or do i have to clear the reference object used inside Class A as well?
    Regards

    First off, are you sure you're out of memory is related to not closing connections? Mostly connections and ResultSets don't use that much memory so you usually run into database problems (too many open connections, too many sessions, etc.) before the Java app runs out of memory. Is it possible the leak is elsewhere?
    If you're sure its connection related maybe a problem with the helper class? Does getConn() create a new connection every time its called? If so, it looks like cleanUp() only closes the most recently opened connection - but without seeing the whole class I can't be sure.
    For example, the following would leave an open connection - though if the app is no longer referencing it, it should get garbage collected and closed eventually (though relying on this is bad form).
    class Bad {
       Connection con;
       public Connection getConn()
             con = // create connection
             return con;
       public void cleanUp()
             con.close();
       public static void main( String[] args )
             Bad b = new Bad();
             b.getConn();
             b.getConn();
             b.cleanUp();
    }- Jemiah

  • SQLException: Closed Connection, SQL state [null]; error code [17002]

    Hello All,
    I am supporting a Java 5 project on Tomcat. We've used Spring and Stored Procedure in the project.
    Recently we deployed our application in a GoLive environment and have started seeing Timeout errors in log files. After around two days we also have to restart Tomcat as users are no more able to login to access the application.
    Same application runs fine without any timeout issues on another environment.
    The only difference between two environments is that the Go-Live env has a firewall between Tomcat and Database and the other environment hosts both Tomcat and Database on same machine (i.e. no firewall).
    For GoLive env the only port open on firewall for JDBC connection is 1521 and is used in the connection string url for obtaining the connections.
    When there is a Timeout error, the N/w admin guy observed that the JDBC connection was not attempted on 1521 port, but on some random port which is not open on firewall, due to which the Database server logs also do not show entry for this connection attempt as it gets blocked by the firewall.
    I am not sure why a randam port should be used to connect when a specific port is mentioned in the connection url? Also what can be making this port switching?
    Application uses Apache DBCP with Spring to obtain connections.
    Has anyone experienced similar errors?
    Any suggestions/help on this issue is greatly appreciated!
    Many Thanks,
    CD
    ===============================
    Error Log Extract:
    Error while extracting database product name - falling back to empty error codes
    org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: Closed Connection
    java.sql.SQLException: Closed Connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.driver.PhysicalConnection.getMetaData(PhysicalConnection.java:1605)
    at org.apache.commons.dbcp.DelegatingConnection.getMetaData(DelegatingConnection.java:247)
    at org.apache.commons.dbcp.DelegatingConnection.getMetaData(DelegatingConnection.java:247)
    at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.getMetaData(PoolingDataSource.java:231)
    at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:172)
    at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:207)
    at org.springframework.jdbc.support.SQLErrorCodesFactory.getErrorCodes(SQLErrorCodesFactory.java:187)
    at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource(SQLErrorCodeSQLExceptionTranslator.java:126)
    at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.<init>(SQLErrorCodeSQLExceptionTranslator.java:92)
    at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:96)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:294)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:348)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:352)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:356)
    at com.o2.morse.dao.impl.sql.UserDaoImpl.batchLoad(UserDaoImpl.java:371)
    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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
    at $Proxy3.batchLoad(Unknown Source)
    at com.o2.morse.domain.User.doHousekeeping(User.java:667)
    at com.o2.morse.domain.User$$FastClassByCGLIB$$372ff70b.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.domain.User$$EnhancerByCGLIB$$d5ac966a.doHousekeeping(<generated>)
    at com.o2.morse.scheduler.EndOfDay.run(EndOfDay.java:63)
    at com.o2.morse.scheduler.EndOfDay$$FastClassByCGLIB$$3b2d4927.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.scheduler.EndOfDay$$EnhancerByCGLIB$$488a9f86.run(<generated>)
    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 org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:248)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:165)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Could not close JDBC Connection
    java.sql.SQLException: Already closed.
    at org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:77)
    at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:180)
    at org.springframework.jdbc.datasource.DataSourceUtils.doReleaseConnection(DataSourceUtils.java:286)
    at org.springframework.jdbc.datasource.DataSourceUtils.releaseConnection(DataSourceUtils.java:247)
    at org.springframework.jdbc.datasource.DataSourceTransactionManager.doCleanupAfterCompletion(DataSourceTransactionManager.java:297)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:754)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:615)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:560)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.doCloseTransactionAfterThrowing(TransactionAspectSupport.java:284)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:100)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
    at $Proxy3.batchLoad(Unknown Source)
    at com.o2.morse.domain.User.doHousekeeping(User.java:667)
    at com.o2.morse.domain.User$$FastClassByCGLIB$$372ff70b.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.domain.User$$EnhancerByCGLIB$$d5ac966a.doHousekeeping(<generated>)
    at com.o2.morse.scheduler.EndOfDay.run(EndOfDay.java:63)
    at com.o2.morse.scheduler.EndOfDay$$FastClassByCGLIB$$3b2d4927.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.scheduler.EndOfDay$$EnhancerByCGLIB$$488a9f86.run(<generated>)
    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 org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:248)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:165)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Application exception overridden by rollback exception
    org.springframework.jdbc.UncategorizedSQLException: StatementCallback; uncategorized SQLException for SQL [SELECT ID_USER_DETAILS, USERNAME, CREATED_ON, LAST_LOGIN FROM USER_DETAILS  WHERE STATUS = 157 AND SUPERUSER <> 'Y']; SQL state [null]; error code [17002] ; Io exception: Connection timed out; nested exception is java.sql.SQLException: Io exception: Connection timed out
    java.sql.SQLException: Io exception: Connection timed out
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:820)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1049)
    at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:845)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1154)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1313)
    at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:205)
    at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:205)
    at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:333)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:282)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:348)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:352)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:356)
    at com.o2.morse.dao.impl.sql.UserDaoImpl.batchLoad(UserDaoImpl.java:371)
    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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
    at $Proxy3.batchLoad(Unknown Source)
    at com.o2.morse.domain.User.doHousekeeping(User.java:667)
    at com.o2.morse.domain.User$$FastClassByCGLIB$$372ff70b.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.domain.User$$EnhancerByCGLIB$$d5ac966a.doHousekeeping(<generated>)
    at com.o2.morse.scheduler.EndOfDay.run(EndOfDay.java:63)
    at com.o2.morse.scheduler.EndOfDay$$FastClassByCGLIB$$3b2d4927.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
    at com.o2.morse.scheduler.EndOfDay$$EnhancerByCGLIB$$488a9f86.run(<generated>)
    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 org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:248)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:165)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Batch Job Failed: org.springframework.transaction.TransactionSystemException: Could not roll back JDBC transaction; nested exception is java.sql.SQLException: Closed Connection

    I am using latest Jrockit 16)5, ojdbc6_g.jar,spring.jar Weblogic 10.3 and Oracle 10G 10.2.4 .. whatever but always get "Closed Connection"
    java.lang.Throwable: Closed Connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:750)
    at oracle.jdbc.OracleConnectionWrapper.createStatement(OracleConnectionWrapper.java:183)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

  • Java.sql.SQLException: can't create statement from closed connection

    java.sql.SQLException: can't create statement from closed connection.
    at com.caucho.sql.QPooledConnectionImpl.prepareStatement(QPooledConnecti onImpl.java:411)
    I am getting this error with my JSP's, i am running on Resin on Win2k, and MySql as backend.
    Has anyone else also faced this issue ?
    Looking for someone to help me to solve this issue.
    rc

    Looking for someone to help me to solve this issue.Maybe you are closing the connections. You might want to verify that you are not doing that. Or if you are that that is the correct way to return the connection to the pool.
    Or you could have stale connections. Some databases will time out connections if the connection is no used in a while. (This is a good thing.) But this means connection pools must do something with connections that are not used for a while. The pools usually have a configuration option(s) which allows you to set up a keep alive message which keeps the database from closing the connection.

  • Safari keeps unexpectedly closing!

    PLEASE HELP!
    safari keeps unexpectedly closing on me, I don't know what to do. This is report I keep sending to apple:
    Process: Safari [461]
    Path: /Safari.app/Contents/MacOS/Safari
    Identifier: com.apple.Safari
    Version: 3.2.1 (5525.27.1)
    Build Info: WebBrowser-55252701~3
    Code Type: X86 (Native)
    Parent Process: launchd [62]
    Date/Time: 2009-12-18 21:06:58.093 +0000
    OS Version: Mac OS X 10.5.6 (9G2110)
    Report Version: 6
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000000
    Crashed Thread: 3
    Thread 0:
    0 ...romedia.Flash Player.plugin 0x176e7661 0x17561000 + 1599073
    1 ...romedia.Flash Player.plugin 0x176ea785 0x17561000 + 1611653
    2 ...romedia.Flash Player.plugin 0x17721ba8 0x17561000 + 1837992
    3 ...romedia.Flash Player.plugin 0x178f4c2a Flash_EnforceLocalSecurity + 688010
    4 ...romedia.Flash Player.plugin 0x1784cf02 Flash_EnforceLocalSecurity + 610
    5 com.apple.WebKit 0x90cb46bb -[WebBaseNetscapePluginView sendEvent:] + 347
    6 com.apple.WebKit 0x90cb69c1 -[WebBaseNetscapePluginView sendNullEvent] + 161
    7 com.apple.Foundation 0x962e9e23 __NSFireTimer + 147
    8 com.apple.CoreFoundation 0x9341ab25 CFRunLoopRunSpecific + 4469
    9 com.apple.CoreFoundation 0x9341acd8 CFRunLoopRunInMode + 88
    10 com.apple.HIToolbox 0x965e42c0 RunCurrentEventLoopInMode + 283
    11 com.apple.HIToolbox 0x965e40d9 ReceiveNextEventCommon + 374
    12 com.apple.HIToolbox 0x965e3f4d BlockUntilNextEventMatchingListInMode + 106
    13 com.apple.AppKit 0x938b5d7d _DPSNextEvent + 657
    14 com.apple.AppKit 0x938b5630 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
    15 com.apple.Safari 0x0000808e 0x1000 + 28814
    16 com.apple.AppKit 0x938ae66b -[NSApplication run] + 795
    17 com.apple.AppKit 0x9387b8a4 NSApplicationMain + 574
    18 com.apple.Safari 0x000b9b16 0x1000 + 756502
    Thread 1:
    0 libSystem.B.dylib 0x95b853ae _semwaitsignal + 10
    1 libSystem.B.dylib 0x95bafd0d pthreadcondwait$UNIX2003 + 73
    2 com.apple.WebCore 0x914b58ff WebCore::IconDatabase::syncThreadMainLoop() + 239
    3 com.apple.WebCore 0x9146e065 WebCore::IconDatabase::iconDatabaseSyncThread() + 181
    4 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    5 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 2:
    0 libSystem.B.dylib 0x95b7e1c6 machmsgtrap + 10
    1 libSystem.B.dylib 0x95b859bc mach_msg + 72
    2 com.apple.CoreFoundation 0x9341a0ae CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x9341acd8 CFRunLoopRunInMode + 88
    4 com.apple.CFNetwork 0x9717c052 CFURLCacheWorkerThread(void*) + 396
    5 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    6 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 3 Crashed:
    0 libSystem.B.dylib 0xffff08a0 __memcpy + 256 (cpu_capabilities.h:246)
    1 com.apple.Safari 0x0013f200 0x1000 + 1303040
    2 com.apple.Safari 0x00141237 0x1000 + 1311287
    3 com.apple.Safari 0x0014785b 0x1000 + 1337435
    4 com.apple.Safari 0x0018a7f3 0x1000 + 1611763
    5 com.apple.Safari 0x00194772 0x1000 + 1652594
    6 com.apple.Safari 0x00194e2d 0x1000 + 1654317
    7 com.apple.Safari 0x00110c9b 0x1000 + 1113243
    8 com.apple.Safari 0x00111034 0x1000 + 1114164
    9 com.apple.Safari 0x001110a7 0x1000 + 1114279
    10 com.apple.Safari 0x00111313 0x1000 + 1114899
    11 com.apple.Safari 0x001115f8 0x1000 + 1115640
    12 com.apple.Safari 0x001184a3 0x1000 + 1143971
    13 com.apple.CoreFoundation 0x9341a63f CFRunLoopRunSpecific + 3215
    14 com.apple.CoreFoundation 0x9341acd8 CFRunLoopRunInMode + 88
    15 com.apple.Safari 0x00118d4d 0x1000 + 1146189
    16 com.apple.Safari 0x00117fd3 0x1000 + 1142739
    17 com.apple.Safari 0x00118081 0x1000 + 1142913
    18 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    19 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 4:
    0 libSystem.B.dylib 0x95b7e1c6 machmsgtrap + 10
    1 libSystem.B.dylib 0x95b859bc mach_msg + 72
    2 com.apple.CoreFoundation 0x9341a0ae CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x9341acd8 CFRunLoopRunInMode + 88
    4 com.apple.Foundation 0x96318d40 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 320
    5 com.apple.Foundation 0x962b57ed -[NSThread main] + 45
    6 com.apple.Foundation 0x962b5394 _NSThread__main_ + 308
    7 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    8 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 5:
    0 libSystem.B.dylib 0x95bcd6f2 select$DARWIN_EXTSN + 10
    1 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    2 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 6:
    0 libSystem.B.dylib 0x95b853ae _semwaitsignal + 10
    1 libSystem.B.dylib 0x95bafd0d pthreadcondwait$UNIX2003 + 73
    2 com.apple.ColorSync 0x9699945c pthreadSemaphoreWait(t_pthreadSemaphore*) + 42
    3 com.apple.ColorSync 0x969abd8e CMMConvTask(void*) + 54
    4 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    5 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 7:
    0 libSystem.B.dylib 0x95b7e1c6 machmsgtrap + 10
    1 libSystem.B.dylib 0x95b859bc mach_msg + 72
    2 ...romedia.Flash Player.plugin 0x17a67c04 Flash_EnforceLocalSecurity + 2207588
    3 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    4 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 8:
    0 libSystem.B.dylib 0x95b7e20e semaphorewait_signaltrap + 10
    1 libSystem.B.dylib 0x95bb0206 pthread_condwait + 1267
    2 libSystem.B.dylib 0x95bf5539 pthreadcondwait + 48
    3 ...romedia.Flash Player.plugin 0x1783e63f 0x17561000 + 3003967
    4 ...romedia.Flash Player.plugin 0x17857f4f Flash_EnforceLocalSecurity + 45743
    5 ...romedia.Flash Player.plugin 0x1783eaef 0x17561000 + 3005167
    6 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    7 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 9:
    0 libSystem.B.dylib 0x95b7e20e semaphorewait_signaltrap + 10
    1 libSystem.B.dylib 0x95bb0206 pthread_condwait + 1267
    2 libSystem.B.dylib 0x95bf5539 pthreadcondwait + 48
    3 ...romedia.Flash Player.plugin 0x1783e63f 0x17561000 + 3003967
    4 ...romedia.Flash Player.plugin 0x17857f4f Flash_EnforceLocalSecurity + 45743
    5 ...romedia.Flash Player.plugin 0x1783eaef 0x17561000 + 3005167
    6 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    7 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 10:
    0 libSystem.B.dylib 0x95b7e1c6 machmsgtrap + 10
    1 libSystem.B.dylib 0x95b859bc mach_msg + 72
    2 com.apple.CoreFoundation 0x9341a0ae CFRunLoopRunSpecific + 1790
    3 com.apple.CoreFoundation 0x9341acd8 CFRunLoopRunInMode + 88
    4 com.apple.audio.CoreAudio 0x971185dc HALRunLoop::OwnThread(void*) + 160
    5 com.apple.audio.CoreAudio 0x97118464 CAPThread::Entry(CAPThread*) + 96
    6 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    7 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 11:
    0 libSystem.B.dylib 0x95b7e226 semaphoretimedwait_signaltrap + 10
    1 libSystem.B.dylib 0x95bb01ef pthread_condwait + 1244
    2 libSystem.B.dylib 0x95bb1a73 pthreadcond_timedwait_relativenp + 47
    3 com.apple.audio.CoreAudio 0x97127bc3 CAGuard::WaitFor(unsigned long long) + 213
    4 com.apple.audio.CoreAudio 0x9712977e CAGuard::WaitUntil(unsigned long long) + 70
    5 com.apple.audio.CoreAudio 0x97127f23 HP_IOThread::WorkLoop() + 759
    6 com.apple.audio.CoreAudio 0x97127c27 HPIOThread::ThreadEntry(HPIOThread*) + 17
    7 com.apple.audio.CoreAudio 0x97118464 CAPThread::Entry(CAPThread*) + 96
    8 libSystem.B.dylib 0x95baf095 pthreadstart + 321
    9 libSystem.B.dylib 0x95baef52 thread_start + 34
    Thread 3 crashed with X86 Thread State (32-bit):
    eax: 0xffff088b ebx: 0x0013f5a0 ecx: 0x00000021 edx: 0xffffff80
    edi: 0x1b974d30 esi: 0x00000080 ebp: 0xb01c79f8 esp: 0xb01c79f0
    ss: 0x0000001f efl: 0x00010216 eip: 0xffff08a0 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
    cr2: 0x00000000
    Binary Images:
    0x1000 - 0x1d7fe2 com.apple.Safari 3.2.1 (5525.27.1) <6956e3dd00d41248d861341410528a0d> /Safari.app/Contents/MacOS/Safari
    0x223000 - 0x232ff8 SyndicationUI ??? (???) <c35443c460eb4351ea4346fbe25a1b4e> /System/Library/PrivateFrameworks/SyndicationUI.framework/Versions/A/Syndicatio nUI
    0x119c5000 - 0x11bccfef com.apple.RawCamera.bundle 2.0.15 (471) <557c94fbd7c15219746393464a79cf87> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
    0x14fed000 - 0x14ff2ff3 libCGXCoreImage.A.dylib ??? (???) <96f255e134ce0b30ba1b233f8d6ea939> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib
    0x1502d000 - 0x15030fff com.apple.audio.AudioIPCPlugIn 1.0.5 (1.0.5) <065b3976c7725859f97dfd7590cc290e> /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugI n.bundle/Contents/MacOS/AudioIPCPlugIn
    0x15046000 - 0x1504bfff com.apple.audio.AppleHDAHALPlugIn 1.6.6 (1.6.6a21) /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bun dle/Contents/MacOS/AppleHDAHALPlugIn
    0x17002000 - 0x17002ffe com.apple.JavaPluginCocoa 12.0.0 (12.0.0) <b006e0f18a7f657910d5f1e86e8dcc02> /Library/Internet Plug-Ins/JavaPluginCocoa.bundle/Contents/MacOS/JavaPluginCocoa
    0x17008000 - 0x1700fffd com.apple.JavaVM 12.0.2 (12.0.2) <60348890c8bd35fb66de58816157c904> /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
    0x17561000 - 0x17b9affb +com.macromedia.Flash Player.plugin 10.0.32.18 (1.0.4f18472) <b19ee2363941c9582e040b99bb5e237a> /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player
    0x17cda000 - 0x17cf9fed com.apple.audio.CoreAudioKit 1.5 (1.5) <585f5ec95dc8f1efe51d820be84d53a6> /System/Library/Frameworks/CoreAudioKit.framework/Versions/A/CoreAudioKit
    0x70000000 - 0x700e6ff2 com.apple.audio.units.Components 1.5.2 (1.5.2) /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
    0x8fe00000 - 0x8fe2db43 dyld 97.1 (???) <1c2a016b2ac25fe8b7575f51e49b9334> /usr/lib/dyld
    0x90008000 - 0x9000afff com.apple.CrashReporterSupport 10.5.5 (159) <ddf4b1bd7bdcf4aee88afc60f7c2f30d> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/Cra shReporterSupport
    0x9000b000 - 0x90045ffe com.apple.securityfoundation 3.0 (32989) <ac31b442468695d210c1d1f0ee085249> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x90046000 - 0x9005bffb com.apple.ImageCapture 5.0.1 (5.0.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x9005c000 - 0x9012aff3 com.apple.JavaScriptCore 5525.26 (5525.26.2) <c4dae3a11cef3ba289f86f54aff6be02> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
    0x9012b000 - 0x90132ffe libbsm.dylib ??? (???) <fa7ae5f1a621d9b69e7e18747c9405fb> /usr/lib/libbsm.dylib
    0x90133000 - 0x90234fef com.apple.PubSub 1.0.3 (65.1.1) /System/Library/Frameworks/PubSub.framework/Versions/A/PubSub
    0x90287000 - 0x902afff7 com.apple.shortcut 1 (1.0) <35cd17d0179ca839c5fb08694f3dc5ef> /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut
    0x902b0000 - 0x902effef libTIFF.dylib ??? (???) <d4bcc9b9c508e53849d2d46bb6900922> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x90452000 - 0x9045effe libGL.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x9048f000 - 0x905e1ff3 com.apple.audio.toolbox.AudioToolbox 1.5.2 (1.5.2) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x9060e000 - 0x90611fff com.apple.help 1.1 (36) <1a25a8fbb49a830efb31d5c0a52939cd> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x90612000 - 0x9061dfe7 libCSync.A.dylib ??? (???) <44639859efe59f2b1ad1dd970474a8e2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x9061e000 - 0x9061effc com.apple.audio.units.AudioUnit 1.5 (1.5) /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x90697000 - 0x907cfff7 libicucore.A.dylib ??? (???) <b715ac22ee45ad9de97b333ab3b0b00d> /usr/lib/libicucore.A.dylib
    0x907d0000 - 0x907d7fe9 libgcc_s.1.dylib ??? (???) <e280ddf3f5fb3049e674edcb109f389a> /usr/lib/libgcc_s.1.dylib
    0x9080d000 - 0x9080dffa com.apple.CoreServices 32 (32) <373d6a888f9204641f313bc6070ae065> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x9080f000 - 0x90851fef com.apple.NavigationServices 3.5.2 (163) <72cdc9d21f6690837870923e7b8ca358> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x90947000 - 0x90a2cff3 com.apple.CoreData 100.1 (186) <50219bcb005cb15ea999a19391a8d523> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x90a2d000 - 0x90a2dff8 com.apple.ApplicationServices 34 (34) <ee7bdf593da050bb30c7a1fc446eb8a6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x90b10000 - 0x90b16fff com.apple.print.framework.Print 218.0.2 (220.1) <6c2ddea45d9cdff9a9be0666a13e2dd4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x90b17000 - 0x90b4dfef libtidy.A.dylib ??? (???) <ec77e15bce241761e591de413ddc8682> /usr/lib/libtidy.A.dylib
    0x90b4e000 - 0x90c94ff7 com.apple.ImageIO.framework 2.0.4 (2.0.4) <b407f06ff9b6893899e2e399cb65c953> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x90c95000 - 0x90d53fff com.apple.WebKit 5525.27 (5525.27.1) <b40a998b5f0cacf45f182bd156afdbd7> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x90d71000 - 0x90dceffb libstdc++.6.dylib ??? (???) <f75e5133d72769de5ce6c06153fc65f6> /usr/lib/libstdc++.6.dylib
    0x90dcf000 - 0x911dffef libBLAS.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x911e0000 - 0x91229fef com.apple.Metadata 10.5.2 (398.25) <7eb2df3e510cd308e91a6cf6d8e9fba5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x9122a000 - 0x9123affc com.apple.LangAnalysis 1.6.4 (1.6.4) <bc7eb703ddc37bf85adf93e35efd3947> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x9123b000 - 0x9124afff libsasl2.2.dylib ??? (???) <2091a1973f23f66ea9b377d43daf50ea> /usr/lib/libsasl2.2.dylib
    0x9124b000 - 0x91258fe7 com.apple.opengl 1.5.9 (1.5.9) <09fb0b76a548c49bc8cafe3a953aa7e1> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x91259000 - 0x912e5fff com.apple.framework.IOKit 1.5.1 (???) <632c70a3787f7edb86ff6355cb2405a7> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x912e6000 - 0x91318fff com.apple.LDAPFramework 1.4.5 (110) <0625b4f70c28b2f239ca088edaf9cf0f> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x91319000 - 0x9135afe7 libRIP.A.dylib ??? (???) <296dd934c3807846c9159188c36958c6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x9135b000 - 0x91388feb libvDSP.dylib ??? (???) <4daafed78a471133ec30b3ae634b6d3e> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91389000 - 0x9146aff7 libxml2.2.dylib ??? (???) <ab2534bfa7a774b2ad75cc2d9ad683a6> /usr/lib/libxml2.2.dylib
    0x9146b000 - 0x91abcfff com.apple.WebCore 5525.26 (5525.26.6) <ac6692bae32296ff7166798275c0ca55> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
    0x91b11000 - 0x91b98ff7 libsqlite3.0.dylib ??? (???) <eeedc8bf6881ac9f2c1954b1c8037720> /usr/lib/libsqlite3.0.dylib
    0x91b99000 - 0x91bd3fe7 com.apple.coreui 1.2 (62) /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x91bd4000 - 0x91bd8fff libGIF.dylib ??? (???) <7714ae24eb64b48fa719fb99bcbe34f3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91bd9000 - 0x91ca0ff2 com.apple.vImage 3.0 (3.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91dde000 - 0x91e5bfef libvMisc.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91f00000 - 0x91fb0fff edu.mit.Kerberos 6.0.12 (6.0.12) <18c3202b51efdce350919aacf6c74542> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x91fb1000 - 0x91fc9fff com.apple.openscripting 1.2.8 (???) <0129d2f750f5ddcb92f4acf8a3541952> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x91fca000 - 0x91fcaffb com.apple.installserver.framework 1.0 (8) /System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/InstallSer ver
    0x91fcb000 - 0x9266bfff com.apple.CoreGraphics 1.408.1 (???) <f8194d5746be7b0eacf479d2ed7976c8> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x9266d000 - 0x9266dffd com.apple.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x9266e000 - 0x92675fff com.apple.agl 3.0.9 (AGL-3.0.9) <bc62de7d16827bd12a2cb1016aedfcdc> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x92676000 - 0x92678ff5 libRadiance.dylib ??? (???) <82d606c49f5dc77231f9d0e2be9ed6ab> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x92679000 - 0x92720feb com.apple.QD 3.11.54 (???) <c31150b40fcc27c195de40f0ae138666> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x92721000 - 0x92adffea libLAPACK.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x92ae0000 - 0x92b2afe1 com.apple.securityinterface 3.0.1 (35183) <a5f6ea826de75659acbc1a17d309dbbc> /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
    0x92d94000 - 0x92dedff7 libGLU.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92e33000 - 0x92e35fff com.apple.securityhi 3.0 (30817) <b3517782ad664a21e4fd60242e92723e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92e36000 - 0x931d3fef com.apple.QuartzCore 1.5.7 (1.5.7) <a841f68e7c1833489ffb931456b5ac0c> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x931d4000 - 0x9322eff7 com.apple.CoreText 2.0.3 (???) <bee78d6af2bc4805f2ca7d4330bc1124> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x9322f000 - 0x932a9ff8 com.apple.print.framework.PrintCore 5.5.3 (245.3) <98633ef67d419c1b02f56556cb4d843d> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x932aa000 - 0x93329ff5 com.apple.SearchKit 1.2.1 (1.2.1) <f28f8dd0f155a6453411a0c9b5702764> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x9335d000 - 0x93381feb libssl.0.9.7.dylib ??? (???) <d04156c610530ca44979c899834fc24d> /usr/lib/libssl.0.9.7.dylib
    0x93382000 - 0x93392fff com.apple.speech.synthesis.framework 3.7.1 (3.7.1) <273d96ff861dc68be659c07ef56f599a> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x93393000 - 0x9339cfff com.apple.speech.recognition.framework 3.7.24 (3.7.24) <da2d8411921a3fd8bc898dc753b7f3ee> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x9339d000 - 0x933a5fff com.apple.DiskArbitration 2.2.1 (2.2.1) <2664eeb3a4d0c95a21c089892a0ae8d0> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x933a6000 - 0x933a6ffd com.apple.Accelerate 1.4.2 (Accelerate 1.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x933a7000 - 0x934dafff com.apple.CoreFoundation 6.5.5 (476.17) <8ee954daff64a8549ccfc783846883a1> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x934db000 - 0x934e0fff com.apple.CommonPanels 1.2.4 (85) <c135f02edd6b2e2864311e0b9d08a98d> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x934e1000 - 0x934e1ffd com.apple.Accelerate.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x934e2000 - 0x9353eff7 com.apple.htmlrendering 68 (1.1.3) <1c5c0c417891b920dfe139385fc6c155> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x9353f000 - 0x9354dffd libz.1.dylib ??? (???) <a98b3b221a72b54faf73ded3dd7000e5> /usr/lib/libz.1.dylib
    0x9354e000 - 0x93874fe2 com.apple.QuickTime 7.6.2 (1327) <3754e41d846b7948f96c9ec4c690b520> /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x93875000 - 0x94073fef com.apple.AppKit 6.5.6 (949.43) <cb5414b69310c484a6a9844cd9207098> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x94074000 - 0x94100ff7 com.apple.LaunchServices 290.3 (290.3) <14e0cac395a9d127848196a08df19cc7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
    0x94101000 - 0x94119ff7 com.apple.CoreVideo 1.6.0 (20.0) <dd60118bac9aefaf88d9ab44558f05c4> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x9411a000 - 0x941d4fe3 com.apple.CoreServices.OSServices 226.5 (226.5) <2cf6e7edf4f3c2f6218b73f15aea2cfb> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x94392000 - 0x94425ff3 com.apple.ApplicationServices.ATS 3.4 (???) <ba3cf30e23231ce7e026a097fb224ac1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x94426000 - 0x9443cfff com.apple.DictionaryServices 1.0.0 (1.0.0) <7d20b8d1fb238c3e71d0fa6fda18c4f7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
    0x9443d000 - 0x94717ff3 com.apple.CoreServices.CarbonCore 786.10 (786.10) <8dd5cb1dc7e1edb6df312da27ec8018a> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x94797000 - 0x947d5ff7 libGLImage.dylib ??? (???) <3a518fdd58fa9580039ab8b01873b480> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x957ef000 - 0x958a1ffb libcrypto.0.9.7.dylib ??? (???) <75b80bff0d5cfaf10b6b6fe982da3578> /usr/lib/libcrypto.0.9.7.dylib
    0x958a2000 - 0x958cafff libcups.2.dylib ??? (???) <0785d4ddb09ecf7c2f62d2235abdd15a> /usr/lib/libcups.2.dylib
    0x958cb000 - 0x95a99ff3 com.apple.security 5.0.4 (34102) <5d34482db5e053ce1aaf9d4199c08730> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x95a9a000 - 0x95a9afff com.apple.Carbon 136 (136) <eb3c292d5544512f86e1e4e743c23f8e> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x95b7d000 - 0x95ce4ff3 libSystem.B.dylib ??? (???) <bb54e9ad823a07660f86789e10d89e9a> /usr/lib/libSystem.B.dylib
    0x95ce5000 - 0x961b6f76 libGLProgrammability.dylib ??? (???) <280177f56425bd9fa1dd1bc2e33d0b87> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
    0x961b7000 - 0x9621dffb com.apple.ISSupport 1.7 (38.2) /System/Library/PrivateFrameworks/ISSupport.framework/Versions/A/ISSupport
    0x96283000 - 0x9628aff7 libCGATS.A.dylib ??? (???) <144710480b91c13abed98b375855b03f> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x9628b000 - 0x962a9fff libresolv.9.dylib ??? (???) <9ed809256ce8913cddc3269c2e364654> /usr/lib/libresolv.9.dylib
    0x962aa000 - 0x962aaff8 com.apple.Cocoa 6.5 (???) <a1bc9247cf65c20f1a44d0973cbe649c> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x962ab000 - 0x96526fe7 com.apple.Foundation 6.5.7 (677.22) <3c6ffafbc8496316c68a62541b451ab3> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x96527000 - 0x96578ff7 com.apple.HIServices 1.7.0 (???) <67988718780a0a367b1bde62f5a67c4b> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x96579000 - 0x96588ffe com.apple.DSObjCWrappers.Framework 1.3 (1.3) <182986b74247b459b2a67a47071bdc6b> /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x9658e000 - 0x965adffa libJPEG.dylib ??? (???) <b822342bcc764c83d4557a8b67fa0c1c> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x965ae000 - 0x965b3fff com.apple.backup.framework 1.0 (1.0) /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x965b4000 - 0x968bcfff com.apple.HIToolbox 1.5.4 (???) <f429a9b5b04de301c6bad00cad532e92> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x968bd000 - 0x968d8ffb libPng.dylib ??? (???) <0d6b991afc831ea06f2958e5933d33dd> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x968d9000 - 0x968ddfff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
    0x968eb000 - 0x968ecffc libffi.dylib ??? (???) <eaf10b99a3fbc4920b175809407466c0> /usr/lib/libffi.dylib
    0x96966000 - 0x96a31fff com.apple.ColorSync 4.5.1 (4.5.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x96a32000 - 0x96bb1fff com.apple.AddressBook.framework 4.1.1 (699) <32f0ba071013fe7a74de2c6eecd940dc> /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x96bb2000 - 0x96be9fff com.apple.SystemConfiguration 1.9.2 (1.9.2) <eab546255ac099b9616df999c9359d0e> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x96bea000 - 0x96ccafff libobjc.A.dylib ??? (???) <400e943f9e8a678eea22a1d1205490ee> /usr/lib/libobjc.A.dylib
    0x96e5b000 - 0x96e8afe3 com.apple.AE 402.2 (402.2) <95c19d4ee4eb86270ad404e32a2c67e1> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x96e91000 - 0x96ebcfe7 libauto.dylib ??? (???) <2e44c523b851e8e25f05d13a48070a58> /usr/lib/libauto.dylib
    0x96ebd000 - 0x96f47fe3 com.apple.DesktopServices 1.4.7 (1.4.7) <bcf2bb3fb090c923090fc00600b127ed> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x96f48000 - 0x96f66ff3 com.apple.DirectoryService.Framework 3.5.5 (3.5.5) <c5fc4d4a9de9fafcf955127deba678d0> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x96f67000 - 0x96f71feb com.apple.audio.SoundManager 3.9.2 (3.9.2) <df077a8048afc3075c6f2d9e7780e78e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x96f72000 - 0x96f96fff libxslt.1.dylib ??? (???) <6a58a8724941e8a0cfeb0cae28ea3f37> /usr/lib/libxslt.1.dylib
    0x970d0000 - 0x970dcff9 com.apple.helpdata 1.0.1 (14.2) /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData
    0x970fb000 - 0x97178feb com.apple.audio.CoreAudio 3.1.1 (3.1.1) <873c3fe62acf95ace68c2bd2e227bae0> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x97179000 - 0x97216ffc com.apple.CFNetwork 422.11 (422.11) <495393d3a1707af798166527820149ad> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x97217000 - 0x972aafff com.apple.ink.framework 101.3 (86) <d4c85b5cafa8027fff042b84a8be71dc> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0xfffe8000 - 0xfffebfff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
    0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
    THANK YOU SO MUCH IN ADVANCE!

    The first problem (and probably the ultimate cause of your crash) is that you moved Safari out of the required location. You have it at /Safari.app, and it must be in/Applications. Move it back, Repair Disk Permissions, then try it again.

  • Oracle error: java.sql.sqlrecoverableException: Closed Connection

    need help on this closed connection
    getting oracle error: java.sql.sqlrecoverableException: Closed Connection when running a java application using tomcat api to oracle 11g database EE 11.2.0.3.0 on windows 2008 R2
    The process is reading data from an Oracle database using user_sdo_geom_metadata , memory allocated to DB is 5GB, java pool size 1G allocated , below is the code which gets data from Oracle
    <NamedDataSourceDefinition:NamedDataSourceDefinition xmlns:NamedDataSourceDefinition="http://www.mapinfo.com/mxp" xmlns="http://www.mapinfo.com/mxp" xmlns:gml="http://www.opengis.net/gml"xmlns:ns2="http://www.mapinfo.com/midev/service/common/v1" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://www.mapinfo.com/midev/service/namedresource/v1"version="MXP_WorkSpace_1_5"> 
    <ConnectionSet/> 
    <DataSourceDefinitionSet> 
    <DBDataSourceDefinition id="TXLANDMARKS"> 
    <DataSourceName>txlandmarks</DataSourceName> 
    <ConnectionMember> 
    <InlineDBConnection dbType="oracle"> 
    <JDBCDriverParameters> 
    <JDBCUrl>jdbc:oracle:thin:@NOIORAENT2K8-64:1521:FMETEST</JDBCUrl> 
    <DriverPropertySet> 
    <Property name="user" value="NOIDADATADEV"/> 
    <Property name="password" value="mndata"/>
    </DriverPropertySet>
    </JDBCDriverParameters>
    </InlineDBConnection>
    </ConnectionMember>
    <DBTable owner="NOIDADATADEV" useQuotes="true">TXLANDMARKS</DBTable>
    </DBDataSourceDefinition>
    </DataSourceDefinitionSet>
    <DataSourceRef ref="TXLANDMARKS"/>
    </NamedDataSourceDefinition:NamedDataSourceDefinition>
    Both the machines can ping to each other successfully, no firewall exists between them, these are connection setting been used in pooling-datasource-factory.properties
    poolingDataSourceFactoryClass=com.mapinfo.midev.dbms.jdbc.TomcatDataSourceFactory
    # what follows are properties specific to com.mapinfo.midev.dbms.jdbc.TomcatDataSourceFactory
    # defaultAutoCommit - the default auto commit state of the connection. if
    # not set the assumes the driver default
    # defaultAutoCommit =
    # (int) The maximum number of active connections that can be allocated from # this pool at the same time. The default value is 20
    maxActive = 10
    # (int) The maximum number of connections that should be kept in the pool at # all times. Default value is maxActive. Idle connections are checked # periodically (if enabled) and connections that been idle for longer than
    # minEvictableIdleTimeMillis will be released.
    maxIdle = 10
    # (int) The minimum number of established connections that should be kept in  the pool at all times. The connection pool can shrink below this number if # validation queries fail. Default value is 10
    minIdle = 5
    # (int)The initial number of connections that are created when the pool is # started. Default value is 10
    initialSize = 5
    # (int) The maximum number of milliseconds that the pool will wait (when # there are no available connections) for a connection to be returned before # throwing an exception. Default value is 30000 (30 seconds)
    # maxWaitMillis = 30000
    # (int) The number of milliseconds to sleep between runs of the idle # connection validation/cleaner thread. This value should not be set under 1
    # second. It dictates how often we check for idle, abandoned connections,
    # and how often we validate idle connections. The default value is 5000
    # (5 seconds).
    # timeBetweenEvictionRunsMillis = 5000
    # (int) The minimum amount of time an object may sit idle in the pool before
    # it is eligible for eviction. The default value is 60000 (60 seconds).
    # minEvictableIdleTimeMillis = 60000
    # (boolean) Flag to remove abandoned connections if they exceed the
    # removeAbandonedTimout. If set to true a connection is considered abandoned
    # and eligible for removal if it has been in use longer than the
    # removeAbandonedTimeout Setting this to true can recover db connections
    # from applications that fail to close a connection. See also
    # logAbandoned The default value is false.
    # removeAbandoned = false
    # (int) Timeout in seconds before an abandoned(in use) connection can be
    # removed. The default value is 60 (60 seconds). The value should be set to
    # the longest running query your applications might have.
    # removeAbandonedTimeout = 60
    # (boolean) Flag to log stack traces for application code which abandoned a
    # Connection. Logging of abandoned Connections adds overhead for every
    # Connection borrow because a stack trace has to be generated. The default
    # value is false.
    # logAbandoned = false
    # (long) Time in milliseconds to keep this connection. When a connection is
    # returned to the pool, the pool will check to see if the now
    # - time-when-connected > maxAge has been reached, and if so, it closes the
    # connection rather than returning it to the pool. The default value is 0,
    # which implies that connections will be left open and no age check will be
    # done upon returning the connection to the pool.
    # maxAgeMillis = 0

    Hi,
    I understand that you have raised a SR for this issue which is being worked upon by our team.
    Additionally, please note that the "Closed connection" error typically happens because a timeout parameter of some sort timed out the connection. This could be a parameter specified in your datasource, in your application code, or network (such as a firewall).
    You may also want to -
    1.  check your database to be sure it is not timing out connections.
    2.  Make sure your network is running efficiently and that it can provide fast connections,
    3. Check your Java Virtual Machine (JVM) Code Cache For Oracle Enterprise Data Quality for any memory related issues
    Thanks,
    Shwet

  • About database's  "closed  connection"

    i have stand a database called "TMIS",but now i can't start it ,after i put in the ID and the password,it always show me a message : "closed connection",i don't know what to do to help the "TMIS" start ,i tried many methods ,such as changing the listener.ora ,but it didn't help.
    the service "TMIS" always showed the status "UNKOWN",I don't know the reasons to cause my database can't connection,here is my /etc/hosts and the listener.ora
    #/etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    #here 127.0.0.1, actually i change to my own ip address
    #listener.ora
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost.localdomain)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = TMIS)
    (ORACLE_HOME = /opt/oracle/product/9.2.0)
    (SID_NAME = TMIS)
    ###why there was another service called "PLSExtProc")
    LSNRCTL> services
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "TMIS" has 1 instance(s).
    Instance "TMIS", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    please help me solve this question ,i'm confused by this problem.
    thank you very very much!!!
    my email address is [email protected],please connect with me !!

    ORA-12705: Cannot access NLS data files or invalid environment specified
    Cause: Either an attempt was made to issue an ALTER SESSION command with an invalid NLS parameter or value; or the environment variable(s) NLS_LANG, ORA_NLSxx, or ORACLE_HOME was incorrectly specified, therefore the NLS data files cannot be located.
    Action: Check the syntax of the ALTER SESSION command and the NLS parameter, correct the syntax and retry the statement, or specify the correct directory path/values in the environment variables.
    Set your NLS environment variable Correctly
    SQL> show parameter nls
    NAME TYPE VALUE
    nls_calendar string
    nls_comp string
    nls_currency string
    nls_date_format string
    nls_date_language string
    nls_dual_currency string
    nls_iso_currency string
    nls_language string AMERICAN
    nls_length_semantics string BYTE
    nls_nchar_conv_excp string FALSE
    nls_numeric_characters string
    NAME TYPE VALUE
    nls_sort string
    nls_territory string AMERICA
    nls_time_format string
    nls_time_tz_format string
    nls_timestamp_format string
    nls_timestamp_tz_format string
    SQL>

  • How to reopen a closed connection?

    If I'm working on a worksheet, and I lose connection, how do I reopen it?
    I try running my code, and the Query Result just says "Closed Connection".
    The little connection dropdown list on the top-right corner of the screen gets grayed out when I lose connection.
    I can do Control N, and copy/paste my code into the new worksheet window,
    but that seems like the wrong way to do it.
    Is there any way to just reconnect using my current worksheet window?
    Thank you.

    SQL Developer Shows "Connection Closed" Error When Running a Query (Doc ID 1297692.1)
    Applies to:
    Oracle SQL Developer - Version: 2.1.1 and later [Release: and later ]
    Microsoft Windows x64 (64-bit) - OS Version: 7
    Symptoms
    The creation of a new connection goes through fine and the "Test" connection functionality and returns success status. While trying to view any tables, functions, procedures, etc., a "connection closed" message is displayed. Also, running any query returns the same "connection closed" message.
    The following error message is seen in the command window:
    Exception initializing 'oracle.dbtools.raptor.plsql.PLSQLAddin' in extension 'Oracle SQL Developer': java.lang.NoClassDefFoundError: com/sun/jdi/Bootstrap at oracle.jdevimpl.debugger.jdi.DebugJDIConnector.getVersion(DebugJDIConnector.java:30)
    Cause
    The SQL Developer download for windows 64-bit version 7 does not come bundled with the jdk. The requirement is to use jdk ver 1.6_11 or above. If the jdk used by the SQL Developer does not meet this requirement, the above mentioned exception happens.
    Solution
    1) Specify the full path to the right version of the jdk in the
    \sqldeveloper\bin\sqldeveloper.conf file in order to make sure that the SQL Developer points to the right jdk such as shown below:
    SetJavaHome C:\<full path>\jdk1.6.0_X
    2) Set the ORACLE_HOME env variable to the SQL Developer install location.
    Set ORACLE_HOME=<TOP_OF_SQLDEV_INSTALLATION location>

Maybe you are looking for