Unix Technical Forum

[IBM][JDBC Driver] CLI0601E

This is a discussion on [IBM][JDBC Driver] CLI0601E within the DB2 forums, part of the Database Server Software category; --> Hi ! My dev team is getting this error when they run big load program : COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 12:29 PM
Roger
 
Posts: n/a
Default [IBM][JDBC Driver] CLI0601E

Hi !

My dev team is getting this error when they run big load program :
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0601E Invalid
statement handle or statement is closed. SQLSTATE=S1000
..
The application runs fine when they run small loads. I checked the Db2
client FP..its on DV2 V8 FP10.

Any input is greatly appreciated.


Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 12:29 PM
Bernd Hohmann
 
Posts: n/a
Default Re: [IBM][JDBC Driver] CLI0601E

Roger wrote:

> My dev team is getting this error when they run big load program :
> COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0601E Invalid
> statement handle or statement is closed. SQLSTATE=S1000
> .
> The application runs fine when they run small loads. I checked the Db2
> client FP..its on DV2 V8 FP10.


Wild guess: another thread retrieves a statement from the connection in
the meantime and executes it or there is only one statement handle and a
different threads uses this handle from time to time.

Bernd

--
What do you get when you cross a mail pigeon with a parrot ? Voice mail
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 12:29 PM
Roger
 
Posts: n/a
Default Re: [IBM][JDBC Driver] CLI0601E

I don't think thats the case. We are running the insert process by
itself.


Bernd Hohmann wrote:
> Roger wrote:
>
> > My dev team is getting this error when they run big load program :
> > COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0601E Invalid
> > statement handle or statement is closed. SQLSTATE=S1000
> > .
> > The application runs fine when they run small loads. I checked the Db2
> > client FP..its on DV2 V8 FP10.

>
> Wild guess: another thread retrieves a statement from the connection in
> the meantime and executes it or there is only one statement handle and a
> different threads uses this handle from time to time.
>
> Bernd
>
> --
> What do you get when you cross a mail pigeon with a parrot ? Voice mail


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 12:29 PM
aj
 
Posts: n/a
Default Re: [IBM][JDBC Driver] CLI0601E

Is there a connection pooling mechanism? Could something be timing out
on big loads and cutting the connection?

Roger wrote:
> I don't think thats the case. We are running the insert process by
> itself.
>
>
> Bernd Hohmann wrote:
>> Roger wrote:
>>
>>> My dev team is getting this error when they run big load program :
>>> COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0601E Invalid
>>> statement handle or statement is closed. SQLSTATE=S1000
>>> .
>>> The application runs fine when they run small loads. I checked the Db2
>>> client FP..its on DV2 V8 FP10.

>> Wild guess: another thread retrieves a statement from the connection in
>> the meantime and executes it or there is only one statement handle and a
>> different threads uses this handle from time to time.
>>
>> Bernd
>>
>> --
>> What do you get when you cross a mail pigeon with a parrot ? Voice mail

>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 12:29 PM
Bernd Hohmann
 
Posts: n/a
Default Re: [IBM][JDBC Driver] CLI0601E

Roger wrote:

> I don't think thats the case. We are running the insert process by
> itself.


In this case: define "big load program".... If the connection idles for
a long while, it will be closed by the tcp/ip stack as every other
tcp/ip connection.

We had this case a while ago. Either you invent a ping-thread using the
same connection (which won't work here because you're waiting for the
result) or tune the timeout settings of the workstations tcp/ip stack.

Bernd

--
What do you get when you cross a mail pigeon with a parrot ? Voice mail
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 12:29 PM
Roger
 
Posts: n/a
Default Re: [IBM][JDBC Driver] CLI0601E

I am not using connection pooling. Runs on a type 4 driver. It runs for
1 hr and then gets the error



Bernd Hohmann wrote:
> Roger wrote:
>
> > I don't think thats the case. We are running the insert process by
> > itself.

>
> In this case: define "big load program".... If the connection idles for
> a long while, it will be closed by the tcp/ip stack as every other
> tcp/ip connection.
>
> We had this case a while ago. Either you invent a ping-thread using the
> same connection (which won't work here because you're waiting for the
> result) or tune the timeout settings of the workstations tcp/ip stack.
>
> Bernd
>
> --
> What do you get when you cross a mail pigeon with a parrot ? Voice mail


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 12:29 PM
Bernd Hohmann
 
Posts: n/a
Default Re: [IBM][JDBC Driver] CLI0601E

Roger wrote:
> I am not using connection pooling. Runs on a type 4 driver. It runs for
> 1 hr and then gets the error


1hr without any traffic from or to the database?

Bernd

--
What do you get when you cross a mail pigeon with a parrot ? Voice mail
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2008, 12:29 PM
Knut Stolze
 
Posts: n/a
Default Re: [IBM][JDBC Driver] CLI0601E

Roger wrote:

> I am not using connection pooling. Runs on a type 4 driver. It runs for
> 1 hr and then gets the error


Activate a CLI trace and see what is going on with your statement handles.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-27-2008, 12:31 PM
Roger
 
Posts: n/a
Default Re: [IBM][JDBC Driver] CLI0601E

thanks a trace revealed bug in the app that had close statement.

Knut Stolze wrote:
> Roger wrote:
>
> > I am not using connection pooling. Runs on a type 4 driver. It runs for
> > 1 hr and then gets the error

>
> Activate a CLI trace and see what is going on with your statement handles.
>
> --
> Knut Stolze
> DB2 z/OS Utilities Development
> IBM Germany


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-27-2008, 12:31 PM
Jan Nelken
 
Posts: n/a
Default Re: [IBM][JDBC Driver] CLI0601E

Roger wrote:
> thanks a trace revealed bug in the app that had close statement.
>
> Knut Stolze wrote:
>> Roger wrote:
>>
>>> I am not using connection pooling. Runs on a type 4 driver. It runs for
>>> 1 hr and then gets the error


Technically speaking you were using legacy App driver - since your CLI trace was
captured.
DB2 JCC Universal Driver in T2 (Type 2) connectivity does not use CLI layer -
but uses DB2 Client code.
DB2 JCC Universal Driver in T4 (Type 4) connectivity does not use CLI layer and
does not need DB2 client code installed.

Jan M. Nelken
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:30 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com