GoogleCloudPlatform / appengine-maven-plugin

Automatically exported from code.google.com/p/appengine-maven-plugin
Apache License 2.0
19 stars 21 forks source link

ClassCastException on mvn appengine:update #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Updating an old appengine application that has been dormant for 4 years. When 
trying to run mvn appengine:update it fails with,

java.lang.ClassCastException: 
com.google.appengine.tools.admin.AppCfg$UpdateAction cannot be cast to 
com.google.appengine.tools.admin.AppCfg$RequestLo
gsAction
        at com.google.appengine.tools.admin.AppCfg$16.apply(AppCfg.java:804)
        at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:46)
        at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:151)
        at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:124)
        at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:120)
        at com.google.appengine.appcfg.AbstractAppCfgMojo.executeAppCfgCommand(AbstractAppCfgMojo.java:250)
        at com.google.appengine.appcfg.Update.execute(Update.java:32)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

Original issue reported on code.google.com by Ben.Manes@gmail.com on 5 Feb 2015 at 12:03

GoogleCodeExporter commented 9 years ago
The old Maven plugin had a customization that somehow caused this to break. 
Removing the following line fixed it,

<severity>0</severity>

Original comment by Ben.Manes@gmail.com on 5 Feb 2015 at 12:25