[ 
http://jira.codehaus.org/browse/MECLIPSE-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148293#action_148293
 ] 

Phillip Merensky commented on MECLIPSE-491:
-------------------------------------------

This is the concerning NPE:


[DEBUG] Processing Eclipse plugin dependency: javax.transaction:jta:jar:1.0.1B
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NullPointerException
        at 
org.apache.maven.plugin.eclipse.InstallPluginsMojo.install(InstallPluginsMojo.java:280)
        at 
org.apache.maven.plugin.eclipse.InstallPluginsMojo.execute(InstallPluginsMojo.java:216)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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:324)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Thu Sep 18 12:27:28 CEST 2008
[INFO] Final Memory: 27M/254M
[INFO] -----------------------

> [PATCH] NPE when executing install-plugins and parsed jar has no manifest
> -------------------------------------------------------------------------
>
>                 Key: MECLIPSE-491
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-491
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: PDE support
>    Affects Versions: 2.5.1
>         Environment: Windows XP
> Java 1.4.2
>            Reporter: Phillip Merensky
>         Attachments: MECLIPSE-491.patch
>
>
> The attached Patch fixes two Issues:
> #  NPE when executing install-plugins and parsed jar has no manifest:
>  In this case an info log message will be generated and the respective jar 
> will be skipped.
> # If you build your Eclipse distribution with maven from scratch - that is 
> all your plugins will be resolved and installed by maven into an assembly 
> directory - it is obstructive to exit the execution of the install-plugins 
> goal when the plugins folder is missing. Thus I changed the code to only 
> output an info message and to create the missing plugin dir.
> Hope this helps.
> Regards,
> Phillip
>      

-- 
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

        

Reply via email to