Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » (Another) java.lang.RuntimeException: No application id has been found.
(Another) java.lang.RuntimeException: No application id has been found. [message #459235] Wed, 29 November 2006 14:20 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
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 [message #459431 is a reply to message #459366] Fri, 01 December 2006 10:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ynyr.edwards.gmail.com

My plugin is "RailEditor" which seems to be resolved. I'll carry on playing around with it ...
Re: (Another) java.lang.RuntimeException: No application id has been [message #461222 is a reply to message #459431] Sun, 07 January 2007 12:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m96.gmx.li

i have run into the same problem. but funny thing the problem occurs since i add org.eclipse.ui.forms as dependency. running in my eclipse environment works fine but i can not start the exported product.

so have you found a solution?
Re: (Another) java.lang.RuntimeException: No application id has been [message #461223 is a reply to message #461222] Sun, 07 January 2007 13:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m96.gmx.li

found the problem!!
beside checking in plugin.xml and <productname>.product files you should also check config.ini file - especially the variable 'osgi.bundles' where dependencies are listed.
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 Go to previous message
Rudolf Traunmüller is currently offline Rudolf TraunmüllerFriend
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
Previous Topic:JUnit testing: strange problem with TableViewer
Next Topic:closing an Intro page programmatically?
Goto Forum:
  


Current Time: Thu Mar 28 13:08:06 GMT 2024

Powered by FUDForum. Page generated in 0.03530 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top