Issue 2529 - Form Letter crash when data not preloaded
Summary: Form Letter crash when data not preloaded
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: 641
Hardware: PC Linux, all
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-13 08:57 UTC by Unknown
Modified: 2013-08-07 15:45 UTC (History)
2 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 Unknown 2001-12-13 08:57:21 UTC
When I try to retrieve data from a JDBC Data Source into a Form Letter, and the
data was not yet displayed (e.g. I dont wan't the form letter to start with
record 1 but rather with record 20)  in the table at the right side of the form
letter dialog, printing crashes.
The problem can be worked around by first scrolling down the table to the point
where I want to start printing the letters.
Comment 1 dirk.grobler 2002-01-03 20:25:07 UTC
Seems to be a timing problem in the beamer window or the form. Marc,
can you reproduce the problem?
Comment 2 marc.neumann 2002-01-07 10:46:17 UTC
Hi,

I can't reproduced this problem, so I have some questions.

Which JDBC driver do you use?
How many records are in teh table?

Bye Mary
Comment 3 marc.neumann 2002-01-07 11:17:21 UTC
Sorry, my name is Marc not Mary. 

Comment 4 bht 2002-03-12 03:11:20 UTC
Hi,
I could provide a compact testcase including DDL for a JDBC driver if
someone could send me a formletter or a ling where to find them(and of
course if I can reproduce
this).
Currently I don't know how to write such a formletter template.
Would someone be so kind to send me one to bht@actrix.gen.nz ?
Thanks,
Bernard
Comment 5 Frank Schönheit 2002-03-12 07:32:52 UTC
Bernard,

Form letter in this context simply means a writer document which
contains database fields (it's a - reasonable - guess of what Moritz
meant).
For creating such a form letter, simply open a table in the data
source browser, and drag'n'drop a column into a new text document.

Ciao
Frank
Comment 6 bht 2002-03-12 10:30:48 UTC
Frank,

I can't believe how easy it is. Thanks a lot!
Comment 7 bht 2002-03-16 08:20:36 UTC
Would like to duplicate this but cannot connect to my JDBC datasource.

The server is running and I connect to it with other programs ok.

Error is: The connection to the data source "name here" could not be
established. SQL Status S1000 Description "No Java installed"
The path of the jar file with the driver is under Option|Security as a
single entry (locks up if I want to add another one).

I re-installed Java in OpenOffice multiple times.
Found a java.ini file:

[Install]
InstallationPath=.
CPLD=0
AdditionalClasspath=<OFFICE_CLASSDIR>\classes.jar;<OFFICE_CLASSDIR>\sandbox.jar;<OFFICE_CLASSDIR>\ridl.jar;<OFFICE_CLASSDIR>\unoil.jar;<OFFICE_CLASSDIR>\jurt.jar;<OFFICE_CLASSDIR>\juh.jar;<OFFICE_CLASSDIR>\swingall.jar;<OFFICE_CLASSDIR>\java_uno.jar;<OFFICE_CLASSDIR>\xt.jar;<OFFICE_CLASSDIR>\jaxp.jar;
VerifiedVersion=1.3.1
RequiredVersion=1.3.0
ExcludeVersion=1.1.6 1.1.7b 1.1.7B 1.1.8 1.2.1

[Java]
Home=C:\Program Files\Java\j2re1.4.0
VMType=jre
Version=1.4.0
RuntimeLib=C:\Program Files\Java\j2re1.4.0\bin\hotspot\jvm.dll
SystemClasspath=C:\Program Files\Java\j2re1.4.0\lib\rt.jar;C:\Program
Files\Java\j2re1.4.0\lib\i18n.jar;C:\Program
Files\Java\j2re1.4.0\lib;C:\prog\STOFF\program\classes\classes.jar;C:\prog\STOFF\program\classes\sandbox.jar;C:\prog\STOFF\program\classes\ridl.jar;C:\prog\STOFF\program\classes\unoil.jar;C:\prog\STOFF\program\classes\jurt.jar;C:\prog\STOFF\program\classes\juh.jar;C:\prog\STOFF\program\classes\swingall.jar;C:\prog\STOFF\program\classes\java_uno.jar;C:\prog\STOFF\program\classes\xt.jar;C:\prog\STOFF\program\classes\jaxp.jar;
Java=1
JavaScript=1
Applets=1

