Issue 68263 - Illegal operation on empty result set error message in m180
Summary: Illegal operation on empty result set error message in m180
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: 680m180
Hardware: Mac Mac OS X, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: jogi
QA Contact: issues@dba
URL:
Keywords: crash, oooqa
Depends on:
Blocks:
 
Reported: 2006-08-08 18:01 UTC by alex.thurgood
Modified: 2013-08-07 15:45 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description alex.thurgood 2006-08-08 18:01:21 UTC
Test environment :
remote mysql server 4.1.12, accessible via IP
mysql JDBC connector GA version stable prod release 3.1.12
OOo : Mac OSX PPC m180 (couldn't select m180 in drop down fields)

1) Create an ODB document using the wizard to set up a connection via MySQL JDBC
to a remote mysql server.

2) Use the ODB document directly or close it, then re-open it. Click on the
Tables button in left hand pane of the main document window. The table list
appears. Try to open a table to view data by double-clicking, context menu or
using the Query generator to do a SELECT * FROM MyTable statement.

3) Error message : "Can not update data content. Illegal operation on empty
result set" Click on OK

4)A blank table control appears with no data in it.

Although I have created a new issue here, it might be a Mac only problem, that I
have evoked in issue 65572. However, it ought to be checked on another platform.

Alex
Comment 1 alex.thurgood 2006-08-08 18:02:14 UTC
setting oooqa keyword
alex
Comment 2 alex.thurgood 2006-08-08 18:03:05 UTC
correcting title
alex
Comment 3 alex.thurgood 2006-08-08 19:14:05 UTC
more info : the tables which cause the error message already have data in them.
Other tables, that are as yet free of any data, can be opened. See my comments
in i65572
Comment 4 alex.thurgood 2006-08-08 19:19:49 UTC
Just tried writing data via the opened table from within OOo ODB table window.
Error message : illegal operation.

To sum up :
You can't open tables that already have data in them.

You can open tables that don't yet have any data in them.

You can't write new data into these virgin tables.

Alex
Comment 5 alex.thurgood 2006-08-09 08:49:55 UTC
Update :

If I insert values via the mysql CLI into a table that previously had no data
stored in it, and then try to access this table via the OOo GUI by opening it
from within an ODB document, I get the same error message as for all the other
tables that already had data in them.

Conclusion : you still can not write data into a table using the MySQL JDBC
connector from OOo Mac OSX PPC m180. Once you write data into a previously empty
table, the table data can no longer be read from within the OOo GUI.

Alex 
Comment 6 christoph.lukasiak 2006-08-16 14:45:45 UTC
works fine with a 3.1.12 JDBC driver on a winxp in a src680m180 
Comment 7 alex.thurgood 2006-08-17 15:48:13 UTC
Hi,

I've just now tried this on a Linux box with m180 connecting via MySQL JDBC
Connector 3.1.13 to a remote mysql server, and it works fine.

The problem appears to be Mac specific (yet again, sigh).

Alex 
Comment 8 jjmckenzie 2006-08-18 02:52:39 UTC
@alex

Thank you for creating this issue.  Can you connect to a LOCAL database on your
Mac system like I asked you to do in IZ 65572?

James M.
Comment 9 alex.thurgood 2006-08-18 18:24:21 UTC
@james : I am going to try and install a local mysql server on the Mac machine,
but disk space is very tight, and I might not have enough room. This is one of
the reasons why we are doing remote access to mysql servers from the Mac boxes.

I'll keep you posted.

Alex
Comment 10 alex.thurgood 2006-08-20 18:24:19 UTC
@all : I have installed a mysql server locally on the Mac machine and created
some tables with varying fields in them (INT, AUTO_INCREMENT, VARCHAR,
DATE,etc). I can write to these tables from within OOo m180 using either of the
JDBC drivers, although the 3.1.12 driver doesn't work properly in that it
refuses to display auto_increment fields. The 5.03 JDBC driver works OK in this
regard. Also, the 3.1.12 driver won't display field names with accents in (Latin
characters like é and è), for example like the fields proposed in the OOo Table
Creation Wizard (Contacts). I beleive this was a known limitation of the driver.

Anyway, locally there is write access.

Remote access still results in the Illegal operator message. On the fourth
attempt to access a table that provokes this error message, OOo m180 crashes and
opens the Apple bug reporter.

So, remote access doesn't work, and this is what we use in our production set up.


Alex
Comment 11 alex.thurgood 2006-08-20 18:26:58 UTC
@all : I have installed a mysql server locally on the Mac machine and created
some tables with varying fields in them (INT, AUTO_INCREMENT, VARCHAR,
DATE,etc). I can write to these tables from within OOo m180 using either of the
JDBC drivers, although the 3.1.12 driver doesn't work properly in that it
refuses to display auto_increment fields. The 5.03 JDBC driver works OK in this
regard. Also, the 3.1.12 driver won't display field names with accents in (Latin
characters like é and è), for example like the fields proposed in the OOo Table
Creation Wizard (Contacts). I beleive this was a known limitation of the driver.

