We're updating the issue view to help you get more done. 

NPE in when adding classpath entry for ResinRun

Description

1 2 3 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....

1 2 3 4 5 6 7 8 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); } }

Status

Assignee

Savas Ali Tokmen

Reporter

Uv Wild

Components

Fix versions

Affects versions

1.4.4

Priority

Major