Uploaded image for project: 'IvyDE (Retired)'
  1. IvyDE (Retired)
  2. IVYDE-384

Eclipse RSE - IvyDe fails with java.lang.NullPointerException when attempting to resolve path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0.final
    • None
    • None
    • Windows 7, 64 Bit. Eclipse Mars.1 (4.5.1) (EE IDE)

    Description

      It seems that IvyDE is failing to resolve the workspace_loc: eclipse variable. For example, the root of my project is located and referenced as:

      "${workspace_loc:/project_name/}"

      This is a Remote System Explorer type project, located on a different server. The ivy settings file is contained within the project and referenced via this url.

      This is the stack trace I get when I try to resolve, reload settings, or really do anything related to ivy in the project:

      java.lang.NullPointerException
      	at org.apache.ivyde.eclipse.cp.ResolvedPath.resolvePath(ResolvedPath.java:122)
      	at org.apache.ivyde.eclipse.cp.ResolvedPath.<init>(ResolvedPath.java:49)
      	at org.apache.ivyde.internal.eclipse.CachedIvy.getIvyFile(CachedIvy.java:303)
      	at org.apache.ivyde.internal.eclipse.CachedIvy.getModuleDescriptor(CachedIvy.java:369)
      	at org.apache.ivyde.internal.eclipse.CachedIvy.getCachedModuleDescriptor(CachedIvy.java:330)
      	at org.apache.ivyde.internal.eclipse.revdepexplorer.IvyUtil.getDependencyDescriptorsByProjects(IvyUtil.java:51)
      	at org.apache.ivyde.internal.eclipse.ui.views.ReverseDependencyExplorerView$6.run(ReverseDependencyExplorerView.java:204)
      	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186)
      	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
      	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4761)
      	at org.apache.ivyde.internal.eclipse.ui.views.ReverseDependencyExplorerView.refresh(ReverseDependencyExplorerView.java:198)

      I reviewed the implementation of ResolvedPath.java and it seems that this is a result of a MalformedURLException.

      I'm not sure if IvyDe supports Remote System Explorer, but it seems to be having quite a bit of trouble. Please let me know if you need any further info from me.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tg1390 Dave Lawson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: