facebook

Error Enhancing RAD project

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #299350 Reply

    dberning
    Member

    Hi,

    I’m getting an error trying to convert (“Enhance a RAD Project”) a RAD Enterprise App. It looks like the error is occurring Adding Struts support to the project (the app already uses Struts). Any ideas what the error might be? I just installed MyEclipse Blue. Another person here is converting the same project with no problem, but we haven’t been able to determine what’s different between our environments – there has been almost no customization.

    The convert fails with a NullPointerException in the Struts conversion. Here’s the stack trace:

    !ENTRY com.genuitec.eclipse.blue.projects 4 0 2009-06-12 13:33:07.045
    !MESSAGE Project enhancement error.
    !STACK 0
    java.lang.NullPointerException
    at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:166)
    at org.jdom.input.DOMBuilder.build(DOMBuilder.java:135)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationHelper.getJDomDocumentFromFile(ProjectMigrationHelper.java:100)
    at com.genuitec.eclipse.blue.project.migration.AddStrutsSupportActivity.getStrutsActionPattern(AddStrutsSupportActivity.java:229)
    at com.genuitec.eclipse.blue.project.migration.AddStrutsSupportActivity.execute(AddStrutsSupportActivity.java:130)
    at com.genuitec.eclipse.blue.project.migration.SequenceProcessor.doActivities(SequenceProcessor.java:62)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.runMigration(ProjectMigrationProcessor.java:92)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:57)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:49)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:100)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:94)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performMigration(EnhanceProjectWizard.java:114)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard$1.run(EnhanceProjectWizard.java:93)

    #299359 Reply

    Are you using 7.5 or older? There was a problem enhancing projects when Struts configuration didn’t have the DOCTYPE declaration. It was fixed in 7.5.

    #299405 Reply

    dberning
    Member

    I’m running MyEclipse Blue 7.1. It looks like 7.5 is not GA yet. I guess for now I can try coding a DOCTYPE – are you talking about in Struts-Config.xml?

    Thanks for the feedback,
    Dave

    #299410 Reply

    dberning
    Member

    Hmmm. I have a DOCTYPE in my struts-config.xml. Any other thoughts? Or what am I missing?

    <?xml version=”1.0″ encoding=”ISO-8859-1″ ?>

    <!DOCTYPE struts-config PUBLIC
    “-//Apache Software Foundation//DTD Struts Configuration 1.2//EN”
    http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd”&gt;

    <struts-config>
    ….

    #299421 Reply

    dberning
    Member

    I noticed in the stack trace that at the time of error possibly MyEclipse is looking for the action pattern. Is that relevant?

    #299425 Reply

    There’s some problem with struts config parsing – I can’t understand it from the code.

    1. Where is your configuration file located?
    2. Can you try to change it – i.e. to create backup copy and to make original empty?

    #299456 Reply

    dberning
    Member

    Can you tell what MyEclipse is doing at these locations (lines 229 and 100 in the stack entries below) in the source? What file it’s looking for? I renamed struts-config.xml and web.xml but that didn’t change anything. It must be that MyEclipse can’t find the file it’s looking for at that point.

    com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationHelper.getJDomDocumentFromFile(ProjectMigrationHelper.java:100)

    com.genuitec.eclipse.blue.project.migration.AddStrutsSupportActivity.getStrutsActionPattern(AddStrutsSupportActivity.java:229)

    My project has a standard app structure: C:\workspaces\MyEclipseBlue\ExtranetLogin\Web Content\WEB-INF\web.xml and C:\workspaces\MyEclipseBlue\ExtranetLogin\Web Content\WEB-INF\struts\struts-config.xml. I tried moving the struts config to web-inf. No help there.

    Thanks for your assistance!
    Dave

    #299496 Reply

    This code simply tryes to parse the Struts configuration file. I can’t reproduce your problem even by deleting the Struts configuration file. So I have to assume there is some problem with the particular XML file…

    Can you remove any information you don’t want to show (i.e. replace package names to remove your company name) and send it to support@genuitec.com and add “Attn: Eugene” to message topic? I will do my best to reproduce and submit a bug on the topic. It is likely there will be some walkaround.

    #299682 Reply

    dberning
    Member

    It looks like MyEclipse is looking for the web.xml to find the action pattern and doesn’t find it. What’s puzzling to me is this same project works for someone else.

    In the code that locates the web.xml, is there anything in the code that would vary from one desktop to another? Example, absolute file path, preference that leads MyEclipse to look in the wrong place for the web.xml. I’ts kinda tough for me debug this without all of the source code.

    Code from your WebProject class. It looks like this must not find the web.xml in my MyEclipse.

    getProject().getFile(getProjectTemplateData().getDeploymentDescriptorFile(getWebRootPath().toString()));

    #301486 Reply

    Hello, I am having a similar problem in MyEclipse Blue 7.5 when converting a struts web project. However, my stack trace is different. Any thoughts as to what would cause this error?

    !ENTRY com.genuitec.eclipse.blue.projects 4 0 2009-08-17 12:53:55.070
    !MESSAGE
    !STACK 0
    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:477)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performFinish(EnhanceProjectWizard.java:97)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at com.genuitec.eclipse.blue.project.ui.action.MigrateWizardAction.run(MigrateWizardAction.java:108)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
    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:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    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:386)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: java.lang.RuntimeException: Could not migrate project.
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.assertStatus(EnhanceProjectWizard.java:208)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performMigration(EnhanceProjectWizard.java:115)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard$1.run(EnhanceProjectWizard.java:93)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    … 42 more
    Caused by: The Adding Struts support activity did not complete properly.
    at com.genuitec.eclipse.blue.project.migration.SequenceProcessor.doActivities(SequenceProcessor.java:66)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.runMigration(ProjectMigrationProcessor.java:92)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:57)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:49)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:100)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:94)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performMigration(EnhanceProjectWizard.java:114)
    … 49 more
    Root exception:
    java.lang.RuntimeException: Could not migrate project.
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.assertStatus(EnhanceProjectWizard.java:208)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performMigration(EnhanceProjectWizard.java:115)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard$1.run(EnhanceProjectWizard.java:93)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:716)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4563)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:92)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performFinish(EnhanceProjectWizard.java:97)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at com.genuitec.eclipse.blue.project.ui.action.MigrateWizardAction.run(MigrateWizardAction.java:108)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
    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:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    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:386)
    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:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: The Adding Struts support activity did not complete properly.
    at com.genuitec.eclipse.blue.project.migration.SequenceProcessor.doActivities(SequenceProcessor.java:66)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.runMigration(ProjectMigrationProcessor.java:92)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:57)
    at com.genuitec.eclipse.blue.project.migration.ProjectMigrationProcessor.migrate(ProjectMigrationProcessor.java:49)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:100)
    at com.genuitec.eclipse.blue.project.migration.util.ProjectMigrationUtil.migrateProject(ProjectMigrationUtil.java:94)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.performMigration(EnhanceProjectWizard.java:114)
    … 49 more

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Error Enhancing RAD project

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