Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Feature based product throws a runtime error


I am following the tycho tutorial at vogella.

The tutorial provides RCP product building instructions in chapter 9.

Chapter Summary:

1. Create plug-in project(prjA) using the `Eclipse 4 RCP Application Template` 

2. Create general project(prjB) for the maven build. 

3. Move the generated .product file from prjA, to prjB. 

   (I do not understand why this step is necessary.)

4. Enter ID, make pom.xml

5. Select feature-based

6. Configure start-level, build.

The build finishes without errors, but when I run the generated binary, 

I get the following stack trace:

    !SESSION 2018-10-23 18:05:38.742 -----------------------------------------------
    java.vendor=Oracle Corporation
    BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_KR
    Framework arguments:  -clearPersistedState -keyring /Users/upoque/.eclipse_keyring
    Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -clearPersistedState -keyring /Users/upoque/.eclipse_keyring
    !ENTRY 0 0 2018-10-23 18:05:40.561
    !MESSAGE Product org.rubis.oscar.rcp.product could not be found.
    !ENTRY org.eclipse.osgi 4 0 2018-10-23 18:05:41.392
    !MESSAGE Application error
    !STACK 1
    at org.eclipse.emf.common.util.URI$URIPool$PlatformAccessUnit.setValue(
    at org.eclipse.emf.common.util.URI$URIPool.intern(
    at org.eclipse.emf.common.util.URI.createPlatformPluginURI(
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.determineApplicationModelURI(
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.eclipse.equinox.launcher.Main.invokeFramework(
    at org.eclipse.equinox.launcher.Main.basicRun(

However, when I build the product based on plug-ins(rather than feature-based), I get no errors. 

Why do I get this error, and how can I fix this? 

Thank you.

Back to the top