facebook

error enhancing RAD web project

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

    Hello,

    I have a developer who is trying to enhance an EAR project referencing a web project for MyEclipse, and it fails. Trying directly on the web project itself also fails with the same results. The IDE simply flashes for a moment, and nothing gets changed (the project has not been enhanced). The following stack trace is in the .log file for the workspace in question:

    !ENTRY org.eclipse.ui 4 0 2009-09-11 13:16:25.002
    !MESSAGE Unhandled event loop exception
    !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.getJDomDocumentFromPath(ProjectMigrationHelper.java:96)
    at com.genuitec.eclipse.blue.project.core.WSAD51EARProject.getModulesDoc(WSAD51EARProject.java:99)
    at com.genuitec.eclipse.blue.project.core.WSAD51EARProject.getModuleProjects(WSAD51EARProject.java:52)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.createSummaryPage(EnhanceProjectWizard.java:65)
    at com.genuitec.eclipse.blue.project.ui.wizard.EnhanceProjectWizard.addPages(EnhanceProjectWizard.java:48)
    at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:540)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
    at org.eclipse.jface.window.Window.open(Window.java:790)
    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)

    Can you assist? What further information do you need in order to troubleshoot?

    -Aaron

    #302386 Reply

    ascifres,
    Can you give the following detail –
    1. Can you copy paste your installation details? You can get them from MyEclipse > Installation Summary > Installation Details.
    2. Can you list out the steps in detail to replicate this error?
    3. Can you send us a sample project with one or two files? You can send a mail to support@genuitec.com. Please all ATTN: Shalini in the subject and refer to this post.
    This will help us replicate the issue internally.
    Thank you for your help.

    #302400 Reply

    Sure. The installation details are below.

    As for the steps to replicate the error, it’s pretty simple (at least from my perspective). I simply open the existing RAD workspace, right-click on either the web project or the EAR project, and select “Enhance RAD Project to Work with MyEclipse”. Then the error shows up in the .log file and nothing else happens.

    As for creating a sample project, I may or may not be able to do it. This project has been around for many years and was initially created in WSAD, which we no longer have in house. I will see if I can reproduce it in a project that I’m able to send you via email.

    Here are my installation details:

    *** Date:
    Monday, September 14, 2009 9:10:52 AM EDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Blue Edition
    Version: 7.5 Blue
    Build id: 7.5-Blue-20090609

    *** Eclipse details:
    MyEclipse Blue Edition

    Version: 7.5 Blue
    Build id: 7.5-Blue-20090609

    Eclipse Plug-in Development Environment

    Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
    Build id: M20080703-0800

    Eclipse Platform

    Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
    Build id: M20090211-1700

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.2.v20090218-1145-67728084A56B4I233613552
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
    Build id: M20090211-1700

    Eclipse Java Development Tools

    Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
    Build id: M20090211-1700

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 7.5 Blue\myeclipse-blue.exe
    -name
    Myeclipse-blue
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse 7.5 Blue\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 7.5 Blue\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
    -clean
    -configuration
    C:\Program Files\Genuitec\MyEclipse 7.5 Blue\configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll

    #302401 Reply

    Correction: when I said open the existing RAD workspace, what I actually meant is I create a new MyEclipse Blue workspace, and import the RAD projects into it. Then I right click to do the enhancement. Sorry for any confusion.

    #302426 Reply

    Thank you for the details. Can you answer few queries for me to get to the root cause ?

    1) Can you mention the steps in detail for migration from RAD to ME Blue?
    2) What is the exact operation that results in this error? Can you share corresponding log message. For this I would suggest you to do the following
    a. open your log file then press Ctrl+A keys and press Delete key.
    b. Save your blank log file.
    c. Open the IDE and replicate your error(step 2).
    then go to the log file and copy and paste the same here. This will help in tracking the exact root cause.

    3) Does your web project have any extra capabilities(ie.Struts,JSF,Spring etc..) on it?
    4) Are you facing the same problem with the other MyEclipse created web applications?
    Quote:
    java.lang.NullPointerException
    at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:166)

    The possible reason of getting the above error is while parsing your metadata(i.e. web.xml, ejb-jar.xml,struts-config.xml etc.) files. I would recommend you to check these metadata files if they have the needed DTD/XSD declaration.

    Also, can you try to debug your application to locate what operation is causing this error.

    #302797 Reply

    Well, we ended up just recreating the web project from scratch in MyEclipse Blue and just keeping the actual code, and it worked. I don’t have the original versions available to me at the moment so I can’t provide the exact answers, but I’ll do my best.

    1) Can you mention the steps in detail for migration from RAD to ME Blue?

    1. Create a new workspace in MyEclipse Blue
    2. Import projects from code stream that were part of a RAD workspace. There were two projects: an EAR project and a WAR project. The WAR project was a module of the EAR project.
    3. Right-click on the EAR project and select “Enhance RAD Project to work with MyEclipse”
    Step 3 can also be done on the WAR project with the same result.

    2) What is the exact operation that results in this error? Can you share corresponding log message.

    The log message from the initial post in this thread is all I have.

    3) Does your web project have any extra capabilities(ie.Struts,JSF,Spring etc..) on it?

    The only capabilities are Web and Javascript.

    4) Are you facing the same problem with the other MyEclipse created web applications?

    Not that I am aware of.

    Quote:
    java.lang.NullPointerException
    at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:166)

    The possible reason of getting the above error is while parsing your metadata(i.e. web.xml, ejb-jar.xml,struts-config.xml etc.) files. I would recommend you to check these metadata files if they have the needed DTD/XSD declaration.

    The only metadata file present is web.xml, and it has what looks to me like an appropriate declaration:
    <web-app version=”2.4″ xmlns=”http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”&gt;

    Also, can you try to debug your application to locate what operation is causing this error.

    I can’t debug my application because i can’t deploy it. The error is occuring within MyEclipse Blue, not my application. Are you saying there’s some way for me to actually debug MyEclipse Blue?

    -Aaron

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: error enhancing RAD web project

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