alexroldugin / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Export Spray Project #254

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I create a simple Spray Project and want to export it to an plug-in to use it 
in Eclipse. While exporting this project I got an Error-Log

There are errors like:

13. ERROR in 
C:\DEV\graphiti-4.2.1\workspace\demo.sketch.spray\src-gen\demo\sketch\spray\feat
ures\SprayDirectEditTabFeatureBase.java (at line 66)
    public int getEditingType() {
               ^^^^^^^^^^^^^^^^
The method getEditingType() of type SprayDirectEditTabFeatureBase must override 
a superclass method
----------
----------
14. ERROR in 
C:\DEV\graphiti-4.2.1\workspace\demo.sketch.spray\src-gen\demo\sketch\spray\feat
ures\SprayLayoutTabFeatureBase.java (at line 36)
    public boolean canLayout(final ILayoutContext context) {
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The method canLayout(ILayoutContext) of type SprayLayoutTabFeatureBase must 
override a superclass method

The plugin is generated, but this erros irritate me.

What version of the product are you using? On what operating system?
0.5.0-20130331

Original issue reported on code.google.com by dowbar2...@googlemail.com on 8 Apr 2013 at 9:05

Attachments:

GoogleCodeExporter commented 8 years ago
I think this is not only the issue, after reading the log-file in the 
.metadata, I saw that I got problems with my Activator it is invalid, it is 
same like this issue.

https://code.google.com/a/eclipselabs.org/p/spray/issues/detail?id=225

The wizard generate the spray.properties in the model folder. So thats right.

But how can I fix it?

best regards,

dowbar

Original comment by dowbar2...@googlemail.com on 11 Apr 2013 at 11:23

Attachments:

GoogleCodeExporter commented 8 years ago
Ok, I could reproduce the behavior. Reason is, that the generated plug-in 
manifest file uses "Bundle-RequiredExecutionEnvironment: J2SE-1.5" but the 
generated code uses @Overrides for methods declared in interfaces. So the 
MANIFEST.MF have to be changed to use "Bundle-RequiredExecutionEnvironment: 
JavaSE-1.6"

To be fixed by us Spray developers: The Spray project wizard should always 
produce a MANIFEST.MF with "Bundle-RequiredExecutionEnvironment: JavaSE-1.6" 

Original comment by de.abg.r...@gmail.com on 11 Apr 2013 at 7:25

GoogleCodeExporter commented 8 years ago
Thanks for the reply, when I change the execution environment to JavaSe-1.6 the 
error log file will not generated by exporting this plug-in, but this plug-in 
won't work. When I try to create my domain diagram via wizard in eclipse indigo 
3.8.2, an error dialog popup an shows

The selected wizard could not be started.
Plug-in demo.scas.sketchflow.spray was unable to load class 
demo.scas.sketchflow.spray.internal.ExecutableExtensionFactory.
demo.scas.sketchflow.spray.internal.ExecutableExtensionFactory

Otherwise the spray editor can not read my domain files. "The Unable to create 
DiagramTypeProcider class" will show in the spray editor.

The upcoming log shows in the event dialog:

org.eclipse.core.runtime.CoreException: Plug-in demo.scas.sketchflow.spray was 
unable to load class 
demo.scas.sketchflow.spray.internal.ExecutableExtensionFactory.
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at org.eclipse.graphiti.ui.internal.platform.ExtensionManager.createDiagramTypeProvider(ExtensionManager.java:248)
    at org.eclipse.graphiti.ui.editor.DiagramEditor.setInput(DiagramEditor.java:544)
    at org.eclipse.graphiti.ui.editor.DiagramEditor.init(DiagramEditor.java:447)
    at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2958)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2863)
    at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2855)
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2806)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2802)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2786)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2777)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
    at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
    at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    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.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.ClassNotFoundException: 
demo.scas.sketchflow.spray.internal.ExecutableExtensionFactory
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
    ... 65 more

Thanks alot and best regards,

dowbar

Original comment by dowbar2...@googlemail.com on 11 Apr 2013 at 8:37

GoogleCodeExporter commented 8 years ago
Same error message as in issue #137. Do you use the exported Spray project in 
Indigo? Maybe there is a version conflict: the Spray project needs Juno when it 
is build using the JUno update sites.

Original comment by de.abg.r...@gmail.com on 12 Apr 2013 at 2:55

GoogleCodeExporter commented 8 years ago
hi,

it seems to work, but if I want to export it as RCP I got issue. In the eclipse 
ide I can run the spray application and when i export it I got this:

!SESSION 2013-04-12 22:22:09.949 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_17
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.osgi 4 0 2013-04-12 22:22:11.221
!MESSAGE Startup error
!STACK 1
java.lang.IllegalArgumentException: The System Bundle's start level can not be 
modified.
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.setBundleStartLevel(StartLevelManager.java:364)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(EclipseStarter.java:1050)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:622)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:277)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

I hope you can help me further.

best regards,

dowbar

Original comment by dowbar2...@googlemail.com on 12 Apr 2013 at 9:57

GoogleCodeExporter commented 8 years ago
found this:
http://www.eclipse.org/forums/index.php?t=msg&goto=51528&

Original comment by de.abg.r...@gmail.com on 17 Apr 2013 at 8:05