WSAD 5.1, JDBC 1.2;  DB2 7.2; Servelet Exception due to Prepared Statement

Hi - I am using WSAD 5.1.2, JDBC1.2 and DB2 and driver classes for JDBC1.2.
However when i start my WAS Server, I get the following error:
Did not realize init() exception thrown by servlet bootstrap: javax.servlet.ServletException: COM/ibm/db2/jdbc/app/DB2Connection.prepareStatement
Its elabroated as below. Any inputs appreciated. Thanks
*** Starting the server ***
************ Start Display Current Environment ************
WebSphere Platform 5.1 [BASE 5.1.0.3 cf30412.02] [JDK 1.4.1 b0344.02] running with process name localhost\localhost\server1 and process id 3408
Host Operating System is Windows XP, version 5.1
Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = D:\Program Files\WebSphere\runtimes\base_v51
user.install.root = D:\Program Files\WebSphere\runtimes\base_v51
Java Home = D:\Program Files\WebSphere\runtimes\base_v51\java\jre
ws.ext.dirs = D:\Program Files\WebSphere\runtimes\base_v51/java/lib;D:\Program Files\WebSphere\runtimes\base_v51/classes;D:\Program Files\WebSphere\runtimes\base_v51/classes;D:\Program Files\WebSphere\runtimes\base_v51/lib;D:\Program Files\WebSphere\runtimes\base_v51/lib/ext;D:\Program Files\WebSphere\runtimes\base_v51/web/help;D:\Program Files\WebSphere\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;D:/Program Files/SQLLIB/java/db2java.zip;D:/Program Files/WebSphere/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2/runtime/worf.jar
Classpath = D:\Program Files\WebSphere\runtimes\base_v51/properties;D:\Program Files\WebSphere\runtimes\base_v51/properties;D:\Program Files\WebSphere\runtimes\base_v51/lib/bootstrap.jar;D:\Program Files\WebSphere\runtimes\base_v51/lib/j2ee.jar;D:\Program Files\WebSphere\runtimes\base_v51/lib/lmproxy.jar;D:\Program Files\WebSphere\runtimes\base_v51/lib/urlprotocols.jar;D:/Program Files/WebSphere/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wteServers.jar;D:/Program Files/WebSphere/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wasToolsCommon.jar
Java Library path = D:\Program Files\WebSphere\runtimes\base_v51/bin;D:\Program Files\WebSphere\runtimes\base_v51/java/bin;D:\Program Files\WebSphere\runtimes\base_v51/java/jre/bin;D:\Program Files\WebSphere\eclipse\jre\bin;.;C:\SYSROOT\system32;C:\SYSROOT;D:\Java\jdk1.5.0_04\bin;C:\SYSROOT\system32;C:\SYSROOT;C:\SYSROOT\System32\Wbem;D:\Program Files\Rational\common;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\CA\SharedComponents\ScanEngine;C:\Program Files\CA\SharedComponents\CAUpdate\;C:\Program Files\CA\SharedComponents\ThirdParty\;C:\Program Files\CA\SharedComponents\SubscriptionLicense\;C:\Program Files\CA\eTrustITM;D:\Program Files\SQLLIB\BIN;D:\Program Files\SQLLIB\FUNCTION;D:\Program Files\SQLLIB\SAMPLES\REPL;D:\Program Files\SQLLIB\HELP;D:\PROGRA~1\IBM\IMNNQ
************* End Display Current Environment *************
[9/20/07 14:50:02:324 IST] 7cd85806 ManagerAdmin I TRAS0017I: The startup trace state is *=all=disabled.
[9/20/07 14:50:03:495 IST] 7cd85806 AdminInitiali A ADMN0015I: AdminService initialized
[9/20/07 14:50:04:870 IST] 7cd85806 Configuration A SECJ0215I: Successfully set JAAS login provider configuration class to com.ibm.ws.security.auth.login.Configuration.
[9/20/07 14:50:04:933 IST] 7cd85806 SecurityDM I SECJ0231I: The Security component's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDM registered successfully: true.
[9/20/07 14:50:05:464 IST] 7cd85806 SecurityCompo I SECJ0309I: Java 2 Security is disabled.
[9/20/07 14:50:05:464 IST] 7cd85806 SecurityCompo I SECJ0212I: WCCM JAAS configuration information successfully pushed to login provider class.
[9/20/07 14:50:05:480 IST] 7cd85806 SecurityCompo I SECJ0240I: Security service initialization completed successfully
[9/20/07 14:50:05:480 IST] 7cd85806 JMSRegistrati A MSGS0602I: WebSphere Embedded Messaging Client only has been installed
[9/20/07 14:50:09:777 IST] 7cd85806 ResourceMgrIm I WSVR0049I: Binding jdbc/mrsinventoryDataSource_CF as eis/jdbc/mrsinventoryDataSource_CMP
[9/20/07 14:50:09:824 IST] 7cd85806 ResourceMgrIm I WSVR0049I: Binding jdbc/mrsinventoryDataSource as jdbc/mrsinventoryDataSource
[9/20/07 14:50:10:652 IST] 7cd85806 CacheServiceI I DYNA0048I: WebSphere Dynamic Cache initialized successfully.
[9/20/07 14:50:12:699 IST] 7cd85806 JMXSoapAdapte A ADMC0013I: SOAP connector available at port 8880
[9/20/07 14:50:12:699 IST] 7cd85806 SecurityCompo I SECJ0243I: Security service started successfully
[9/20/07 14:50:12:699 IST] 7cd85806 SecurityCompo I SECJ0210I: Security enabled false
[9/20/07 14:50:14:324 IST] 7cd85806 ApplicationMg A WSVR0200I: Starting application: IBMUTC
[9/20/07 14:50:15:152 IST] 7cd85806 WebContainer A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2002
[9/20/07 14:50:15:167 IST] 7cd85806 WebContainer A SRVE0162I: Servlet Specification Level: 2.3
[9/20/07 14:50:15:183 IST] 7cd85806 WebContainer A SRVE0163I: Supported JSP Specification Level: 1.2
[9/20/07 14:50:15:277 IST] 7cd85806 WebContainer A SRVE0169I: Loading Web Module: IBM Universal Test Client.
[9/20/07 14:50:15:620 IST] 7cd85806 WebGroup I SRVE0180I: [IBM Universal Test Client] [UTC] [Servlet.LOG]: JSP 1.2 Processor: init
[9/20/07 14:50:15:995 IST] 7cd85806 WebGroup I SRVE0180I: [IBM Universal Test Client] [UTC] [Servlet.LOG]: SimpleFileServlet: init
[9/20/07 14:50:16:074 IST] 7cd85806 ApplicationMg A WSVR0221I: Application started: IBMUTC
[9/20/07 14:50:16:074 IST] 7cd85806 ApplicationMg A WSVR0200I: Starting application: MRSInventory_17thJuly2007
[9/20/07 14:50:16:167 IST] 7cd85806 WebContainer A SRVE0169I: Loading Web Module: MRSInventory.
[9/20/07 14:50:16:949 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: JSP 1.2 Processor: init
[9/20/07 14:50:17:011 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: SimpleFileServlet: init
[9/20/07 14:50:17:027 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: InvokerServlet: init
[9/20/07 14:50:17:105 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: init
[9/20/07 14:50:17:105 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: config.domain = mrsinventory
[9/20/07 14:50:17:105 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: unprocessed subdomains = null
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap class=org.grnds.facility.GrndsCommonFacilityBootstrap
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: config.getInitParameter( grnds.xml.config.map ) = null
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: config.getServletContext().getRealPath('/') = D:\MRSInventory\MRSInventoryWeb\WebContent
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: looking for xml config map at D:\MRSInventory\MRSInventoryWeb\WebContent\WEB-INF\grnds-xmlconfig-map.xconf
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: xml config map not found in the WEB-INF directory, rely on systematically set xml configuration files
[9/20/07 14:50:17:261 IST] 7cd85806 SystemOut O configuration mapping information is initialized.
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: looking for web app map D:\MRSInventory\MRSInventoryWeb\WebContent\WEB-INF\grnds-web-app.xconf
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: web app map resource path=grnds-web-app.xconf
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: classloader=
com.ibm.ws.classloader.CompoundClassLoader@1f57d804
Local ClassPath: D:\MRSInventory\MRSInventoryWeb\WebContent\WEB-INF\classes;D:\MRSInventory\MRSInventoryWeb\WebContent;D:\MRSInventory\MRSInventory_17thJuly2007\ApacheCollections.jar;D:\MRSInventory\MRSInventory_17thJuly2007\ApplicationArchitecture.jar;D:\MRSInventory\MRSInventory_17thJuly2007\OswegoEdu.jar;D:\MRSInventory\MRSInventory_17thJuly2007\hsqldb.jar;D:\MRSInventory\MRSInventory_17thJuly2007\jakarta-oro-2.0.2-dev-1.jar;D:\MRSInventory\MRSInventory_17thJuly2007\jdom.jar;D:\MRSInventory\MRSInventory_17thJuly2007\log4j.jar;D:\MRSInventory\MRSInventory_17thJuly2007\mrsarchcommon.jar;D:\MRSInventory\MRSInventory_17thJuly2007\trucommon.jar;D:\MRSInventory\MRSInventory_17thJuly2007\velocity-1.2-dev.jar;D:\MRSInventory\MRSInventory_17thJuly2007\xalan.jar;D:\MRSInventory\MRSInventory_17thJuly2007\xalanj1compat.jar;D:\MRSInventory\MRSInventory_17thJuly2007\xerces.jar;D:\MRSInventory\MRSInventory_17thJuly2007\FiscalWeekInformation.jar;D:\MRSInventory\MRSInventory_17thJuly2007\mrscommon.jar;
Delegation Mode: PARENT_FIRST
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: resource web app map=null
[9/20/07 14:50:17:261 IST] 7cd85806 WebGroup I SRVE0180I: [MRSInventory] [mrs/inventory] [Servlet.LOG]: bootstrap: web app map not found in the WEB-INF directory, relying on xml config map setting
[9/20/07 14:50:17:261 IST] 7cd85806 SystemOut O web application mapping information is initialized.
[9/20/07 14:50:17:355 IST] 7cd85806 SystemOut O exception mapper is initialized.
[9/20/07 14:50:17:589 IST] 7cd85806 SystemOut O Common Facility Bootstrap successfully executed.
[9/20/07 14:50:18:042 IST] 7cd85806 ConnectionFac I J2CA0122I: Resource reference jdbc/mrsinventoryDataSource could not be located, so default values of the following are used: [Resource-ref settings]
     res-auth: 1 (APPLICATION)
     res-isolation-level: 0 (TRANSACTION_NONE)
     res-sharing-scope: true (SHAREABLE)
     res-resolution-control: 999 (undefined)
[Other attributes]
isCMP1_x: false (not CMP1.x)
isJMS: false (not JMS)
[9/20/07 14:50:18:261 IST] 7cd85806 SystemOut O data source is initialized.
[9/20/07 14:50:18:261 IST] 7cd85806 SystemOut O About to call application-specific bootstrap (com.tru.mrs.inventory.common.structural.web.MRSInventoryBootstrap)...
[9/20/07 14:50:18:277 IST] 7cd85806 SystemOut O Successfully obtained name supplied by the properties file.
[9/20/07 14:50:18:277 IST] 7cd85806 SystemOut O Successfully created an instance of the bootstrap.
[9/20/07 14:50:18:308 IST] 7cd85806 SystemOut O screen profile cache is initialized
[9/20/07 14:50:20:495 IST] 7cd85806 WSRdbDataSour I DSRA8203I: Database product name : DB2
[9/20/07 14:50:20:511 IST] 7cd85806 WSRdbDataSour I DSRA8204I: Database product version : 08.01.0005
[9/20/07 14:50:20:511 IST] 7cd85806 WSRdbDataSour I DSRA8205I: JDBC driver name : IBM DB2 JDBC 1.2 Type 2
[9/20/07 14:50:20:511 IST] 7cd85806 WSRdbDataSour I DSRA8206I: JDBC driver version : 07.02.0005
[9/20/07 14:50:25:042 IST] 7cd85806 ServletInstan E SRVE0100E: Did not realize init() exception thrown by servlet bootstrap: javax.servlet.ServletException: COM/ibm/db2/jdbc/app/DB2Connection.prepareStatement
     at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99)
     at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
     at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
     at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
     at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
     at javax.servlet.GenericServlet.init(GenericServlet.java:258)
     at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
     at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
     at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
     at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277)
     at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
     at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387)
     at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)
     at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1005)
     at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
     at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
     at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
     at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
     at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
     at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
     at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
     at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:128)
     at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
     at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
     at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
     at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
     at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
     at java.lang.reflect.Method.invoke(Method.java:386)
     at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
     at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
