Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 1.4.4
    • Fix versions: 1.4.5
    • Components: Resin
    • Labels:
      None
    • Environment:

      Resin 2.1

      Description

      org.codehaus.cargo.container.resin.internal.AbstractResinInstalledLocalContainer
      java.addClasspathEntries(getResourceUtils().getResourceLocation("/"
      + ResinRun.class.getName().replace('.', '/') + ".class"));
      

      the resource utils don't have the resin container artifact on the classpath...
      such that the util returns a list with a single null entry [ null ]
      which causes the NPE in the DefaultJvmLauncher.addClassPathEntries(File ... paths)
      -----------------
      I did a really really nasty quick workaround for now, but something is wrong here....

      if (url == null && resourceName.contains("ResinRun")) {
      getLogger().debug("Location for [" + resourceName + "] is [" + file + "]", this.getClass().getName());
      try {
      url = new URL("jar:file:/home/uv.wildner/.m2/repository/org/codehaus/cargo/cargo-core-container-resin/1.4.4/cargo-core-container-resin-1.4.4.jar!/org/codehaus/cargo/container/resin/internal/ResinRun.class");
      } catch (Exception e) {
      System.exit(99);
      }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Savas Ali Tokmen (Inactive)
              Reporter:
              Uv Wild (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: