-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
9
-
generic
-
windows
The javax\xml\ws\8046817\GenerateEnumSchema.java fails on latest JDK9 builds. Most probably the failure is related to the changes introduced by JDK-8060056 , JDK-8059977.
It looks like that schemagen (com.sun.tools.internal.jxc.SchemaGenerator) tool source code needs to be examined and modified to address these changes.
Failure log:
STDOUT:
Call to schemagen: C:\jprt\T\P1\204922.aefimov\testproduct\windows_i586_6.1-product\bin\schemagen.exe TestClassType.java
Jan 29, 2015 1:21:23 PM com.sun.tools.internal.jxc.SchemaGenerator run
SEVERE: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.tools.internal.jxc.SchemaGenerator.run(SchemaGenerator.java:152)
at com.sun.tools.internal.jxc.SchemaGenerator.run(SchemaGenerator.java:77)
at com.sun.tools.internal.jxc.SchemaGenerator.main(SchemaGenerator.java:68)
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/jprt/T/P1/204922.aefimov/testproduct/windows_i586_6.1-product/lib/modules/appmodules.jimage
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:169)
at com.sun.tools.javac.file.Locations.access$300(Locations.java:87)
at com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:238)
at com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:244)
at com.sun.tools.javac.file.Locations$SimpleLocationHandler.handleOption(Locations.java:448)
at com.sun.tools.javac.file.Locations.handleOption(Locations.java:743)
at com.sun.tools.javac.util.BaseFileManager.handleOption(BaseFileManager.java:210)
at com.sun.tools.javac.util.BaseFileManager$1.handleFileManagerOption(BaseFileManager.java:168)
at com.sun.tools.javac.main.Option.process(Option.java:672)
at com.sun.tools.javac.main.Option$6.process(Option.java:157)
at com.sun.tools.javac.util.BaseFileManager.handleOption(BaseFileManager.java:176)
at com.sun.tools.javac.main.Arguments.processArgs(Arguments.java:297)
at com.sun.tools.javac.main.Arguments.init(Arguments.java:229)
at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:166)
at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:108)
at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:64)
at com.sun.tools.internal.jxc.SchemaGenerator$Runner.compile(SchemaGenerator.java:231)
... 7 more
STDERR:
java.lang.RuntimeException: schemagen failed
at GenerateEnumSchema.runSchemaGen(GenerateEnumSchema.java:126)
at GenerateEnumSchema.main(GenerateEnumSchema.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:745)
It looks like that schemagen (com.sun.tools.internal.jxc.SchemaGenerator) tool source code needs to be examined and modified to address these changes.
Failure log:
STDOUT:
Call to schemagen: C:\jprt\T\P1\204922.aefimov\testproduct\windows_i586_6.1-product\bin\schemagen.exe TestClassType.java
Jan 29, 2015 1:21:23 PM com.sun.tools.internal.jxc.SchemaGenerator run
SEVERE: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.tools.internal.jxc.SchemaGenerator.run(SchemaGenerator.java:152)
at com.sun.tools.internal.jxc.SchemaGenerator.run(SchemaGenerator.java:77)
at com.sun.tools.internal.jxc.SchemaGenerator.main(SchemaGenerator.java:68)
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/jprt/T/P1/204922.aefimov/testproduct/windows_i586_6.1-product/lib/modules/appmodules.jimage
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:169)
at com.sun.tools.javac.file.Locations.access$300(Locations.java:87)
at com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:238)
at com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:244)
at com.sun.tools.javac.file.Locations$SimpleLocationHandler.handleOption(Locations.java:448)
at com.sun.tools.javac.file.Locations.handleOption(Locations.java:743)
at com.sun.tools.javac.util.BaseFileManager.handleOption(BaseFileManager.java:210)
at com.sun.tools.javac.util.BaseFileManager$1.handleFileManagerOption(BaseFileManager.java:168)
at com.sun.tools.javac.main.Option.process(Option.java:672)
at com.sun.tools.javac.main.Option$6.process(Option.java:157)
at com.sun.tools.javac.util.BaseFileManager.handleOption(BaseFileManager.java:176)
at com.sun.tools.javac.main.Arguments.processArgs(Arguments.java:297)
at com.sun.tools.javac.main.Arguments.init(Arguments.java:229)
at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:166)
at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:108)
at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:64)
at com.sun.tools.internal.jxc.SchemaGenerator$Runner.compile(SchemaGenerator.java:231)
... 7 more
STDERR:
java.lang.RuntimeException: schemagen failed
at GenerateEnumSchema.runSchemaGen(GenerateEnumSchema.java:126)
at GenerateEnumSchema.main(GenerateEnumSchema.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:745)
- duplicates
-
JDK-8071968 javax/xml/ws/8046817/GenerateEnumSchema.java failed on Windows platform
- Closed
-
JDK-8076549 Update JAX-WS RI integration to latest version (2.2.11-b150402.1412)
- Resolved