dev@glassfish.java.net

Re: new feature for CRUD commands

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Tue, 06 Jul 2010 14:16:17 -0700

That's kind of what I figured happened... :-)

Jerome Dochez wrote on 07/ 6/10 12:23 PM:
> that would certainly help a bit if I was to actually checkin the file,
> wouldn't it ?
>
> jerome
>
> On 7/6/10 11:51 AM, Bill Shannon wrote:
>> What package and module is it defined in? I can't find Creates.java
>> anywhere
>> in the GlassFish or HK2 source code. There is a @Deletes annotation and a
>> @CRUD annotation.
>>
>>
>> Jerome Dochez wrote on 07/ 6/10 08:38 AM:
>>> have you imported the @Creates annotation. looks like the compiler does
>>> not find it...
>>>
>>> jerome
>>>
>>> On 6/24/10 3:59 PM, Carla Mott wrote:
>>>> Has anyone gotten this to work? I tried this on a fresh build but
>>>> getting an NPE.
>>>> @Element @Creates(
>>>> @Create(value="create-node-ssh", decorator=Node.Decorator.class ),
>>>> @Create(value="create-node-config",
>>>> decorator=Node.DecoratorConfig.class ) )
>>>>
>>>> [INFO] Building in /Users/cmott/logging/v3/admin/config-api
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] [resources:resources]
>>>> [INFO] Using default encoding to copy filtered resources.
>>>> [INFO] [hk2:hk2-compile]
>>>> [INFO] Compiling 1 source file to
>>>> /Users/cmott/logging/v3/admin/config-api/target/classes
>>>> An exception has occurred in apt (1.6.0_15). Please file a bug at the
>>>> Java Developer Connection (http://java.sun.com/webapps/bugreport)
>>>> after checking the Bug Parade for duplicates. Include your program and
>>>> the following diagnostic in your report. Thank you.
>>>> java.lang.NullPointerException
>>>> at
>>>> com.sun.tools.apt.comp.Apt$AptTreeScanner.visitAnnotation(Apt.java:161)
>>>> at
>>>> com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:1794)
>>>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
>>>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43)
>>>> at
>>>> com.sun.tools.javac.tree.TreeScanner.visitAnnotation(TreeScanner.java:272)
>>>>
>>>>
>>>> at
>>>> com.sun.tools.apt.comp.Apt$AptTreeScanner.visitAnnotation(Apt.java:160)
>>>> at
>>>> com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:1794)
>>>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
>>>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43)
>>>> at
>>>> com.sun.tools.javac.tree.TreeScanner.visitModifiers(TreeScanner.java:267)
>>>>
>>>> at com.sun.tools.javac.tree.JCTree$JCModifiers.accept(JCTree.java:1816)
>>>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
>>>> at
>>>> com.sun.tools.javac.tree.TreeScanner.visitMethodDef(TreeScanner.java:70)
>>>>
>>>> at
>>>> com.sun.tools.apt.comp.Apt$AptTreeScanner.visitMethodDef(Apt.java:152)
>>>> at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:639)
>>>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
>>>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43)
>>>> at
>>>> com.sun.tools.javac.tree.TreeScanner.visitClassDef(TreeScanner.java:66)
>>>> at
>>>> com.sun.tools.apt.comp.Apt$AptTreeScanner.visitClassDef(Apt.java:146)
>>>> at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:575)
>>>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
>>>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43)
>>>> at
>>>> com.sun.tools.javac.tree.TreeScanner.visitTopLevel(TreeScanner.java:54)
>>>> at
>>>> com.sun.tools.apt.comp.Apt$AptTreeScanner.visitTopLevel(Apt.java:124)
>>>> at
>>>> com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
>>>>
>>>> at com.sun.tools.apt.comp.Apt.main(Apt.java:213)
>>>> at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258)
>>>> at com.sun.tools.apt.main.Main.compile(Main.java:1102)
>>>> at com.sun.tools.apt.main.Main.compile(Main.java:964)
>>>> at com.sun.tools.apt.Main.processing(Main.java:95)
>>>> at com.sun.tools.apt.Main.process(Main.java:85)
>>>> at
>>>> com.sun.enterprise.module.maven.HK2CompileMojo$1.compileInProcess(HK2CompileMojo.java:123)
>>>>
>>>>
>>>> at
>>>> com.sun.enterprise.module.maven.AptCompiler.compile(AptCompiler.java:103)
>>>>
>>>> at
>>>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:521)
>>>>
>>>>
>>>> at
>>>> com.sun.enterprise.module.maven.CompilerMojo.execute(CompilerMojo.java:149)
>>>>
>>>>
>>>> at
>>>> com.sun.enterprise.module.maven.HK2CompileMojo.execute(HK2CompileMojo.java:137)
>>>>
>>>>
>>>> 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:597)
>>>> 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)
>>>> /Users/cmott/logging/v3/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Nodes.java:62:
>>>>
>>>> cannot find symbol
>>>> symbol : class Creates
>>>> location: interface com.sun.enterprise.config.serverbeans.Nodes
>>>> @Creates(
>>>> ^
>>>>
>>>> Jerome Dochez wrote:
>>>>> I have added the ability to have more than one @Create or @Delete on
>>>>> a single method declaration.
>>>>>
>>>>> please find the updated details on the wiki page :
>>>>> http://wiki.glassfish.java.net/Wiki.jsp?page=V3CRUDASADMINCOMMANDS
>>>>>
>>>>> jerome
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>