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..?

Similar Messages

  • Closed Connection Issues

    We're having some issues with closed connection errors. Basically, if a user is idle long enough, if he clicks a button, then the results won't show and a closed connection error will be thrown. Frequently the user will have to re-enter information or it leads to some bad results. These tend to happen with views in particular.
    So, any ideas? I'm new to JDeveloper and Oracle, so I'm not quite sure where to start or information I should provide. Our pages are running off of one virtual machine with the Oracle database on another virtual machine, both on the same physical machine.
    A couple questions:
    1) Does this have anything to do with Session timeout? We have ours set to 60 minutes. When I set it to 1 minute, it'll redirect to the login page at 1 minute. Odd... I just tested by idling on a page for 90 minutes, no redirect, no error thrown...
    2) We have validate-connection set to true, but do not have validate-connection-query set. Is there a default value or will this stop the verification?
    Thank you very much.
    Here's our datasource information:
    <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd" xmlns="http://xmlns.oracle.com/oracleas/schema">
    <connection-pool name="jdev-connection-pool-DBSVR" disable-server-connection-pooling="false" validate-connection="true" abandoned-connection-timeout="60">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="user" password="" url="jdbc:oracle:thin:@192.168.130.23:1521:web"/>
    </connection-pool>
    <managed-data-source name="jdev-connection-managed-DBSVR" jndi-name="jdbc/DBSVRDS" connection-pool-name="jdev-connection-pool-DBSVR"/>
    <native-data-source name="jdev-connection-native-STRATDBSVR" jndi-name="jdbc/STRATDBSVRCoreDS" url="jdbc:oracle:thin:@192.168.130.23:1521:web" user="user" password="" data-source-class="oracle.jdbc.pool.OracleDataSource"/>
    </data-sources>
    Session timeout:
    <session-config>
    <session-timeout>60</session-timeout>
    </session-config>
    Here's an example of the error:
    INFO: Fatal error code : '17,008' detected handling SQLException : 'java.sql.SQLException: Closed Connection'.
    12/01/09 14:40:27 java.lang.NullPointerException
    12/01/09 14:40:27      at oracle.oc4j.sql.proxy.StatementBCELProxy.oc4j_releaseToCache(StatementBCELProxy.java:67)
    12/01/09 14:40:27      at oracle.oc4j.sql.proxy.StatementBCELProxy.oc4j_releaseTarget(StatementBCELProxy.java:79)
    12/01/09 14:40:27      at oracle.oc4j.sql.proxy.SQLBCELProxy.oc4j_close(SQLBCELProxy.java:95)
    12/01/09 14:40:27      at oracle.oc4j.sql.proxy.StatementBCELProxy.close(StatementBCELProxy.java:92)
    12/01/09 14:40:27      at oracle.jbo.server.DBTransactionImpl.closeStatement(DBTransactionImpl.java:4202)
    12/01/09 14:40:27      at oracle.jbo.server.ViewObjectImpl.closeFreedStatements(ViewObjectImpl.java:8466)
    12/01/09 14:40:27      at oracle.jbo.server.ViewObjectImpl.closeStatements(ViewObjectImpl.java:8451)
    12/01/09 14:40:27      at oracle.jbo.server.DBTransactionImpl.closeStatements(DBTransactionImpl.java:4370)
    12/01/09 14:40:27      at oracle.jbo.server.DBTransactionImpl.closeTransaction(DBTransactionImpl.java:1542)
    12/01/09 14:40:27      at oracle.jbo.server.DBTransactionImpl.disconnect(DBTransactionImpl.java:4730)
    12/01/09 14:40:27      at oracle.jbo.server.DBTransactionImpl2.disconnect(DBTransactionImpl2.java:310)
    12/01/09 14:40:27      at oracle.jbo.server.DBTransactionImpl2.reconnect(DBTransactionImpl2.java:329)
    12/01/09 14:40:27      at oracle.jbo.common.ampool.DefaultConnectionStrategy.reconnect(DefaultConnectionStrategy.java:239)
    12/01/09 14:40:27      at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolReconnect(ApplicationPoolMessageHandler.java:487)
    12/01/09 14:40:27      at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:323)
    12/01/09 14:40:27      at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7777)
    12/01/09 14:40:27      at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4074)
    12/01/09 14:40:27      at oracle.jbo.common.ampool.ApplicationPoolImpl.manageReferencingState(ApplicationPoolImpl.java:1239)
    12/01/09 14:40:27      at oracle.jbo.common.ampool.ApplicationPoolImpl.finalizeResource(ApplicationPoolImpl.java:1156)
    12/01/09 14:40:27      at oracle.jbo.pool.ResourcePool.removeResourceInternal(ResourcePool.java:749)
    12/01/09 14:40:27      at oracle.jbo.pool.ResourcePool.setState(ResourcePool.java:1004)
    12/01/09 14:40:27      at oracle.jbo.pool.ResourcePool.gc(ResourcePool.java:1423)
    12/01/09 14:40:27      at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:774)
    12/01/09 14:40:27      at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:779)
    12/01/09 14:40:27      at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:98)
    12/01/09 14:40:27      at java.util.TimerThread.mainLoop(Timer.java:512)
    12/01/09 14:40:27      at java.util.TimerThread.run(Timer.java:462)
    Exception breakpoint occurred at line 311 of ReleasableResourcePooledExecutor.java.
    java.lang.UnsupportedOperationException:
    Edited by: 908629 on Jan 17, 2012 2:18 PM

    Thank you. However, a new error has arisen.
    I set session-timeout to 120 (should be minutes) and abandon-timeout to 0 (which should disable it) and I get an error exactly on the hour, regardless of what the abandon-timeout or session-timeout were.
    Is there are particular I should be checking on the Oracle database side?
    oracle.jbo.NotConnectedException: JBO-25200: Application module is not connected to a database
         at oracle.jbo.server.DefaultTxnHandlerImpl.handleRollback(DefaultTxnHandlerImpl.java:149)
         at oracle.jbo.server.DBTransactionImpl.doRollback(DBTransactionImpl.java:4443)
         at oracle.jbo.server.DBTransactionImpl.rollback(DBTransactionImpl.java:2327)
         at oracle.stratis.SystemAdmin.threads.ImportExportThread.loadMHIF(ImportExportThread.java:262)
         at oracle.stratis.SystemAdmin.threads.ImportExportThread.run(ImportExportThread.java:67)
         at java.lang.Thread.run(Thread.java:662)

  • 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.

  • 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>

  • I've done a project on iMovie, after it finished finalising, i just closed iMovie, now i think i've lost all my work because i can't find it and when i found it, the movie was just black - please help

    I've done a project on iMovie, after it finished finalising, i just closed iMovie, now i think i've lost all my work because i can't find it and when i found it, the movie was just black - please help

    Hi
    More info please
    • Free space on - Start-Up (Mac OS) Hard Disk ? How much ?
    • Any other hard disks connected ? Formatted as ?
    Yours Bengt W

  • My ipod have just closed and i forgot the password how to opened plz ?

    my i pod just closed and don't know how to open it because there a password that i forgot help me plz

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:         
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store   
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • 17008 Closed Connection on DriverManager.getConnection

    I am trying to connect with oci jdbc using the 9.2.0.1.0 client. Using -classpath %ORACLE_HOME%\jdbc\lib\ojdbc14.jar, and -Djava.library.path=%ORACLE_HOME%\bin. I am getting the error 17008 "Closed Connection" when I call DriverManager.getConnection. This code works perfectly well when using the thin driver. It's just the oci driver. I turned on DriverManager tracing, and got the stack trace below, anyone have any ideas what's wrong?
    DriverManager.getConnection("jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.10.10)(PORT=1521)))(CONNECT_DATA
    =(SID=bogus)))")
    trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@174d93a]
    SQLException: SQLState(null) vendor code(17008)
    java.sql.SQLException: Closed Connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:2348)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:477)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at com.primavera.infr.admin.CfgAccessMgr.createDBConnection(CfgAccessMgr.java:119)
    at com.primavera.infr.admin.CfgAccessMgr.<init>(CfgAccessMgr.java:104)
    at com.primavera.console.cfg.admintool.SetupInfoFrame.actionPerformed(SetupInfoFrame.java:913)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    getConnection failed: java.sql.SQLException: Closed Connection

    DriverManager.getConnection("jdbc:oracle:oci:@(DESCRIP
    TION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.
    10.10)(PORT=1521)))(CONNECT_DATA
    =(SID=bogus)))")
    trying
    driver[className=oracle.jdbc.driver.OracleDriver,oracl
    e.jdbc.driver.OracleDriver@174d93a]
    SQLException: SQLState(null) vendor code(17008)
    java.sql.SQLException: Closed ConnectionI checked on the OTN website... to use OCI you need to have an Oracle client installation. Better stick to thin.
    Richard.

  • Completely Random SQLException: Closed Connection: next

    I don't have the code in front of me right now, but I can give you a break down.
    Class DbConnection{
    Protected Connection dbcon;
    public void setDbConnection(DbConnection db){
    public void getDbConnection(){
    return dbcon;
    public void close(){
    dbcon.close()
    Class Servlet Extends HttpServlet Implements SingleThreadModel{
    protected DbConnection dbcon;
    public void startConnection(DbConnection){
    dbcon.setDbConnection(DbConnection.getDbConnection());
    Class SubServlet extends Servlet{
    public void doGet(){
    startConnection(dbCon);
    try{
    do some sort of query or execute a stored procedure
    }finally{
    dbCon.close()
    This is kinda the jist of what the servlet is going. All connections are closed in a Try Finally block and the connections are opened right before the try finally block. The problem is that it works for the most part. But once in a while, there would be a closed connection problem whether executing a query or a stored procedure. It would read several rows from the resultset before the closed connection. Or while it's about to execute a stored procedure, it will have that db connection, up until it is about to execute the sp. Since I've implemented the singlethreadmodel, is it really still threadsafe? The connection is to a huge db, but I've written a program to connect, query (large query), disconnect a thousand times to just test the connections. So far, seems like it's my code. Please, any help would be great, throw out ideas and I'll test them. So far I've exhausted every idea I've had so far.

    Hi,
    Did you ever solve this problem ?
    Please share what you did ?
    Thanks.

  • 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

  • HT1212 my itouch wont let me enter a password it just says connect to itunes

    my itouch won't let me enter a passwork it just says connect to itunes

    You will have to put your iPod into Recovery Mode so that iTunes can restore it.
    Note that all data will be erased due to the full restore the iPod will go through.
    If you don't want this because you don't made a backup yet, use an external software to save photos and other data.
    How to enter Recovery Mode:
    http://support.apple.com/kb/HT1808

  • 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)

  • So im trying to buy logic pro and just recently put enough money in gift cards on my account but every time i click buy app and go to billing info and then click ok it just shoots me to the first screen and did not charge for app how can i buy it ?

    so im trying to buy logic pro and just recently put enough money in gift cards on my account but every time i click buy app and go to billing info and then click ok it just shoots me to the first screen and did not charge for app how can i buy it ?

    This may sound stupid, but I'm gonna throw it out there anyway. Is it possible, that if I have enough junk on my desktop it might disrupt the signal? It seems odd, but it kind of looks like my signal is strong and relatively steady now that I've cleaned my desktop. I do tend to get very cluttered. I use a lot of reference images and save text clippings to use later... it just piles up very quickly.
    So, I wonder if all that extra effort my system has to do keeping up with the junk might have something to do with the drop outs?

  • HT201269 I recently aquired a new iphone 4s because my old one broke. I backed it up on my itunes but now it wont give me the option of using the phone, it just says connect to itunes. I have synced it several times now and dont know what to do, please he

    I recently aquired a new iphone 4s because my old one broke. I backed it up on my itunes but now it wont give me the option of using the phone, it just says connect to itunes. I have synced it several times now and dont know what to do, please help me!!

    I recently created a new apple ID
    Bad idea.
    Content bought with an Apple ID is forever associated with that Apple ID. Apple will not transfer content from one Apple ID to another and Apple will not merge Apple IDs. Unless you are prepared to forfeit all the previously purchased content and buy it all again with the new Apple ID, you will need to maintain the old ID to update and redownload your content.

  • Clicking on "order prints" just says "connecting" then does nothing ...

    I fear that I screwed up somewhere in setting up my 1-click setting and now when I select a photo and click on order prints, it just says connecting then does nothing. It doesn't even take me to the 1-click screen to allow me to change account info. Does anyone know of a way to at least get me back to the 1-click page to allow me to associate my mac account to iphoto?

    Hi bplatinum,
    http://docs.info.apple.com/article.html?artnum=303168
    This Apple kb says to reinstall iPhoto 6. Hopefully that will solve it for you.

Maybe you are looking for

  • Inventory posting - stock in transit G/L account

    Hello! We have a unique requirement that we need to post the stock in transit inventory only if the delivery is for one particular customer (sold to party). It is our own company but not on SAP hence, on the books, an inter company transaction. All t

  • Creating Custom Bullets & Lists in Pages 5.0

    I cannot figure out how to create a custom numbered list in Pages 5.0. I had custom LISTS on my 4.3 Docs that did not migrate to 5.0. How do I create duplicate LIST STYLE in 5.0? Thank you for your help.

  • ITunes doesn't restore backup with iOS 7

    I have an iPad 2 Wifi 16GB with iOS 7. I made a backup yesterday, then restored the iPad and I tried to restore all data from backup. iTunes says "restoring backup to iPad", then the iPad reboots and iTunes says that the backup was restored, but the

  • ORA-04091: is mutating, trigger/function may not see

    I am getting this error ORA-04091: table SATURN.SARQUAN is mutating, trigger/function may not see it ORA-06512: at "BANINST1.F_GETSARQUANSEQNO", line 24 ORA-06512: at "BANINST1.F_GETSARQUANSEQNO", line 30 I am trying to do this insert INSERT INTO sar

  • How to set default 'schema' in Pointbase?

    I am using Netbeans EA2 with bundled appserv. I have tried creating a CMP entity bean from the Pointbase sample database (PBPUBLIC), which works. But when i created my own database (MYDATABASE) in Pointbase and a CMP bean for my test-table, i get a S