Java.Lang.ClassCastException: Com.Sun.Tools.Javac.Tree.JCTree$JCErroneous

(Doc ID 1317063.1)

Last updated on SEPTEMBER 21, 2017

Applies to:

Oracle Workshop for Weblogic - Version: 10.3 and later   [Release: AS10gR3 and later ]
Information in this document applies to any platform.

Symptoms

On WebLogic Workshop 10.3, when attempting to build a application using the exported workshop ant script, you will notice the below error.

ERROR
-----------------------
[apt] Compiling 446 source files to D:\Rajesh\MOL\AutomateBuild\workspace\ICMSPortal\WebContent\WEB-INF\classes
[apt] An exception has occurred in apt (1.6.0_05). 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.
[apt] java.lang.ClassCastException: com.sun.tools.javac.tree.JCTree$JCErroneous
[apt] at com.sun.tools.javac.comp.Annotate.enterAttributeValue(Annotate.java:205)
[apt] at com.sun.tools.javac.comp.Annotate.enterAttributeValue(Annotate.java:219)
[apt] at com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:167)
[apt] at com.sun.tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:743)
[apt] at com.sun.tools.javac.comp.MemberEnter.access$300(MemberEnter.java:42)
[apt] at com.sun.tools.javac.comp.MemberEnter$5.enterAnnotation(MemberEnter.java:711)
[apt] at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)
[apt] at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87)

[apt] at com.sun.tools.javac.comp.Enter.complete(Enter.java:472)
[apt] at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
[apt] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:250)
[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)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms