[ 
https://jira.codehaus.org/browse/MWAS-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=298586#comment-298586
 ] 

Javier Murciego commented on MWAS-42:
-------------------------------------

Does anybody continue having this issue? Can anybody attach a test pom?

Thanks
                
> Nullpointer using maven 2.1.0 in maven release:prepare
> ------------------------------------------------------
>
>                 Key: MWAS-42
>                 URL: https://jira.codehaus.org/browse/MWAS-42
>             Project: Maven 2.x WebSphere 6 Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Maven version 2.1.0 Windows xp
>            Reporter: Olve Sæther Hansen
>            Assignee: Javier Murciego
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> It seems that version 2.1.0 of maven creates a nullpointer when executing the 
> was6-plugin.
> The offending line which starts the nullpinger is 
> {code:title=EjbDeployMojo.java line 148}File inputFile = 
> executedProject.getArtifact().getFile();{code}
> I dont know if this is really a maven-bug or a mwas-bug.
> {code}
> INFO] [INFO] 
> ------------------------------------------------------------------------
> INFO] [INFO] Building The Project EJB
> INFO] [INFO]    task-segment: [clean, verify]
> INFO] [INFO] 
> ------------------------------------------------------------------------
> INFO] [INFO] [clean:clean]
> INFO] [INFO] Deleting directory 
> C:\utv\release\projectdirectory\trunk\project_ejb\target
> INFO] [INFO] [was6:clean {execution: default}]
> INFO] [INFO] Deleting directory: 
> C:\utv\release\projectdirectory\trunk\project_ejb\target\was6-maven-plugin
> INFO] [INFO] Deleting directory: 
> C:\utv\release\projectdirectory\trunk\project_ejb\target\generated-sources\was6-maven-plugin
> INFO] [INFO] Preparing was6:ejbdeploy
> INFO] [WARNING] Removing: ejbdeploy from forked lifecycle, to prevent 
> recursive invocation.
> INFO] [INFO] [xdoclet:xdoclet {execution: default}]
> INFO] [INFO] Initializing DocletTasks!!!
> INFO] [INFO] Executing tasks
> INFO] 27.apr.2009 13:28:39 xdoclet.XDocletMain start
> INFO] INFO: Running <deploymentdescriptor/>
> INFO] Generating EJB deployment descriptor (ejb-jar.xml).
> INFO] 27.apr.2009 13:28:39 xdoclet.XDocletMain start
> INFO] INFO: Running <homeinterface/>
> INFO] Generating Home interface for 'no.theproject.project.ejb.ProjectBean'.
> INFO] 27.apr.2009 13:28:39 xdoclet.XDocletMain start
> INFO] INFO: Running <remoteinterface/>
> INFO] Generating Remote interface for 'no.theproject.project.ejb.ProjectBean'.
> INFO] 27.apr.2009 13:28:39 xdoclet.XDocletMain start
> INFO] INFO: Running <websphere/>
> INFO] [INFO] Executed tasks
> INFO] [INFO] [resources:resources]
> INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
> resources, i.e. build is platform dependent!
> INFO] [INFO] Copying 0 resource
> INFO] [INFO] [compiler:compile]
> INFO] [INFO] Compiling 4 source files to 
> C:\utv\release\projectdirectory\trunk\project_ejb\target\classes
> INFO] [INFO] [resources:testResources]
> INFO] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered 
> resources, i.e. build is platform dependent!
> INFO] [INFO] skip non existing resourceDirectory 
> C:\utv\release\projectdirectory\trunk\project_ejb\src\test\resources
> INFO] [INFO] [compiler:testCompile]
> INFO] [INFO] No sources to compile
> INFO] [INFO] [surefire:test]
> INFO] [INFO] No tests to run.
> INFO] [INFO] [ejb:ejb]
> INFO] [INFO] Building ejb project_ejb-2.0.7-SNAPSHOT with ejbVersion 2.1
> INFO] [INFO] Building jar: 
> C:\utv\release\projectdirectory\trunk\project_ejb\target\project_ejb-2.0.7-SNAPSHOT.jar
> INFO] [INFO] Building ejb client project_ejb-2.0.7-SNAPSHOT-client
> INFO] [INFO] Building jar: 
> C:\utv\release\projectdirectory\trunk\project_ejb\target\project_ejb-2.0.7-SNAPSHOT-client.jar
> INFO] [INFO] Preparing source:jar
> INFO] [WARNING] Removing: ejbdeploy from forked lifecycle, to prevent 
> recursive invocation.
> INFO] [WARNING] Removing: jar from forked lifecycle, to prevent recursive 
> invocation.
> INFO] [INFO] [xdoclet:xdoclet {execution: default}]
> INFO] [INFO] Initializing DocletTasks!!!
> INFO] [INFO] Executing tasks
> INFO] 27.apr.2009 13:28:41 xdoclet.XDocletMain start
> INFO] INFO: Running <deploymentdescriptor/>
> INFO] 27.apr.2009 13:28:41 xdoclet.XDocletMain start
> INFO] INFO: Running <homeinterface/>
> INFO] 27.apr.2009 13:28:41 xdoclet.XDocletMain start
> INFO] INFO: Running <remoteinterface/>
> INFO] 27.apr.2009 13:28:41 xdoclet.XDocletMain start
> INFO] INFO: Running <websphere/>
> INFO] [INFO] Executed tasks
> INFO] [INFO] [source:jar {execution: attach-sources}]
> INFO] [INFO] Building jar: 
> C:\utv\release\projectdirectory\trunk\project_ejb\target\project_ejb-2.0.7-SNAPSHOT-sources.jar
> INFO] [INFO] [javadoc:jar {execution: attach-javadocs}]
> INFO] [INFO] [was6:ejbdeploy {execution: default}]
> INFO] [INFO] 
> ------------------------------------------------------------------------
> INFO] [ERROR] FATAL ERROR
> INFO] [INFO] 
> ------------------------------------------------------------------------
> INFO] [INFO] null
> INFO] [INFO] 
> ------------------------------------------------------------------------
> INFO] [INFO] Trace
> INFO] java.lang.NullPointerException
> INFO]  at 
> org.codehaus.mojo.was6.EjbDeployMojo.configureBuildScript(EjbDeployMojo.java:149)
> INFO]  at 
> org.codehaus.mojo.was6.AbstractWas6Mojo.getBuildScript(AbstractWas6Mojo.java:180)
> INFO]  at 
> org.codehaus.mojo.was6.AbstractWas6Mojo.getCommandline(AbstractWas6Mojo.java:274)
> INFO]  at 
> org.codehaus.mojo.was6.AbstractWas6Mojo.execute(AbstractWas6Mojo.java:322)
> INFO]  at org.codehaus.mojo.was6.EjbDeployMojo.execute(EjbDeployMojo.java:190)
> INFO]  at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
> INFO]  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
> INFO]  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
> INFO]  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
> INFO]  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
> INFO]  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
> INFO]  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
> INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
> INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
> INFO]  at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
> INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO]  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> INFO]  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> INFO]  at java.lang.reflect.Method.invoke(Method.java:585)
> INFO]  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> INFO]  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> INFO]  at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> INFO]  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> INFO] [INFO] 
> ------------------------------------------------------------------------
> INFO] [INFO] Total time: 2 minutes 18 seconds
> INFO] [INFO] Finished at: Mon Apr 27 13:28:42 CEST 2009
> INFO] [INFO] Final Memory: 35M/63M
> INFO] [INFO] 
> ------------------------------------------------------------------------
> INFO] Full run would be checking in 7 files with message: 
> '[maven-release-plugin] prepare release project-2.0.7'
> INFO] Full run would be tagging c:\utv\release\projectdirectory\trunk with 
> label: 'project-2.0.7'
> INFO] Transforming 'The Project'...
> INFO] Transforming 'The Project Schemas'...
> INFO] Transforming 'The Project JAR'...
> INFO] Transforming 'The Project WAR'...
> INFO] Transforming 'The Project EJB'...
> INFO] Transforming 'The Project EAR'...
> INFO] Transforming 'The Project Full Distribution'...
> INFO] Not removing release POMs
> INFO] Full run would be checking in 7 files with message: 
> '[maven-release-plugin] prepare for next development iteration'
> INFO] Release preparation simulation complete.
> INFO] ------------------------------------------------------------------------
> INFO] BUILD SUCCESSFUL
> INFO] ------------------------------------------------------------------------
> INFO] Total time: 4 minutes 56 seconds
> INFO] Finished at: Mon Apr 27 13:28:42 CEST 2009
> INFO] Final Memory: 22M/42M
> INFO] ------------------------------------------------------------------------
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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