illegal reflective access operation in EndpointReferenceUtils
@@ -547,7 +547,7 @@ public final class EndpointReferenceUtils {
}
- private static synchronized Schema createSchema(ServiceInfo serviceInfo, Bus b) {
+ private static Schema createSchema(ServiceInfo serviceInfo, Bus b) {
if (b == null) {
b = BusFactory.getThreadDefaultBus(false);
}
@@ -561,7 +561,6 @@ public final class EndpointReferenceUtils {
try {
for (SchemaInfo si : serviceInfo.getSchemas()) {
Element el = si.getElement();
- unsetReadonly(el);
String baseURI = null;
try {
baseURI = el.getBaseURI();
@@ -625,12 +624,6 @@ public final class EndpointReferenceUtils {
LOG.log(Level.INFO, "Schema for: " + schemaInfo.getNamespaceURI() + "\n" + s);
}
} finally {
- for (Source src : schemaSourcesMap2.values()) {
- if (src instanceof DOMSource) {
- Node nd = ((DOMSource)src).getNode();
- unsetReadonly(nd);
- }
- }
StaxUtils.close(writer);
}
serviceInfo.setProperty(Schema.class.getName(), schema);
@@ -638,16 +631,6 @@ public final class EndpointReferenceUtils {
return schema;
}
- private static void unsetReadonly(Node nd) {
- try {
- //work around a bug in the version of Xerces that is in the JDK
- //that only allows the Element to be used to create a schema once.
- nd.getClass().getMethod("setReadOnly", Boolean.TYPE, Boolean.TYPE).invoke(nd, false, true);
- } catch (Throwable ex) {
- //ignore
- }
- }
-
public static Schema getSchema(ServiceInfo serviceInfo) {
return getSchema(serviceInfo, null);
}
