[ 
http://jira.codehaus.org/browse/MNBMODULE-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229022#action_229022
 ] 

Jesse Glick commented on MNBMODULE-79:
--------------------------------------

This change seems to have fixed the problem in {{3.3-SNAPSHOT}}:

{noformat}
@@ -478,8 +477,7 @@
                 InputStream instream = null;
                 try
                 {
-                    instream = getClass().getClassLoader().getResourceAsStream(
-                        "/app.conf" );
+                    instream = 
getClass().getClassLoader().getResourceAsStream("app.conf" );
                     str = IOUtil.toString( instream, "UTF-8" );
                 }
                 finally
{noformat}

> default-cluster-app goal fails with NullPointerException
> --------------------------------------------------------
>
>                 Key: MNBMODULE-79
>                 URL: http://jira.codehaus.org/browse/MNBMODULE-79
>             Project: Maven 2.x Netbeans Module Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1, 3.2
>         Environment: mac 10.5 maven3-snapshot
>            Reporter: Erik Martino Hansen
>            Assignee: Milos Kleint
>
> [ERROR] Failed to execute goal 
> org.codehaus.mojo:nbm-maven-plugin:3.2:cluster-app (default-cluster-app) on 
> project application: Execution default-cluster-app of goal 
> org.codehaus.mojo:nbm-maven-plugin:3.2:cluster-app failed. 
> NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.codehaus.mojo:nbm-maven-plugin:3.2:cluster-app (default-cluster-app) 
> on project application: Execution default-cluster-app of goal 
> org.codehaus.mojo:nbm-maven-plugin:3.2:cluster-app failed.
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:640)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:550)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:337)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:254)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
>       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
>       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
>       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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
> default-cluster-app of goal 
> org.codehaus.mojo:nbm-maven-plugin:3.2:cluster-app failed.
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:114)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:624)
>       ... 15 more
> Caused by: java.lang.NullPointerException
>       at java.io.Reader.<init>(Reader.java:61)
>       at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
>       at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:280)
>       at org.codehaus.plexus.util.IOUtil.toString(IOUtil.java:336)
>       at org.codehaus.plexus.util.IOUtil.toString(IOUtil.java:320)
>       at 
> org.codehaus.mojo.nbm.CreateClusterAppMojo.createBinEtcDir(CreateClusterAppMojo.java:483)
>       at 
> org.codehaus.mojo.nbm.CreateClusterAppMojo.execute(CreateClusterAppMojo.java:396)
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
>       ... 16 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to