Bug 807316 - Bootstrap.bootstrap() from juh.jar doesn't work properly any more
Summary: Bootstrap.bootstrap() from juh.jar doesn't work properly any more
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-27 13:44 UTC by Mary Ellen Foster
Modified: 2012-04-11 17:07 UTC (History)
6 users (show)

Fixed In Version: libreoffice-3.4.5.2-10.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-11 03:53:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Java test program to trigger the bug (1.20 KB, text/x-java)
2012-03-27 13:45 UTC, Mary Ellen Foster
no flags Details

Description Mary Ellen Foster 2012-03-27 13:44:09 UTC
Description of problem:
Since the latest F16 update to libreoffice, you can no longer programatically control things through the com.sun.star.comp.helper.Bootstrap class in 
/usr/lib64/libreoffice/ure/share/java/juh.jar

The problem seems to be that Bootstrap includes a number of command-line options to ooffice, which produce the following series of warnings and one error:

CE> Warning: -nologo is deprecated.  Use --nologo instead.
CE> Warning: -nodefault is deprecated.  Use --nodefault instead.
CE> Warning: -norestore is deprecated.  Use --norestore instead.
CE> Warning: -nolockcheck is deprecated.  Use --nolockcheck instead.
CE> Warning: -accept=pipe,name=uno4377571654706408244;urp; is deprecated.  Use --accept=pipe,name=uno4377571654706408244;urp; instead.
CO> Unknown option -nocrashreport
CO> Run 'soffice --help' to see a full list of available command line options.

After the "Unknown option -nocrashreport", ooffice exits without setting up the connection.

This definitely works with libreoffice-3.4.3.2-11, and I suspect it probably even worked with some of the earlier 3.4.5-* versions (can't test though).

Version-Release number of selected component (if applicable):
libreoffice-3.4.5.2-8.fc16.src.rpm

How reproducible:
Every time

Steps to Reproduce:
1. Run the attached Java program (with ooffice running or not)
  
Actual results:
Error messages as above, and program hangs indefinitely

Expected results:
Connection established

Additional info:

Comment 1 Mary Ellen Foster 2012-03-27 13:45:10 UTC
Created attachment 573071 [details]
Java test program to trigger the bug

Comment 2 Caolan McNamara 2012-03-27 14:13:18 UTC
hmm, nocrashreport needs to be added to the known options I guess

Comment 3 Caolan McNamara 2012-03-27 14:29:38 UTC
Will be fixed in >= libreoffice-3.4.5.2-10.fc16

You can drop nocrashreport from your code FWIW in the meantime it doesn't do anything anyway as the crash reporter isn't built (we just rely on abrt)

Comment 4 Mary Ellen Foster 2012-03-27 14:34:28 UTC
Thanks for the extremely quick response!

Just to note, though, "-nocrashreport" isn't in my code; it's automatically added if you do Bootstrap.bootstrap() (using the jar file provided with LibreOffice) and you can't edit the command line options.

Comment 5 Stephan Bergmann 2012-03-27 15:52:36 UTC
(In reply to comment #4)
> Just to note, though, "-nocrashreport" isn't in my code; it's automatically
> added if you do Bootstrap.bootstrap() (using the jar file provided with
> LibreOffice) and you can't edit the command line options.

Yes.  And within LibreOffice, --nocrashreport is handled directly down in sal/osl/{unx/signal.c,w32/signal.cxx}, so <http://cgit.freedesktop.org/libreoffice/core/commit/?id=4efbd87e31e7488dfcdd1d07ff979f1f59b8b1f1> "Resolves: rhbz#800272 complain about unknown command-line options" should -- non-obviously -- not have complained about it.

Comment 6 Fedora Update System 2012-03-29 13:20:08 UTC
libreoffice-3.4.5.2-10.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/libreoffice-3.4.5.2-10.fc16

Comment 7 Fedora Update System 2012-03-31 03:18:33 UTC
Package libreoffice-3.4.5.2-10.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libreoffice-3.4.5.2-10.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-5070/libreoffice-3.4.5.2-10.fc16
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-04-11 03:53:08 UTC
libreoffice-3.4.5.2-10.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-04-11 17:07:48 UTC
libreoffice-3.4.5.2-10.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.