Issue 105100 - OODEV32m58: com.sun.star.task.XJob - broken "OnStartApp" event ?
Summary: OODEV32m58: com.sun.star.task.XJob - broken "OnStartApp" event ?
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: version58
Hardware: Unknown Windows, all
: P2 Trivial (vote)
Target Milestone: OOo 3.2
Assignee: Mathias_Bauer
QA Contact: issues@framework
URL:
Keywords: regression
Depends on:
Blocks: 99999
  Show dependency tree
 
Reported: 2009-09-15 17:59 UTC by Oliver Brinzing
Modified: 2009-10-27 14:30 UTC (History)
1 user (show)

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


Attachments
example extension (12.44 KB, application/x-compressed)
2009-09-16 18:53 UTC, Oliver Brinzing
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2009-09-15 17:59:19 UTC
i have some java extensions which will be initialized
through com.sun.star.task.XJob (OnStartApp event):

<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Jobs"
oor:package="org.openoffice.Office">
 <node oor:name="Events">
  <node oor:name="OnStartApp" oor:op="fuse">
   <node oor:name="JobList">
    <node oor:name="org.test.example" oor:op="replace"/>
   </node>
  </node>
 </node>
 <node oor:name="Jobs">
  <node oor:name="org.test.example" oor:op="replace">
   <prop oor:name="Service" oor:type="xs:string">
    <value>org.test.example.Service</value>
   </prop>
  </node>
 </node>
</oor:component-data>

//XJob calls ...
public Object execute(final NamedValue[] args) {
    initialize()
}

just noticed *none* of them will be executed with OO32m58.
all extensions work like expected with OO 3.1.1 and (i am pretty sure) 
with all versions prior to m58.

If i start my extensions via basic (XJobExecutor), e.g.

 x = CreateUnoService("org.test.example.Service")
 x.trigger("test")

they will start working.

so i think something is broken with XJob events on startup ?

Oliver
Comment 1 Oliver Brinzing 2009-09-16 05:55:47 UTC
> (i am pretty sure)  with all versions prior to m58.

can confirm: no problems with m57 on WinXP

Comment 2 Oliver Brinzing 2009-09-16 18:52:30 UTC
can confirm problem with m59

added an example extension

- install "broadcastcomp.uno.zip" extension
- close oo including quickstart and restart
- a log window will open with m57/oo3.1.1
- nothing will happen with m58/59
  but one can start the log window via basic script:

  REM  *****  BASIC  *****
  Sub Main
	CreateUnoService("org.test.OOGlobalEventConfigurator").trigger("test")
  End Sub
Comment 3 Oliver Brinzing 2009-09-16 18:53:15 UTC
Created attachment 64802 [details]
example extension
Comment 4 joerg.skottke 2009-09-17 10:53:46 UTC
Confirmed, apparently. Owner to MBA.
Comment 5 joerg.skottke 2009-10-02 08:04:33 UTC
The extension is triggered on start in DEV300m60 (OOO320m0), closing as worksforme
Comment 6 joerg.skottke 2009-10-02 08:05:10 UTC
.
Comment 7 Mathias_Bauer 2009-10-02 09:34:12 UTC
Maybe I fixed it "by accident" when I refactored the event configuration in CWS
mba32issues02 that was integrated into m60.
Comment 8 Oliver Brinzing 2009-10-07 14:40:04 UTC
not fixed in DEV300m61 (Build 9427)

attached extension will not work
Comment 9 Oliver Brinzing 2009-10-19 17:30:12 UTC
seems to be fixed in OOO320m2 build 9432
Comment 10 Mathias_Bauer 2009-10-27 14:29:38 UTC
Yes, this was a regression from CWS oj18 in m58
Comment 11 Mathias_Bauer 2009-10-27 14:30:02 UTC
closing