|
Re: Plugin execution after "Install into host. Repository:" destination [message #1816202 is a reply to message #1816147] |
Wed, 23 October 2019 14:17 |
Eclipse User |
|
|
|
Could you please run with `-consolelog` and attach the output here? I noticed that you're including embedded jar files, and a common mistake is that those embedded jars are not actually included in your bundle. Take a look at the the bundle contents and make sure your lib/*.jar files are present. If not, open your MANIFEST.MF then switch to the "Build" tab and ensure they are included for the binary build.
|
|
|
|
Re: Plugin execution after "Install into host. Repository:" destination [message #1816229 is a reply to message #1816224] |
Thu, 24 October 2019 13:46 |
Eclipse User |
|
|
|
When I try to launch your Back-End command I see the following exception logged:
Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils cannot be found by it.alba.rcp.commands_1.0.0.201910241249
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:508)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:419)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:411)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 48 more
Which seemed odd. Looking through your jars, your embedded commons-io-2.6.jar does not look right:
$ x -d /tmp/it it.alba.rcp.commands_1.0.0.201910241249.jar
results in /tmp/it/it.alba.rcp.commands_1.0.0.201910241249
$ cd /tmp/it/it.alba.rcp.commands_1.0.0.201910241249/
$ ls
Application.e4xmi icons/
META-INF/ it/
OSGI-INF/ it.alba.rcp.commands.product
build.properties lib/
css/ plugin.xml
$ cd lib/
$ ls -l
total 24
-rw-r--r-- 1 bsd wheel 9489 24 Oct 2019 commons-io-2.6.jar
-rw-r--r-- 1 bsd wheel 9489 24 Oct 2019 dom-2.3.0-jaxb-1.0.6.jar
$ jar tf commons-io-2.6.jar
META-INF/
META-INF/MANIFEST.MF
it/
it/alba/
it/alba/rcp/
it/alba/rcp/commands/
it/alba/rcp/commands/first/
it/alba/rcp/commands/utils/
it/alba/rcp/commands/Application.class
it/alba/rcp/commands/ApplicationActionBarAdvisor.class
it/alba/rcp/commands/ApplicationWorkbenchAdvisor.class
it/alba/rcp/commands/ApplicationWorkbenchWindowAdvisor.class
it/alba/rcp/commands/Perspective.class
it/alba/rcp/commands/first/BEHandler.class
it/alba/rcp/commands/utils/RevisionUpdater.class
it/alba/rcp/commands/utils/Utilities.class
|
|
|
|
|
|
|
|
Re: Plugin execution after "Install into host. Repository:" destination [message #1816236 is a reply to message #1816234] |
Thu, 24 October 2019 14:31 |
Eclipse User |
|
|
|
I probably shouldn't execute code I haven't seen :-). Exception trace below.
I'll recommend that you explore performing your builds using Maven/Tycho. The "Export" wizards can be difficult to diagnose when there is a failure.
prova
java.io.FileNotFoundException: File '/usr/local/installs/e4-dev/Eclipse.app/Contents/MacOS/null\it.alba.rcp.commands\auth.txt' does not exist
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:297)
at org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1805)
at it.alba.rcp.commands.first.BEHandler.execute(BEHandler.java:52)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:318)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:252)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:161)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:204)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:433)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:446)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:472)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4247)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1508)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1531)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1516)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1320)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4091)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3712)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1170)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1059)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:667)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:597)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03842 seconds