IBM DB2 Universal JDBC (Type 4)
Has anyone have had an opportunity to configure the connection pool using IBM DB2 Universal JDBC, specifically the Type 4? If you can point me in the right direction, I would greatly appreciate it.
We are currently using Weblogic versino 8.1.4.
Binh Dao wrote:
Has anyone have had an opportunity to configure the connection pool using IBM DB2 Universal JDBC, specifically the Type 4? If you can point me in the right direction, I would greatly appreciate it.
We are currently using Weblogic versino 8.1.4.Hi. It should be easy. Please edit the start-weblogic scritp
to add a line like:
set CLASSPATH=\my\full\path\ibm.jar;%CLASSPATH%
to get whatever the driver needs in the classpath.
Then show me a few lines of code from an IBM JDBC
example program that successfully creates a JDBC
connection to the DBMS you want. Then I'll tell
you how to configure the pool.
Joe
Similar Messages
-
Db2 - bea jdbc type 4 driver error - cursor not in a prepared state
Hi
I am getting this error from BEA DB2 Driver in weblogic console.
java.sql.SQLException: [BEA][DB2 JDBC Driver][DB2]CURSOR C02 NOT IN A
PREPARED STATE
This problem occurs frequently almost everyday.
When this error happens we clear the statement cache by logging in to the weblogic console (which clears the cache of prepared and callable statements maintained for each connection in the connection pool), and will be able to proceed till the error comes up again!
Has anyone come across this type of error?
DB2 UDB V8.1 Fixpack 4 on Solaris
Weblogic V8.1 SP2
Thanks
Sireesh.We have seen that error as well. When using entity beans, we could do some creates, but then we would get the Cursor error. It would happen sporadically.
IBM now has better Type 4 drivers with version 8.2, we are having better luck with them then with the BEA drivers. -
IBM U2 Universe JDBC or ODBC, Can't connect
Hi, I can't find a definite answer on the forums, so I will
post this here. I'm trying to set up a JDBC or ODBC connection to a
Universe 10.0 database.
I've been able to setup both the ODBC and JDBC drivers in
other programs, but coldfusion still isn't working properly.
The ODBC connection will verify, but when you try to do
anything, you get the error "invalid argument value" everytime,
making it useless.
The JDBC connection has offered more success, but is still
useless. SELECT statements work 100% and don't give a problem.
UPDATE, INSERT, or DELETE statements will work and update the
database, but the .cfm page loads constantly until it hits the
timeout period and throws an error. It's like the server is not
responding back from anything but SELECT statements.
If there is any updates on the status of these problems,
please let me know, because I can't find any solid solutions on the
net.No, the JdbcOdbc bridge appears to be calling it.
I'll look for an option; where on earth do I find
documentation on it?Notice the part where I said noted that it might be obscure or not documented at all?
The most likely place is to find the source code for the ODBC driver and hope it has documentation. It might also be documented in the source code itself.
>
Is it allowed to hack the JdbcOdbc code? I was under
the impression that accepting the Sun licence limited
that option. The driver comes with Jdk 1.4. :-$
Yes, as long as you do not distribute it. -
Hello,
On page 36 of the DF XI3.0 Installation Guide, there is a link for the IBM DB2 JDBC Universal Driver. When I click on this link I get the following error:
Downloads Message
2005-01-13 12:10:16.882164R download was not found in the database
Thanks for the help!
JasonHello
Thanks Scott for your reply. We have resolved this issue in house as follows:
- our Systems Support team installed the DB2 Connect client software on the DF server
- copied the jar file to the leselect/drivers directory
Also, because we are using the z series we needed an additional driver db2jcc_license_cisuz.jar which was copied into the same drivers dir.
Thanks!
Jason -
What's wrong with COM.ibm.db2.jdbc.app.DB2Driver?
Hello everybody,
first of all I posted this on
http://www-105.ibm.com/developerworks/java_df.nsf/AllViewTemplate?OpenForm&RestrictToCategory=33
so you can check the IBM forum as well, may be some IBM gurus can comment this...
I'm using the COM.ibm.db2.jdbc.app.Driver shipped with DB2Connect v6.1, v7.1 (tested both on NT and SunOS 5.6, 5.8), the database is DB2 v6, v7 running on an OS390. I am pretty confused:DatabaseMetaData.getProcedureColumns(catalog, schemaPattern, namePattern)cannot handle the namePattern parameter correct. It works only with "", null and "%". Passing any other value results in :COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2] SQL0206N "PROCEDURE " ist in dem verwendeten Kontext ung�ltig. SQLSTATE=42703
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:241)
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:186)
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_return_code(SQLExceptionGenerator.java:419)
at COM.ibm.db2.jdbc.app.DB2DatabaseMetaData.getProcedures(DB2DatabaseMetaData.java:1446)I think that even if the pattern doesn't match any procedure the function should return an empty ResultSet. The only "solution" is to scroll all the procedures in the ResultSet until you find the passing ones. Does IBM think this is serious?
I have dug a bit and found another incompatibitly with the JDBC specification: the names of the result set columns returned by DatabaseMetaData.getProcedureColumns() as returned by the DB2Driver:
PROCEDURE_CAT
PROCEDURE_SCHEM
PROCEDURE_NAME
COLUMN_NAME
COLUMN_TYPE
DATA_TYPE
TYPE_NAME
COLUMN_SIZE
BUFFER_LENGTH
DECIMAL_DIGITS
NUM_PREC_RADIX
NULLABLE
REMARKS
Here comes the JDBC specification:
<quote>
Each procedure description has the the following columns:
PROCEDURE_CAT String => procedure catalog (may be null)
PROCEDURE_SCHEM String => procedure schema (may be null)
PROCEDURE_NAME String => procedure name
COLUMN_NAME String => column/parameter name
COLUMN_TYPE Short => kind of column/parameter:
procedureColumnUnknown - nobody knows
procedureColumnIn - IN parameter
procedureColumnInOut - INOUT parameter
procedureColumnOut - OUT parameter
procedureColumnReturn - procedure return value
procedureColumnResult - result column in ResultSet
DATA_TYPE short => SQL type from java.sql.Types
TYPE_NAME String => SQL type name, for a UDT type the type name is fully qualified
PRECISION int => precision
LENGTH int => length in bytes of data
SCALE short => scale
RADIX short => radix
NULLABLE short => can it contain NULL.
procedureNoNulls - does not allow NULL values
procedureNullable - allows NULL values
procedureNullableUnknown - nullability unknown
REMARKS String => comment describing parameter/column </quote>
I would appreciate your comments.
Regards,
Anton Maleev
IT Consultant, Software Engineer
Frankfurt, Germany
mailto: [email protected]Futhermore, when you call DatabaseMetaData.getProcedures(catalog, schemaPattern, "%") when you specified schemaPattern it returns all the procedures no mather if the schema matches the pattern...
-
DB2 v7.1 JDBC type 4 drivers?
Hello,
Does any one have a link to IBM DB2 JDBC type 4 drivers? I can't find anything
from IBM site. IBM sites are very confusing to navigate and it is impossible to
find any using information.
Thanks,
Minh HuynhIf you need JDBC2.0 feature, use the one under
sqllib\java2\db2java.zip
you have to run usejdbc2.bat before you use that driver.
And IBM ships Type2 and Type3 driver(the net driver), Merant ships
Type 4 DB2 driver for IBM. IBM type3 driver doesn't perform good as
the type2 driver.
Simon Song
On Thu, 31 Jan 2002 09:47:42 +1100, Stephen Davies <[email protected]>
wrote:
Minh Huynh,
The DB2 driver ship with DB2. You will find both the type 2 and type 4
drivers in the \sqllib\java\db2java.zip file. The class
COM.ibm.db2.jdbc.net.DB2Driver implements the type 4 driver.
Regards,
Stephen
Stephen Davies
Principal Consultant
eGlobal Services Pty. Ltd.
Sydney, Australia
Ph. +61 2 9283 1033
http://www.eglobal.net/ -
Class not found error for COM.ibm.db2.jdbc.app.DB2Driver
i have written this code:
import java.io.*;
import java.sql.*;
public class tryjdbc
{ public static void main (String args[])
{ try
{ Class.forName("COM.ibm.db2.jdbc.app.DB2Driver"); }
catch (java.lang.ClassNotFoundException e)
{ System.out.print(e.getMessage()); }
and once i try to run it, it gives out a class not found exception error.
I haven't changed anything with the classpath since I don't think the problem is with the classpath. I have read in the IBM Developer Kit for Java documentaton that the AS/400 Developer Kit for Java automatically adds the db2_class.jar file to the classpath. So why do I get a class not found exception error?I was using Web Spehere 4.0.3 and trying to connect to a database on DB2 7.2. I was just following a tutorial and trying to get a handle on Web Sphere. I am running all of these on a Windows 2000 Operating System. Here are some of my observations :
a. db2java.zip packaged under %DB2ROOT%\SQLLIB\JAVA, does not work.
b. CLASSPATH needs to be set to %DB2ROOT%\sqllib\java12\db2java.zip
c. Include this as one of the packages in the package defined in
WebSphere, using the Java Perspective.
d. Ensure that case sensitivity is respected. All though the package
shows up as COM.ibm.db2.jdbc.app.DB2Driver, for some reason, it
will only accept com.ibm.db2.jdbc.app.DB2Driver.
With these settings, I was able to connect to a db2 database.
I am a little puzzled on the following. I did not include java.io package, but still it could print the messages. Did anybody have a similar experience
Thanks for this posting. -
DB2 7.0.2 problem with jdbc type 2 app-driver (CLI0601E / CLI0616E)
Hi folks,
has anybody encounters an exception like this:
javax.jdo.JDODataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.COMMENTX, t0.GKX,
t0.NRX, t0.REFERENZX, t0.SALDOX, t0.SALDOTYPX, t0.TIMEX, t0.TYPX,
t0.USERX, t0.USERIDX, t0.ZINSENX FROM KontoRevision t0 WHERE t0.REFERENZX
= 8]
[PRE=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.COMMENTX, t0.GKX,
t0.NRX, t0.REFERENZX, t0.SALDOX, t0.SALDOTYPX, t0.TIMEX, t0.TYPX,
t0.USERX, t0.USERIDX, t0.ZINSENX FROM KontoRevision t0 WHERE t0.REFERENZX
= ?]
[IBM][JDBC-Treiber] CLI0601E Ung__ltige Anweisungskennung oder Anweisung
ist beendet. SQLSTATE=S1000 [code=-99999;state=S1000]
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.COMMENTX, t0.GKX,
t0.NRX, t0.REFERENZX, t0.SALDOX, t0.SALDOTYPX, t0.TIMEX, t0.TYPX,
t0.USERX, t0.USERIDX, t0.ZINSENX FROM KontoRevision t0 WHERE t0.REFERENZX
= 8]
[PRE=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.COMMENTX, t0.GKX,
t0.NRX, t0.REFERENZX, t0.SALDOX, t0.SALDOTYPX, t0.TIMEX, t0.TYPX,
t0.USERX, t0.USERIDX, t0.ZINSENX FROM KontoRevision t0 WHERE t0.REFERENZX
= ?]
[IBM][JDBC-Treiber] CLI0601E Ung__ltige Anweisungskennung oder Anweisung
ist beendet. SQLSTATE=S1000
at
com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExceptions.java:23)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.load(JDBCStoreManager.java:381)
at
com.solarmetric.kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:1987)
at
com.solarmetric.kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:721)
at de.tolina.nachlass.data.Konto.jdoGetrevisions(Konto.java)
at de.tolina.nachlass.data.Konto.jdoPreDelete(Konto.java:58)
at
com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:313)
at
com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:287)
at
com.solarmetric.kodo.runtime.StateManagerImpl.deletePersistent(StateManagerImpl.java:492)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.deletePersistentFilter(PersistenceManagerImpl.java:1213)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.deletePersistent(PersistenceManagerImpl.java:1193)
at de.tolina.common.gui.binder.Binder.deleteDataObject(Binder.java:104)
at
de.tolina.nachlass.gui.KontoPanel$2.actionPerformed(KontoPanel.java:88)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1445)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1499)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:373)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:245)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:211)
at java.awt.Component.processMouseEvent(Component.java:3710)
at java.awt.Component.processEvent(Component.java:3539)
at java.awt.Container.processEvent(Container.java:1159)
at java.awt.Component.dispatchEventImpl(Component.java:2588)
at java.awt.Container.dispatchEventImpl(Container.java:1208)
at java.awt.Component.dispatchEvent(Component.java:2492)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2446)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2211)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2120)
at java.awt.Container.dispatchEventImpl(Container.java:1195)
at java.awt.Window.dispatchEventImpl(Window.java:923)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
NestedThrowablesStackTrace:
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC-Treiber] CLI0601E Ung__ltige
Anweisungskennung oder Anweisung ist beendet. SQLSTATE=S1000
at
COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throwClosedError(SQLExceptionGenerator.java:593)
at
COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2(DB2PreparedStatement.java:832)
at
COM.ibm.db2.jdbc.app.DB2PreparedStatement.executeQuery(DB2PreparedStatement.java:786)
at
com.solarmetric.datasource.PreparedStatementWrapper.executeQuery(PreparedStatementWrapper.java:93)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:771)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:691)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:372)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:356)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:1221)
at
com.solarmetric.kodo.impl.jdbc.ormapping.OneToManyMapping.load(OneToManyMapping.java:80)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.load(JDBCStoreManager.java:375)
at
com.solarmetric.kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:1987)
at
com.solarmetric.kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:721)
at de.tolina.nachlass.data.Konto.jdoGetrevisions(Konto.java)
at de.tolina.nachlass.data.Konto.jdoPreDelete(Konto.java:58)
at
com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:313)
at
com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:287)
at
com.solarmetric.kodo.runtime.StateManagerImpl.deletePersistent(StateManagerImpl.java:492)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.deletePersistentFilter(PersistenceManagerImpl.java:1213)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.deletePersistent(PersistenceManagerImpl.java:1193)
at de.tolina.common.gui.binder.Binder.deleteDataObject(Binder.java:104)
at
de.tolina.nachlass.gui.KontoPanel$2.actionPerformed(KontoPanel.java:88)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1445)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1499)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:373)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:245)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:211)
at java.awt.Component.processMouseEvent(Component.java:3710)
at java.awt.Component.processEvent(Component.java:3539)
at java.awt.Container.processEvent(Container.java:1159)
at java.awt.Component.dispatchEventImpl(Component.java:2588)
at java.awt.Container.dispatchEventImpl(Container.java:1208)
at java.awt.Component.dispatchEvent(Component.java:2492)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2446)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2211)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2120)
at java.awt.Container.dispatchEventImpl(Container.java:1195)
at java.awt.Window.dispatchEventImpl(Window.java:923)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
de.tolina.common.gui.binder.BinderException: Fehler beim L__schen des
Objekts aufgetreten
at de.tolina.common.gui.binder.Binder.deleteDataObject(Binder.java:112)
at
de.tolina.nachlass.gui.KontoPanel$2.actionPerformed(KontoPanel.java:88)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1445)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1499)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:373)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:245)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:211)
at java.awt.Component.processMouseEvent(Component.java:3710)
at java.awt.Component.processEvent(Component.java:3539)
at java.awt.Container.processEvent(Container.java:1159)
at java.awt.Component.dispatchEventImpl(Component.java:2588)
at java.awt.Container.dispatchEventImpl(Container.java:1208)
at java.awt.Component.dispatchEvent(Component.java:2492)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2446)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2211)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2120)
at java.awt.Container.dispatchEventImpl(Container.java:1195)
at java.awt.Window.dispatchEventImpl(Window.java:923)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
kodo.properties:
com.solarmetric.kodo.impl.jdbc.FlatInheritanceMapping=true
javax.jdo.option.MsWait=50000
javax.jdo.option.RestoreValues=true
com.solarmetric.kodo.DefaultFetchThreshold=30
com.solarmetric.kodo.EnableQueryExtensions=false
javax.jdo.option.Multithreaded=true
javax.jdo.option.IgnoreCache=false
com.solarmetric.kodo.CacheReferenceSize=1000
javax.jdo.option.NontransactionalWrite=false
com.solarmetric.kodo.impl.jdbc.WarnOnPersistentTypeFailure=true
javax.jdo.option.NontransactionalRead=true
javax.jdo.option.RetainValues=true
com.solarmetric.kodo.DefaultFetchBatchSize=10
com.solarmetric.kodo.impl.jdbc.SequenceFactoryClass=com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory
com.solarmetric.kodo.DataCacheClass=
com.solarmetric.kodo.UseSoftTransactionCache=false
com.solarmetric.kodo.ProxyManagerClass=com.solarmetric.kodo.util.SimpleProxyManager
javax.jdo.option.Optimistic = true
javax.jdo.option.MinPool=1
javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory
com.solarmetric.kodo.impl.jdbc.AutoReturnTimeout=10
javax.jdo.option.MaxPool=10
# kodo 2.4-license-key, in produktionsversion im java-code
com.solarmetric.kodo.LicenseKey =
# db2
javax.jdo.option.ConnectionURL = jdbc:db2:myapp
javax.jdo.option.ConnectionDriverName = COM.ibm.db2.jdbc.app.DB2Driver
javax.jdo.option.ConnectionUserName = xxx
javax.jdo.option.ConnectionPassword = xxx
# oracle
#javax.jdo.option.ConnectionURL = jdbc:oracle:thin:@SESCG:1521:myapp
#javax.jdo.option.ConnectionDriverName = oracle.jdbc.driver.OracleDriver
#javax.jdo.option.ConnectionUserName = xxx
#javax.jdo.option.ConnectionPassword = xxx
I think there is a connection between this error and bug #520 in kodos bug
db.
The message of the CLI means, that either the connection is closed before
the prepared statement is completed or the statement itself is closed...
Sometimes I get also CLI0116E-Error (invalid transaction state).
Anyone an idea?
PS: we bought a kodo license and would't like to be sorry about that - so
please help!!
Best regards ClaudiusClaudius-
There are a couple possibilities. First, it might be some JDBC driver
mismatch, as reported at:
http://www-3.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/document.d2w/report?&fn=1007004
The other possibility is that cached PreparedStatements are being timed
out on the server side and closed. You can investigate disabling the
statement timeout on the server side (see the DB2 docs), or else you can
disable prepared statement pooling (which will result in a small to
medium performance hit). You can disable pooling by setting
com.solarmetric.kodo.impl.jdbc.StatementCacheMaxSize to 0. See:
http://docs.solarmetric.com/manual.html#com.solarmetric.kodo.impl.jdbc.StatementCacheMaxSize
Please let us know if the problem persists, and, if so, some more
details like when this happends, how reproducable it is, and a more complete
log.
In article <[email protected]>, Claudius Gr__ver wrote:
Hi folks,
has anybody encounters an exception like this:
javax.jdo.JDODataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.COMMENTX, t0.GKX,
t0.NRX, t0.REFERENZX, t0.SALDOX, t0.SALDOTYPX, t0.TIMEX, t0.TYPX,
t0.USERX, t0.USERIDX, t0.ZINSENX FROM KontoRevision t0 WHERE t0.REFERENZX
= 8]
[PRE=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.COMMENTX, t0.GKX,
t0.NRX, t0.REFERENZX, t0.SALDOX, t0.SALDOTYPX, t0.TIMEX, t0.TYPX,
t0.USERX, t0.USERIDX, t0.ZINSENX FROM KontoRevision t0 WHERE t0.REFERENZX
= ?]
[IBM][JDBC-Treiber] CLI0601E Ung__ltige Anweisungskennung oder Anweisung
ist beendet. SQLSTATE=S1000 [code=-99999;state=S1000]
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.COMMENTX, t0.GKX,
t0.NRX, t0.REFERENZX, t0.SALDOX, t0.SALDOTYPX, t0.TIMEX, t0.TYPX,
t0.USERX, t0.USERIDX, t0.ZINSENX FROM KontoRevision t0 WHERE t0.REFERENZX
= 8]
[PRE=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.COMMENTX, t0.GKX,
t0.NRX, t0.REFERENZX, t0.SALDOX, t0.SALDOTYPX, t0.TIMEX, t0.TYPX,
t0.USERX, t0.USERIDX, t0.ZINSENX FROM KontoRevision t0 WHERE t0.REFERENZX
= ?]
[IBM][JDBC-Treiber] CLI0601E Ung__ltige Anweisungskennung oder Anweisung
ist beendet. SQLSTATE=S1000
at
com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExceptions.java:23)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.load(JDBCStoreManager.java:381)
at
com.solarmetric.kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:1987)
at
com.solarmetric.kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:721)
at de.tolina.nachlass.data.Konto.jdoGetrevisions(Konto.java)
at de.tolina.nachlass.data.Konto.jdoPreDelete(Konto.java:58)
at
com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:313)
at
com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:287)
at
com.solarmetric.kodo.runtime.StateManagerImpl.deletePersistent(StateManagerImpl.java:492)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.deletePersistentFilter(PersistenceManagerImpl.java:1213)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.deletePersistent(PersistenceManagerImpl.java:1193)
at de.tolina.common.gui.binder.Binder.deleteDataObject(Binder.java:104)
at
de.tolina.nachlass.gui.KontoPanel$2.actionPerformed(KontoPanel.java:88)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1445)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1499)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:373)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:245)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:211)
at java.awt.Component.processMouseEvent(Component.java:3710)
at java.awt.Component.processEvent(Component.java:3539)
at java.awt.Container.processEvent(Container.java:1159)
at java.awt.Component.dispatchEventImpl(Component.java:2588)
at java.awt.Container.dispatchEventImpl(Container.java:1208)
at java.awt.Component.dispatchEvent(Component.java:2492)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2446)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2211)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2120)
at java.awt.Container.dispatchEventImpl(Container.java:1195)
at java.awt.Window.dispatchEventImpl(Window.java:923)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
NestedThrowablesStackTrace:
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC-Treiber] CLI0601E Ung__ltige
Anweisungskennung oder Anweisung ist beendet. SQLSTATE=S1000
at
COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throwClosedError(SQLExceptionGenerator.java:593)
at
COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2(DB2PreparedStatement.java:832)
at
COM.ibm.db2.jdbc.app.DB2PreparedStatement.executeQuery(DB2PreparedStatement.java:786)
at
com.solarmetric.datasource.PreparedStatementWrapper.executeQuery(PreparedStatementWrapper.java:93)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:771)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:691)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:372)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:356)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:1221)
at
com.solarmetric.kodo.impl.jdbc.ormapping.OneToManyMapping.load(OneToManyMapping.java:80)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.load(JDBCStoreManager.java:375)
at
com.solarmetric.kodo.runtime.StateManagerImpl.loadField(StateManagerImpl.java:1987)
at
com.solarmetric.kodo.runtime.StateManagerImpl.isLoaded(StateManagerImpl.java:721)
at de.tolina.nachlass.data.Konto.jdoGetrevisions(Konto.java)
at de.tolina.nachlass.data.Konto.jdoPreDelete(Konto.java:58)
at
com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:313)
at
com.solarmetric.kodo.runtime.StateManagerImpl.setJDOState(StateManagerImpl.java:287)
at
com.solarmetric.kodo.runtime.StateManagerImpl.deletePersistent(StateManagerImpl.java:492)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.deletePersistentFilter(PersistenceManagerImpl.java:1213)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.deletePersistent(PersistenceManagerImpl.java:1193)
at de.tolina.common.gui.binder.Binder.deleteDataObject(Binder.java:104)
at
de.tolina.nachlass.gui.KontoPanel$2.actionPerformed(KontoPanel.java:88)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1445)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1499)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:373)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:245)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:211)
at java.awt.Component.processMouseEvent(Component.java:3710)
at java.awt.Component.processEvent(Component.java:3539)
at java.awt.Container.processEvent(Container.java:1159)
at java.awt.Component.dispatchEventImpl(Component.java:2588)
at java.awt.Container.dispatchEventImpl(Container.java:1208)
at java.awt.Component.dispatchEvent(Component.java:2492)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2446)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2211)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2120)
at java.awt.Container.dispatchEventImpl(Container.java:1195)
at java.awt.Window.dispatchEventImpl(Window.java:923)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
de.tolina.common.gui.binder.BinderException: Fehler beim L__schen des
Objekts aufgetreten
at de.tolina.common.gui.binder.Binder.deleteDataObject(Binder.java:112)
at
de.tolina.nachlass.gui.KontoPanel$2.actionPerformed(KontoPanel.java:88)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1445)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1499)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:373)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:245)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:211)
at java.awt.Component.processMouseEvent(Component.java:3710)
at java.awt.Component.processEvent(Component.java:3539)
at java.awt.Container.processEvent(Container.java:1159)
at java.awt.Component.dispatchEventImpl(Component.java:2588)
at java.awt.Container.dispatchEventImpl(Container.java:1208)
at java.awt.Component.dispatchEvent(Component.java:2492)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2446)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2211)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2120)
at java.awt.Container.dispatchEventImpl(Container.java:1195)
at java.awt.Window.dispatchEventImpl(Window.java:923)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)
kodo.properties:
com.solarmetric.kodo.impl.jdbc.FlatInheritanceMapping=true
javax.jdo.option.MsWait=50000
javax.jdo.option.RestoreValues=true
com.solarmetric.kodo.DefaultFetchThreshold=30
com.solarmetric.kodo.EnableQueryExtensions=false
javax.jdo.option.Multithreaded=true
javax.jdo.option.IgnoreCache=false
com.solarmetric.kodo.CacheReferenceSize=1000
javax.jdo.option.NontransactionalWrite=false
com.solarmetric.kodo.impl.jdbc.WarnOnPersistentTypeFailure=true
javax.jdo.option.NontransactionalRead=true
javax.jdo.option.RetainValues=true
com.solarmetric.kodo.DefaultFetchBatchSize=10
com.solarmetric.kodo.impl.jdbc.SequenceFactoryClass=com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory
com.solarmetric.kodo.DataCacheClass=
com.solarmetric.kodo.UseSoftTransactionCache=false
com.solarmetric.kodo.ProxyManagerClass=com.solarmetric.kodo.util.SimpleProxyManager
javax.jdo.option.Optimistic = true
javax.jdo.option.MinPool=1
javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory
com.solarmetric.kodo.impl.jdbc.AutoReturnTimeout=10
javax.jdo.option.MaxPool=10
# kodo 2.4-license-key, in produktionsversion im java-code
com.solarmetric.kodo.LicenseKey =
# db2
javax.jdo.option.ConnectionURL = jdbc:db2:myapp
javax.jdo.option.ConnectionDriverName = COM.ibm.db2.jdbc.app.DB2Driver
javax.jdo.option.ConnectionUserName = xxx
javax.jdo.option.ConnectionPassword = xxx
# oracle
#javax.jdo.option.ConnectionURL = jdbc:oracle:thin:@SESCG:1521:myapp
#javax.jdo.option.ConnectionDriverName = oracle.jdbc.driver.OracleDriver
#javax.jdo.option.ConnectionUserName = xxx
#javax.jdo.option.ConnectionPassword = xxx
I think there is a connection between this error and bug #520 in kodos bug
db.
The message of the CLI means, that either the connection is closed before
the prepared statement is completed or the statement itself is closed...
Sometimes I get also CLI0116E-Error (invalid transaction state).
Anyone an idea?
PS: we bought a kodo license and would't like to be sorry about that - so
please help!!
Best regards Claudius
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
Getting class (COM.ibm.db2.jdbc.app.DB2Connection)
We are migrating from Websphere 3.5 to 4.0 and I am setting up my WSAD 4.0 on my local system. DB2 7.2 is the database for the application.
When i configure the Data Source, all works fine, but when I run the application, i get the following error.
The class (COM.ibm.db2.jdbc.app.DB2Connection) does not implement javax.sql.ConnectionPoolDataSource or javax.sql.XADataSource
My JDBC driver is in the file db2java.zip. Can anyone tell me what is the way to remove this error and If i need to download some new drivers, where can i get them from?sorry to say this but we also fed up with all those things and using db2 is 1 of the worst thing in the world if u get enough help from anywhere.. plz inform me also...
-
No Suitable Driver Exception and COM.ibm.db2.jdbc.app.DB2Driver
Greetings,
I am attempting to connect to a DB2 UDB (6.1) on an AIX (4.x) box from a win95 box and have cobbled some code together to do this. Despite loading and verifying that the driver loads, I get nothing but the SQLException: "No Suitable Driver". My Java code follows for comment. Thanks in advance...
import java.lang.reflect.*;
import java.sql.*;
import java.io.*;
class db2JDBCtest
static Driver driver = null;
static final String url = "jdbc:db2//1xx.x.x4x.xx/";
public static void main(String args[]) {
Connection con = null;
// GET CONNECTION
try
driver = (Driver)Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
System.out.println(driver);
if (args.length == 3) {
con = DriverManager.getConnection(url + args[0], args[1], args[2]);
else{
System.out.println("\nUsage: java db2JDBCtest [databasealias username password]\n");
System.exit( - 1 );}
// GET CONNECTION WARNINGS
SQLWarning warning = null; {
warning = con.getWarnings();
if (warning == null){
System.out.println("No Warnings");
return; }
while (warning != null) {
System.out.println("Warning: "+warning);
warning = warning.getNextWarning();
// CREATE PREPARED STATEMENT
PreparedStatement prepstmt;
prepstmt = con.prepareStatement("select * from MDM.DEALER where 1=0");
// GET RESULTS !
ResultSet resultset = prepstmt.executeQuery();
System.out.println(resultset);
prepstmt.close();
catch
(Exception e){
System.out.println(e);
}1)IBM document says that you use COM.ibm.jdbc.net.DB2Driver when you use Applets
2)For applications use COM.ibm.jdbc.app.DB2Driver
3)Both these files are in db2java.zip file
4)db2java.zip is the DB2 driver just like classes111.zip is the driver for Oracle
6)You need to put db2java.zip in your classpath.
5)If you are using COM.ibm.jdbc.net.DB2Driver and you are getting "COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0616E Error opening socket
. SQLSTATE=08S01 "
you need to run "db2jstrt" on the target host(machine running DB2) with the specified port as the parameter
6)If you are using COM.ibm.jdbc.app.DB2Driver and getting " java.sql.SQLException: No suitable driver ", most probably db2java.zip is not in classpath.
7)Note : you need to install DB2 client software on the application machine, just putting the zip file does not work.
8)There is a Java file at IBM that walks you thru the connection.
ftp://ftp.software.ibm.com/software/websphere/info/tools/jdbctest
Just download in into the client machine, compile and run it. -
Cannot load driver COM.ibm.db2.jdbc.app.DB2Driver
Hi ,
I need help on this matter and will really appreciate.
I have installed Jdeveloper 11g and Weblogic 11gR1 on windows. I am trying to configure my weblogic server for JDBC-Datasourse to connect to DB2 and get this error.
cannot load driver COM.ibm.db2.jdbc.app.DB2Driver
This is how my classpath and path looks
classpath :.;C:\Program Files\JDEdwards\BPMBroker\JRE\1.3\lib\ext\QTJava.zip;C:\Program Files\Java\jdk1.6.0_20\lib\tools.jar;C:\Program Files\Java\jdk1.6.0_20\lib\dt.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Sun\db2java.zip;C:\Sun\COM\ibm\db2\jdbc\app\DB2Driver.class;C:\Program Files\IBM\WebSphere\AppServer\derby\lib\deprecated\db2jcc.jar;C:\Program Files\IBM\WebSphere\AppServer\derby\lib\deprecated\db2jcc_license_cu.jar;
path : C:\Program Files\Java\jdk1.6.0_20\bin;C:\Sun\db2java.zip;
I don't know what to do and everytime i try to test my connection i get this error .
Please help.
Thank youI added Driver Classname =com.ibm.db2.jcc.DB2Driver
and now it no longer gives me cannot load driver COM.ibm.db2.jdbc.app.DB2Driver.
But now i am getting
Execution failed due to a distribution protocol error that caused deallocation of the conversation. A DRDA Data Stream Syntax Error was detected. Reason: 0x1 DB2ConnectionCorrelator: null
com.ibm.db2.jcc.b.cb.l(cb.java:1207)
com.ibm.db2.jcc.b.cb.c(cb.java:357)
com.ibm.db2.jcc.b.cb.v(cb.java:1440)
com.ibm.db2.jcc.b.db.a(db.java:42)
com.ibm.db2.jcc.b.b.e(b.java:1165)
com.ibm.db2.jcc.b.b.b(b.java:1090)
com.ibm.db2.jcc.b.b.q(b.java:925)
com.ibm.db2.jcc.b.b.a(b.java:665)
com.ibm.db2.jcc.b.b.a(b.java:654)
com.ibm.db2.jcc.b.b.<init>(b.java:293)
com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:165)
com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:505)
com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:450)
sun.reflect.GeneratedMethodAccessor196.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
Please help.
Thanks -
Applet using COM.ibm.db2.jdbc.app.DB2Driver
Hi,
I have an applet that is downloaded from a webserver which then needs to access the local db2java.zip file. It was my understanding if you use the COM.ibm.db2.jdbc.app.DB2Driver it would allow you to access the local copy of that file in your classpath. I also understand that if you use COM.ibm.db2.jdbc.net.DB2Driver you can access the db2java.zip on the server. I unfortunately need to access the local db2java.zip file. I am upgrading from Java 1.2.2 to Java 1.3.1 and it is not allowing this connection. I also changed my java.policy file and have created my own certificate as well, I understand all that.
Here is the section of my code that fails...
java.sql.Driver d = (java.sql.Driver) Class.forName(getDriver()).newInstance();
WHSConnection.con = DriverManager.getConnection(getURL(), getUser(), getPassword());
WHSConnection.con.setAutoCommit(true);
System.out.println("Database Connection Successful");
} catch (java.lang.Throwable except) {
except.printStackTrace();
System.out.println("Database Connection Failed");
Any suggestions would be appreciated. Thanks ~AYes, I forgot to mention that I stopped all DB2 Services and ran the file "runjdbc2.bat"... When I run Java 1.2.2 everything works great. When I run 1.3.1 it attempts to locate the db2java.zip classes on the server and not locally... Here is the error message I receive...
java.lang.ClassNotFoundException: java.io.FileNotFoundException: http://www.example.com/Java131/COM/ibm/db2/jdbc/app/DB2Driver.class
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at Serverlet.WHSConnection.getConnection(WHSConnection.java:159)
at Serverlet.MainApplet.onOk(MainApplet.java:522)
at Serverlet.MainApplet.connEtoM1(MainApplet.java:60)
at Serverlet.MainApplet.actionPerformed(MainApplet.java:29)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Database Connection Failed -
Hi All,
when executing an application and attempting to connect to DB2 I get;
error java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver
I've added the 'db2java.zip' library to the java.conf file (and the native db2 libs) and can make db2 connections using the database connect via the IDE. But not when executing my application - what am I missing.
TIA
BillHi Deepak,
I added the db2java.zip to the
project properties/libraries/classpath
and it works fine. (well my code fails - but that's another problem <g>.)
Thanks for all your help.
Bill -
I need Help for Connect To DB2 with JDBC
I'd like to know why I Have this problem.
The DB2 v 5.10 is in a IBM OS/390
I know the IP, PORt, DBNAME and I'd like to connect to DB2 with my windows XP using JDCB from IBM.
I use JDBC Universal for DB2 type 4.
Class.forName("com.ibm.db2.jcc.DB2Driver");
Url = "jdbc:db2://IP:PORT/BDNAME";
DriverManager.getConnection.... (url, user, pass)..
If I execute this, I have next problem
SQL state = null
Error code = -4499
There is no available conversion for the source code page, 1208, to the target code page, "". DB2ConnectionCorrelator: null
Why is this?
Finally, the web application will running in a AIX IBM with machine, It could be that this machine (aix) can connect with the IBM OS/390 with JDBC for iBM?
Thankss!!!Check how you configured the IP on the laptop and computers, assigned by router with DHCP feature enabled? Or configure manually? If it's assigned by wireless router, then make sure you assign big enough IP range in DHCP setting. Take a look on using ping to troubleshoot network and wireless router configuration articles to help you more..
-
Hi,
We are running WebLogic 10.3.0 on RHEL 5.3 with JRockit JDK 1.6 and DB2 Version 8 on mainframe running z/OS 1.9.
We are getting below exception in webLogic logs from connection pool connecting to DB2 database.
>
####<Jul 23, 2010 10:05:49 AM EDT> <Warning> <JDBC> <testing.us.test.net> <testingDB2> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1279893949615> <BEA-001129> <Received exception while creating connection for pool "TestDB2Pool": DB2 SQL Error: SQLCODE=-973, SQLSTATE=00000, SQLERRMC=MON_HEAP_SZ, DRIVER=3.53.70>
####<Jul 23, 2010 10:05:49 AM EDT> <Info> <JDBC> <testing.us.test.net> <testingDB2> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1279893949616> <BEA-001156> <Stack trace associated with message 001129 follows:
com.ibm.db2.jcc.b.SqlException: DB2 SQL Error: SQLCODE=-973, SQLSTATE=00000, SQLERRMC=MON_HEAP_SZ, DRIVER=3.53.70
at com.ibm.db2.jcc.b.bd.a(bd.java:679)
at com.ibm.db2.jcc.b.bd.a(bd.java:60)
at com.ibm.db2.jcc.b.bd.a(bd.java:127)
at com.ibm.db2.jcc.b.jb.a(jb.java:4016)
at com.ibm.db2.jcc.t4.bb.l(bb.java:403)
at com.ibm.db2.jcc.t4.bb.d(bb.java:141)
at com.ibm.db2.jcc.t4.b.Oc(b.java:1305)
at com.ibm.db2.jcc.t4.b.b(b.java:1225)
at com.ibm.db2.jcc.t4.b.B(b.java:5129)
at com.ibm.db2.jcc.t4.b.c(b.java:783)
at com.ibm.db2.jcc.t4.b.b(b.java:726)
at com.ibm.db2.jcc.t4.b.a(b.java:409)
at com.ibm.db2.jcc.t4.b.<init>(b.java:345)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:197)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:316)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:217)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
at weblogic.common.resourcepool.ResourcePoolImpl.createResources(ResourcePoolImpl.java:574)
at weblogic.jdbc.wrapper.Connection.run(Connection.java:268)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>
Below is snippet of my datasource configuration.
<?xml version='1.0' encoding='UTF-8'?>
<jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/jdbc-data-source" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/jdbc-data-source http://www.bea.com/ns/weblogic/jdbc-data-source/1.0/jdbc-data-source.xsd">
<name>TestingDB2</name>
<jdbc-driver-params>
<url>jdbc:db2://DB2.testing.us.com:50003/TestingDB</url>
<driver-name>com.ibm.db2.jcc.DB2Driver</driver-name>
<properties>
<property>
<name>maxRetriesForClientReroute</name>
<value>2</value>
</property>
<property>
<name>retryIntervalForClientReroute</name>
<value>5</value>
</property>
<property>
<name>user</name>
<value>testuser</value>
</property>
<property>
<name>resultSetHoldability</name>
<value>2</value>
</property>
<property>
<name>enableSysplexWLB</name>
<value>true</value>
</property>
<property>
<name>enableConnectionConcentrator</name>
<value>true</value>
</property>
<property>
<name>databaseName</name>
<value>DB2QA</value>
</property>
<property>
<name>maxTransportObjects</name>
<value>108</value>
</property>
</properties>
<password-encrypted>{3DES}eh4WI16Xb8E=</password-encrypted>
</jdbc-driver-params>
<jdbc-connection-pool-params>
<initial-capacity>40</initial-capacity>
<max-capacity>215</max-capacity>
<capacity-increment>1</capacity-increment>
<shrink-frequency-seconds>300</shrink-frequency-seconds>
<highest-num-waiters>2147483647</highest-num-waiters>
<connection-creation-retry-frequency-seconds>15</connection-creation-retry-frequency-seconds>
<connection-reserve-timeout-seconds>10</connection-reserve-timeout-seconds>
<test-frequency-seconds>300</test-frequency-seconds>
<test-connections-on-reserve>true</test-connections-on-reserve>
<ignore-in-use-connections-enabled>true</ignore-in-use-connections-enabled>
<inactive-connection-timeout-seconds>300</inactive-connection-timeout-seconds>
<test-table-name>SYSIBM.SYSDUMMY</test-table-name>
<login-delay-seconds>1</login-delay-seconds>
<statement-cache-size>300</statement-cache-size>
<statement-cache-type>LRU</statement-cache-type>
<remove-infected-connections>true</remove-infected-connections>
<seconds-to-trust-an-idle-pool-connection>15</seconds-to-trust-an-idle-pool-connection>
<statement-timeout>-1</statement-timeout>
<pinned-to-thread>false</pinned-to-thread>
</jdbc-connection-pool-params>
<jdbc-data-source-params>
<jndi-name>TestingDB2</jndi-name>
<global-transactions-protocol>None</global-transactions-protocol>
</jdbc-data-source-params>
</jdbc-data-source>
Please help me on this.
- BoyelTThanks Joe. I will test the standalone client program you provided.
Below are links I found on web on SQL CODE -972 error message
http://www.dbforums.com/db2/875633-sqlcode-973-sqlstate-57011-drda_heap_sz-cobol-db2-error.html
http://publib.boulder.ibm.com/infocenter/tivihelp/v4r1/index.jsp?topic=/com.ibm.tpc_V411.doc/fqz0_r_tbs_db2_sql_973.html
http://www-01.ibm.com/support/docview.wss?uid=swg1IY55389
Below is explanation about this message
===============================================
SQL0973N Not enough storage is available in the "<heap-name>" heap to process the statement.
Explanation: All available memory for this heap has been used. The statement cannot be processed.
User Response: Terminate the application on receipt of this message (SQLCODE). Increase the configuration parameter for "<heap-name>" to increase the heap size.
===============================================
Can you please advise if this is the problem from DBMS side?
Maybe you are looking for
-
Using colour profiles with Windows XP Pro SP2
Hi, Freshly-installed WIndows XP Pro SP2 on the Unibody MBP. I note that in the advanced display settings there is a tab for colour management. It offers the opportunity to add a .icc or .icx (I think) colour profile. I copied across my .icc-prefixed
-
Simple database query syntax question
Hi experts, I am just stucked here... e.g. String Name = "John Doe"; String query = "select * from table where NameCol = "+Name; ResultSet rs =stmt.executeQuery(query); while (rs.next()) { System.out.println(rs.getString(NameCol); The complier compla
-
CS6 Much Slower than CS5.5
I installed Premiere Pro CS6 for Mac and moved an existing project from CS5.5. The clips are all After Effects compositions, some with elaborate effects. I imported them into AE6 from AE5.5 prior to bringing them into CS6 so they would interact betw
-
Audigy 2 ZS...won't reload all compone
I've had to reload the sound card after Windows updates in the past but this time I'm having no luck..the speaker settings, equalizer, etc are dead links on my program list. Now, does the platinum version say "Platinum" on the install disc... I ask t
-
データ結合の文字コード判定について はじめまして. [データ結合の文字コード判定]について質問です. JavaScriptからデータ結合のCSVファイル(Shift-JIS)を読み込んだ場合に 文字コードを設定してもASCIIで読み込まれてしまう時があり これを制御する方法に悩んでいます. InDesign側で文字コード自動判定など仕様があるのでしょうか? ■環境 WindowsXP+SP3,InDesignCS4 バージョン6.0 ■OK:CSV --> Shift-JISで読み込まれる ==