Reference application on rescue..... https://docs.sonatype.org/display/FLEXMOJOS/Reference+application
VELO On Tue, Apr 7, 2009 at 8:23 PM, aparrish <[email protected]> wrote: > > I meant to provide a bit more of the stack trace: > > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] javax.management.ObjectName and javax.management.ObjectName$1 > disagree on InnerClasses attribute > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.IncompatibleClassChangeError: javax.management.ObjectName > and javax.management.ObjectName$1 disagree on InnerClasses attribute > at java.lang.Class.getDeclaringClass(Native Method) > at java.lang.Class.getEnclosingClass(Class.java:1081) > at java.lang.Class.getSimpleBinaryName(Class.java:1216) > at java.lang.Class.getSimpleName(Class.java:1108) > at > org.granite.generator.as3.DefaultAs3TypeFactory.createAs3Type > (DefaultAs3TypeFactory.java:113) > at org.granite.generator.as3.DefaultAs3TypeFactory.getAs3Type > (DefaultAs3TypeFactory.java:103) > at > org.granite.generator.as3.JavaAs3GroovyTransformer.getAs3Type > (JavaAs3GroovyTransformer.java:168) > at org.granite.generator.as3.reflect.JavaAbstractType.<init> > (JavaAbstractType.java:60) > at org.granite.generator.as3.reflect.JavaBean.<init> > (JavaBean.java:62) > at > org.granite.generator.as3.JavaAs3GroovyTransformer.getJavaType > (JavaAs3GroovyTransformer.java:211) > at > org.granite.generator.as3.JavaAs3GroovyTransformer.getOutputs > (JavaAs3GroovyTransformer.java:84) > at > org.sonatype.flexmojos.generator.Gas3GroovyTransformer.getOutputs > (Gas3GroovyTransformer.java:37) > at > org.granite.generator.as3.JavaAs3GroovyTransformer.getOutputs > (JavaAs3GroovyTransformer.java:1) > at org.granite.generator.Transformer.generate(Transformer.java: > 66) > at org.granite.generator.Generator.generate(Generator.java:83) > at org.sonatype.flexmojos.generator.GeneratorMojo.execute > (GeneratorMojo.java:288) > 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: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) > > On Apr 7, 7:22 pm, aparrish <[email protected]> wrote: > > All: > > > > I think this is a similar problem as I have been following this thread > > for a few days. > > > > [INFO] [flexmojos:generate {execution: default}] > > [INFO] flexmojos 3.0.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT > > file > > [FATAL ERROR] org.sonatype.flexmojos.generator.GeneratorMojo#execute() > > caused a linkage error (java.lang.IncompatibleClassChangeError) and > > may be out-of-date. Check the realms: > > [FATAL ERROR] Plugin realm = app0.child-container > > [org.sonatype.flexmojos:flexmojos-maven-plugin] > > urls[0] = file:/Users/adamparrish/.m2/repository/org/sonatype/ > > flexmojos/flexmojos-maven-plugin/3.0.0/flexmojos-maven- > > plugin-3.0.0.jar > > > > I get the above error when trying to call the generate plugin on some > > very simple DTOs. Unfortunately it isn't obvious to me as to how to > > make the configuration ONLY generate my DTOs into AS instead of all > > the transient dependencies. > > > > Any thoughs? Here is my config for the plugin: > > > > <plugin> > > <groupId>org.sonatype.flexmojos</groupId> > > > <artifactId>flexmojos-maven-plugin</artifactId> > > <extensions>true</extensions> > > <executions> > > <execution> > > <goals> > > <!-- > <goal>optimize</goal> --> > > > <goal>generate</goal> > > </goals> > > <configuration> > > > <includeJavaClasses> > > > <includeClass>snip...</includeClass> > > > </includeJavaClasses> > > > <useTransitiveDependencies>true</useTransitiveDependencies> > > </configuration> > > </execution> > > </executions> > > </plugin> > > > > On Apr 6, 11:08 pm, Davis Ford <[email protected]> wrote: > > > > > I think there may be a more apt reason to use DTO. I was just reading > > > Sebastien's blog, and he points it out on this page: > http://www.adobe.com/devnet/flex/articles/fullstack_pt2_03.html > > > > > On Mon, Apr 6, 2009 at 10:30 AM, Vincent Vandenschrick > > > > > <[email protected]> wrote: > > > > > > Hi Davis, > > > > In that case, you have to go with a /thin/ domain model where your > > > > business objects are not more than value objects. This is actually a > > > > foremost design decision and in that case, you are right. But I > > > > /personally/ don't like these types of models since you are forced to > > > > break OO encapsulation sooner or later... > > > > > > Regards, > > > > Vincent > > > > > > PS: I also like design discussions > > > > > > Davis Ford a écrit : > > > >> Hi Vincent -- I like design discussions :) > > > > > >> In this case, I really don't think it warrants an extra layer. > That, > > > >> to me, seems like more maintenance. If my entity objects are fairly > > > >> simple -- and they are, why do I need an extra layer of > transformation > > > >> when Gas3 gets me *almost* all the way there. > > > > > >> In any event, I've been exchanging with Franck on the graniteds > list, > > > >> and he's just released a fix for the URL issue, and he is going to > add > > > >> annotation support to allow control for generation. > > > > > >> Currently, if you specify a field as transient: > > > > > >> private transient Object someObject; > > > > > >> Gas3 will ignore it in the generation. However, this is no good, > b/c > > > >> it conflicts with JPA. If it is marked as transient in JPA it will > > > >> also ignore it for the database, which is not what I want. If he > adds > > > >> a custom annotation, I can control it via that, and all is well. > > > > > >> Regards, > > > >> Davis > > > > > > -- > > > > Vincent Vandenschrick > > > > Jspresso Framework > > > > http://www.jspresso.org > > > > > -- > > > Zeno Consulting, Inc. > > > home:http://www.zenoconsulting.biz > > > blog:http://zenoconsulting.wikidot.com > > > p: 248.894.4922 > > > f: 313.884.2977 > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
