Hi VELO,
Sorry for late reply, somehow I missed the email. This problem still occurs in the latest 2.0.1 version. This is also reported in GDS tracker http://www.graniteds.org/jira/browse/GDS-201, which says a version mismatch of antlr required for groovy and the one supplied by ant is causing this problem. But I don't get how ant is getting involved here as we are using maven with your generator mojo. However, the solution that I have came to is rather simple: upgrading to groovy 1.5.7 solves this. That is why I request that you update the generator mojo to use latest granite-generator-1.2.0 (available here http://download.java.net/maven/2/org/graniteds/granite-generator/1.2.0/granite-generator-1.2.0.pom) thanks, --RA Marvin Froeder wrote: > Are you sure this is working on 2.0M9?! > > I compared M9 with M10 and didn't find any significant changes: > svn diff http://svn.sonatype.org/flexmojos/tags/mojo-2.0M9/generator-mojo/ > http://svn.sonatype.org/flexmojos/tags/mojo-2.0M10/generator-mojo/ > > I just changed it to allow resolution of PROVIDED dependencies. > > > VELO > > On Sun, Dec 14, 2008 at 10:06 AM, Ranwar <[email protected]> wrote: > > > > > My build started to fail since last week's update of flex mojo 2.0m10, > > it worked well with m9. Any ideas? > > > > here is stacktrace: > > ------------------------------------------------------ > > > > [INFO] [generator-mojo:generate {execution: default}] > > [INFO] Flex-mojos 2.0M10 - GNU GPL License (NO WARRANTY) - See > > COPYRIGHT file > > [INFO] Generating: /j2ee/tomcat6/webapps/hudson/jobs/Moveplot-CI/ > > workspace/trunk/moveplot-planet/src/com/moveplot/core/event/events/ > > BuddyUnblockedEventBase.as > > [HUDSON] Archiving /j2ee/tomcat6/webapps/hudson/jobs/Moveplot-CI/ > > workspace/trunk/moveplot-planet/pom.xml to /j2ee/tomcat6/webapps/ > > hudson/jobs/Moveplot-CI/modules/kaz$moveplot-planet/builds/ > > 2008-12-14_15-22-17/archive/kaz/moveplot-planet/0.9-SNAPSHOT/pom.xml > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] FATAL ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] BUG! exception in phase 'parsing' in source unit > > 'Script1.groovy' antlr.CommonToken cannot be cast to antlr.Token > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Trace > > BUG! exception in phase 'parsing' in source unit 'Script1.groovy' > > antlr.CommonToken cannot be cast to antlr.Token > > at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits > > (CompilationUnit.java:776) > > at org.codehaus.groovy.control.CompilationUnit.compile > > (CompilationUnit.java:438) > > at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java: > > 277) > > at groovy.lang.GroovyShell.parseClass(GroovyShell.java:572) > > at groovy.lang.GroovyShell.parse(GroovyShell.java:584) > > at groovy.lang.GroovyShell.parse(GroovyShell.java:564) > > at groovy.lang.GroovyShell.parse(GroovyShell.java:603) > > at org.granite.generator.gsp.GroovyTemplate.compile > > (GroovyTemplate.java:135) > > at org.granite.generator.gsp.GroovyTemplate.execute > > (GroovyTemplate.java:153) > > at org.granite.generator.as3.JavaAs3GroovyTransformer.generate > > (JavaAs3GroovyTransformer.java:114) > > at org.granite.generator.as3.JavaAs3GroovyTransformer.generate > > (JavaAs3GroovyTransformer.java:1) > > at org.granite.generator.Transformer.generate(Transformer.java:71) > > at org.granite.generator.Generator.generate(Generator.java:83) > > at > > info.flexmojos.generator.GeneratorMojo.execute(GeneratorMojo.java: > > 282) > > at org.apache.maven.plugin.DefaultPluginManager.executeMojo > > (DefaultPluginManager.java:451) > > at hudson.maven.agent.PluginManagerInterceptor.executeMojo > > (PluginManagerInterceptor.java:159) > > 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.lifecycle.LifecycleExecutorInterceptor.execute > > (LifecycleExecutorInterceptor.java:42) > > 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:597) > > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java: > > 315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at hudson.maven.agent.Main.launch(Main.java:134) > > at hudson.maven.MavenBuilder.call(MavenBuilder.java:139) > > at hudson.maven.MavenModuleSetBuild$Builder.call > > (MavenModuleSetBuild.java:542) > > at hudson.maven.MavenModuleSetBuild$Builder.call > > (MavenModuleSetBuild.java:488) > > at hudson.remoting.UserRequest.perform(UserRequest.java:69) > > at hudson.remoting.UserRequest.perform(UserRequest.java:23) > > at hudson.remoting.Request$2.run(Request.java:213) > > at > > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java: > > 441) > > at > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask > > (ThreadPoolExecutor.java:885) > > at java.util.concurrent.ThreadPoolExecutor$Worker.run > > (ThreadPoolExecutor.java:907) > > at java.lang.Thread.run(Thread.java:619) > > Caused by: java.lang.ClassCastException: antlr.CommonToken cannot be > > cast to antlr.Token > > at antlr.CharScanner.makeToken(CharScanner.java:173) > > at > > org.codehaus.groovy.antlr.parser.GroovyLexer.mNLS(GroovyLexer.java: > > 1635) > > at org.codehaus.groovy.antlr.parser.GroovyLexer.nextToken > > (GroovyLexer.java:444) > > at org.codehaus.groovy.antlr.parser.GroovyLexer$1.nextToken > > (GroovyLexer.java:234) > > at antlr.TokenBuffer.fill(TokenBuffer.java:69) > > at antlr.TokenBuffer.LA(TokenBuffer.java:80) > > at antlr.LLkParser.LA(LLkParser.java:52) > > at org.codehaus.groovy.antlr.parser.GroovyRecognizer.compilationUnit > > (GroovyRecognizer.java:430) > > at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST > > (AntlrParserPlugin.java:74) > > at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:248) > > at org.codehaus.groovy.control.CompilationUnit$1.call > > (CompilationUnit.java:143) > > at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits > > (CompilationUnit.java:772) > > ... 44 more > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 13 seconds > > [INFO] Finished at: Sun Dec 14 15:22:31 BDT 2008 > > [INFO] Final Memory: 28M/51M > > [INFO] > > ------------------------------------------------------------------------ > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
