[ 
http://jira.codehaus.org/browse/MRETRO-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maros Ivanco updated MRETRO-33:
-------------------------------

    Attachment: patch.txt

Attached patch should solve the issue.

> NullPointerException on translate-war goal
> ------------------------------------------
>
>                 Key: MRETRO-33
>                 URL: http://jira.codehaus.org/browse/MRETRO-33
>             Project: Maven 2.x Retrotranslator Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-4
>         Environment: Maven version: 2.0.9
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Faeldon
>            Assignee: Jason Dillon
>         Attachments: patch.txt
>
>
> I have a project generated from AppFuse 2.0 Spring-basic archetype. And I 
> want to convert my java 5 binaries to java 1.4. I have the following 
> configuration:
> {code:xml}
> <plugin>
>       <groupId>org.codehaus.mojo</groupId>
>       <artifactId>retrotranslator-maven-plugin</artifactId>
>       <executions>
>               <execution>
>                       <goals>
>                               <goal>translate-war</goal>
>                       </goals>
>                       <configuration>
>                               <classifier>jdk1.4</classifier>
>                               <attach>true</attach>
>                       </configuration>
>               </execution>
>       </executions>
> <plugin>
> {code}
> After executing *mvn install" i got the following exception:
> {noformat}
> [INFO] [retrotranslator:translate-war {execution: default}]
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] null
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
>         at 
> org.codehaus.groovy.runtime.InvokerHelper.setProperty(InvokerHelper.java:199)
>         at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.setProperty(ScriptBytecodeAdapter.java:506)
>         at 
> org.codehaus.mojo.retrotranslator.TranslateWarMojo.configureRetrotranslator(TranslateWarMojo.groovy:120)
>         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:585)
>         at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
>         at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
>         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
>         at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
>         at 
> org.codehaus.mojo.retrotranslator.RetrotranslateMojoSupport.execute(RetrotranslateMojoSupport.groovy:154)
>         at 
> org.codehaus.mojo.retrotranslator.TranslateWarMojo.super$4$execute(TranslateWarMojo.groovy)
>         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:585)
>         at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
>         at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
>         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
>         at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:131)
>         at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:154)
>         at 
> org.codehaus.mojo.retrotranslator.TranslateWarMojo.execute(TranslateWarMojo.groovy:88)
>         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:
>         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:585)
>         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)
> {noformat}

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