---- Begin backtrace for Nested Throwables
java.lang.AbstractMethodError: COM/ibm/db2/jdbc/app/DB2Connection.prepareStatement
     at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1458)
     at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1424)
     at com.tru.mrs.common.facility.security.authorization.AuthorizationServiceDAO.getApplicationLayout(AuthorizationServiceDAO.java:126)
     at com.tru.mrs.common.facility.security.authorization.AuthorizationService.getApplicationLayout(AuthorizationService.java:117)
     at com.tru.mrs.common.facility.security.authorization.AuthorizationCacheManager.createApplicationLayout(AuthorizationCacheManager.java:106)
     at com.tru.mrs.common.structural.web.MRSBootstrap.cacheApplicationLayout(MRSBootstrap.java:68)
     at com.tru.mrs.common.structural.web.MRSBootstrap.startBootstrap(MRSBootstrap.java:141)
     at com.tru.mrs.inventory.common.structural.web.MRSInventoryBootstrap.startBootstrap(MRSInventoryBootstrap.java:43)
     at org.grnds.structural.web.GrndsBootstrapServlet.doBootstrapFacilities(GrndsBootstrapServlet.java:186)
     at org.grnds.structural.web.GrndsBootstrapServlet.init(GrndsBootstrapServlet.java:280)
     at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
     at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
     at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
     at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
     at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
     at javax.servlet.GenericServlet.init(GenericServlet.java:258)
     at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
     at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
     at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
     at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277)
     at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
     at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387)
     at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)
     at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1005)
     at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
     at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
     at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
     at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
     at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
     at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
     at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
     at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:128)
     at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
     at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
     at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
     at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
     at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
     at java.lang.reflect.Method.invoke(Method.java:386)
     at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
     at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
