JWSC Tasks Fails In Ant When Two Builds Are Run From One Script (Doc ID 1320783.1)

Last updated on JUNE 09, 2016

Applies to:

Web Services - Version 11.1.1.2.0 and later
Information in this document applies to any platform.

Symptoms


This issue occurs when using a master Ant build script (which is just a simple script which calls the two subsidiary ant builds).  Each of the individual builds calls jwsc to build a web service.  This is a common technique, and all standard Ant 1.7.x tasks are being used.

When invoking the two sub builds separately by manually typing on the command line, Ant performs the builds successfully, however, when calling these build from a master build, errors occur when entering the second build.

The error that occurs is the following:

[jwsc] JWS: processing module /helloworld/HelloWS
[jwsc] Parsing source files
[jwsc] Parsing source files
[jwsc] 1 JWS files being processed for module /helloworld/HelloWS
[jwsc] JWS: /projects/HelloWorld\HelloWorldWS/src/java/helloworld/HelloWS.java Validated.
[jwsc] Processing 1 JAX-WS web services...
[jwsc] warning: Annotation types without processors: [javax.xml.bind.annotation.XmlRootElement, javax.xml.bind.annotation.XmlAccessorType, javax.xml.bind.annotation.XmlType, javax.xml.bind.annotation.XmlElement]
[jwsc] 1 warning
[jwsc] An exception has occurred in the compiler (1.6.0_23). 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.
[jwsc] java.lang.IllegalAccessError: tried to access field com.sun.tools.javac.jvm.Code$Chain.state from class com.sun.tools.javac.jvm.Code
[jwsc] at com.sun.tools.javac.jvm.Code.resolve(Code.java:1468)
[jwsc] at com.sun.tools.javac.jvm.Gen.visitIf(Gen.java:1588)
[jwsc] at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1050)
[jwsc] at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
[jwsc] at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
[jwsc] at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:686)
[jwsc] at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:737)
[jwsc] at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:1013)
[jwsc] at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:739)
[jwsc] at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
[jwsc] at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
[jwsc] at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:893)
[jwsc] at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:866)
[jwsc] at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:639)
[jwsc] at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:665)
[jwsc] at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2198)
[jwsc] at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:617)
[jwsc] at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1289)
[jwsc] at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1259)
[jwsc] at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:765)
[jwsc] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:730)
[jwsc] at com.sun.tools.javac.main.Main.compile(Main.java:353)
[jwsc] at com.sun.tools.javac.main.Main.compile(Main.java:279)
[jwsc] at com.sun.tools.javac.main.Main.compile(Main.java:270)
[jwsc] at com.sun.tools.javac.Main.compile(Main.java:69)
[jwsc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[jwsc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[jwsc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[jwsc] at java.lang.reflect.Method.invoke(Method.java:597)
[jwsc] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
[jwsc] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
[jwsc] at weblogic.wsee.tools.anttasks.DelegatingJavacTask$ExposingJavac.compile(DelegatingJavacTask.java:368)
[jwsc] at weblogic.wsee.tools.anttasks.DelegatingJavacTask.compile(DelegatingJavacTask.java:286)
[jwsc] at weblogic.wsee.tools.anttasks.JwscTask.javac(JwscTask.java:337)
[jwsc] at weblogic.wsee.tools.anttasks.JwsModule.compile(JwsModule.java:393)
[jwsc] at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:263)
[jwsc] at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:229)
[jwsc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[jwsc] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[jwsc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[jwsc] at java.lang.reflect.Method.invoke(Method.java:597)
[jwsc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[jwsc] at org.apache.tools.ant.Task.perform(Task.java:348)
[jwsc] at org.apache.tools.ant.Target.execute(Target.java:357)
[jwsc] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[jwsc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[jwsc] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[jwsc] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[jwsc] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[jwsc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[jwsc] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[jwsc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[jwsc] at java.lang.reflect.Method.invoke(Method.java:597)
[jwsc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[jwsc] at org.apache.tools.ant.Task.perform(Task.java:348)
[jwsc] at org.apache.tools.ant.Target.execute(Target.java:357)
[jwsc] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[jwsc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[jwsc] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[jwsc] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[jwsc] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[jwsc] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[jwsc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[jwsc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[jwsc] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[jwsc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[jwsc] at java.lang.reflect.Method.invoke(Method.java:597)
[jwsc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[jwsc] at org.apache.tools.ant.Task.perform(Task.java:348)
[jwsc] at org.apache.tools.ant.Target.execute(Target.java:357)
[jwsc] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[jwsc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[jwsc] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[jwsc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[jwsc] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[jwsc] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[jwsc] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[jwsc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[jwsc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

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