If JDK7 b118 is used to build Glassfish, then CR 7000700 occurs before this NPE.
If JDK7 b118 is used with java.dll from b113, then CR 7000700 does not occur and this NPE does occur.
Here is the build output:
+ JAVA_HOME=j:/re/jdk/7/promoted/all/b112/binaries/windows-i586
+ maven=d:/tools/gf/apache-maven-2.2.1/bin/mvn
+ export JAVA_HOME
+ MAVEN_OPTS=-Xmx512m
+ export MAVEN_OPTS
+ '[' -r v3 ']'
+ d:/tools/gf/apache-maven-2.2.1/bin/mvn -e clean install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] GlassFish Deployment Related Modules
:
:
[INFO] Building in D:\tools\gf\v3\deployment\javaee-full
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [hk2:hk2-compile {execution: default-hk2-compile}]
[INFO] Compiling 6 source files to D:\tools\gf\v3\deployment\javaee-full\target\classes
warning: The apt tool and its associated API are planned to be
removed in the next major JDK release. These features have been
superseded by javac and the standardized annotation processing API,
javax.annotation.processing and javax.lang.model. Users are
recommended to migrate to the annotation processing features of
javac; see the javac man page for more information.
Problem encountered during annotation processing;
see stacktrace below for more information.
java.lang.NullPointerException
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitTypeParameter(TreeInfo.java:505)
at com.sun.tools.javac.tree.JCTree$JCTypeParameter.accept(JCTree.java:1933)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitMethodDef(TreeScanner.java:86)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitMethodDef(TreeInfo.java:498)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:671)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitClassDef(TreeScanner.java:80)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitClassDef(TreeInfo.java:494)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:590)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.visitNewClass(TreeScanner.java:207)
at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1375)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.visitAssign(TreeScanner.java:225)
at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1473)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.visitExec(TreeScanner.java:174)
at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1170)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitBlock(TreeScanner.java:104)
at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:784)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.visitMethodDef(TreeScanner.java:91)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitMethodDef(TreeInfo.java:498)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:671)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitClassDef(TreeScanner.java:80)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitClassDef(TreeInfo.java:494)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:590)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitTopLevel(TreeScanner.java:68)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitTopLevel(TreeInfo.java:490)
at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:459)
at com.sun.tools.javac.tree.TreeInfo.declarationFor(TreeInfo.java:510)
at com.sun.tools.javac.tree.TreeInfo.positionFor(TreeInfo.java:468)
at com.sun.tools.apt.mirror.declaration.DeclarationImpl.getPosition(DeclarationImpl.java:193)
at com.sun.mirror.util.SourceOrderDeclScanner$SourceOrderComparator.compare(SourceOrderDeclScanner.java:132)
at com.sun.mirror.util.SourceOrderDeclScanner$SourceOrderComparator.compare(SourceOrderDeclScanner.java:57)
at java.util.TreeMap.put(TreeMap.java:547)
at java.util.TreeSet.add(TreeSet.java:255)
at com.sun.mirror.util.SourceOrderDeclScanner.visitClassDeclaration(SourceOrderDeclScanner.java:223)
at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:113)
at com.sun.tools.apt.mirror.apt.AnnotationProcessorEnvironmentImpl$CollectingAP.process(AnnotationProcessorEnvironmentImpl.java:145)
at com.sun.tools.apt.mirror.apt.AnnotationProcessorEnvironmentImpl.getDeclarationsAnnotatedWith(AnnotationProcessorEnvironmentImpl.java:119)
at com.sun.enterprise.tools.apt.CompanionSeedGenerator.process(CompanionSeedGenerator.java:72)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:84)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:84)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:84)
at com.sun.tools.apt.comp.Apt.main(Apt.java:480)
at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:273)
at com.sun.tools.apt.main.Main.compile(Main.java:1127)
at com.sun.tools.apt.main.Main.compile(Main.java:989)
at com.sun.tools.apt.Main.processing(Main.java:113)
at com.sun.tools.apt.Main.process(Main.java:103)
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:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:613)
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)
Note: D:\tools\gf\v3\deployment\javaee-full\src\main\java\org\glassfish\javaee\full\deployment\EarDeployer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
If JDK7 b118 is used with java.dll from b113, then CR 7000700 does not occur and this NPE does occur.
Here is the build output:
+ JAVA_HOME=j:/re/jdk/7/promoted/all/b112/binaries/windows-i586
+ maven=d:/tools/gf/apache-maven-2.2.1/bin/mvn
+ export JAVA_HOME
+ MAVEN_OPTS=-Xmx512m
+ export MAVEN_OPTS
+ '[' -r v3 ']'
+ d:/tools/gf/apache-maven-2.2.1/bin/mvn -e clean install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] GlassFish Deployment Related Modules
:
:
[INFO] Building in D:\tools\gf\v3\deployment\javaee-full
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [hk2:hk2-compile {execution: default-hk2-compile}]
[INFO] Compiling 6 source files to D:\tools\gf\v3\deployment\javaee-full\target\classes
warning: The apt tool and its associated API are planned to be
removed in the next major JDK release. These features have been
superseded by javac and the standardized annotation processing API,
javax.annotation.processing and javax.lang.model. Users are
recommended to migrate to the annotation processing features of
javac; see the javac man page for more information.
Problem encountered during annotation processing;
see stacktrace below for more information.
java.lang.NullPointerException
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitTypeParameter(TreeInfo.java:505)
at com.sun.tools.javac.tree.JCTree$JCTypeParameter.accept(JCTree.java:1933)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitMethodDef(TreeScanner.java:86)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitMethodDef(TreeInfo.java:498)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:671)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitClassDef(TreeScanner.java:80)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitClassDef(TreeInfo.java:494)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:590)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.visitNewClass(TreeScanner.java:207)
at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1375)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.visitAssign(TreeScanner.java:225)
at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1473)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.visitExec(TreeScanner.java:174)
at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1170)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitBlock(TreeScanner.java:104)
at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:784)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.visitMethodDef(TreeScanner.java:91)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitMethodDef(TreeInfo.java:498)
at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:671)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitClassDef(TreeScanner.java:80)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitClassDef(TreeInfo.java:494)
at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:590)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.scan(TreeInfo.java:486)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
at com.sun.tools.javac.tree.TreeScanner.visitTopLevel(TreeScanner.java:68)
at com.sun.tools.javac.tree.TreeInfo$1DeclScanner.visitTopLevel(TreeInfo.java:490)
at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:459)
at com.sun.tools.javac.tree.TreeInfo.declarationFor(TreeInfo.java:510)
at com.sun.tools.javac.tree.TreeInfo.positionFor(TreeInfo.java:468)
at com.sun.tools.apt.mirror.declaration.DeclarationImpl.getPosition(DeclarationImpl.java:193)
at com.sun.mirror.util.SourceOrderDeclScanner$SourceOrderComparator.compare(SourceOrderDeclScanner.java:132)
at com.sun.mirror.util.SourceOrderDeclScanner$SourceOrderComparator.compare(SourceOrderDeclScanner.java:57)
at java.util.TreeMap.put(TreeMap.java:547)
at java.util.TreeSet.add(TreeSet.java:255)
at com.sun.mirror.util.SourceOrderDeclScanner.visitClassDeclaration(SourceOrderDeclScanner.java:223)
at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:113)
at com.sun.tools.apt.mirror.apt.AnnotationProcessorEnvironmentImpl$CollectingAP.process(AnnotationProcessorEnvironmentImpl.java:145)
at com.sun.tools.apt.mirror.apt.AnnotationProcessorEnvironmentImpl.getDeclarationsAnnotatedWith(AnnotationProcessorEnvironmentImpl.java:119)
at com.sun.enterprise.tools.apt.CompanionSeedGenerator.process(CompanionSeedGenerator.java:72)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:84)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:84)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:84)
at com.sun.tools.apt.comp.Apt.main(Apt.java:480)
at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:273)
at com.sun.tools.apt.main.Main.compile(Main.java:1127)
at com.sun.tools.apt.main.Main.compile(Main.java:989)
at com.sun.tools.apt.Main.processing(Main.java:113)
at com.sun.tools.apt.Main.process(Main.java:103)
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:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:613)
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)
Note: D:\tools\gf\v3\deployment\javaee-full\src\main\java\org\glassfish\javaee\full\deployment\EarDeployer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
- duplicates
-
JDK-6985754 NPE from visitTypeParameter method of TreeScanner subclass in TreeInfo.declarationFor method
-
- Closed
-