[9/20/07 14:50:25:073 IST] 7cd85806 WebGroup E SRVE0020E: [Servlet Error]-[bootstrap]: Failed to load servlet: java.lang.AbstractMethodError: COM/ibm/db2/jdbc/app/DB2Connection.prepareStatement
     at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1458)
     at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1424)
     at com.tru.mrs.common.facility.security.authorization.AuthorizationServiceDAO.getApplicationLayout(AuthorizationServiceDAO.java:126)
     at com.tru.mrs.common.facility.security.authorization.AuthorizationService.getApplicationLayout(AuthorizationService.java:117)
     at com.tru.mrs.common.facility.security.authorization.AuthorizationCacheManager.createApplicationLayout(AuthorizationCacheManager.java:106)
     at com.tru.mrs.common.structural.web.MRSBootstrap.cacheApplicationLayout(MRSBootstrap.java:68)
     at com.tru.mrs.common.structural.web.MRSBootstrap.startBootstrap(MRSBootstrap.java:141)
     at com.tru.mrs.inventory.common.structural.web.MRSInventoryBootstrap.startBootstrap(MRSInventoryBootstrap.java:43)
     at org.grnds.structural.web.GrndsBootstrapServlet.doBootstrapFacilities(GrndsBootstrapServlet.java:186)
     at org.grnds.structural.web.GrndsBootstrapServlet.init(GrndsBootstrapServlet.java:280)
     at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
     at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
     at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
     at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
     at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
     at javax.servlet.GenericServlet.init(GenericServlet.java:258)
     at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
     at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
     at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
     at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277)
     at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
     at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387)
     at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)
     at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1005)
     at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
     at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)
     at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
     at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
     at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)
     at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)
     at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
     at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
     at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:128)
     at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
     at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
     at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
     at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
     at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
     at java.lang.reflect.Method.invoke(Method.java:386)
     at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)
     at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
[9/20/07 14:50:25:089 IST] 7cd85806 TraceNLS u No message text associated with key COM/ibm/db2/jdbc/app/DB2Connection.prepareStatement in bundle com.ibm.ejs.resources.seriousMessages
[9/20/07 14:50:25:089 IST] 7cd85806 WebAppServlet E COM/ibm/db2/jdbc/app/DB2Connection.prepareStatement
[9/20/07 14:50:25:105 IST] 7cd85806 ApplicationMg A WSVR0221I: Application started: MRSInventory_17thJuly2007
[9/20/07 14:50:25:167 IST] 7cd85806 HttpTransport A SRVE0171I: Transport http is listening on port 9,080.
[9/20/07 14:50:27:308 IST] 7cd85806 HttpTransport A SRVE0171I: Transport https is listening on port 9,443.
[9/20/07 14:50:27:355 IST] 7cd85806 RMIConnectorC A ADMC0026I: RMI Connector available at port 2809
[9/20/07 14:50:27:433 IST] 7cd85806 WsServer A WSVR0001I: Server server1 open for e-business

