Community
Participate
Working Groups
build 3.1 When setting up and running an Eclipse application via JNLP, I get the following entries in my log file on the client machine. Application can be provided on request. !SESSION 2005-08-03 18:14:12.215 ----------------------------------------------- eclipse.buildId=unknown java.version=1.5.0_04 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA !ENTRY org.eclipse.osgi 2005-08-03 18:14:13.317 !MESSAGE Error installing bundle: reference:file:DMplugins/RMorg.eclipse.osgi_3.1.0.jar/ !STACK 0 org.osgi.framework.BundleException: Bundle "system.bundle" version "3.1.0" has already been installed from: System Bundle at org.eclipse.osgi.framework.internal.core.Framework.createAndVerifyBundle(Framework.java:557) at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:822) at org.eclipse.osgi.framework.internal.core.Framework$2.run(Framework.java:737) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:788) at org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:732) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:221) at org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(EclipseStarter.java:956) at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:543) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:288) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) at org.eclipse.core.launcher.Main.basicRun(Main.java:278) at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain.java:50) at org.eclipse.core.launcher.Main.run(Main.java:973) at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.continueLaunch(Unknown Source) at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Need to investigate for 3.1.1
When setting up JNLP how do you set the bundles which need to be installed? It appears that org.eclipse.osgi is being included on the osgi.bundles list. This causes EclipseStarter to attempt to install the RMorg.eclipse.osgi_3.1.0.jar. The Framework will not allow multiple versions of the same symbolic name be installed. The RMorg.eclipse.osgi_3.1.0.jar is the system bundle which is always installed when the framework is running.
The list is constructed by the webstart main in platform. I can take care of this bug if you want.
Can you tell us how to fix this in the mean time? I haven't been able to get past this issue.
Created attachment 26162 [details] Attempt to fix the problem Could you please try and let me know if this fix the problem?
I got the following. Do I need to configure anything extra? !SESSION 2005-08-16 13:29:59.813 ---------------------------------------------- - eclipse.buildId=unknown java.version=1.4.2_08 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US !ENTRY org.eclipse.osgi 2005-08-16 13:29:59.813 !MESSAGE Bundle null not found. !ENTRY org.eclipse.osgi 2005-08-16 13:29:59.829 !MESSAGE Bundle null not found. etc... !ENTRY org.eclipse.core.runtime 2005-08-16 13:30:00.79 !MESSAGE Product com.lehman.emx.project.fxesp.Product could not be found. !ENTRY org.eclipse.osgi 2005-08-16 13:30:00.94 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: No application id has been found. at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:206) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:333) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.WebStartMain.basicRun (WebStartMain.java:50) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.continueLaunch(Unknown Source) at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Created attachment 26229 [details] Proposed patch to the launcher The patch is almost a complete rewrite of the webstart class, but it handles all the nast cases.
Created attachment 26230 [details] New binary version of the startup.jar Stephen, could you please give it a try. By curiosity, how many plugins are contained in you JNLP deployed app?
Created attachment 26233 [details] Configuration log at startup The configuration log file when running with the new startup.jar.
Previous log file was from running the RCPMailWebStart example. I get the same error when running my own application, which has 11 plugins + 15 eclipse plugins.
Could you provide me your main jnlp file.
Please disregard my previous post. This latest version of startup.jar works perfectly.
DJ could you please review the patch?
I reviewed the patch with Pascal. Overall the patch looks good except the following points. - Found small bug in extractBundleIdFromManifest which will cause a double underscore "__" to be returned in the bundle id - had some naming issues with a few method names. - Needed a few more comments. After Pascal fixes the issues above then the patch is good to go.
Patch released in HEAD and in maintenance stream.