Anyway, locally there is write access.

Remote access still results in the Illegal operator message. On the fourth
attempt to access a table that provokes this error message, OOo m180 crashes and
opens the Apple bug reporter.

So, remote access doesn't work, and this is what we use in our production set up.


Alex
Comment 12 alex.thurgood 2006-08-20 18:30:31 UTC
I might add that updating from the Mac to the remote mysql database works fine
from within CocoaMysql, so it's definitely linked to the way Mac OOo version
uses the MySQL JDBC driver to call the data from the remote server.

Alex
Comment 13 alex.thurgood 2006-08-30 07:39:58 UTC
adding crash keyword because if you try to access a table that produces the
error message three or four times in a row, OOo systematically crashes.

Upping priority to P2

Alex
Comment 14 alex.thurgood 2006-08-30 07:45:32 UTC
linking to i65572
Comment 15 alex.thurgood 2006-08-30 07:46:35 UTC
BTW, the problem is still present in D680_m1

Alex
Comment 16 alex.thurgood 2006-09-12 21:07:47 UTC
and still present in 2.0.4rc1
Comment 17 jjmckenzie 2006-09-12 21:42:46 UTC
@wurzel:

I have a test version of OpenOffice.org with fixes for some other problems.  I 
will have to setup a test network and see if I can get this error to recur.
I don't have a location where the test version can be retrieved from.

James McKenzie
Comment 18 shaunmcdonald131 2006-11-05 12:33:16 UTC
smsm1 -> wurzel:
Do you have some sample SQL tables that can be used to make testing of this easier?
Comment 19 alex.thurgood 2006-11-05 16:14:58 UTC
@smsm1 : here's a sample table definition :

CREATE TABLE citation (
citation_id int(11) unsigned zerofill NOT NULL auto_increment,
family_id int(11) NOT NULL default '0',
citation_ref varchar(100) NOT NULL default '',
majdate timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY_KEY (citation_id)
)
ENGINE=MyISAM DEFAULT CHARSET=Latin1

I can't give you the data, it is covered by my professional secrecy obligations
(attorney client privilege).


Alex
Comment 20 alex.thurgood 2006-12-05 12:01:04 UTC
The problem is still there with 2.1rc1, and OOo still crashes after about 5 or 6
unsuccessful attempts to display the remote table

alex
Comment 21 jogi 2006-12-30 10:25:48 UTC
cc'ing fs: Frank, do you know somebody who would be able to debug the scenario which happens also in 
2.1?
Comment 22 jjmckenzie 2006-12-30 17:44:18 UTC
This issue may be related to 66123.  More investigation is needed.  

James McKenzie
Comment 23 jjmckenzie 2007-01-02 05:07:43 UTC
@wurzel:

There are MySQL ODBC drivers available for the Mac Intel at:
http://www.graphiccare.ca/index.php?option=com_content&task=view&id=56&Itemid=37
I would like to pass my thanks to Thomas Page of Graphic Care for building and
releasing them.
I have not been able to test them with a remote connection.
James McKenzie
Comment 24 Frank Schönheit 2007-01-03 07:26:02 UTC
> cc'ing fs: Frank, do you know somebody who would be able to debug the
> scenario which happens also in 2.1?

If you in the OOo/Mac community do not know who could debug this, who else
should? :)

If somebody can provide me with a stack of the crash at least, I could have a
look at it (attach it to this issue).

For the error in displaying the tables: If somebody can provide information
about when/where the respective com::sun::star::sdbc::SQLException is thrown
(the debugger should be able to break on this event, and show the stack), this
might also give a hint. Besides this, I'm not sure about the tracing
capabilities of the JDBC drivers. If there were some, you could try looking
what's done last.
Comment 25 alex.thurgood 2007-02-14 11:09:06 UTC
@james

Tried the binary MyODBC driver for MacIntel platform you suggested, but it
throws the following error :

[iODBC][DriverManager]
dlopen(/usr/local/myodbc/lib/libmyodbc3_r_3.51.12.so,6)
:Library no loaded : /usr/lib/libltdl.3.dylib
Referenced from : /usr/local/myodbc/lib/libmyodbc3_r_3.51.12.so

Reason : image not found

SQL Status : 00000
Error Code : -1341126392

This was tested on OOo 2.1, I can not install a dev version on the MacIntel
production machine. 


Alex
Comment 26 jjmckenzie 2008-01-07 01:33:44 UTC
Removed dependency to an old issue.  This issue is independent of any release
version.
Comment 27 alex.thurgood 2008-05-09 18:38:42 UTC
This now works for me in 3.0 Beta m3 Aqua OOo. Setting to resolved, WFM.

Alex
Comment 28 shaunmcdonald131 2008-05-09 23:49:48 UTC
closing