JDK-6807473 : While runing ant script provided by Apache Beehive Netui
  • Type: Bug
  • Component: tools
  • Sub-Component: apt
  • Affected Version: 6u10
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2009-02-19
  • Updated: 2012-10-12
  • Resolved: 2012-10-12
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
1.6.0_11

ADDITIONAL OS VERSION INFORMATION :
Windows Vista

A DESCRIPTION OF THE PROBLEM :

C:\Projects\pti>ant clean build
Buildfile: build.xml

clean:
   [delete] Deleting directory C:\Projects\pti\build

deploy-beehive:
    [mkdir] Created dir: C:\Projects\pti\build
     [echo] Deploy NetUI to webapp C:\Projects\pti\build

deploy.beehive.webapp.runtime:
     [echo] Deploy NetUI to webapp rooted at: C:\Projects\pti\build
     [copy] Copying 17 files to C:\Projects\pti\build\WEB-INF\lib
     [copy] Copying 18 files to C:\Projects\pti\build\resources
     [copy] Copying 2 files to C:\Projects\pti\build\WEB-INF

build:
     [copy] Copying 110 files to C:\Projects\pti\build
     [copy] Copying 1 file to C:\Projects\pti\build\WEB-INF\classes
     [echo] Building Controls
     [echo] Building Page Flows
Trying to override old definition of task apt
     [echo] Building application source files
      [apt] Compiling 15 source files to C:\Projects\pti\build\WEB-INF\classes
      [apt] An exception has occurred in apt (1.6.0_11). Please file a bug at th
e Java Developer Connection (http://java.sun.com/webapps/bugreport)  after check
ing the Bug Parade for duplicates. Include your program and the following diagno
stic in your report.  Thank you.
      [apt] java.lang.NullPointerException
      [apt]     at com.sun.tools.apt.comp.Apt$AptTreeScanner.visitAnnotation(Apt
.java:161)
      [apt]     at com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.ja
va:1794)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.visitNewArray(TreeScanne
r.java:194)
      [apt]     at com.sun.tools.javac.tree.JCTree$JCNewArray.accept(JCTree.java
:1294)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.visitAssign(TreeScanner.
java:203)
      [apt]     at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1
342)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.visitAnnotation(TreeScan
ner.java:272)
      [apt]     at com.sun.tools.apt.comp.Apt$AptTreeScanner.visitAnnotation(Apt
.java:160)
      [apt]     at com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.ja
va:1794)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.visitModifiers(TreeScann
er.java:267)
      [apt]     at com.sun.tools.javac.tree.JCTree$JCModifiers.accept(JCTree.jav
a:1816)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.visitClassDef(TreeScanne
r.java:62)
      [apt]     at com.sun.tools.apt.comp.Apt$AptTreeScanner.visitClassDef(Apt.j
ava:146)
      [apt]     at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.jav
a:575)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:35
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:43
)
      [apt]     at com.sun.tools.javac.tree.TreeScanner.visitTopLevel(TreeScanne
r.java:54)
      [apt]     at com.sun.tools.apt.comp.Apt$AptTreeScanner.visitTopLevel(Apt.j
ava:124)
      [apt]     at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTr
ee.java:446)
      [apt]     at com.sun.tools.apt.comp.Apt.main(Apt.java:213)
      [apt]     at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java
:258)
      [apt]     at com.sun.tools.apt.main.Main.compile(Main.java:1102)
      [apt]     at com.sun.tools.apt.main.Main.compile(Main.java:964)
      [apt]     at com.sun.tools.apt.Main.processing(Main.java:95)
      [apt]     at com.sun.tools.apt.Main.process(Main.java:43)
      [apt]     at com.sun.tools.apt.Main.main(Main.java:34)
      [apt] javac: directory not found: C:\Projects\pti\build\WEB-INF\.tmpbeansr
c
      [apt] Usage: javac <options> <source files>
      [apt] use -help for a list of possible options

BUILD FAILED
C:\Projects\pti\build.xml:121: Compile failed; see the compiler error output for
 details.

  Total time: 1 second
C:\Projects\pti>

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run Apache Beehive Netui ant script

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
NullPointerException

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
The apt tool and API are deprecated in JDK 7 and have been removed from the platform in JDK 8 (JDK-7041249). Further updates to apt are not expected. Annotation processing should transition to the standardized javax.lang.model API supported in javac since JDK 6.
12-10-2012