Hi Gerd
Unfortuneately I cannot use the NET driver in our environment. Its just
that out environment is very peculiar and that is not really an option.
I will get a hold of the latest weekly build. Here is the stack trace
you asked for:
109570 [Thread-3] ERROR
net.sourceforge.squirrel_sql.client.gui.ViewLogsSheet - Error
positioning caret in log text component
javax.swing.text.BadLocationException: Can't translate offset to line
at javax.swing.JTextArea.getLineOfOffset(JTextArea.java:353)
at
net.sourceforge.squirrel_sql.client.gui.ViewLogsSheet.refreshLog(ViewLogsSheet.java:281)
at
net.sourceforge.squirrel_sql.client.gui.ViewLogsSheet.access$700(ViewLogsSheet.java:58)
at
net.sourceforge.squirrel_sql.client.gui.ViewLogsSheet$Refresher.run(ViewLogsSheet.java:421)
at
net.sourceforge.squirrel_sql.fw.util.TaskExecuter.run(TaskExecuter.java:82)
at java.lang.Thread.run(Thread.java:536)
116304 [Thread-2] ERROR
net.sourceforge.squirrel_sql.client.session.mainpanel.SQLExecuterTask -
Error occured executing SQL
java.lang.StringIndexOutOfBoundsException: String index out of range: -35
at java.lang.String.substring(String.java:1480)
at
net.sourceforge.squirrel_sql.client.session.mainpanel.SQLExecuterTask.processQuery(SQLExecuterTask.java:429)
at
net.sourceforge.squirrel_sql.client.session.mainpanel.SQLExecuterTask.run(SQLExecuterTask.java:238)
at
net.sourceforge.squirrel_sql.fw.util.TaskExecuter.run(TaskExecuter.java:82)
at java.lang.Thread.run(Thread.java:536)
TIA
Regards,
Karim
Gerd Wagner wrote:
> Hi Karim,
>
> during the last months all the work I did on SQuirreL was mostly
> tested against DB2 Version 8.2 running on Linux. The driver I use is
> COM.ibm.db2.jdbc.net.DB2Driver, URL: jdbc:db2://<host>/<db>
> with db2java.zip and db2jcc.jar in the driver definition's extra
> classpath. I Never saw such trouble.
>
>
> Karim D. Saloojee wrote:
>
>> Hi
>>
>> We have just migrated to DB2 Version 8 and are now using the JDBC
>> Type 4 driver. This is when the problems started.
>>
>> The first problem is when running a simple query (SELECT * from
>> CUSTOMER) the following exception is printed out in the output window:
>> com.ibm.db2.jcc.b.SqlException: Invalid operation: result set closed
>> Query 1 elapsed time (seconds) - Total: 0.078, SQL query: 0.047,
>> Building output: 0.031
>>
>> In 1.2b6, the results of the query are still printed out in the
>> results window. In 2.0rc1 the results of the query do not even
>> display. Using the "Objects" view and drilling down, Squirrel
>> displays the table data in both versions without any issue.
>
> This sounds like a problem that occurred on the Derby DB some time
> ago. I'm not sure if it is fixed in 2.0 rc1. You may try out the
> latest weekly build to be sure you have got the fix.
>
>
>
>>
>> I have written a simple class that creates a JDBC connection in the
>> same way. When I run the query, no errors/exceptions occur. Although
>> I only retrieve the first column from the result set but I do not
>> believe this is related to the issue.
>>
>> The second problem is as follows. When running an update as follows:
>> UPDATE CUSTOMER SET SEGMENT = 777 WHERE ID IN (SELECT CUSTOMERID from
>> CASEBASIC)
>> the following is displayed in the output window:
>> 13 Rows Updated
>> Query 1 elapsed time (seconds) - Total: 0, SQL query: 0, Building
>> output: 0
>> Error: java.lang.StringIndexOutOfBoundsException: String index out of
>> range: -35
>
> Could you please have look at the Windows menu --> 'View SQuirreL
> logs' and check you find a stacktrace for the exception. If so please
> send it to me.
>
> Thanks
>
> Gerd
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing
> & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Squirrel-sql-users mailing list
> Squ...@li...
> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
>
___________________________________________________________
Important Notice:
Authorised Financial Services Provider
Important restrictions, qualifications and disclaimers
("the Disclaimer") apply to this email. To read this click on the
following address or copy into your Internet browser:
http://www.absa.co.za/disclaimer
The Disclaimer forms part of the content of this email in terms of
section 11 of the Electronic Communications and Transactions
Act, 25 of 2002.
If you are unable to access the Disclaimer, send a blank e-mail
to dis...@ab... and we will send you a copy of the
Disclaimer.
|