(Another) java.lang.RuntimeException: No application id has been found. [message #459235] |
Wed, 29 November 2006 14:20 |
Eclipse User |
|
|
|
Originally posted by: ynyr.edwards.gmail.com
When trying to export my RCP application I get this in the log file...
!SESSION 2006-11-29 13:42:29.717 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_09
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.runtime 2006-11-29 13:42:31.077
!MESSAGE Product RailEditor.product could not be found.
!ENTRY org.eclipse.osgi 4 0 2006-11-29 13:42:31.092
!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:56)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
I have browsed these forums and it seems all occurances of this problem have further errors, mine unfourtantely doesn't. I'm therefore unsure where to start looking for the problem.
If anybody could give me some pointers, that would be great!
Is there a comprehensive RCP export HowTo out there? I haven't been able to find anything :(.
A
|
|
|
Re: (Another) java.lang.RuntimeException: No application id has been found. [message #459274 is a reply to message #459235] |
Wed, 29 November 2006 20:53 |
Paul E. Keyser Messages: 878 Registered: July 2009 |
Senior Member |
|
|
There isn't really such a thing, although for "normal" cases the tutorial is good. Your crash
however, is by definition not normal. I don't have an algorithm for solving what you are seeing, but
I've run into stuff very like it, for which the following procedure is very helpful (I know it for
WinDoze, and I imagine there's something similar for UNIX-based systems, but as you are on windoze
....):
open a DOS window, cd to the directory where YourApp.exe lives; issue:
YourApp.exe -console -noExit
That will create a second DOS window, in which (after the crash) enter "ss", and post here the
results (likely they will include statements about missing bundles...)
HTH,
Paul
|
|
|
Re: (Another) java.lang.RuntimeException: No application id has been [message #459360 is a reply to message #459274] |
Thu, 30 November 2006 12:21 |
Eclipse User |
|
|
|
Originally posted by: ynyr.edwards.gmail.com
The output....
Framework is launched.
id State Bundle
0 ACTIVE system.bundle_3.2.1.R32x_v20060919
1 ACTIVE org.eclipse.equinox.common_3.2.0.v20060603
2 ACTIVE org.eclipse.core.runtime_3.2.0.v20060603
3 RESOLVED RailEditor_1.0.0
4 RESOLVED com.ibm.icu_3.4.5
5 RESOLVED org.eclipse.core.commands_3.2.0.I20060605-1400
6 RESOLVED org.eclipse.core.contenttype_3.2.0.v20060603
7 RESOLVED org.eclipse.core.expressions_3.2.1.r321_v20060721
8 ACTIVE org.eclipse.core.jobs_3.2.0.v20060603
9 ACTIVE org.eclipse.core.runtime.compatibility.auth_3.2.0.v20060601
10 RESOLVED org.eclipse.core.runtime.compatibility.registry_3.2.1.R32x_v
20060907
Master=13
11 RESOLVED org.eclipse.draw2d_3.2.0.v20060626
12 ACTIVE org.eclipse.equinox.preferences_3.2.1.R32x_v20060717
13 ACTIVE org.eclipse.equinox.registry_3.2.1.R32x_v20060814
Fragments=10
14 RESOLVED org.eclipse.help_3.2.1.R321_v20060920
15 RESOLVED org.eclipse.jface_3.2.1.M20060908-1000
16 RESOLVED org.eclipse.swt_3.2.1.v3235e
Fragments=17
17 RESOLVED org.eclipse.swt.win32.win32.x86_3.2.1.v3235
Master=16
18 RESOLVED org.eclipse.ui_3.2.1.M20060913-0800
19 RESOLVED org.eclipse.ui.workbench_3.2.1.M20060906-0800
Doesn't look as though anything missing here...
|
|
|
Re: (Another) java.lang.RuntimeException: No application id has been [message #459366 is a reply to message #459360] |
Thu, 30 November 2006 14:04 |
Paul E. Keyser Messages: 878 Registered: July 2009 |
Senior Member |
|
|
Nothing obviously required by Eclipse is missing. But I see no plug-in listed that could be your
application plug-in (whose absence would generate the error you saw, I think).
Here are some steps needed to get your plug-in(s) to export; I do not guarantee the list is complete
:) (I keep missing stuff myself):
All of this is in the "PDE Editor" when you open the plugin.xml and/or the MANIFEST.MF:
1) in the runtime tab(s) of your plug-ins, make sure to declare all packages as exported;
2) in the dependencies tab(s) of your plug-ins, make sure to specify all required plug-ins;
3) in the runtime tab(s) of any of your plug-ins that contain java-code, make sure to declare a new
library, which also make sure is listed at the top of the "build" tab
4) in your .product-file, make sure either to list all your plug-ins, or else all your features (I
use features); and if you use features, in each feature, list all its plug-ins;
5) [this one I think you must have done, or else it wouldn't even run within Eclipse] in the
..product's launch-config, on the "Plugins" tab, check all your plug-ins, then click "select all
required"
If that doesn't work, um, I dunno.
HTH,
Paul
|
|
|
|
|
|
Re: (Another) java.lang.RuntimeException: No application id has been found. [message #465437 is a reply to message #459274] |
Thu, 29 March 2007 14:30 |
Rudolf Traunmüller Messages: 21 Registered: July 2009 |
Junior Member |
|
|
Great reply! I didn't know about the OSGI console but it seems to be
really helpful when working with eclipse plug-ins.
I've used it to debug my rcp application and it seems that osgi can't
find one of my plug-ins (although the eclipse export wizard exported the
rcp without any problems). It simply doesn't the plugin when I type in
'ss', the plugin, however, is in the plugins directory. What could be
the problem here?
Paul Keyser schrieb:
> There isn't really such a thing, although for "normal" cases the
> tutorial is good. Your crash however, is by definition not normal. I
> don't have an algorithm for solving what you are seeing, but I've run
> into stuff very like it, for which the following procedure is very
> helpful (I know it for WinDoze, and I imagine there's something similar
> for UNIX-based systems, but as you are on windoze ...):
>
> open a DOS window, cd to the directory where YourApp.exe lives; issue:
>
> YourApp.exe -console -noExit
>
> That will create a second DOS window, in which (after the crash) enter
> "ss", and post here the results (likely they will include statements
> about missing bundles...)
>
> HTH,
> Paul
|
|
|
Powered by
FUDForum. Page generated in 0.03736 seconds