Hi,
I tried adding an auto-updater to my RCP Application. I'm struggling with this for over half a year now. I thought 3.6 makes it easier....
I just want an update process to start on starting my application as described here: http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_ RCP_Application#Headless_Updating_on_Startup
I'm following the example provided ( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox /p2/examples/org.eclipse.equinox.p2.examples.rcp.prestartupd ate/?root=RT_Project)
But now my application crashes. I could track the crash down to the line with final IProvisioningAgent agent = (IProvisioningAgent) ServiceHelper.getService(Activator.bundleContext, IProvisioningAgent.SERVICE_NAME);
all I get is this output in the console:2010-07-14 18:11:31.205 java[7859:a07] *** __NSAutoreleaseNoPool(): Object 0x1135e0 of class NSException autoreleased with no pool in place - just leaking
2010-07-14 18:11:31.206 java[7859:a07] An uncaught exception was raised
2010-07-14 18:11:31.207 java[7859:a07] Java exception occurred
2010-07-14 18:11:31.208 java[7859:a07] *** __NSAutoreleaseNoPool(): Object 0x126950 of class NSCFString autoreleased with no pool in place - just leaking
2010-07-14 18:11:31.210 java[7859:a07] *** __NSAutoreleaseNoPool(): Object 0x2409c00 of class NSCFString autoreleased with no pool in place - just leaking
2010-07-14 18:11:31.210 java[7859:a07] *** __NSAutoreleaseNoPool(): Object 0x138af0 of class NSConcreteMutableData autoreleased with no pool in place - just leaking
2010-07-14 18:11:31.211 java[7859:a07] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Java exception occurred'
*** Call stack at first throw:
(
0 CoreFoundation 0x94b4cbba __raiseError + 410
1 libobjc.A.dylib 0x90a38509 objc_exception_throw + 56
2 CoreFoundation 0x94b979f1 -[NSException raise] + 17
3 libswt-cocoa-3650.jnilib 0x37de5ef8 callback + 1179
4 ??? 0x37dfc1d8 0x0 + 937411032
5 AppKit 0x96a0e6ae -[NSProgressIndicator _setWindow:] + 120
6 AppKit 0x969877d1 __NSViewRecursionHelper + 40
7 CoreFoundation 0x94aadff0 CFArrayApplyFunction + 224
8 AppKit 0x9693810d -[NSView _setWindow:] + 1934
9 AppKit 0x969877d1 __NSViewRecursionHelper + 40
10 CoreFoundation 0x94aadff0 CFArrayApplyFunction + 224
11 AppKit 0x9693810d -[NSView _setWindow:] + 1934
12 AppKit 0x969877d1 __NSViewRecursionHelper + 40
13 CoreFoundation 0x94aadff0 CFArrayApplyFunction + 224
14 AppKit 0x9693810d -[NSView _setWindow:] + 1934
15 AppKit 0x969877d1 __NSViewRecursionHelper + 40
16 CoreFoundation 0x94aadff0 CFArrayApplyFunction + 224
17 AppKit 0x9693810d -[NSView _setWindow:] + 1934
18 AppKit 0x969877d1 __NSViewRecursionHelper + 40
19 CoreFoundation 0x94aadff0 CFArrayApplyFunction + 224
20 AppKit 0x9693810d -[NSView _setWindow:] + 1934
21 AppKit 0x96ad0c76 -[NSWindow dealloc] + 691
22 CoreFoundation 0x94a85c68 CFRelease + 152
23 CoreFoundation 0x94ab291d _CFAutoreleasePoolPop + 253
24 Foundation 0x98927db6 NSPopAutoreleasePool + 76
25 Foundation 0x98928c12 -[NSAutoreleasePool release] + 130
26 eclipse_1307.so 0x01740e87 takeDownSplash + 123
27 eclipse_1307.so 0x01741f87 Java_org_eclipse_equinox_launcher_JNIBridge__1takedown_1splash + 11
28 ??? 0x0300b959 0x0 + 50379097
)