Couldn't it have something to do with the less exotic errors further down?
C:\gfv3_0806\v3\admingui\common\src\main\java\org\glassfish\admingui\common\hand
lers\CommonTreeHandlers.java:6: package com.sun.jsftemplating.annotation
does no
t exist
import com.sun.jsftemplating.annotation.Handler;
^
C:\gfv3_0806\v3\admingui\common\src\main\java\org\glassfish\admingui\common\hand
lers\CommonTreeHandlers.java:7: package com.sun.jsftemplating.annotation
does no
t exist
import com.sun.jsftemplating.annotation.HandlerInput;
^
C:\gfv3_0806\v3\admingui\common\src\main\java\org\glassfish\admingui\common\hand
lers\CommonTreeHandlers.java:34: cannot find symbol
symbol : class Handler
location: class org.glassfish.admingui.common.handlers.CommonTreeHandlers
@Handler(id="filterSystemApps",
^
Ken Paulsen wrote:
>
> Hi Jennifer,
>
> I didn't delete my .m2 directory (yet), but I did a mvn clean build in
> admingui and didn't get this same error. Strange that this is causing
> Apt to blow up (vs. the build). So it may be a bug in the version of
> APT you have in your JDK. I am using "build 1.6.0_06-b02" w/o any
> errors... although perhaps this is windows specific?
>
> Ana, what version of the JDK do you have and are you seeing any problems?
>
> Thanks,
>
> Ken
>
> Jennifer Chou wrote:
>> I'm getting the following build error with fresh checkout and deleted
>> .m2.
>> I'm using jdk 1.6.0_06. Do I need to use a different jdk?
>>
>> [INFO] [hk2:hk2-compile]
>> [INFO] Compiling 6 source files to
>> C:\gfv3_0806\v3\admingui\common\target\classe
>> s
>> An exception has occurred in apt (1.6.0_06). Please file a bug at the
>> Java Devel
>> oper 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:16
>> 1)
>> 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.visitNewArray(TreeScanner.java:1
>> 94)
>> at
>> com.sun.tools.javac.tree.JCTree$JCNewArray.accept(JCTree.java:1294)
>> at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35)
>> at
>> com.sun.tools.javac.tree.TreeScanner.visitAssign(TreeScanner.java:203
>> )
>> at
>> com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1342)
>> 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:16
>> 0)
>> 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:6
>> 6)
>> 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:5
>> 4)
>> 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(HK2
>> CompileMojo.java:123)
>> at
>> com.sun.enterprise.module.maven.AptCompiler.compile(AptCompiler.java:
>> 103)
>> at
>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
>> Mojo.java:521)
>> at
>> com.sun.enterprise.module.maven.CompilerMojo.execute(CompilerMojo.jav
>> a:149)
>> at
>> com.sun.enterprise.module.maven.HK2CompileMojo.execute(HK2CompileMojo
>> .java:137)
>> at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> nManager.java:447)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:539)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:480)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:459)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures(DefaultLifecycleExecutor.java:311)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts(DefaultLifecycleExecutor.java:278)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> fecycleExecutor.java:143)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.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)
>> C:\gfv3_0806\v3\admingui\common\src\main\java\org\glassfish\admingui\common\hand
>>
>> lers\CommonTreeHandlers.java:6: package
>> com.sun.jsftemplating.annotation does no
>> t exist
>> import com.sun.jsftemplating.annotation.Handler;
>> ^
>> C:\gfv3_0806\v3\admingui\common\src\main\java\org\glassfish\admingui\common\hand
>>
>> lers\CommonTreeHandlers.java:7: package
>> com.sun.jsftemplating.annotation does no
>> t exist
>> import com.sun.jsftemplating.annotation.HandlerInput;
>> ^
>> C:\gfv3_0806\v3\admingui\common\src\main\java\org\glassfish\admingui\common\hand
>>
>> lers\CommonTreeHandlers.java:34: cannot find symbol
>> symbol : class Handler
>> location: class
>> org.glassfish.admingui.common.handlers.CommonTreeHandlers
>> @Handler(id="filterSystemApps",
>> ^
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> 3 errors
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Fatal error compiling
>>
>> Embedded error: APT failed: 1
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 44 minutes 45 seconds
>> [INFO] Finished at: Wed Aug 06 12:33:56 EDT 2008
>> [INFO] Final Memory: 65M/132M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>
--
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.