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.
Similar Messages
-
Teradata connection error in jdbc -- DriverManager.getConnection()
I have issue while connecting to teradata DB from a sampel jave jdbc code.
the code is as below.
String url="jdbc:teradata://10.33.22.27/AMRROCD";
Class.forName("com.teradata.jdbc.TeraDriver");
Properties x = new Properties();
x.put("user","user123");
x.put("password","pwd123");
Connection con = DriverManager.getConnection (url, x);--> i am getting error at this line as
GSSException: Failure unspecified at GSS-API level (Mechanism level: UserFile parameter null)
at com.teradata.tdgss.jtdgss.TdgssParseXml.<init>(DashoA1*..)
at com.teradata.tdgss.jtdgss.TdgssConfigApi.<init>(DashoA1*..)
at com.teradata.tdgss.jtdgss.TdgssManager.<init>(DashoA1*..)
at com.teradata.tdgss.jtdgss.TdgssManager.getInstance(DashoA1*..)
at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getGSSM(GenericTeraEncrypt.java:583)
at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getConfig(GenericTeraEncrypt.java:601)
at com.teradata.jdbc.jdbc.GenericTeraEncrypt.getUserNameForOid(GenericTeraEncrypt.java:694)
at com.teradata.jdbc.AuthMechanism.<init>(AuthMechanism.java:50)
at com.teradata.jdbc.jdbc.GenericInitDBConfigState.action(GenericInitDBConfigState.java:105)
at com.teradata.jdbc.jdbc.GenericLogonController.run(GenericLogonController.java:49)
at com.teradata.jdbc.jdbc_4.TDSession.<init>(TDSession.java:195)
at com.teradata.jdbc.jdbc_3.ifjdbc_4.TeraLocalConnection.<init>(TeraLocalConnection.java:94)
at com.teradata.jdbc.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:55)
at com.teradata.jdbc.TeraDriver.doConnect(TeraDriver.java:216)
at com.teradata.jdbc.TeraDriver.connect(TeraDriver.java:149)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at dbValidation.main(dbValidation.java:25)
Error java.lang.NullPointerException
could anybody have an idea on this , its urgent for me to solve this.
I am able to execute the code in windows OS . this error is occourring in UNIX systemYou'd have to pursue Teradata for support/help with their JDBC driver. This has nothing
to do with Oracle though... -
Core Dump when calling DriverManager.getConnection
I'm very confused and hope someone can help me out with this.
I'm trying to make a connection to a MS SQL Server 7 and am getting a core dump when getConnection is called. No exception is thrown, just a core dump and locked session. If I run the class from it's main there is absolutly no problem, but when I do a new on the class and call it's member to establish the connection: core dump. The environment is the same in both cases. The calling class did does use a mySql connection, but I tried closing it and setting it to null with the same problem. I'm not sure if the getConnection is stepping on a socket or what it's trying to violate in memory causing the dump. This is running on a SCO Openserver 5.0.5 box (green threads). Why it runs stand-alone and not when called from another class has got me tangled... Thread problem? I've tried several SQL drivers, they all do the same thing.
Anyway, here's a snippet from the java class:
try
{Class.forName(myForName);
// core dump, next line
Connection myConn = DriverManager.getConnection(myUrl, myUser, myPass);
// never get's here
Statement myStmt = myConn.createStatement();
catch (Exception e) // modified for this post
{system.out.println(e.toString());
Here's the dump printed to the monitor (2>&1)
SIGSEGV 11* segmentation violation
si_signo [11]: SIGSEGV 11* segmentation violation
si_errno [0]: Error 0
si_code [1]: SEGV_MAPERR [addr: 0x8]
stackpointer=81adc820
Full thread dump Classic VM (SCO-JDK-1.2.2-001:2000-Feb-17-03:54, green threads):
"Thread-0" (TID:0x8074f3c8, sys_thread_t:0x83ae258, state:R) prio=5
at com.inet.tds.TdsDriver.run(Unknown Source)
at java.lang.Thread.run(Thread.java, Compiled Code)
"process reaper" (TID:0x807431d0, sys_thread_t:0x82cd980, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.UNIXProcess.run(Native Method)
at java.lang.Thread.run(Thread.java, Compiled Code)
"Finalizer" (TID:0x8071f320, sys_thread_t:0x808e478, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0x8071f3b0, sys_thread_t:0x808a2d8, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0x8071f3e0, sys_thread_t:0x80845a8, state:CW) prio=5
"main" (TID:0x8071f1e0, sys_thread_t:0x804c2d8, state:R) prio=5
at java.lang.Thread.sleep(Native Method)
at com.inet.tds.TdsDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at SLSCorpRpt.printSchedule(SLSCorpRpt.java, Compiled Code)
at SLSSchedule.runSchedule(SLSSchedule.java, Compiled Code)
at SLSTextMain.<init>(SLSTextMain.java, Compiled Code)
at SLSTextMain.main(SLSTextMain.java, Compiled Code)
Monitor Cache Dump:
java.lang.Object@807431A8/807C6140: <unowned>
Waiting to be notified:
"process reaper" (0x82cd980)
java.lang.Class@80736EF8/807970A8: owner "main" (0x804c2d8) 2 entries
<unknown key> (0x80737c21): owner "Thread-0" (0x83ae258) 1 entry
java.lang.ref.ReferenceQueue$Lock@8071F338/80754D60: <unowned>
Waiting to be notified:
"Finalizer" (0x808e478)
java.lang.ref.Reference$Lock@8071F3C0/80754890: <unowned>
Waiting to be notified:
"Reference Handler" (0x808a2d8)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: owner "Thread-0" (0x83ae258) 1 entry
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "Thread-0" (0x83ae258) 1 entry
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x80845a8)
Child death monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x804be18)
Thread queue lock: owner "Thread-0" (0x83ae258) 1 entry
Monitor registry: owner "Thread-0" (0x83ae258) 1 entry
SIGABRT 6* abort (generated by abort(3) routine)
stackpointer=81adc820
Full thread dump Classic VM (SCO-JDK-1.2.2-001:2000-Feb-17-03:54, green threads):
"Thread-0" (TID:0x8074f3c8, sys_thread_t:0x83ae258, state:R) prio=5
at com.inet.tds.TdsDriver.run(Unknown Source)
at java.lang.Thread.run(Thread.java, Compiled Code)
"process reaper" (TID:0x807431d0, sys_thread_t:0x82cd980, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.UNIXProcess.run(Native Method)
at java.lang.Thread.run(Thread.java, Compiled Code)
"Finalizer" (TID:0x8071f320, sys_thread_t:0x808e478, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0x8071f3b0, sys_thread_t:0x808a2d8, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0x8071f3e0, sys_thread_t:0x80845a8, state:CW) prio=5
"main" (TID:0x8071f1e0, sys_thread_t:0x804c2d8, state:R) prio=5
at java.lang.Thread.sleep(Native Method)
at com.inet.tds.TdsDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at SLSCorpRpt.printSchedule(SLSCorpRpt.java, Compiled Code)
at SLSSchedule.runSchedule(SLSSchedule.java, Compiled Code)
at SLSTextMain.<init>(SLSTextMain.java, Compiled Code)
at SLSTextMain.main(SLSTextMain.java, Compiled Code)
Monitor Cache Dump:
java.lang.Object@807431A8/807C6140: <unowned>
Waiting to be notified:
"process reaper" (0x82cd980)
java.lang.Class@80736EF8/807970A8: owner "main" (0x804c2d8) 2 entries
<unknown key> (0x80737c21): owner "Thread-0" (0x83ae258) 1 entry
java.lang.ref.ReferenceQueue$Lock@8071F338/80754D60: <unowned>
Waiting to be notified:
"Finalizer" (0x808e478)
java.lang.ref.Reference$Lock@8071F3C0/80754890: <unowned>
Waiting to be notified:
"Reference Handler" (0x808a2d8)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: owner "Thread-0" (0x83ae258) 1 entry
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "Thread-0" (0x83ae258) 1 entry
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x80845a8)
Child death monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x804be18)
Thread queue lock: owner "Thread-0" (0x83ae258) 1 entry
Monitor registry: owner "Thread-0" (0x83ae258) 1 entryI have a similar problem with establishing a connection through JNI. Have you resolved your problem?
Here's mine.
In java, I have a class that provides an interface to a mysql database. The java programs that call this interface work fine.
When I try to call the java interface from C++ through JNI, I get the following output -- some debug statements sprinkled through also. I am assuming that the JVM is missing something at runtime that is there in my JRE. The classpaths match , etc. Exception handling in java and in JNI code are not providing any more detail.. Thanks for comments!!
Created jvm
Got KBModel and String classes
KBModel.java:stest()
KBModel.java:init(String)
KBModel.java:init(String) - got Properties file
Got DBDRIVER class: org.gjt.mm.mysql.Driver
Object = class org.gjt.mm.mysql.Driver
init(): DBURLSTRING = jdbc:mysql://sturgeon.xxx.com:3306/<valid db name>
init(): DBUSER = <valid user>
init(): DBPASSWORD =<valid password>
KBModel.java:init(Properties) - Attempting connection
init(): Drivers available:
com.mysql.jdbc.Driver
Driver accepts this URL
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4053ea09
Function name=(N/A)
Library=/lib/i686/libc.so.6
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.
Dynamic libraries:
08048000-0804a000 r-xp 00000000 03:02 279279 /home/kathy/cm/src/Onto/Tools/Annotator/src/test/invokeKB
0804a000-0804b000 rw-p 00001000 03:02 279279 /home/kathy/cm/src/Onto/Tools/Annotator/src/test/invokeKB
40000000-40016000 r-xp 00000000 03:02 2093075 /lib/ld-2.2.4.so
40016000-40017000 rw-p 00015000 03:02 2093075 /lib/ld-2.2.4.so
40017000-40020000 r-xp 00000000 03:02 1309343 /usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/libhpi.so
40020000-40021000 rw-p 00008000 03:02 1309343 /usr/java/jdk1.3.1_03/jre/lib/i386/native_threads/libhpi.so
40031000-40032000 r--p 00000000 03:02 768548 /usr/lib/locale/en_US/LC_IDENTIFICATION
40033000-40085000 r-xp 00000000 03:02 328384 /usr/lib/libodbc.so.1.0.0
40085000-40088000 rw-p 00051000 03:02 328384 /usr/lib/libodbc.so.1.0.0
40088000-400c1000 r-xp 00000000 03:02 327275 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
400c1000-400c8000 rw-p 00038000 03:02 327275 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
400ca000-400eb000 r-xp 00000000 03:02 246620 /usr/java/jdk1.3.1_03/jre/lib/i386/libjava.so
400eb000-400ed000 rw-p 00020000 03:02 246620 /usr/java/jdk1.3.1_03/jre/lib/i386/libjava.so
400ee000-400ff000 r-xp 00000000 03:02 246629 /usr/java/jdk1.3.1_03/jre/lib/i386/libverify.so
400ff000-40101000 rw-p 00010000 03:02 246629 /usr/java/jdk1.3.1_03/jre/lib/i386/libverify.so
40101000-402f1000 r-xp 00000000 03:02 1701922 /usr/java/jdk1.3.1_03/jre/lib/i386/client/libjvm.so
402f1000-403f1000 rw-p 001ef000 03:02 1701922 /usr/java/jdk1.3.1_03/jre/lib/i386/client/libjvm.so
40408000-4053c000 r-xp 00000000 03:02 2093084 /lib/libc-2.2.4.so
4053c000-40542000 rw-p 00133000 03:02 2093084 /lib/libc-2.2.4.so
40547000-4054a000 r-xp 00000000 03:02 2093088 /lib/libdl-2.2.4.so
4054a000-4054b000 rw-p 00002000 03:02 2093088 /lib/libdl-2.2.4.so
4054b000-40558000 r-xp 00000000 03:02 343415 /lib/i686/libpthread-0.9.so
40558000-40560000 rw-p 0000c000 03:02 343415 /lib/i686/libpthread-0.9.so
40560000-40582000 r-xp 00000000 03:02 343413 /lib/i686/libm-2.2.4.so
40582000-40583000 rw-p 00021000 03:02 343413 /lib/i686/libm-2.2.4.so
40583000-40596000 r-xp 00000000 03:02 2093093 /lib/libnsl-2.2.4.so
40596000-40597000 rw-p 00012000 03:02 2093093 /lib/libnsl-2.2.4.so
40599000-405cd000 r-xp 00000000 03:02 328243 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405cd000-405d9000 rw-p 00033000 03:02 328243 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405dc000-405f0000 r-xp 00000000 03:02 246630 /usr/java/jdk1.3.1_03/jre/lib/i386/libzip.so
405f0000-405f3000 rw-p 00013000 03:02 246630 /usr/java/jdk1.3.1_03/jre/lib/i386/libzip.so
405f3000-41327000 r--s 00000000 03:02 1717328 /usr/java/jdk1.3.1_03/jre/lib/rt.jar
41354000-4164b000 r--s 00000000 03:02 1717321 /usr/java/jdk1.3.1_03/jre/lib/i18n.jar
4164b000-41661000 r--s 00000000 03:02 1717329 /usr/java/jdk1.3.1_03/jre/lib/sunrsasign.jar
43709000-4370a000 r--p 00000000 03:02 408823 /usr/lib/locale/en_US/LC_MEASUREMENT
4370a000-4370b000 r--p 00000000 03:02 2158478 /usr/lib/locale/en_US/LC_TELEPHONE
4370b000-4370c000 r--p 00000000 03:02 2158480 /usr/lib/locale/en_US/LC_ADDRESS
4370c000-4370d000 r--p 00000000 03:02 2158479 /usr/lib/locale/en_US/LC_NAME
4370d000-4370e000 r--p 00000000 03:02 1864168 /usr/lib/locale/en_US/LC_PAPER
4370e000-4370f000 r--p 00000000 03:02 2174846 /usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
4370f000-43710000 r--p 00000000 03:02 408822 /usr/lib/locale/en_US/LC_MONETARY
49d5f000-49d8a000 r--p 00000000 03:02 572342 /usr/lib/locale/en_US/LC_CTYPE
49d8a000-49d90000 r--p 00000000 03:02 866674 /usr/lib/locale/en_US/LC_COLLATE
49d90000-49d91000 r--p 00000000 03:02 768549 /usr/lib/locale/en_US/LC_TIME
49d91000-49d92000 r--p 00000000 03:02 572338 /usr/lib/locale/en_US/LC_NUMERIC
49d93000-49d9c000 r-xp 00000000 03:02 246627 /usr/java/jdk1.3.1_03/jre/lib/i386/libnet.so
49d9c000-49d9d000 rw-p 00008000 03:02 246627 /usr/java/jdk1.3.1_03/jre/lib/i386/libnet.so
49d9d000-49da7000 r-xp 00000000 03:02 2093117 /lib/libnss_nisplus-2.2.4.so
49da7000-49da8000 rw-p 00009000 03:02 2093117 /lib/libnss_nisplus-2.2.4.so
49da8000-49dab000 r-xp 00000000 03:02 2093106 /lib/libnss_dns-2.2.4.so
49dab000-49dac000 rw-p 00002000 03:02 2093106 /lib/libnss_dns-2.2.4.so
49dad000-49db7000 r-xp 00000000 03:02 2093109 /lib/libnss_files-2.2.4.so
49db7000-49db8000 rw-p 00009000 03:02 2093109 /lib/libnss_files-2.2.4.so
4a624000-4a67a000 r--s 00000000 03:02 540401 /usr/java/jdk1.3.1_03/jre/lib/ext/log4j-1.2.6.jar
4a695000-4a6a3000 r-xp 00000000 03:02 2093122 /lib/libresolv-2.2.4.so
4a6a3000-4a6a5000 rw-p 0000d000 03:02 2093122 /lib/libresolv-2.2.4.so
Local Time = Thu Feb 13 13:35:05 2003
Elapsed Time = 1
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.3.1_03-b03 mixed mode)
# An error report file has been saved as hs_err_pid9210.log.
# Please refer to the file for further information.
# -
Web Service exception: Closed Connection
I build a J2EE 1.3 Web Service using JDeveloper 10.1.3 by generating it from a PL/SQL procedure. It works fine on the embedded server and even on the standalone OC4J. When I deploy it on an OAS 10.1.3 it works fine initially but the day after I start to receive the following SOAP message:
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>java.sql.SQLException: java.sql.SQLException: Closed Connection</faultstring>
<faultactor>/login/LoginTesthire</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>When I program a non-web application I use the following code to connect to and query a SQL Server database (I have omitted the try -catch sections):
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
String url = "jdbc:sqlserver://localhost:2766;databaseName=Cosmotim;IntegratedSecurity=true";
Connection conn = DriverManager.getConnection(url);
Statement s1=conn.createStatement();
String select="SELECT * FROM [Table name]";
ResultSet DBSet=s1.executeQuery(select1);But when I use the same code in a Web Service method with return type String and I try to deploy the Web service (to Java System Application Server PE 9 with NetBeans) I get many error messages and I can't deploy the service.
I cannot understand why I can't deploy this WS but I can deploy other Web Services which do not use database connectivity. -
Which application is making "DriverManager.getConnection(URL,p)" call?
Hi All,
I have 15 domains each having 100 or more applications[.ear,.jar,.war] on a single Solaris box[Dev Env].
One of these applications[out of 100*15] of one domain[out 15] is making direct JDBC connection.[DriverManager.getConnection(URL,p)]. Now the issue is that I have to find which application is making this call.
I tried with enabling JDBC logging and than grep for "DriverManager.getConnection" in each domain but this way I can only detrmine that an application of a particular domain is making direct JDBC connection. But I am still not able to find which application is making this call?
Did any body try this?
any suggestion?
Thanks,
QumarQumar Hussain wrote:
Hi All,
I have 15 domains each having 100 or more applications[.ear,.jar,.war] on a single Solaris box[Dev Env].
One of these applications[out of 100*15] of one domain[out 15] is making direct JDBC connection.[DriverManager.getConnection(URL,p)]. Now the issue is that I have to find which application is making this call.
I tried with enabling JDBC logging and than grep for "DriverManager.getConnection" in each domain but this way I can only detrmine that an application of a particular domain is making direct JDBC connection. But I am still not able to find which application is making this call?
Did any body try this?
any suggestion?
Thanks,
QumarOne very direct way to do this is to get the source for DriverManager,
and edit it to throw an exception from getConnection(), and compile the
source, and put the class file in the bootclasspath (not the regular
classpath) of the JVM via a commandline option when you boot WebLogic.
Eg: if the hacked DriverManager class is in /mytempdir/java/sql/DriverManager.class
cd /mytempdir
jar cvf hack.jar java/sql/*.class
edit the start-weblogic script to start weblogic with a commandline
argument:
java -Xbootclasspath/p:/mytempdir/hack.jar .... -
Java.lang.ClassCastException at DriverManager.getConnection
Hi all,
i need to connect to SQL server DB which exist on a server
and java.lang.ClassCastException appear when executing the line
Connection conn = (Connection)DriverManager.getConnection(url,username,password);
the following is the code which i use:
String serverName = "64.15.155.101";
String portNumber = "1433";
String mydatabase = "MMSMS";
String username = "u";
String password = "p";
// Step 1: Load the JDBC driver.
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
// Step 2: Establish the connection to the database.
String url = "jdbc:sqlserver://"+serverName
+";databaseName="+mydatabase;
System.out.println(url);
DriverManager.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver());
Connection conn = (Connection)DriverManager.getConnection(url,username,password);
System.out.println("connection succesful");Why are you casting there? Do you have a class named Connection in your own code?
It would seem so.
Do this
java.sql.Connection conn = DriverManager.getConnection(url,username,password);You shouldn't need a cast there. So the fact you are using one suggests that you had an earlier problem with a conflict with a Connection class of your own. -
Hi All,
I am trying to connect to a Cloudscape database.
While the driver class - "com.ibm.db2j.jdbc.DB2jXADataSource" is getting loaded, DriverManager.getConnection(url) gives the follwoing exception:
java.sql.SQLException: No suitable driver
java.sql.DriverManager.getConnection(DriverManager.java:559)
java.sql.DriverManager.getConnection(DriverManager.java:211)
Can someone please tell me what could be the reason of my getting this error inspite of the driver class being loaded?
Thank you.
Regards,
Sunil.Either the driver has not been loaded, or the connect string is wrong. Put debugging output immediately before and after the Class.forName() call to make sure it is executed succesfully. Then check the connect string.
-
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..? -
Java.sql.SQLException: Closed Connection: next
java.sql.SQLException: Closed Connection: next
Here's the JDBC SELECT code:
Class.forName(driver);
con = DriverManager.getConnection(url, user, password);
stmt = con.createStatement();
rs = stmt.executeQuery(select_query);
while(rs.next()) /*Exception occurs on this line! */
Here's what I know:
I can connect to the instance using TORA ok.
The SQL query returns rows from TORA.
I believe the connections are ok because if I purposely mess up the syntax, I get back ORA-errors.
I can execute an INSERT statement ok from a servlet.
I'm using the classes12.zip drivers from the oracle jdbc installation directory.
I'm using the default JDK in WSAD 5.1
Thank you all for helping!
Ryan
[email protected]Ryan,
I'm only guessing, but I don't think that:
DriverManager.getConnection(url, user, password);is how to obtain a "Connection" object when using WSAD ("WebSphere", right?) -- even though I don't use WSAD, myself.
Is the java code you posted part of a POJO (Plain Old Java Object)? Or a servlet? Or an EJB? Or a JSP?
Remember, error messages can sometimes be misleading.
What Oracle database version are you using?
What platform are you using?
Good Luck,
Avi. -
Closed connection error when connection isn't being closed
Hi,
Currently I am trying to connect to an Oracle 11g database via JDBC. However, everytime I run the code I get the following error:
java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:439)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:653)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:338)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:490)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:133)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
The error comes from running the below code.
public static Connection connect(String url, String username, String password) {
Connection conn = null;
//String url = "";
// Load the driver
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (ClassNotFoundException cnfe) {
System.err.println("Oracle driver class cannot be found");
cnfe.printStackTrace();
System.exit(1);
// Get the connection
try{
conn = DriverManager.getConnection(url, username, password); *// This is the offending line*
} catch (SQLException sqle) {
System.err.println("Problem connecting, possibly incorrect " +
"username/password or problem communicating with the database");
sqle.printStackTrace();
System.exit(1);
}java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:439)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:653)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:338)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:490)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:133)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
// Turn auto commit off
try{
conn.setAutoCommit(false);
} catch (SQLException sqle) {
System.err.println("java.sql.SQLException: Closed Connection // This is the offending line
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:439)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:653)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:338)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:490)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:133)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)Problem turning off auto commit");
sqle.printStackTrace();
System.exit(1);
return conn;
but the connection is never closed, this is the first time connect is called so it is never opened either.
// This is the offending line
The URL I am using to connect is:
jdbc:oracle:oci8:@mydatabase:1158
The database is stored on a server. I have previously tested the code on a machine with the database stored locally and had no problems. However, ran into this problem now when the database is external. Incase this information helps the software is being run under Linux via Netbeans. The previous testing was performed using Netbeans under Windows.
Any help would be much appreciated.
Thanks,
MartinHi i am using the following code and i am getting the same error ....
public class DBConnection {
private static Connection con=null;
public DBConnection() {
System.out.println("In db Connection..");
public static Connection getConnectionObj(){
if(con==null){
con= new DBConnection().getConnection();
System.out.println("In db Connection.. if");
return con;
else{
System.out.println("In db Connection..else");
return con;
private Connection getConnection(){
Properties prop=new Properties();
FileWriter fw=null;
FileInputStream fis=null;
try{
File file=new File("Connection.properties");
fis=new FileInputStream(file);
prop.load(fis);
System.out.println(prop.getProperty("DriverName"));
System.out.println(prop.getProperty("URL"));
Class.forName(prop.getProperty("DriverName"));
System.out.println(prop.getProperty("DriverName"));
System.out.println(prop.getProperty("URL"));
con=DriverManager.getConnection(prop.getProperty("URL"),prop.getProperty("UserName"),prop.getProperty("Password"));
fis.close();
}catch(Exception e){
e.printStackTrace();
if(fw!=null){
try {
fw.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
if(fis!=null){
try {
fis.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
return con;
}I am not using the connection pool.
For the first request it is working fine but later request's it is giving the closed connection error.
Thanks in advance.
Edited by: EJP on 10/10/2011 20:28: added {noformat}{noformat} tags: please use them -
Closed Connection exceptions every day with WL813 SP3 and 10g
Every day we get closed connection exceptions (which I think in turn leads to Heuristic Hazard exceptions), the first time we run the tests after restarting Weblogic and database.
I tried various WL parameters so far but not with much luck. The parameters I tried include setting "Test Reserved Connections", "Test Created Connections", "Test Released Connections", "Connection Creation Retry Frequency", disabling "Allow Shrinking" etc.
I tried weblogic support but so far not much progress. Any help is greatly appreciated. Following are the log traces.
Server.log Fragment:
####<Mar 23, 2005 12:06:30 AM UTC> <Error> <JDBC> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <> <BEA-001112> <Test "select count(*) from dual" set up for pool "TruthPool" failed with exception: "java.sql.SQLException: Closed Connection".>
####<Mar 23, 2005 12:06:30 AM UTC> <Info> <JDBC> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <> <BEA-001128> <Connection for pool "TruthPool" closed.>
####<Mar 23, 2005 12:06:31 AM UTC> <Info> <JDBC> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <> <BEA-001067> <Connection for pool "TruthPool" refreshed.>
####<Mar 23, 2005 12:06:31 AM UTC> <Error> <JTA> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <BEA1-1B44D3A1A2E1DF26344B> <BEA-110412> <Name=[EJB com.opsware.list.PaginatedListBean.getList(int,int)],Xid=BEA1-1B44D3A1A2E1DF26344B(6341523),Status=Committed,HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds left=119,activeThread=Thread[ExecuteThread: '26' for queue: 'default',5,Thread Group for Queue: 'default'],XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=twist),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@c806dc,re-Registered = false),SCInfo[twist_domain+twist]=(state=committed),properties=({weblogic.transaction.name=[EJB com.opsware.list.PaginatedListBean.getList(int,int)], weblogic.jdbc=t3://192.168.198.5:1026}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=twist+192.168.198.5:1026+twist_domain+t3+, XAResources={},NonXAResources={})],CoordinatorURL=twist+192.168.198.5:1026+twist_domain+t3+) completed heuristically: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException: Closed Connection)) >
####<Mar 23, 2005 12:06:31 AM UTC> <Error> <EJB> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB com.opsware.list.PaginatedListBean.getList(int,int)],Xid=BEA1-1B44D3A1A2E1DF26344B(6341523),Status=Committed,HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds left=119,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=twist),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@c806dc,re-Registered = false),SCInfo[twist_domain+twist]=(state=committed),properties=({weblogic.transaction.name=[EJB com.opsware.list.PaginatedListBean.getList(int,int)], weblogic.jdbc=t3://192.168.198.5:1026}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=twist+192.168.198.5:1026+twist_domain+t3+, XAResources={},NonXAResources={})],CoordinatorURL=twist+192.168.198.5:1026+twist_domain+t3+): javax.transaction.HeuristicMixedException: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException: Closed Connection))
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:294)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:244)
at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:299)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:110)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
.>
JDBC Log:
JDBC log stream started at Tue Mar 22 22:44:30 UTC 2005
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@29a046]
DriverManager.getDriver("jdbc:oracle:oci:@")
trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@29a046]
getDriver returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@29a046]
registerDriver: driver[className=weblogic.jdbc.jts.Driver,weblogic.jdbc.jts.Driver@1c68b20]
registerDriver: driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@f0b51d]
SQLException: SQLState(23000) vendor code(1)
java.sql.SQLException: ORA-00001: unique constraint (TRUTH.TMP$ACCT_ID_PK) violated
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:630)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_describe(T2CPreparedStatement.java:851)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_rows(T2CPreparedStatement.java:1012)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8661)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:137)
at com.opsware.utils.SQLHelper.setFilterIds(SQLHelper.java:90)
at com.opsware.utils.SQLHelper.setFilterAcctIds(SQLHelper.java:45)
at com.opsware.list.impl.device.DeviceBaseList.getQuery(DeviceBaseList.java:178)
at com.opsware.list.impl.device.DeviceBaseList.getIds(DeviceBaseList.java:50)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getDeviceIds(DeviceServerGroupViewList.java:145)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getIds(DeviceServerGroupViewList.java:47)
at com.opsware.list.PaginatedListBean.init(PaginatedListBean.java:77)
at com.opsware.list.PaginatedListBean.getSize(PaginatedListBean.java:216)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getSize(PaginatedList_mywl9s_EOImpl.java:154)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(23000) vendor code(1)
java.sql.BatchUpdateException: ORA-00001: unique constraint (TRUTH.TMP$ACCT_ID_PK) violated
at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8726)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:137)
at com.opsware.utils.SQLHelper.setFilterIds(SQLHelper.java:90)
at com.opsware.utils.SQLHelper.setFilterAcctIds(SQLHelper.java:45)
at com.opsware.list.impl.device.DeviceBaseList.getQuery(DeviceBaseList.java:178)
at com.opsware.list.impl.device.DeviceBaseList.getIds(DeviceBaseList.java:50)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getDeviceIds(DeviceServerGroupViewList.java:145)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getIds(DeviceServerGroupViewList.java:47)
at com.opsware.list.PaginatedListBean.init(PaginatedListBean.java:77)
at com.opsware.list.PaginatedListBean.getSize(PaginatedListBean.java:216)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getSize(PaginatedList_mywl9s_EOImpl.java:154)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(23000) vendor code(1)
java.sql.SQLException: ORA-00001: unique constraint (TRUTH.TMP$DATA_CENTER_ID_PK) violated
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:630)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_describe(T2CPreparedStatement.java:851)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_rows(T2CPreparedStatement.java:1012)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8661)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:137)
at com.opsware.utils.SQLHelper.setFilterIds(SQLHelper.java:90)
at com.opsware.utils.SQLHelper.setFilterDcIds(SQLHelper.java:36)
at com.opsware.list.impl.device.DeviceBaseList.getQuery(DeviceBaseList.java:196)
at com.opsware.list.impl.device.DeviceBaseList.getIds(DeviceBaseList.java:50)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getDeviceIds(DeviceServerGroupViewList.java:145)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getIds(DeviceServerGroupViewList.java:47)
at com.opsware.list.PaginatedListBean.init(PaginatedListBean.java:77)
at com.opsware.list.PaginatedListBean.getSize(PaginatedListBean.java:216)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getSize(PaginatedList_mywl9s_EOImpl.java:154)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(23000) vendor code(1)
java.sql.BatchUpdateException: ORA-00001: unique constraint (TRUTH.TMP$DATA_CENTER_ID_PK) violated
at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8726)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:137)
at com.opsware.utils.SQLHelper.setFilterIds(SQLHelper.java:90)
at com.opsware.utils.SQLHelper.setFilterDcIds(SQLHelper.java:36)
at com.opsware.list.impl.device.DeviceBaseList.getQuery(DeviceBaseList.java:196)
at com.opsware.list.impl.device.DeviceBaseList.getIds(DeviceBaseList.java:50)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getDeviceIds(DeviceServerGroupViewList.java:145)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getIds(DeviceServerGroupViewList.java:47)
at com.opsware.list.PaginatedListBean.init(PaginatedListBean.java:77)
at com.opsware.list.PaginatedListBean.getSize(PaginatedListBean.java:216)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getSize(PaginatedList_mywl9s_EOImpl.java:154)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(42000) vendor code(936)
java.sql.SQLException: ORA-00936: missing expression
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:630)
at oracle.jdbc.driver.T2CStatement.execute_for_describe(T2CStatement.java:841)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:894)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:984)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1124)
at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
at com.opsware.impl.servergroup.ServerGroupSQL.refreshLocalCoreMemberships(ServerGroupSQL.java:897)
at com.opsware.ejb.session.ServerGroupFacadeBean.refreshMembershipsInLocalCore(ServerGroupFacadeBean.java:497)
at com.opsware._gen.sejb.ejb.session._ServerGroupFacadeBean._opsw__refreshMembershipsInLocalCore(_ServerGroupFacadeBean.java:10715)
at com.opsware._gen.sejb.ejb.session.ServerGroupFacade_686jy5_EOImpl._opsw__refreshMembershipsInLocalCore(ServerGroupFacade_686jy5_EOImpl.java:8902)
at com.opsware._gen.client.ejb.session._ServerGroupFacadeStub._opsw__refreshMembershipsInLocalCore(_ServerGroupFacadeStub.java:5096)
at com.opsware._gen.client.ejb.session._ServerGroupFacadeStub.refreshMembershipsInLocalCore(_ServerGroupFacadeStub.java:5091)
at com.opsware.impl.groupevent.Recalc.performFullRecalc(Recalc.java:204)
at com.opsware.impl.groupevent.Recalc$1.run(Recalc.java:573)
at java.lang.Thread.run(Thread.java:534)
SQLException: SQLState(60000) vendor code(600)
java.sql.SQLException: ORA-00600: internal error code, arguments: [kpofdr-long], [], [], [], [], [], [], []
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:630)
at oracle.jdbc.driver.T2CPreparedStatement.doDefineExecuteFetch(T2CPreparedStatement.java:1135)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_rows(T2CPreparedStatement.java:1010)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:913)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:984)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2885)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2926)
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:92)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.ejbFindByDvcRoleAndKey(DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.java:652)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.scalarFinder(RDBMSPersistenceManager.java:294)
at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:1662)
at weblogic.ejb20.manager.BaseEntityManager.localScalarFinder(BaseEntityManager.java:1611)
at weblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:462)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g_LocalHomeImpl.findByDvcRoleAndKey(DeviceRoleConfig_bbuo9g_LocalHomeImpl.java:132)
at com.opsware.impl.device.DeviceUtil.getAttributeNL(DeviceUtil.java:224)
at com.opsware.impl.device.DeviceUtil.getLockUser(DeviceUtil.java:308)
at com.opsware.vo.DeviceBaseVO.<init>(DeviceBaseVO.java:42)
at com.opsware.vo.DeviceSWVO.<init>(DeviceSWVO.java:21)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getList(DeviceServerGroupViewList.java:173)
at com.opsware.list.PaginatedListBean.getSubList(PaginatedListBean.java:173)
at com.opsware.list.PaginatedListBean.getList(PaginatedListBean.java:124)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:100)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:698)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:615)
at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:966)
at weblogic.jdbc.wrapper.PreparedStatement.reCreateStatement(PreparedStatement.java:48)
at weblogic.jdbc.wrapper.Statement.checkStatement(Statement.java:237)
at weblogic.jdbc.wrapper.Statement.close(Statement.java:300)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.releaseStatement(RDBMSPersistenceManager.java:3419)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.releaseResources(RDBMSPersistenceManager.java:3300)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.ejbFindByDvcRoleAndKey(DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.java:703)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.scalarFinder(RDBMSPersistenceManager.java:294)
at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:1662)
at weblogic.ejb20.manager.BaseEntityManager.localScalarFinder(BaseEntityManager.java:1611)
at weblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:462)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g_LocalHomeImpl.findByDvcRoleAndKey(DeviceRoleConfig_bbuo9g_LocalHomeImpl.java:132)
at com.opsware.impl.device.DeviceUtil.getAttributeNL(DeviceUtil.java:224)
at com.opsware.impl.device.DeviceUtil.getLockUser(DeviceUtil.java:308)
at com.opsware.vo.DeviceBaseVO.<init>(DeviceBaseVO.java:42)
at com.opsware.vo.DeviceSWVO.<init>(DeviceSWVO.java:21)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getList(DeviceServerGroupViewList.java:173)
at com.opsware.list.PaginatedListBean.getSubList(PaginatedListBean.java:173)
at com.opsware.list.PaginatedListBean.getList(PaginatedListBean.java:124)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:100)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:698)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:615)
at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:966)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:905)
at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java:350)
at weblogic.jdbc.wrapper.JTSConnection.prepareStatement(JTSConnection.java:479)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.ejbFindByDvcRoleAndKey(DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.java:632)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.scalarFinder(RDBMSPersistenceManager.java:294)
at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:1662)
at weblogic.ejb20.manager.BaseEntityManager.localScalarFinder(BaseEntityManager.java:1611)
at weblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:462)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g_LocalHomeImpl.findByDvcRoleAndKey(DeviceRoleConfig_bbuo9g_LocalHomeImpl.java:132)
at com.opsware.impl.device.DeviceUtil.getAttributeNL(DeviceUtil.java:224)
at com.opsware.impl.device.DeviceUtil.getLockComment(DeviceUtil.java:316)
at com.opsware.vo.DeviceBaseVO.<init>(DeviceBaseVO.java:43)
at com.opsware.vo.DeviceSWVO.<init>(DeviceSWVO.java:21)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getList(DeviceServerGroupViewList.java:173)
at com.opsware.list.PaginatedListBean.getSubList(PaginatedListBean.java:173)
at com.opsware.list.PaginatedListBean.getList(PaginatedListBean.java:124)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:100)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:698)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:615)
at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:966)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:905)
at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java:350)
at weblogic.jdbc.wrapper.JTSConnection.prepareStatement(JTSConnection.java:479)
at com.opsware.ejb.RoleClassWads_opugk0__WebLogic_CMP_RDBMS.ejbFindByRoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads__WL_(RoleClassWads_opugk0__WebLogic_CMP_RDBMS.java:1510)
at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.collectionFinder(RDBMSPersistenceManager.java:378)
at weblogic.ejb20.manager.BaseEntityManager.wrapperSetFinder(BaseEntityManager.java:1888)
at weblogic.ejb20.manager.BaseEntityManager.localWrapperSetFinder(BaseEntityManager.java:1859)
at com.opsware.ejb.RoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads_Set.populateCache(RoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads_Set.java:111)
at com.opsware.ejb.RoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads_Set.iterator(RoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads_Set.java:177)
at com.opsware.vo.DeviceSWVO.<init>(DeviceSWVO.java:35)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getList(DeviceServerGroupViewList.java:173)
at com.opsware.list.PaginatedListBean.getSubList(PaginatedListBean.java:173)
at com.opsware.list.PaginatedListBean.getList(PaginatedListBean.java:124)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:100)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:964)
at weblogic.jdbc.wrapper.JTSConnection.internalCommit(JTSConnection.java:404)
at weblogic.jdbc.wrapper.JTSXAResourceImpl.commit(JTSXAResourceImpl.java:56)
at weblogic.transaction.internal.XAServerResourceInfo.commit(XAServerResourceInfo.java:1251)
at weblogic.transaction.internal.XAServerResourceInfo.commit(XAServerResourceInfo.java:482)
at weblogic.transaction.internal.ServerSCInfo.startCommit(ServerSCInfo.java:421)
at weblogic.transaction.internal.ServerTransactionImpl.localCommit(ServerTransactionImpl.java:1803)
at weblogic.transaction.internal.ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:2434)
at weblogic.transaction.internal.ServerTransactionImpl.globalCommit(ServerTransactionImpl.java:2365)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:278)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:244)
at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:299)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:110)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed ConnectionDurga Gokina wrote:
Every day we get closed connection exceptions (which I think in turn leads to Heuristic Hazard exceptions), the first time we run the tests after restarting Weblogic and database.
I tried various WL parameters so far but not with much luck. The parameters I tried include setting "Test Reserved Connections", "Test Created Connections", "Test Released Connections", "Connection Creation Retry Frequency", disabling "Allow Shrinking" etc.
I tried weblogic support but so far not much progress. Any help is greatly appreciated. Following are the log traces.
Server.log Fragment:Hi. The jdbc log shows that some native code error is killing your type-2 JDBC connection,
and depending on what C bug it is, it could corrupt any other native connection or code.
I highly recommend you switch to a type-4 driver.
Joe
####<Mar 23, 2005 12:06:30 AM UTC> <Error> <JDBC> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <> <BEA-001112> <Test "select count(*) from dual" set up for pool "TruthPool" failed with exception: "java.sql.SQLException: Closed Connection".>
####<Mar 23, 2005 12:06:30 AM UTC> <Info> <JDBC> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <> <BEA-001128> <Connection for pool "TruthPool" closed.>
####<Mar 23, 2005 12:06:31 AM UTC> <Info> <JDBC> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <> <BEA-001067> <Connection for pool "TruthPool" refreshed.>
####<Mar 23, 2005 12:06:31 AM UTC> <Error> <JTA> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <BEA1-1B44D3A1A2E1DF26344B> <BEA-110412> <Name=[EJB com.opsware.list.PaginatedListBean.getList(int,int)],Xid=BEA1-1B44D3A1A2E1DF26344B(6341523),Status=Committed,HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds left=119,activeThread=Thread[ExecuteThread: '26' for queue: 'default',5,Thread Group for Queue: 'default'],XAS
erverResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=twist),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@c806dc,re-Registered = false),SCInfo[twist_domain+twist]=(state=committed),properties=({weblogic.transaction.name=[EJB com.opsware.list.PaginatedListBean.getList(int,int)], weblogic.jdbc=t3://192.168.198.5:1026}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=twist+192.168.198.5:102
6+twist_domain+t3+, XAResources={},NonXAResources={})],CoordinatorURL=twist+192.168.198.5:1026+twist_domain+t3+) completed heuristically: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException: Closed Connection)) >
####<Mar 23, 2005 12:06:31 AM UTC> <Error> <EJB> <m184.dev.opsware.com> <twist> <ExecuteThread: '26' for queue: 'default'> <<anonymous>> <> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB com.opsware.list.PaginatedListBean.getList(int,int)],Xid=BEA1-1B44D3A1A2E1DF26344B(6341523),Status=Committed,HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds left=119,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceI
nfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=twist),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@c806dc,re-Registered = false),SCInfo[twist_domain+twist]=(state=committed),properties=({weblogic.transaction.name=[EJB com.opsware.list.PaginatedListBean.getList(int,int)], weblogic.jdbc=t3://192.168.198.5:1026}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=twist+192.168.198.5:1026+twist_domain+t3+, XAResources={},NonXAResources={})],CoordinatorURL=twist
+192.168.198.5:1026+twist_domain+t3+): javax.transaction.HeuristicMixedException: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException: Closed Connection))
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:294)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:244)
at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:299)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:110)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
.>
JDBC Log:
JDBC log stream started at Tue Mar 22 22:44:30 UTC 2005
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@29a046]
DriverManager.getDriver("jdbc:oracle:oci:@")
trying driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@29a046]
getDriver returning driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@29a046]
registerDriver: driver[className=weblogic.jdbc.jts.Driver,weblogic.jdbc.jts.Driver@1c68b20]
registerDriver: driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@f0b51d]
SQLException: SQLState(23000) vendor code(1)
java.sql.SQLException: ORA-00001: unique constraint (TRUTH.TMP$ACCT_ID_PK) violated
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:630)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_describe(T2CPreparedStatement.java:851)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_rows(T2CPreparedStatement.java:1012)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8661)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:137)
at com.opsware.utils.SQLHelper.setFilterIds(SQLHelper.java:90)
at com.opsware.utils.SQLHelper.setFilterAcctIds(SQLHelper.java:45)
at com.opsware.list.impl.device.DeviceBaseList.getQuery(DeviceBaseList.java:178)
at com.opsware.list.impl.device.DeviceBaseList.getIds(DeviceBaseList.java:50)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getDeviceIds(DeviceServerGroupViewList.java:145)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getIds(DeviceServerGroupViewList.java:47)
at com.opsware.list.PaginatedListBean.init(PaginatedListBean.java:77)
at com.opsware.list.PaginatedListBean.getSize(PaginatedListBean.java:216)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getSize(PaginatedList_mywl9s_EOImpl.java:154)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(23000) vendor code(1)
java.sql.BatchUpdateException: ORA-00001: unique constraint (TRUTH.TMP$ACCT_ID_PK) violated
at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8726)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:137)
at com.opsware.utils.SQLHelper.setFilterIds(SQLHelper.java:90)
at com.opsware.utils.SQLHelper.setFilterAcctIds(SQLHelper.java:45)
at com.opsware.list.impl.device.DeviceBaseList.getQuery(DeviceBaseList.java:178)
at com.opsware.list.impl.device.DeviceBaseList.getIds(DeviceBaseList.java:50)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getDeviceIds(DeviceServerGroupViewList.java:145)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getIds(DeviceServerGroupViewList.java:47)
at com.opsware.list.PaginatedListBean.init(PaginatedListBean.java:77)
at com.opsware.list.PaginatedListBean.getSize(PaginatedListBean.java:216)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getSize(PaginatedList_mywl9s_EOImpl.java:154)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(23000) vendor code(1)
java.sql.SQLException: ORA-00001: unique constraint (TRUTH.TMP$DATA_CENTER_ID_PK) violated
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:630)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_describe(T2CPreparedStatement.java:851)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_rows(T2CPreparedStatement.java:1012)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8661)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:137)
at com.opsware.utils.SQLHelper.setFilterIds(SQLHelper.java:90)
at com.opsware.utils.SQLHelper.setFilterDcIds(SQLHelper.java:36)
at com.opsware.list.impl.device.DeviceBaseList.getQuery(DeviceBaseList.java:196)
at com.opsware.list.impl.device.DeviceBaseList.getIds(DeviceBaseList.java:50)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getDeviceIds(DeviceServerGroupViewList.java:145)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getIds(DeviceServerGroupViewList.java:47)
at com.opsware.list.PaginatedListBean.init(PaginatedListBean.java:77)
at com.opsware.list.PaginatedListBean.getSize(PaginatedListBean.java:216)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getSize(PaginatedList_mywl9s_EOImpl.java:154)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(23000) vendor code(1)
java.sql.BatchUpdateException: ORA-00001: unique constraint (TRUTH.TMP$DATA_CENTER_ID_PK) violated
at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8726)
at weblogic.jdbc.wrapper.PreparedStatement.executeBatch(PreparedStatement.java:137)
at com.opsware.utils.SQLHelper.setFilterIds(SQLHelper.java:90)
at com.opsware.utils.SQLHelper.setFilterDcIds(SQLHelper.java:36)
at com.opsware.list.impl.device.DeviceBaseList.getQuery(DeviceBaseList.java:196)
at com.opsware.list.impl.device.DeviceBaseList.getIds(DeviceBaseList.java:50)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getDeviceIds(DeviceServerGroupViewList.java:145)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getIds(DeviceServerGroupViewList.java:47)
at com.opsware.list.PaginatedListBean.init(PaginatedListBean.java:77)
at com.opsware.list.PaginatedListBean.getSize(PaginatedListBean.java:216)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getSize(PaginatedList_mywl9s_EOImpl.java:154)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(42000) vendor code(936)
java.sql.SQLException: ORA-00936: missing expression
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:630)
at oracle.jdbc.driver.T2CStatement.execute_for_describe(T2CStatement.java:841)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:894)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:984)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1124)
at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
at com.opsware.impl.servergroup.ServerGroupSQL.refreshLocalCoreMemberships(ServerGroupSQL.java:897)
at com.opsware.ejb.session.ServerGroupFacadeBean.refreshMembershipsInLocalCore(ServerGroupFacadeBean.java:497)
at com.opsware._gen.sejb.ejb.session._ServerGroupFacadeBean._opsw__refreshMembershipsInLocalCore(_ServerGroupFacadeBean.java:10715)
at com.opsware._gen.sejb.ejb.session.ServerGroupFacade_686jy5_EOImpl._opsw__refreshMembershipsInLocalCore(ServerGroupFacade_686jy5_EOImpl.java:8902)
at com.opsware._gen.client.ejb.session._ServerGroupFacadeStub._opsw__refreshMembershipsInLocalCore(_ServerGroupFacadeStub.java:5096)
at com.opsware._gen.client.ejb.session._ServerGroupFacadeStub.refreshMembershipsInLocalCore(_ServerGroupFacadeStub.java:5091)
at com.opsware.impl.groupevent.Recalc.performFullRecalc(Recalc.java:204)
at com.opsware.impl.groupevent.Recalc$1.run(Recalc.java:573)
at java.lang.Thread.run(Thread.java:534)
SQLException: SQLState(60000) vendor code(600)
java.sql.SQLException: ORA-00600: internal error code, arguments: [kpofdr-long], [], [], [], [], [], [], []
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:630)
at oracle.jdbc.driver.T2CPreparedStatement.doDefineExecuteFetch(T2CPreparedStatement.java:1135)
at oracle.jdbc.driver.T2CPreparedStatement.execute_for_rows(T2CPreparedStatement.java:1010)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:913)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:984)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2885)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2926)
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:92)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.ejbFindByDvcRoleAndKey(DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.java:652)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.scalarFinder(RDBMSPersistenceManager.java:294)
at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:1662)
at weblogic.ejb20.manager.BaseEntityManager.localScalarFinder(BaseEntityManager.java:1611)
at weblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:462)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g_LocalHomeImpl.findByDvcRoleAndKey(DeviceRoleConfig_bbuo9g_LocalHomeImpl.java:132)
at com.opsware.impl.device.DeviceUtil.getAttributeNL(DeviceUtil.java:224)
at com.opsware.impl.device.DeviceUtil.getLockUser(DeviceUtil.java:308)
at com.opsware.vo.DeviceBaseVO.<init>(DeviceBaseVO.java:42)
at com.opsware.vo.DeviceSWVO.<init>(DeviceSWVO.java:21)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getList(DeviceServerGroupViewList.java:173)
at com.opsware.list.PaginatedListBean.getSubList(PaginatedListBean.java:173)
at com.opsware.list.PaginatedListBean.getList(PaginatedListBean.java:124)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:100)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:698)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:615)
at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:966)
at weblogic.jdbc.wrapper.PreparedStatement.reCreateStatement(PreparedStatement.java:48)
at weblogic.jdbc.wrapper.Statement.checkStatement(Statement.java:237)
at weblogic.jdbc.wrapper.Statement.close(Statement.java:300)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.releaseStatement(RDBMSPersistenceManager.java:3419)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.releaseResources(RDBMSPersistenceManager.java:3300)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.ejbFindByDvcRoleAndKey(DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.java:703)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.scalarFinder(RDBMSPersistenceManager.java:294)
at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:1662)
at weblogic.ejb20.manager.BaseEntityManager.localScalarFinder(BaseEntityManager.java:1611)
at weblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:462)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g_LocalHomeImpl.findByDvcRoleAndKey(DeviceRoleConfig_bbuo9g_LocalHomeImpl.java:132)
at com.opsware.impl.device.DeviceUtil.getAttributeNL(DeviceUtil.java:224)
at com.opsware.impl.device.DeviceUtil.getLockUser(DeviceUtil.java:308)
at com.opsware.vo.DeviceBaseVO.<init>(DeviceBaseVO.java:42)
at com.opsware.vo.DeviceSWVO.<init>(DeviceSWVO.java:21)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getList(DeviceServerGroupViewList.java:173)
at com.opsware.list.PaginatedListBean.getSubList(PaginatedListBean.java:173)
at com.opsware.list.PaginatedListBean.getList(PaginatedListBean.java:124)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:100)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:698)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:615)
at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:966)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:905)
at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java:350)
at weblogic.jdbc.wrapper.JTSConnection.prepareStatement(JTSConnection.java:479)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.ejbFindByDvcRoleAndKey(DeviceRoleConfig_bbuo9g__WebLogic_CMP_RDBMS.java:632)
at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.scalarFinder(RDBMSPersistenceManager.java:294)
at weblogic.ejb20.manager.BaseEntityManager.scalarFinder(BaseEntityManager.java:1662)
at weblogic.ejb20.manager.BaseEntityManager.localScalarFinder(BaseEntityManager.java:1611)
at weblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:462)
at com.opsware.ejb.DeviceRoleConfig_bbuo9g_LocalHomeImpl.findByDvcRoleAndKey(DeviceRoleConfig_bbuo9g_LocalHomeImpl.java:132)
at com.opsware.impl.device.DeviceUtil.getAttributeNL(DeviceUtil.java:224)
at com.opsware.impl.device.DeviceUtil.getLockComment(DeviceUtil.java:316)
at com.opsware.vo.DeviceBaseVO.<init>(DeviceBaseVO.java:43)
at com.opsware.vo.DeviceSWVO.<init>(DeviceSWVO.java:21)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getList(DeviceServerGroupViewList.java:173)
at com.opsware.list.PaginatedListBean.getSubList(PaginatedListBean.java:173)
at com.opsware.list.PaginatedListBean.getList(PaginatedListBean.java:124)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:100)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:698)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:615)
at weblogic.jdbc.common.internal.ConnectionEnv.makeStatement(ConnectionEnv.java:1133)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:966)
at weblogic.jdbc.common.internal.ConnectionEnv.getCachedStatement(ConnectionEnv.java:905)
at weblogic.jdbc.wrapper.Connection.prepareStatement(Connection.java:350)
at weblogic.jdbc.wrapper.JTSConnection.prepareStatement(JTSConnection.java:479)
at com.opsware.ejb.RoleClassWads_opugk0__WebLogic_CMP_RDBMS.ejbFindByRoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads__WL_(RoleClassWads_opugk0__WebLogic_CMP_RDBMS.java:1510)
at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.collectionFinder(RDBMSPersistenceManager.java:378)
at weblogic.ejb20.manager.BaseEntityManager.wrapperSetFinder(BaseEntityManager.java:1888)
at weblogic.ejb20.manager.BaseEntityManager.localWrapperSetFinder(BaseEntityManager.java:1859)
at com.opsware.ejb.RoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads_Set.populateCache(RoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads_Set.java:111)
at com.opsware.ejb.RoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads_Set.iterator(RoleClasses_nx2si8__WebLogic_CMP_RDBMS_roleClassWads_Set.java:177)
at com.opsware.vo.DeviceSWVO.<init>(DeviceSWVO.java:35)
at com.opsware.list.impl.device.DeviceServerGroupViewList.getList(DeviceServerGroupViewList.java:173)
at com.opsware.list.PaginatedListBean.getSubList(PaginatedListBean.java:173)
at com.opsware.list.PaginatedListBean.getList(PaginatedListBean.java:124)
at com.opsware.list.PaginatedList_mywl9s_EOImpl.getList(PaginatedList_mywl9s_EOImpl.java:100)
at com.opsware.list.PaginatedList_mywl9s_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:90)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(null) vendor code(17008)
java.sql.SQLException: Closed Connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:964)
at weblogic.jdbc.wrapper.JTSConnection.internalCommit(JTSConnection.java:404)
at weblogic.jdbc.wrapper.JTSXAResourceImpl.commit(JTSXAResourceImpl.java:56)
at weblogic.transaction.internal.XAServerResourceInfo.commit(XAServerResourceInfo.java:1251)
at weblogic.transaction.internal.XAServerResourceInfo.commit(XAServerResourceInfo.java:482)
at weblogic.transaction.internal.ServerSCInfo.startCommit(ServerSCInfo.java:421)
at weblogic.transaction.internal.ServerTransactionImpl.localCommit(ServerTransactionImpl.java:1803)
at weblogic.transaction.internal.ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:2434)
at weblogic.transaction.internal.ServerTransactionImpl.globalCommit(ServerTransactionImpl.java:2365)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:278)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:244)
at weblogic.ejb20.internal.Bas -
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. -
Problems with setting DriverManager.getConnection as a variable
HI,
I was wondering if someone could help me out with a problem i have. I am trying to read in the url, user name and password from an external file, and then add it to con = DriverManager.getConnection(IN HERE);
I know that i can connect to the database and retrieve information by entering the connection in the following format: ("jdbc:mysql://url:3306/database","userName","password"). But i want to be able to read this line from an external file. When trying to do so i keep getting back the following error in the console window:
Exception in thread "main" java.sql.SQLException: No suitable driver found for "jdbc:mysql://url:3306/database","userName","password"
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
at fast.JDBC.openDB(JDBC.java:68)
at fast.JDBC.main(JDBC.java:40)
Any help with this would be appreciated!
I am using the following code:
public class JDBC { private Connection con; public static String filePath = "C:\\Users\\Documents\\Connector.txt"; public static String sql = ("SELECT * FROM users"); public String readFileAsString(String filePath) throws IOException { //Read connector from a file byte[] connectionDB = new byte[(int) new File(filePath).length()]; BufferedInputStream f = new BufferedInputStream(new FileInputStream(filePath)); f.read(connectionDB); return new String (connectionDB); }//Close readFileAsString public static void main (String[] Args) throws Exception { JDBC j = new JDBC(); j.openDB(); j.readDB(sql); //System.out.println(j.readFileAsString(filePath)); } /** * Process for creating a connection to a database * @return * @throws Exception */ public boolean openDB() throws Exception { boolean connected = false; JDBC j = new JDBC(); String connectionDB = j.readFileAsString(filePath); System.out.println(connectionDB); //Load Drive Class.forName("com.mysql.jdbc.Driver"); //Establish connection to database try { con = DriverManager.getConnection(connectionDB); } finally { connected = true; } return connected; }//close openDBThis is what I did for my OracleDb which required that I download a driver from the Oracle Site. You install the driver and then link the driver through the DriverManager object. It looks like your using a local JDB database - which I have never had to make use of. Here is my code for the OraceXE database. Hope this helps.
Public Class GenericCnn Object
private String _urlDbCnn = ""; // the JDBC url to the database
private String _username = ""; // a valid username to access the database
private String _password = ""; // a valid password to access the database
private String _dbDriver = ""; // a valid JDBC driver
private Connection _cnn = null; // this will be the active connection
private String _sqlStatement = null; // this will be the statement to execute against the database
public DbConnection(){
this("oracle.jdbc.OracleDriver",
"jdbc:oracle:thin:@//192.168.15.200:1521/xe",
"usernamehere,
"passwordhere");
} // constructor - nothing
public DbConnection(String nwDbDriver, String nwDbURL,
String nwDbUsername, String nwDbPassword){
this.setDbDriver(nwDbDriver);
this.setUrlDbCnn(nwDbURL);
this.setUsername(nwDbUsername);
this.setPassword(nwDbPassword);
} // constructor - DbDriver, DbUrl, DbUser, DbPassword
private void initializeConnection(){
// try - get database driver
try{
DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
// try - initialize the database connection
try{
this._cnn = DriverManager.getConnection(this._urlDbCnn,
this._username,
this._password);
}catch(SQLException e){
ErrorTrap trap = new ErrorTrap(ErrorTrapMessage.DataConnectionNotIntitialized, e);
} // catch - try and initialize the database connection
}catch(SQLException e){
ErrorTrap trap = new ErrorTrap(ErrorTrapMessage.DataConnectionDriverFailedToLoad, e);
} // catch - try and get database driver
} // method - OpenConnection
.. executeTransaction -> calls initializeConnection
.. executeQuery - > calls initialzieConnection
.. properties
Edited by: Monkey247 on Jan 26, 2010 10:27 AM -
RuntimeException while calling DriverManager.getConnection()
While trying to open my H2 database recently, I've run into an
exception that hasn't been happening in the past. The only thing I
can think of that has changed is that I moved the database from a
networked PC to my development PC, but I know that the connection has
worked since I made the move.
What is happening is that when I make the following call:
DriverManager.getConnection ("jdbc:h2:file:///C:/PECImageSearchDB/PECImageSearchDB;TRACE_LEVEL_FILE=0;TRACE_LEVEL_SYSTEM_OUT=0");
I get the following Exception:
org.h2.jdbc.JdbcSQLException: General error: java.lang.RuntimeException: file utils error: C:\PECImageSearchDB\PECImageSearchDB does not start with C:\PECImageSearchDB/[50000-118]
I have moved the database back to the networked PC in the original location and I am getting the same error except with the new driver letter (E:) replacing the C:.It's seems to be a bug, but not sure, it was just a quick check. Try to read this.
-
Closed Connection on SQL Developer 2.1.1.64 for Windows x64
Hi
I trying connect do database 10GR2. SQL Developer connects normally. I run select (select sysdate from dual) and log shows: Closed Connection.
32bit SQL Developer works normally.
This behavior is on some databases. Others databases work normally.
Thanks, Petr BenesHi,
Im using SQL DEveloper 3.0.03.45 and have installed Oracle DB 11g on VM server. I am also facing same issue. This configuration was workin fine for few months .. but now after each 5/6 minuites connection get reset and I have to reconnect again. It gives *"Closed Connecton -- vender code ORA-17008 "*
please help if u hav got any solution for this.
Thanks in advance,
Priyanka
Edited by: 850818 on Apr 8, 2011 12:37 AM
Edited by: 850818 on Apr 8, 2011 12:37 AM
Maybe you are looking for
-
if i have putiple classes in a single file then if a clas declared as public then the file name shoud me same as class name.... why? if i declare two public class in a same source fiel what will happen???????? plz help................ thanks in advan
-
CJE0 - REMOVE A VARIABLE FROM TAB 'VARIABLES'
Hi , I'm modifying a custom report creat by third party . I'm not able to remove the variable Object currency (it's shown in the selection screen of the report) as I don't see any button which lets me change(also in change mode) , the variables prese
-
Hi, I have a WLC 5508 connected in a hub and spoke topology. The WLC is located at the hub which is the main office. In one of the remote spoke locations I have five Access Points that are connected to the local LAN and the model for the APs is AIR-C
-
Any way to convert a PrintRequestAttributeSet to a PageFormat?
I have a "PrinterHelper" that pops up dialogs and tries it's best to make printing easy among many different types of windows. The problem I'm having is that I have a Print Preview dialog, which I need a PageFormat so that I can render the "preview"
-
Does anyone know if you can run a remote desktop from your mac to the AppleTV? I am considering the purchase of the AppleTV device, and if I could run a remote desktop, the decision would be easy. Thanks!!