It's hard to tell, but my thought is that maybe the driver is not consistent with the database version of DB2 that you are using.
Be sure that the driver is the correct version for the database to which you are attempting to connect.

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.

  • Binding in Prepared Statement is not working with Microsoft SQL Server JDBC

    I ran the following program with sqljdbc4.jar in the class path. There is data in the EMPLOYEE table for the employee name DEMO but the following program is not retrieving data for DEMO. When the same program was run with Merlia.jar in the class path, it was retrieving data for DEMO.
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection con = DriverManager.getConnection("jdbc:sqlserver://SERVER23:5000;databaseName=TESTDB", "SYSADM", "SYSADM");
    String sqlSele = "SELECT * FROM EMPLOYEE WHERE EMPNAME like ?" ;
    PreparedStatement sts = con.prepareStatement(sqlSele);
    sts.setString(1, "DEMO" );
    ResultSet rs = sts.executeQuery();
    while(rs.next())
    System.out.println("driverConn.main()" + rs.toString());
    catch(Exception e)
    System.out.println(e);
    e.printStackTrace();
    Can someone help me out from this issue.

    This is the program that I used for testing the behaviour of prepared statement with sqljdbc4.jar. Also included the code for Merlia.jar.
    import java.sql.*;
    public class driverConn {
         public static void main(String [] a)
              try{
              Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
              //Class.forName("com.inet.tds.TdsDriver");
              Connection con = DriverManager.getConnection("jdbc:sqlserver://SERVER23:5000;databaseName=TESTDB", "SYSADM", "SYSADM");
              //Connection con = DriverManager.getConnection("jdbc:inetdae7a:SERVER23:5000?database=TESTDB", "SYSADM", "SYSADM");
              String sqlSele = "SELECT * FROM EMPLOYEE WHERE EMPNAME like ?" ;
              //String sqlSele = "SELECT * FROM EMPLOYEE WHERE EMPNAME like ‘%DEMO%’”;
              PreparedStatement sts = con.prepareStatement(sqlSele);
              sts.setString(1, "DEMO" );
              //sts.setString(1, "%DEMO%" );          
              java.sql.ResultSet rs = sts.executeQuery();          
              while(rs.next())
                   System.out.println("EMPNAME is " + rs.getString(“EMPNAME”) + “”);                    }
              catch(Exception e)
                   System.out.println(e);
                   e.printStackTrace();
    Following are the specifications:
    Version of the Driver:
    Microsoft JDBC Driver 4.0 for SQL Server CTP3
    Downloaded the driver using the link http://www.microsoft.com/download/en/details.aspx?id=11774
    Java Version:
    Java 1.7.0_02
    Database Version:
    Microsoft SQL Server 2008 (SP2) - 10.0.4000.0 (X64)

  • Oracle Prepared Statement - 8.1.7 JDBC type II Driver

    Hi,
    I have a strange problem.
    I do a query using a prepared statement and there are no matching results.
    I change this to hardcoded SQL Statement and pass in the same value a row of record is returned
    I change this to Statement and pass in the input a row of record is returned.
    This is puzzling. There seems to be a problem with Prepared Statement and I can't see why that fails.
    The Stmt looks like this
    PreparedStatement id is defiend as a char in the database
    Code Snippet:
    SQL = Select * from employee where id = ?;
    pstmt.setString(1,'value');
    Hardcoded SQL:
    select * from employee where id = 'value';
    Statement Impl:
    String var = "value";
    "select * from employee where id = '" + var+ "'";
    Would appreciate if somebody can explain what's happening. To me it is bizarre!
    Thanks,
    Manglu

    Update to problem
    I have the latest (classes12.zip) JDBC drivers from Oracle.
    We are running Oracle 8.1.6 and converting to Oracle 8.1.7.
    This works the same with both.
    Example, I have a column (char(10)) with trailing spaces. i.e. '39 '.
    When I perform a Prepared Statement with that column in the where clause, it returns no result rows.
    When I perform a standard statement with that column in the where clause, it returns rows.
    When I define a column char(2) and use it in the where clause it works fine.
    When I define a column varchar2(10) and load it with data like '39', it works fine.
    When I define a column varchar2(10 and load it with data like '39 ', it does not work.
    When I execute this same Prepared Statement through the jdbc:odbc bridge it works fine.
    I cannot change the definition of the columns as they are foreign key data. What is the problem here? Any help is appreciated.
    If you need further information please feel free to contact me.

  • How to use INSERT INTO ALL statement in jdbc prepared statement with beans

    Kindly give me some example that how we can use "INSERT INTO ALL STATEMENT" in jdbc prepared statement inside a jsf bean?
    Actually i want to take employee id's of present employees using single jsf page and using one textbox for each employee id.
    How can i use INSERT INTO ALL statement to achieve this?
    Following is my code snippet.
    AttendanceBean.java:
    public class AttendanceBean {
    private int atteid;
    private String attdname;
    private int attday;
    private int attmonth;
    private int attyear;
    public static Connection getAttConnection() throws Exception {
    String driver = "oracle.jdbc.driver.OracleDriver";
    String url = "jdbc:oracle:thin:@localhost:1521:globldb3";
    String username = "scott";
    String password = "tiger";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(url, username, password);
    return conn;
    public String addAttendance(){
    Connection conn = null;
    PreparedStatement pstmt = null;
    boolean committed = false;
    try {
    conn = getAttConnection();
    conn.setAutoCommit(false);
    String query = "INSERT ALL INTO attendance VALUES (?,?,?,?,?)";
    pstmt = conn.prepareStatement(query);
    pstmt.setInt(1,this.atteid);
    pstmt.setString(2,this.attdname);
    pstmt.setInt(3,this.attday);
    pstmt.setInt(4,this.attmonth);
    pstmt.setInt(5,this.attyear);
    pstmt.executeUpdate();
    conn.commit();
    conn.setAutoCommit(true);
    committed = true;
    return "home.xhtml";
    } catch (Exception e) {
    e.printStackTrace();
    return "CRM.xhtml";
    } finally {
    try{
    if (!committed) conn.rollback();
    if (pstmt != null) pstmt.close();
    if (conn != null) conn.close();
    }catch(Exception e){
    e.printStackTrace();
    }

    Check this program for some info on Push buttons:
    1-DEMO_DYNPRO_PUSH_BUTTON
    2-DEMO_DYNPRO_MODULE
    3-DEMO_DYNPRO_ON_CONDITION
    Suppose Your screen is 101
    Then in that screen create one push button and assign it a function code.
    Now in the PAI of the 101 screen
    Create Module for user command
    Inside that module checc the sy-ucomm if sy-ucomm eq <Function code of your push button>
    Insert the values in database.
    *& Module USER_COMMAND_0101 INPUT
    process after input for screen 0101 *
    MODULE USER_COMMAND_0101 INPUT.
    CASE OK_CODE.
    WHEN 'SAVE'.
    *Insert the values here
    WHEN 'DISP'.
    ENDCASE.
    CLEAR OK_CODE.
    ENDMODULE. " USER_COMMAND_0101 INPUT
    Regards
    Neha
    Edited by: Neha Shukla on Dec 3, 2008 1:02 AM
    Edited by: Neha Shukla on Dec 3, 2008 1:02 AM
    Edited by: Neha Shukla on Dec 3, 2008 1:06 AM

  • JDBC: Prepared statements with more parameters than column names

    I'm using the latest version of the JDBC driver - 4.1.5605.100_enu - on Java 1.7, Linux.
    I'm connecting to MS SQL Server 2012 Express Edition using a connection URL of the form jdbc:sqlserver://10.0.0.2;user=username;password=pwd;database=testdb1
    I have a table with two columns. One is an ID (type bigint) and one is numeric(38, 19).
    The following code works exactly as expected:
    PreparedStatement stm = connection.prepareStatement("INSERT INTO myTable(id, num) VALUES (?, ?)")
    // repeatedly set parameters using setLong, setBigDecimal, then addBatch
    stm.executeBatch()
    The following code does not work as expected:
    PreparedStatement stm = connection.prepareStatement("INSERT INTO myTable(id, num) VALUES (?, ?),  (?, ?)");
    stm.setLong(1, 1);
    stm.setBigDecimal(2, new BigDecimal("1.234"));
    stm.setLong(3, 2);
    stm.setBigDecimal(4, new BigDecimal("1.234"));
    stm.addBatch();
    stm.executeBatch();
    The code runs normally in the second case, but the second row inserted contains the wrong value in the "num" column - it's been rounded to 1.0 instead of stored as 1.234.
    I think this may be because the driver does not understand the types of parameters whose indexes are beyond the number of columns in the insert statement. Running the following code on the second prepared statement:
    System.err.println(stm.getParameterMetaData().getParameterTypeName(2)); // prints "numeric"
    System.err.println(stm.getParameterMetaData().getParameterTypeName(4)); // fails with IndexOutOfBoundsException
    As far as I can tell from the JDBC JavaDoc, this usage is valid and ought to work. Certainly it works as expected (including the parameter metadata) using PostgreSQL and their JDBC driver. Is this a bug in Microsoft's driver?

    Hi dtn-cfl,
    Thanks for your waiting.
    Based on my research(using
    SQL Server Profiler to trace DB events), the preparedStatement finally passes the below statements to SQL Server.
    stm.setLong(1, 1);
    stm.setBigDecimal(2, new BigDecimal("1.234"));
    stm.setLong(3, 2);
    stm.setNull(4, Types.DECIMAL);
    declare @p1 int
    set @p1=0
    exec sp_prepexec @p1 output,N'@P0 bigint,@P1 decimal(38,3),@P2 bigint,@P3 decimal(38,0)',N'INSERT INTO myTable(id, num) VALUES (@P0, @P1), (@P2, @P3) ',1,1.234,2,NULL
    select @p1
    Pay attention to the @P3 decimal(38,0),  it seems(I don't have access to JDBC source code so that I have to use seem) that the
    stm.setNull(4, Types.DECIMAL) will finally parsed as a type decimal(38,0). In SQL Server, to a
    decimal datatype,one with smaller scale has a higher precedence. To understand the precedence, please see below code. If you have more interest in data type precedence, you can click
    here.
    declare @num1 decimal(38,3) --scale 3
    declare @num2 decimal(38,2) --scale 2
    set @num1 = 3.225
    set @num2 = 3.22
    select @num1 as num
    union all
    select @num2
    output
    num
    3.23
    3.22
    @num1 get rounded to keep the column data type consistency, namely keep the column as type decimal(38,2)
    Let's go back to your code, if you would like to make your code work properly, please see below.
    stm.setLong(1, 1);
    stm.setBigDecimal(2, new BigDecimal("1.234"));
    stm.setLong(3, 2);
    stm.setNull(4, Types.INTEGER);As per the above data type precedence link, a decimal has a higher precedence than integer, so your decimal will not get rounded.
    Not only the case in your post, but also any data type inconsistency will lead to the rounding problem. See below.
    stm.setLong(1, 1);
    stm.setBigDecimal(2, new BigDecimal("1.234"));
    stm.setLong(3, 2);
    stm.setBigDecimal(4, new BigDecimal("1.2")); // or new BigDecimal("1.23") and any other decimal with different scale leads to rounding problem.
    So when you set parameters for a prepareStatement like "INSERT INTO myTable(id, num) VALUES (?, ?),  (?, ?)" with more than one row, you should pay attention to data type consistency fact.
    The Microsoft JDBC driver for SQL Server may not be that intelligent, however we can't say that is a bug definitely.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Datasource Lookup from WSAD using POJO - CastException looking up DB2 Data

    I try to look up datasource from WSAD test server using stand alone POJO.
    Code is like:
    Hashtable properties = new Hashtable();
    properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    properties.put(Context.PROVIDER_URL, serviceURL);
    properties.put(Context.PROVIDER_URL, "iiop://localhost:2813");
    Context context = new InitialContext(properties);
    ds = (DataSource) context.lookup("jdbc/myDS");
    Context and datasource are set properly.
    I get exception below when I look up datasource:
    Exception in thread "P=646891 =0:CT" java.lang.ClassCastException: javax.naming.Reference
    I think additional jar files are needed in class path.
    What additional jar files do I need in build path to look up datasource?
    I am using DB2. Datasource is properly configured in WSAD test server.

    Refer to this article.
    http://www-128.ibm.com/developerworks/websphere/library/techarticles/0310_bhogal/bhogal.html
    It provides all the information you need to perform a JNDI lookup. Quoting from the artice;
    To execute our external Java application, make sure your environment is prepared and use a Java command of the following form to invoke the client application:
    %JAVA_HOME%/bin/java -Xbootclasspath/p:%WAS_BOOTCLASSPATH%
    -classpath <list of the referenced jars, classes, and resource directories>
    -Djava.ext.dirs=%WAS_EXT_DIRS%
    -Djava.naming.provider.url=iiop://<server:orb port>
    -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory
    %SERVER_ROOT% %CLIENTSAS% <fully qualified main class of the application client>;

  • JDBC Driver for DB2

    Hello. I want to connecto to a remote DB2 database by the way of JDBC. The client is a Windows2000 Machine, the server machine is a AS/400.
    What JDBC drivers do I need in my windows client to connect to a DB2/400 Machine?
    I understand that only need the driver COM.ibm.db2.jdbc.net.DB2Driver, is it right?
    Please help me.

    you can use com.ibm.as400.access.AS400JDBCDriver
    download JTOPEN at http://www-1.ibm.com/servers/eserver/iseries/toolbox/faq.htm
    and get the jt400.jar file.
    it's free and easy to use.

  • WSAD 5.1.2 connectivity with DB2 Server v9.1

    Hi,
    I am using WSAD 5.1.2 which is having jre 1.4.1.
    I want to connect my database DB2(server) v9.1. But, while creating a new DB connection through DB Perspective, I get the DB options only till DB2 8.1 only.
    So, can any one please tell me how could i resolve my issue by connection WSAD 5.1.2 to DB2 v9.1.
    Thanks in advance
    Sharad

    Nevermind... I figured it out. It wasn't the database connectivity that was the problem at all. The ConnectException was coming from the fact that the cactus.properties file (brought over from the WSAD 5.0 project) still specified port 8080 for the localhost. In 5.1.2 the default port is 9080. I saw a comment somewhere about a "cactus.properties" file... looked for it, noticed the port, all is well. Hope this can help someone else.

  • JDBC receiver adapter for AS400-query time out due to Escape Symbol

    Hello,
    I am uisng JDBC receiver adapter for AS 400, When I execute query, the query needs to have arguments in the open and close single ticks ('    12345' )
    My XML pay load looks like this, which is RFC sender. Look at dcudcstmr in <i><b>(' 838912')</b></i>.  When receiver gets this message the ' (single quotes are disappeared.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:MT_Cma_Customer_Select_Request xmlns:ns1="http://freemanco.com/xi/Get_Customer">
    - <Statement>
    - <LawsonCustomer action="SQL_QUERY">
      <access>select f1.DACMCMPNY from sap.sapcustvew f1, sap.sapcustvew f2 where f2.dcudcstmr in <i><b>(' 838912')</b></i> and (f1.dcudcstmr=f2.dcudcstmr or f2.komaster=f1.dcudcstmr)</access>
      </LawsonCustomer>
      </Statement>
      </ns1:MT_Cma_Customer_Select_Request>
    On the Receiver JDBC adapter I have tried with different combinations of Escape Symbol for Aposrophe as follows
    <b>   \
       '</b>
    As you know this is related to epcape character, I get following error all the time. Looks like the query is not able to execute in the specified time. My question is how do I get single quote as part of query.
    <b>select f1.DACMCMPNY from sap.sapcustvew f1, sap.sapcustvew f2 where f2.dcudcstmr in ( 100001) and (f1.dcudcstmr=f2.dcudcstmr or f2.komaster=f1.dcudcstmr) 2007-09-20 15:56:42 Error Unable to execute statement for table or stored procedure. 'LawsonCustomer' (Structure 'Statement') due to java.sql.SQLException:
    [SQL0666] Estimated query processing time 13766 exceeds limit 8000. 2007-09-20 15:56:42 Error MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'LawsonCustomer' (structure 'Statement'): java.sql.SQLException:
    [SQL0666] Estimated query processing time 13766 exceeds limit 8000. 2007-09-20 15:56:42 Error Exception caught by adapter framework: Error processing request in sax parser: Error when executing statement for table/stored proc. 'LawsonCustomer' (structure 'Statement'): java.sql.SQLException:
    [SQL0666] Estimated query processing time 13766 exceeds limit 8000. 2007-09-20 15:56:42 Error Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'LawsonCustomer' (structure 'Statement'): java.sql.SQLException:
    [SQL0666] Estimated query processing time 13766 exceeds limit 8000.. Setting message to status failed. 2007-09-20 15:56:42 Error The message status set to FAIL. 2007-09-20 15:56:42 Error Returning synchronous error message to calling application: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'LawsonCustomer' (structure 'Statement'): java.sql.SQLException:
    [SQL0666] Estimated query processing time 13766 exceeds limit 8000</b>
    Any feedback or helpfull tips appreciated.
    Thank you,
    Balaji

    Raj,
    Thank you for the reponse. I am using UDF on sender to generate sql statement as you see in sender XML message. After the message reaching receiver, gets executed but no response from AS400 becasue of missing single quotes in the sql query executed.
    Sender XML sends
    <access>select f1.DACMCMPNY from sap.sapcustvew f1, sap.sapcustvew f2 where f2.dcudcstmr in <u><b>(' 838912')</b></u> and (f1.dcudcstmr=f2.dcudcstmr or f2.komaster=f1.dcudcstmr)</access>
    Receiver executes as
    select f1.DACMCMPNY from sap.sapcustvew f1, sap.sapcustvew f2 where f2.dcudcstmr in ( <b><u>838912</u></b>) and (f1.dcudcstmr=f2.dcudcstmr or f2.komaster=f1.dcudcstmr)
    As you see the single quotes are missing. Like I said in previous posting I tried with following Escape Symbol for Aposrophe.
    Let me know if you need more information.
    Thank you,
    Balaji

  • Unable to start DB2 9.5 in Solaris due to SQL1042C

    Hi Seniors,                                                                                Seeking assistance or clue on the below issue we facing recently. My QAS ERP is completely down for sometime due to this issue.
    Error message when starting DB2:-
    bash-3.00$ db2start
    02/24/2011 17:21:57     0   0   SQL1063N  DB2START processing was successful.
    SQL1063N  DB2START processing was successful.
    bash-3.00$ db2 connect to QAS
    SQL1042C  An unexpected system error occurred.  SQLSTATE=58004
    bash-3.00$ db2 get db cfg
    SQL1024N  A database connection does not exist.  SQLSTATE=08003
    db2diag.log:- - Not full logs, need to deleted due to maximum length constrain.
    2011-02-24-17.02.15.689455+480 I1A1233            LEVEL: Event
    PID     : 23743                TID  : 25          PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 25                   EDUNAME: db2agent (QAS) 0
    FUNCTION: DB2 UDB, RAS/PD component, pdLogInternal, probe:120
    START   : New Diagnostic Log file
    DATA #1 : Build Level, 152 bytes
    Instance "db2qas" uses "64" bits and DB2 code release "SQL09054"
    with level identifier "06050107".
    Informational tokens are "DB2 v9.5.0.4", "special_21925", "U825479_21925", Fix Pack "4".
    DATA #2 : System Info, 1592 bytes
    System: SunOS CSQT5ERP 5.10 Generic_142900-05 sun4v
    CPU: total:128 online:128 Cores per socket:8 Threading degree per core:1
    Physical Memory(MB): total:32544 free:28992
    Virtual  Memory(MB): total:177962 free:174410
    Swap     Memory(MB): total:145418 free:145418
    Cur data size (bytes)  = 0xFFFFFFFFFFFFFFFD
    Cur stack size (bytes)  = 0x0000000000800000
    Cur core size (bytes)  = 0x00000000FFFFFFFF
    nofiles (descriptors)  = 0x0000000000010000
    2011-02-24-17.02.18.543076+480 I1700A429          LEVEL: Warning
    PID     : 23743                TID  : 25          PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 25                   EDUNAME: db2agent (QAS) 0
    FUNCTION: DB2 UDB, base sys utilities, sqledint, probe:30
    MESSAGE : Crash Recovery is needed.
    2011-02-24-17.02.20.992821+480 I3036A492          LEVEL: Warning
    PID     : 23743                TID  : 25          PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 25                   EDUNAME: db2agent (QAS) 0
    FUNCTION: DB2 UDB, recovery manager, sqlpresr, probe:410
    MESSAGE : Crash recovery started. LowtranLSN 00000174E561AA75 MinbuffLSN
              00000174E561AA75
    2011-02-24-17.02.20.993782+480 E3529A446          LEVEL: Warning
    PID     : 23743                TID  : 25          PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 25                   EDUNAME: db2agent (QAS) 0
    FUNCTION: DB2 UDB, recovery manager, sqlpresr, probe:410
    MESSAGE : ADM1530E  Crash recovery has been initiated.
    2011-02-24-17.02.21.530927+480 E4469A486          LEVEL: Warning
    PID     : 23743                TID  : 293         PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 293                  EDUNAME: db2redom (QAS) 0
    FUNCTION: DB2 UDB, recovery manager, sqlpParallelRecovery, probe:880
    DATA #1 : <preformatted>
    Resetting max shredder memory to 100045238 from 468172800
    2011-02-24-17.02.21.574941+480 I4956A625          LEVEL: Severe
    PID     : 23743                TID  : 174         PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 174                  EDUNAME: db2redow (QAS) 0
    FUNCTION: DB2 UDB, buffer pool services, sqlbFixDataEMP, probe:830
    MESSAGE : ZRC=0x84020019=-2080243687=SQLB_EMP_INDIRECT_NOT_FOUND
              "EMP INDIRECT NOT FOUND"
    DATA #1 : <preformatted>
    emp->n_entries = 3
    emAddr[lvl].slot = 5
    emp->allocations[emAddr[lvl].slot] = 0
    emp->unFmtChild = 0.
    2011-02-24-17.02.21.577057+480 I6088A522          LEVEL: Error
    PID     : 23743                TID  : 174         PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 174                  EDUNAME: db2redow (QAS) 0
    FUNCTION: DB2 UDB, buffer pool services, sqlbDMScheckObjAlloc, probe:820
    DATA #1 : String, 89 bytes
    Obj= State=x27 Parent={30;9032}, EM=51452, PP0=51454 Page=51453
    2011-02-24-17.02.21.577899+480 I6611A969          LEVEL: Error
    PID     : 23743                TID  : 174         PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 174                  EDUNAME: db2redow (QAS) 0
    FUNCTION: DB2 UDB, buffer pool services, sqlbDMScheckObjAlloc, probe:0
    DATA #1 : Object descriptor, PD_TYPE_SQLB_OBJECT_DESC, 72 bytes
        Obj: Parent={30;9032}
      lifeLSN:       00002CC0415B
      tid:           0 0  0
      extentAnchor:               51452
      initEmpPages:                   0
      poolPage0:                  51454
      poolflags:                   3122
      objectState:                   27
      lastSMP:                        0
      pageSize:                   16384
      extentSize:                     2
      bufferPoolID:                   1
      partialHash:            591921182
      bufferPool:    0x0000010001ebb280
    2011-02-24-17.02.21.579571+480 I8710A504          LEVEL: Error
    PID     : 23743                TID  : 174         PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 174                  EDUNAME: db2redow (QAS) 0
    FUNCTION: DB2 UDB, buffer pool services, sqlbCheckAllocation, probe:800
    MESSAGE : ZRC=0x84020019=-2080243687=SQLB_EMP_INDIRECT_NOT_FOUND
              "EMP INDIRECT NOT FOUND"
    2011-02-24-17.02.23.605521+480 I27354A552         LEVEL: Severe
    PID     : 23743                TID  : 25          PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 25                   EDUNAME: db2agent (QAS) 0
    FUNCTION: DB2 UDB, base sys utilities, sqeLocalDatabase::RestartDatabase, probe:202
    MESSAGE : If 'DATALINK: file server not registered' appears above and
              DATALINKS=NO, set DATALINKS=YES and try RESTART again
    2011-02-24-17.02.23.607663+480 I28352A477         LEVEL: Warning
    PID     : 23743                TID  : 25          PROC : db2sysc 0
    INSTANCE: db2qas               NODE : 000         DB   : QAS
    APPHDL  : 0-7                  APPID: *LOCAL.db2qas.110224090215
    AUTHID  : DB2QAS 
    EDUID   : 25                   EDUNAME: db2agent (QAS) 0
    FUNCTION: DB2 UDB, buffer pool services, sqlbCleanupBeforeTerm, probe:826
    DATA #1 : String, 41 bytes
    Recovery failed, dirty pages not flushed.
    Thanks in advance.
    Devan
    Edited by: Mdevan on Feb 24, 2011 10:41 AM                                                                                Sorry the messages was not in a good format to read.
    Edited by: Mdevan on Feb 24, 2011 10:43 AM
    Edited by: Mdevan on Feb 24, 2011 10:44 AM

    Hi Patrick,
    Thanks for your reply.
    We've done a restore, but its a file system restore of db2 of /db2/db2qas/sapdata1...6.
    Hence after the restore, im able to db2start but not "db2 connect to QAS"
    If you have any restoration experience, pls do share with me the necessary path of /db2 need to be restored? Pls find my server's file system structure below:-
    bash-3.00# df -h
    Filesystem             size   used  avail capacity  Mounted on
    /dev/vx/dsk/bootdg/rootvol
                            30G    19G   9.9G    67%    /
    /devices                 0K     0K     0K     0%    /devices
    ctfs                     0K     0K     0K     0%    /system/contract
    proc                     0K     0K     0K     0%    /proc
    mnttab                   0K     0K     0K     0%    /etc/mnttab
    swap                   167G   1.7M   167G     1%    /etc/svc/volatile
    objfs                    0K     0K     0K     0%    /system/object
    sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
    /platform/SUNW,T5240/lib/libc_psr/libc_psr_hwcap2.so.1
                            30G    19G   9.9G    67%    /platform/sun4v/lib/libc_psr.so.1
    /platform/SUNW,T5240/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                            30G    19G   9.9G    67%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
    fd                       0K     0K     0K     0%    /dev/fd
    swap                   167G    48K   167G     1%    /var/run
    swap                   167G     0K   167G     0%    /dev/vx/dmp
    swap                   167G     0K   167G     0%    /dev/vx/rdmp
    /dev/dsk/c1t7d0s0      135G    77G    57G    58%    /tempcd
    /dev/vx/dsk/bootdg/opt
                            15G   6.2G   8.4G    43%    /opt
    /dev/vx/dsk/bootdg/tmp
                           6.4G   6.5M   6.3G     1%    /temp
    /dev/vx/dsk/bootdg/home
                            15G   351M    14G     3%    /home
    /dev/vx/dsk/sapnfsdg/nfsvol
                            98G    88G   9.2G    91%    /erp_nfs
    /dev/vx/dsk/erpqasdb2dg/IBMvol
                            19G    70M    18G     1%    /opt/IBM
    /dev/vx/dsk/erpqasdb2dg/db2qasvol
                            19G  1011M    17G     6%    /db2/db2qas
    /dev/vx/dsk/erpqassapdg/sapmntvol
                            29G   1.8G    26G     7%    /sapmnt/QAS
    /dev/vx/dsk/erpqasdb2dg/sapdatavol5
                            98G    43G    51G    47%    /db2/QAS/sapdata5
    /dev/vx/dsk/erpqassapdg/qasvol
                            29G   6.1G    22G    22%    /usr/sap/QAS
    /dev/vx/dsk/erpqasdb2dg/sapdatavol3
                            98G    43G    51G    47%    /db2/QAS/sapdata3
    /dev/vx/dsk/erpqasdb2dg/db2dumpvol
                           9.7G   953M   8.2G    11%    /db2/QAS/db2dump
    /dev/vx/dsk/erpqassapdg/transvol
                            68G    32G    34G    49%    /usr/sap/trans
    /dev/vx/dsk/erpqasdb2dg/saptemp1vol
                           9.7G    20M   9.1G     1%    /db2/QAS/saptemp1
    /dev/vx/dsk/erpqasdb2dg/sapdatavol2
                            98G    43G    51G    47%    /db2/QAS/sapdata2
    /dev/vx/dsk/erpqasdb2dg/sapdatavol1
                            98G    43G    51G    47%    /db2/QAS/sapdata1
    /dev/vx/dsk/erpqasdb2dg/sapdatavol6
                            98G    43G    51G    47%    /db2/QAS/sapdata6
    /dev/vx/dsk/erpqasdb2dg/sapdatavol4
                            98G    54G    41G    57%    /db2/QAS/sapdata4
    /dev/vx/dsk/erpqasdb2dg/logarchvol
                           293G   186G   100G    65%    /db2/QAS/log_archive
    /dev/vx/dsk/erpqasdb2dg/logdirvol
                            19G   745M    18G     4%    /db2/QAS/log_dir
    Pls share if you have any clue.

  • Oracle.jdbc.driver.T4CPreparedStatement causing out of memory exception

    I am using oracle spatial 11.2.0.3 g.
    I am getting out of memory exception on a process.
    I analyzed the heap dump using OOMemory analyzer and figured out  oracle.jdbc.driver.T4CPreparedStatement keeping 73%  of the heap space.
    Is oracle expanding the SPARQL queries in java side or keeping the results in cache.
    How to solve it ?

    Hi,
    We will need a re-producible test case (preferably small) to figure out why you are getting out of memory. You can send it to Oracle Support or email me at alan dot wu at oracle dot com.
    Jena Adapter does not cache SPARQL query results on the Java side. The T4CPreparedStatement is not even in Jena Adapter's
    code path or RDF's code path.
    Thanks,
    Zhe Wu

  • JDBC\SQLJ form search  gives ESI processing exception.

    SQLJ form search gives ESI processing exception. I tried terms including SQLJ, OC4J, J2EE

    SQLJ form search gives ESI processing exception. I tried terms including SQLJ, OC4J, J2EE

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

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

  • Help me debug jdbc code

    hi
    can anyone help me debug my code? no compilation errors or exceptions thrown. but it's not working like i want it to
    createAccount() calls insertAccount() which calls getNextID() which calls selectNextID()
    this should create a new account, with an account id selected from the db and incremented +1. so if i create 100 accounts, it should number accounts 1-100, the lastkey table in the db should have a value 100 for account_lastkey when i'm done.
    what happens is that 100 accounts are created, all with account number 0. somehow my getNextID() and selectNextID() methods are not working. please help
       * createAccount is used by administrator to add a new Account
       * in the system.
       * @param newAccount AccountEntryStruct containing data for new account
       * @return int the new unique Account ID
       * @exception com.kafein.idl.exceptions.DataValidationException
      public int createAccount(AccountEntryStruct newAccount) throws
        DataValidationException {
        validateData (newAccount); // throws DataValidationException;
        int accountID = 0;     
        // Create new Account.
        Account anAccount = new Account(accountID,
                            newAccount.userName,
                            newAccount.userEmail,
                            newAccount.creditCardType,
                            newAccount.creditCardNumber,
                            newAccount.creditCardExpirationDate.year,
                            newAccount.creditCardExpirationDate.month,
                            newAccount.userPassword,
                            newAccount.initialBalance);
        // Insert here / call method insertAccount() pass it in an account object
        // or call manager object - accountmanager.put()
        // Insert Account into Database
        try {
            insertAccount(anAccount);
        catch(Exception e) {
               e.printStackTrace();       
        accounts.put(accountID,anAccount);
        return accountID;
       * getNextID is used to generate a unique ID.
       * @return int an Account ID
      protected synchronized int getNextID() {
        int nextAccountID=0;
        try {
             nextAccountID = selectNextID();
        catch(Exception e) {
               e.printStackTrace();       
        return nextAccountID;
       * jdbc related methods
      private int selectNextID() throws Exception {
           int account_lastkey;
           try {
                Statement statement = connection.createStatement();
                ResultSet rs = statement.executeQuery(
                    "Select ACCOUNT_LASTKEY from LASTKEY");
                System.out.println("Account Lastkey");
                //while (rs != null && rs.next()) {
                 rs.next();
                    account_lastkey = rs.getInt(1);
                    System.out.println(account_lastkey);
                connection.commit();
                statement.close();
               //return account_lastkey;
               return account_lastkey;
            } catch(Exception e) {
                System.err.println("System Exception in selectNextID");
                System.err.println(e);
                throw e;
       * insertAccount is used to insert a new Account in the Database
       * @param int AccountID
       * @return AccountStruct containing data for the existing Account
      private void insertAccount(Account anAccount) throws Exception {
              AccountStruct anAccountStruct = anAccount.getAccountStruct();  
         String  acct_username    = anAccountStruct.userName;
            String  acct_useremail = anAccountStruct.userEmail;
         String  acct_cc_type = anAccountStruct.creditCardType;
            String  acct_cc_number = anAccountStruct.creditCardNumber;
         int acct_cc_expyr = anAccountStruct.creditCardExpirationDate.year;
            int acct_cc_expmo = anAccountStruct.creditCardExpirationDate.month;
            String  acct_userpassword = anAccountStruct.userPassword;
            float     acct_userbalance = anAccountStruct.accountBalance;
            int     acct_id = getNextID();
         try {
                System.out.println("Inserting data...");
                connection.setAutoCommit(false);
             // Calculate Start time
                Log.debug("Starting data insertion ( 1" +
                    " row) into ACCOUNT table..");
                long startTime = System.currentTimeMillis();
                preparedStatement = connection.prepareStatement(
                    "INSERT INTO ACCOUNT (ACCT_ID, ACCT_USERNAME, ACCT_USEREMAIL, ACCT_CC_TYPE, ACCT_CC_NUMBER, " +
                    "ACCT_CC_EXPYR, ACCT_CC_EXPMO, ACCT_USERPASSWORD, ACCT_USERBALANCE) VALUES ( ?, ?, ?, ?, ?, ? , ?, ?, ?)");
                    //acct_id  = 1000;
                    preparedStatement.setInt(1, acct_id);
                    preparedStatement.setString(2, acct_username);
                    preparedStatement.setString(3, acct_useremail);
                    preparedStatement.setString(4, acct_cc_type);
                    preparedStatement.setString(5, acct_cc_number);
                    preparedStatement.setInt(6, acct_cc_expyr);
                    preparedStatement.setInt(7, acct_cc_expmo);
                    preparedStatement.setString(8, acct_userpassword);
                    preparedStatement.setFloat(9, acct_userbalance);
              preparedStatement.executeUpdate();
                    connection.commit();
                preparedStatement = connection.prepareStatement(
                    "UPDATE LASTKEY SET ACCOUNT_LASTKEY = ?");
                preparedStatement.setInt(1, acct_id);
              preparedStatement.executeUpdate();
                    connection.commit();
             System.out.println("1 account created.");
                preparedStatement.close();
                long stopTime = System.currentTimeMillis();
                Log.debug("Account table load complete.");
                Log.debug("Load time = " +
                                   ((stopTime - startTime)/(1000f)) + " seconds");
                Log.debug("Data insertion complete");
            } catch(Exception e) {
                System.err.println("System Exception in loadData");
                System.err.println(e);
                throw e;
     

    thank you for responding!
    well, i tried changine the line in createAccount() from int accountID=0; to intaccountID=1111;
    this does not create 100 accounts with id 1111 - it still creates 100 accounts with id 0, so that's why, even though this method definitely needs work, i don't think that this is the line that's causing identical id's of 0 to be generated.

Maybe you are looking for

  • How to create a view?

    HI friends,               Can any one help me out in creation of view i am suceeded in creation but while display it is showing no records i think i am going wrong in selection conditions....can anyone give me clear steps to create a  view.?

  • Would like to post write up of depreciation

    Dear Experts We have been facing a situation that....we need to post write up of depreciation in production server, which is not possible and the system is throwing message that.... ""You cannot post write-ups     Message no. AA402 Diagnosis     None

  • Lost files, music, iPhoto's since updating to Yosemite

    Hi Updated to Yosemite 2 weeks ago. iTunes, iPhoto, Pages, Numbers all working excellent etc... However, no U2 album (automatic download) was ever included with the iTunes update 12.0.1. Fired up Macbook this morning. It Froze. I restarted it. It too

  • Phone volume so low I can barely hear person talking.  Help?

    I'm not sure what happened but now when I'm on a call, I can barely hear the person talking to me.  I tried a soft reset.  That did not work.  I reset my phone from iTunes and that did not work either.  I recently upgraded my software to 5.0.1 and re

  • How can I create responsive motion path animation

    I have an animate file that contains many amimations and one motion path animation.  All animation elements of the animate file are responsive with the exception of the motion path animation which is not for some reason.  Why does the motion path ani