Bug 106046 - Errors in log when running JNLP application
Summary: Errors in log when running JNLP application
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1.1   Edit
Assignee: platform-runtime-inbox CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 10:11 EDT by DJ Houghton CLA Friend
Modified: 2005-08-18 18:03 EDT (History)
2 users (show)

See Also:


Attachments
Attempt to fix the problem (31.03 KB, application/octet-stream)
2005-08-16 13:21 EDT, Pascal Rapicault CLA Friend
no flags Details
Proposed patch to the launcher (14.02 KB, patch)
2005-08-18 10:53 EDT, Pascal Rapicault CLA Friend
no flags Details | Diff
New binary version of the startup.jar (32.15 KB, application/octet-stream)
2005-08-18 10:57 EDT, Pascal Rapicault CLA Friend
no flags Details
Configuration log at startup (6.96 KB, text/plain)
2005-08-18 11:18 EDT, Stephen Goldbaum CLA Friend
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA Friend 2005-08-04 10:11:54 EDT
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)
Comment 1 Pascal Rapicault CLA Friend 2005-08-04 11:08:08 EDT
Need to investigate for 3.1.1
Comment 2 Thomas Watson CLA Friend 2005-08-04 14:14:38 EDT
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.
Comment 3 Pascal Rapicault CLA Friend 2005-08-04 14:59:16 EDT
The list is constructed by the webstart main in platform.
I can take care of this bug if you want.
Comment 4 Stephen Goldbaum CLA Friend 2005-08-16 12:34:49 EDT
Can you tell us how to fix this in the mean time?  I haven't been able to get 
past this issue.
Comment 5 Pascal Rapicault CLA Friend 2005-08-16 13:21:57 EDT
Created attachment 26162 [details]
Attempt to fix the problem

Could you please try and let me know if this fix the problem?
Comment 6 Stephen Goldbaum CLA Friend 2005-08-16 13:36:15 EDT
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)
Comment 7 Pascal Rapicault CLA Friend 2005-08-18 10:53:31 EDT
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.
Comment 8 Pascal Rapicault CLA Friend 2005-08-18 10:57:00 EDT
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?
Comment 9 Stephen Goldbaum CLA Friend 2005-08-18 11:18:48 EDT
Created attachment 26233 [details]
Configuration log at startup

The configuration log file when running with the new startup.jar.
Comment 10 Stephen Goldbaum CLA Friend 2005-08-18 11:20:27 EDT
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.
Comment 11 Pascal Rapicault CLA Friend 2005-08-18 11:53:16 EDT
Could you provide me your main jnlp file.
Comment 12 Stephen Goldbaum CLA Friend 2005-08-18 14:27:47 EDT
Please disregard my previous post.  This latest version of startup.jar works 
perfectly.
Comment 13 Pascal Rapicault CLA Friend 2005-08-18 14:39:55 EDT
DJ could you please review the patch?
Comment 14 Thomas Watson CLA Friend 2005-08-18 18:00:20 EDT
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.
Comment 15 Pascal Rapicault CLA Friend 2005-08-18 18:03:53 EDT
Patch released in HEAD and in maintenance stream.