facebook

Customization problem

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #323966 Reply

    ryouji_shiki
    Member

    Hi I am having a problem generating customized CRUDs, I just started a new project for customization and added it to the Customization properties of a web one.

    When I run the CRUD generation on the web one, it never finishes and doesn’t even get to 1% completed, when I check the logs I’ve found two different errors, the first one saying that it can’t find the “.project” of my customization project [ when it is clearly there ]; and the second one is as follows:

    
    !ENTRY org.eclipse.ui 4 0 2012-03-05 11:49:51.923
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at org.skyway.core.ui.customization.CustomizationSpecificationComposite.selectCustomizationLocation(CustomizationSpecificationComposite.java:348)
        at org.skyway.core.ui.customization.CustomizationSpecificationComposite.addCustomizationLocation(CustomizationSpecificationComposite.java:270)
        at org.skyway.core.ui.customization.CustomizationSpecificationComposite$1.widgetSelected(CustomizationSpecificationComposite.java:202)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:158)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
        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:344)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
    

    I’ve manually modified the file org.skyway.core.prefs in my .settings to point the specification project to the right folder [ it is not in the same folder as my web project ] to go pass the first error :

    
    customization.specification=../templates4/templates
    

    And actually I can’t have the two projects in the same folder since both projects come from two different GIT repositories.

    But I can’t figure out this second error… am I doing something wrong? Any help would be highly appreciated…

    Thanks in advance

    I am using MyEclipse For Spring on Linux 64 bits by the way

    #324008 Reply

    cconway
    Member

    A couple of things come to mind:

    1. The customization.specification must point to a Project or a jar file, not a folder so I’m not sure your change is working as expected.

    2. The selected project or jar file must be within the same workspace as your project.

    3. The stack trace you have listed is from the UI where you were selecting the customization project, not from the build.

    #324019 Reply

    ryouji_shiki
    Member

    @cconway wrote:

    A couple of things come to mind:

    1. The customization.specification must point to a Project or a jar file, not a folder so I’m not sure your change is working as expected.

    2. The selected project or jar file must be within the same workspace as your project.

    3. The stack trace you have listed is from the UI where you were selecting the customization project, not from the build.

    Thanks for your very quick reply!

    I’ve tried everything to make this customization work on Linux 64 bit, even creating new projects in the same workspace and leaving everything “as is” [ without customization.specification changes ] but unfortunately I have no more time to try to make it work after two days so I will switch to Windows :(.

    It may be useful for somebody else if you’d try it yourself though, I was working with Ubuntu 11.10 and OpenJDK 1.6.

    You can close the topic if you want.

    Greetings

    #324022 Reply

    ryouji_shiki
    Member

    Oh and the DB was Oracle

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Customization problem

You must be logged in to post in the forum log in