That all looks quite good but what could be missing?
Is there an easy test to verify Java before I get into the driver issue?
Any ideas? Many thanks.
Comment 8 Unknown 2002-03-16 13:39:29 UTC
Sorry, but where is path to your jdbc-driver class?
Comment 9 bht 2002-03-16 18:50:22 UTC
Thanks for the feedback.
I entered the class name "com.mckoi.JDBCDriver" in Data Souce
Administration JDBC tab. Results appear in DataAccess.XML:

   <DataSourceDescription state="replaced" cfg:name="GE2">
    <Bookmarks cfg:element-type="Bookmark"/>
    <DataSourceSettings cfg:element-type="DataSourceSetting">
     <DataSourceSetting cfg:name="CharSet">
      <Value cfg:type="string"/>
     </DataSourceSetting>
     <DataSourceSetting cfg:name="JavaDriverClass">
      <Value cfg:type="string">com.mckoi.JDBCDriver</Value>
     </DataSourceSetting>
    </DataSourceSettings>
    <IsPasswordRequired cfg:type="boolean">true</IsPasswordRequired>
    <LayoutInformation cfg:type="binary" cfg:nullable="false"
cfg:encoding="hex"/>
    <LoginTimeout cfg:type="int">0</LoginTimeout>
    <NumberFormatSettings cfg:type="binary" xsi:null="true"/>
    <Queries cfg:element-type="Query"/>
    <SuppressVersionColumns
cfg:type="boolean">true</SuppressVersionColumns>
    <TableFilter cfg:type="string" cfg:derivedBy="list">%</TableFilter>
    <TableTypeFilter cfg:type="string" cfg:derivedBy="list"/>
    <Tables cfg:element-type="Table"/>
    <URL cfg:type="string">jdbc:mckoi://localhost:port number here/</URL>
    <User cfg:type="string">user name here</User>
   </DataSourceDescription>
And the additional classpath shows in the file

user\config\registry\instance\org\openoffice\Office\Java.xml
as follows:

<Java state="modified" cfg:package="org.openoffice.Office"
xmlns="http://openoffice.org/2000/registry/components/Java"
xmlns:cfg="http://openoffice.org/2000/registry/instance"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
  <VirtualMachine>
   <NetAccess cfg:type="int">0</NetAccess>
   <UserClassPath
cfg:type="string">C:\prog\mckoi\mkjdbc.jar;C:\prog\jdk14\jre\lib\rt.jar</UserClassPath>
  </VirtualMachine>
 </Java>
Comment 10 bht 2002-03-17 10:04:13 UTC
OK I have JDBC running. The problem was JRE 1.4 was accepted as
runtime in OOo but only 1.3 is supported and works. Will come back to
this bug after I am a little more familiar with JDBC datasources.
Thanks a lot for your help.
Comment 11 marc.neumann 2002-03-26 13:58:24 UTC
Hi,

is this bug still there in the new version.

Bye Marc
Comment 12 Unknown 2002-04-06 05:53:31 UTC
Hi,

I'll check thet status with the new version of OpenOffice after my 
holidays. Actually, you didn't even need a JDBC Datasource. A 
CSV TextFile as Datasource was alright to make the bug show 
up.

Greeting 

Moritz
Comment 13 Unknown 2003-02-14 16:09:34 UTC
I've been working with the Firebird database and their JDBC driver in
OpenOffice to develop form letters. Unfortunately I get the same crash
as previously noted. I'm using OOo v643 on Win2K SP3 (Java 1.4.1)
connecting to a Firebird (v1.02) database on a Linux server. 

On the latest crash I received the following error:

The instruction at "0x0040634e" referenced at "0x00000030" The memory
could not be read. 

Hope this helps and if you need more info please ask.

Thanks
Comment 14 Unknown 2003-02-14 16:34:36 UTC
Some additional notes:

1. Upgraded to 643C and problem still occurs
2. OO Writer doesn't crash if you select one record from the database
3. The information from the database (using a single record) does not
update the fields in the document.
Comment 15 hans_werner67 2004-02-02 12:52:07 UTC
change subcomponent to 'none'
Comment 16 Martin Hollmichel 2004-04-20 12:33:25 UTC
mh->msc: can we close this issue ?
Comment 17 marc.neumann 2004-04-26 15:35:35 UTC
yes I think so -> close
Comment 18 marc.neumann 2004-04-26 15:35:49 UTC
close