[jira] [Updated] (RAMPART-448) NullPointerException in RampartUtil.setKeyIdentifierType() when signing response
[
https://issues.apache.org/jira/browse/RAMPART-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maksim Gazimzyanov updated RAMPART-448:
---
Component/s: (was: rampart-core)
rampart-integration
> NullPointerException in RampartUtil.setKeyIdentifierType() when signing
> response
>
>
> Key: RAMPART-448
> URL: https://issues.apache.org/jira/browse/RAMPART-448
> Project: Rampart
> Issue Type: Bug
> Components: rampart-integration
>Affects Versions: 1.7.1
>Reporter: Maksim Gazimzyanov
>Priority: Critical
> Attachments: axis2-client.log, axis2-server.log, policy.xml,
> services.xml
>
>
> There's a NullPointerException happens when using Rampart for signing +
> encrypting SOAP messages. Causing "Axis2 Internal Error" being thrown to the
> client as HTML response (that actually causes
> "javax.xml.stream.XMLStreamException: DOCTYPE is not allowed" being thrown on
> client side when parsing response from server). Here're the stacktraces of
> Error happening on server side
> {noformat}
> 2020-10-31 13:29:47,752 [https-jsse-nio-8443-exec-8] ERROR
> org.apache.axis2.transport.http.AxisServlet -
> java.lang.NullPointerException
> at
> org.apache.rampart.util.RampartUtil.setKeyIdentifierType(RampartUtil.java:1389)
> at
> org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:531)
> at
> org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:88)
> at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
> at
> org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:335)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:415)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:106)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:169)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:178)
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:164)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
> at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
> at
> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
> at
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
> at
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1747)
> at
> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:748)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3
[jira] [Commented] (RAMPART-448) NullPointerException in RampartUtil.setKeyIdentifierType() when signing response
[
https://issues.apache.org/jira/browse/RAMPART-448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225412#comment-17225412
]
Maksim Gazimzyanov commented on RAMPART-448:
Okay, the issue seems to be resolved by adding
for as well. But I'm not 100% sure whether that's a correct
approach...
The clarification why there's a NullPointerException thrown in case when
sp:RequireThumbprintReference is not presented inside sp:InitiatorToken is
really appreciated! :)
Thanks in advance!
> NullPointerException in RampartUtil.setKeyIdentifierType() when signing
> response
>
>
> Key: RAMPART-448
> URL: https://issues.apache.org/jira/browse/RAMPART-448
> Project: Rampart
> Issue Type: Bug
> Components: rampart-integration
>Affects Versions: 1.7.1
>Reporter: Maksim Gazimzyanov
>Priority: Critical
> Attachments: axis2-client.log, axis2-server.log, policy.xml,
> services.xml
>
>
> There's a NullPointerException happens when using Rampart for signing +
> encrypting SOAP messages. Causing "Axis2 Internal Error" being thrown to the
> client as HTML response (that actually causes
> "javax.xml.stream.XMLStreamException: DOCTYPE is not allowed" being thrown on
> client side when parsing response from server). Here're the stacktraces of
> Error happening on server side
> {noformat}
> 2020-10-31 13:29:47,752 [https-jsse-nio-8443-exec-8] ERROR
> org.apache.axis2.transport.http.AxisServlet -
> java.lang.NullPointerException
> at
> org.apache.rampart.util.RampartUtil.setKeyIdentifierType(RampartUtil.java:1389)
> at
> org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:531)
> at
> org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:88)
> at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
> at
> org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:335)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:415)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:106)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:169)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:178)
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:164)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
> at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
> at
> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
> at
> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
> at
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:836)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1747)
> at
> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>
[jira] [Created] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
Alexander Davis created AXIS2-5987: -- Summary: Cannot compile proxy classes built by wsdl2java Key: AXIS2-5987 URL: https://issues.apache.org/jira/browse/AXIS2-5987 Project: Axis2 Issue Type: Bug Components: wsdl Affects Versions: 1.7.9, 1.7.8 Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK 11.0.8.10 Reporter: Alexander Davis I am following the instructions at [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] to build proxy classes from a WSDL file. When I run wsdl2java, I get this error: _WARNING: An illegal reflective access operation has occurred_ _WARNING: Illegal reflective access by org.apache.ws.commons.schema.utils.DOMUtil ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) to method com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ _WARNING: Please consider reporting this to the maintainers of org.apache.ws.commons.schema.utils.DOMUtil_ _WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations_ _WARNING: All illegal access operations will be denied in a future release_ But the proxy classes get generated nonetheless. I add all JARs from the axis2-1.7.8/lib folder under the project's classpath, but I still get tons of errors from the proxy classes, such as: __service cannot be resolved to a variable (in the generated stub.java file)_ __serviceClient cannot be resolved to a variable (in the generated stub.java file)_ _org.apache.axiom.soap.SOAP12Constants cannot be resolved to a variable (in the generated stub.java file)_ _org.apache.xmlbeans.impl.values.XmlObjectBase cannot be resolved to a variable AddDocumentImpl.java (in the generated *Impl.java files)_ I must use Axis2 1.7.8 (for compatibility with a third-party app), but I tried 1.7.9 just in case and got the same problem. Is there something I'm missing? -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
[jira] [Commented] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225742#comment-17225742 ] Robert Lazarski commented on AXIS2-5987: My guess is that there is a classpath problem, somehow. Can you try JDK 8? JDK 11 support is the main goal for the next release. I know you mentioned you are using 1.7.8, however you could speed up the debugging by building the latest axis2 code from source and testing that. git clone [https://github.com/apache/axis-axis2-java-core.git] To build, don't run the unit tests as there is a difficult to debug OSGI test failing. mvn -Dmaven.javadoc.skip=true -Dmaven.test.skip.exec clean install > Cannot compile proxy classes built by wsdl2java > --- > > Key: AXIS2-5987 > URL: https://issues.apache.org/jira/browse/AXIS2-5987 > Project: Axis2 > Issue Type: Bug > Components: wsdl >Affects Versions: 1.7.8, 1.7.9 > Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK > 11.0.8.10 >Reporter: Alexander Davis >Priority: Major > > I am following the instructions at > [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] > to build proxy classes from a WSDL file. When I run wsdl2java, I get this > error: > _WARNING: An illegal reflective access operation has occurred_ > _WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ > _WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil_ > _WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations_ > _WARNING: All illegal access operations will be denied in a future release_ > But the proxy classes get generated nonetheless. I add all JARs from the > axis2-1.7.8/lib folder under the project's classpath, but I still get tons of > errors from the proxy classes, such as: > __service cannot be resolved to a variable (in the generated stub.java file)_ > __serviceClient cannot be resolved to a variable (in the generated stub.java > file)_ > _org.apache.axiom.soap.SOAP12Constants cannot be resolved to a variable (in > the generated stub.java file)_ > _org.apache.xmlbeans.impl.values.XmlObjectBase cannot be resolved to a > variable AddDocumentImpl.java (in the generated *Impl.java files)_ > I must use Axis2 1.7.8 (for compatibility with a third-party app), but I > tried 1.7.9 just in case and got the same problem. > Is there something I'm missing? > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
[jira] [Updated] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Davis updated AXIS2-5987: --- Description: I am following the instructions at [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] to build proxy classes from a WSDL file. When I run wsdl2java, I get this error: _WARNING: An illegal reflective access operation has occurred_ _WARNING: Illegal reflective access by org.apache.ws.commons.schema.utils.DOMUtil ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) to method com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ _WARNING: Please consider reporting this to the maintainers of org.apache.ws.commons.schema.utils.DOMUtil_ _WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations_ _WARNING: All illegal access operations will be denied in a future release_ But the proxy classes get generated nonetheless. I add all JARs from the axis2-1.7.8/lib folder under the project's module path, tried to build and got tons of errors from the proxy classes, such as: __service cannot be resolved to a variable (in the generated stub.java file)_ __serviceClient cannot be resolved to a variable (in the generated stub.java file)_ _org.apache.axiom.soap.SOAP12Constants cannot be resolved to a variable (in the generated stub.java file)_ _org.apache.xmlbeans.impl.values.XmlObjectBase cannot be resolved to a variable AddDocumentImpl.java (in the generated *Impl.java files)_ I must use Axis2 1.7.8 (for compatibility with a third-party app), but I tried 1.7.9 just in case and got the same problem. Is there something I'm missing? was: I am following the instructions at [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] to build proxy classes from a WSDL file. When I run wsdl2java, I get this error: _WARNING: An illegal reflective access operation has occurred_ _WARNING: Illegal reflective access by org.apache.ws.commons.schema.utils.DOMUtil ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) to method com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ _WARNING: Please consider reporting this to the maintainers of org.apache.ws.commons.schema.utils.DOMUtil_ _WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations_ _WARNING: All illegal access operations will be denied in a future release_ But the proxy classes get generated nonetheless. I add all JARs from the axis2-1.7.8/lib folder under the project's classpath, but I still get tons of errors from the proxy classes, such as: __service cannot be resolved to a variable (in the generated stub.java file)_ __serviceClient cannot be resolved to a variable (in the generated stub.java file)_ _org.apache.axiom.soap.SOAP12Constants cannot be resolved to a variable (in the generated stub.java file)_ _org.apache.xmlbeans.impl.values.XmlObjectBase cannot be resolved to a variable AddDocumentImpl.java (in the generated *Impl.java files)_ I must use Axis2 1.7.8 (for compatibility with a third-party app), but I tried 1.7.9 just in case and got the same problem. Is there something I'm missing? > Cannot compile proxy classes built by wsdl2java > --- > > Key: AXIS2-5987 > URL: https://issues.apache.org/jira/browse/AXIS2-5987 > Project: Axis2 > Issue Type: Bug > Components: wsdl >Affects Versions: 1.7.8, 1.7.9 > Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK > 11.0.8.10 >Reporter: Alexander Davis >Priority: Major > > I am following the instructions at > [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] > to build proxy classes from a WSDL file. When I run wsdl2java, I get this > error: > _WARNING: An illegal reflective access operation has occurred_ > _WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ > _WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil_ > _WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations_ > _WARNING: All illegal access operations will be denied in a future release_ > But the proxy classes get generated nonetheless. I add all JARs from the > axis2-1.7.8/lib folder under the project's module path, tried to build
[jira] [Updated] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Davis updated AXIS2-5987: --- Description: I am following the instructions at [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] to build proxy classes from a WSDL file. When I run wsdl2java, I get this error: _WARNING: An illegal reflective access operation has occurred_ _WARNING: Illegal reflective access by org.apache.ws.commons.schema.utils.DOMUtil ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) to method com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ _WARNING: Please consider reporting this to the maintainers of org.apache.ws.commons.schema.utils.DOMUtil_ _WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations_ _WARNING: All illegal access operations will be denied in a future release_ But the proxy classes get generated nonetheless. I add all JARs from the axis2-1.7.8/lib folder under the project's module path, tried to build and got tons of errors from the proxy classes, such as: _The method parse(String) in the type AddDocument.Factory is not applicable for the arguments (XMLStreamReader) The method parse(String) in the type AddResponseDocument.Factory is not applicable for the arguments (XMLStreamReader)_ Tons of similar errors in every _parse_ call in the generated stub class. Also tons of errors like this one: _The package javax.xml.stream is accessible from more than one module: geronimo.stax.api.1.0.spec, java.xml _ I must use Axis2 1.7.8 (for compatibility with a third-party app), but I tried 1.7.9 just in case and got the same problem. Is there something I'm missing? was: I am following the instructions at [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] to build proxy classes from a WSDL file. When I run wsdl2java, I get this error: _WARNING: An illegal reflective access operation has occurred_ _WARNING: Illegal reflective access by org.apache.ws.commons.schema.utils.DOMUtil ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) to method com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ _WARNING: Please consider reporting this to the maintainers of org.apache.ws.commons.schema.utils.DOMUtil_ _WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations_ _WARNING: All illegal access operations will be denied in a future release_ But the proxy classes get generated nonetheless. I add all JARs from the axis2-1.7.8/lib folder under the project's module path, tried to build and got tons of errors from the proxy classes, such as: __service cannot be resolved to a variable (in the generated stub.java file)_ __serviceClient cannot be resolved to a variable (in the generated stub.java file)_ _org.apache.axiom.soap.SOAP12Constants cannot be resolved to a variable (in the generated stub.java file)_ _org.apache.xmlbeans.impl.values.XmlObjectBase cannot be resolved to a variable AddDocumentImpl.java (in the generated *Impl.java files)_ I must use Axis2 1.7.8 (for compatibility with a third-party app), but I tried 1.7.9 just in case and got the same problem. Is there something I'm missing? > Cannot compile proxy classes built by wsdl2java > --- > > Key: AXIS2-5987 > URL: https://issues.apache.org/jira/browse/AXIS2-5987 > Project: Axis2 > Issue Type: Bug > Components: wsdl >Affects Versions: 1.7.8, 1.7.9 > Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK > 11.0.8.10 >Reporter: Alexander Davis >Priority: Major > > I am following the instructions at > [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] > to build proxy classes from a WSDL file. When I run wsdl2java, I get this > error: > _WARNING: An illegal reflective access operation has occurred_ > _WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ > _WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil_ > _WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations_ > _WARNING: All illegal access operations will be denied in a future release_ > But the proxy classes get generated nonetheless. I add all JARs from the > axis2-1.7.8/lib fol
[jira] [Updated] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Davis updated AXIS2-5987: --- Description: I am following the instructions at [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] to build proxy classes from a WSDL file. When I run wsdl2java, I get this error: _WARNING: An illegal reflective access operation has occurred_ _WARNING: Illegal reflective access by org.apache.ws.commons.schema.utils.DOMUtil ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) to method com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ _WARNING: Please consider reporting this to the maintainers of org.apache.ws.commons.schema.utils.DOMUtil_ _WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations_ _WARNING: All illegal access operations will be denied in a future release_ But the proxy classes get generated nonetheless. I add all JARs from the axis2-1.7.8/lib folder under the project's module path, tried to build and got tons of errors from the proxy classes, such as: _The method parse(String) in the type AddDocument.Factory is not applicable for the arguments (XMLStreamReader)_ _The method parse(String) in the type AddResponseDocument.Factory is not applicable for the arguments (XMLStreamReader)_ Tons of similar errors in every _parse_ call in the generated stub class. Also tons of errors like this one: _The package javax.xml.stream is accessible from more than one module: geronimo.stax.api.1.0.spec, java.xml_ I must use Axis2 1.7.8 (for compatibility with a third-party app), but I tried 1.7.9 just in case and got the same problem. Is there something I'm missing? was: I am following the instructions at [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] to build proxy classes from a WSDL file. When I run wsdl2java, I get this error: _WARNING: An illegal reflective access operation has occurred_ _WARNING: Illegal reflective access by org.apache.ws.commons.schema.utils.DOMUtil ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) to method com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ _WARNING: Please consider reporting this to the maintainers of org.apache.ws.commons.schema.utils.DOMUtil_ _WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations_ _WARNING: All illegal access operations will be denied in a future release_ But the proxy classes get generated nonetheless. I add all JARs from the axis2-1.7.8/lib folder under the project's module path, tried to build and got tons of errors from the proxy classes, such as: _The method parse(String) in the type AddDocument.Factory is not applicable for the arguments (XMLStreamReader) The method parse(String) in the type AddResponseDocument.Factory is not applicable for the arguments (XMLStreamReader)_ Tons of similar errors in every _parse_ call in the generated stub class. Also tons of errors like this one: _The package javax.xml.stream is accessible from more than one module: geronimo.stax.api.1.0.spec, java.xml _ I must use Axis2 1.7.8 (for compatibility with a third-party app), but I tried 1.7.9 just in case and got the same problem. Is there something I'm missing? > Cannot compile proxy classes built by wsdl2java > --- > > Key: AXIS2-5987 > URL: https://issues.apache.org/jira/browse/AXIS2-5987 > Project: Axis2 > Issue Type: Bug > Components: wsdl >Affects Versions: 1.7.8, 1.7.9 > Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK > 11.0.8.10 >Reporter: Alexander Davis >Priority: Major > > I am following the instructions at > [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] > to build proxy classes from a WSDL file. When I run wsdl2java, I get this > error: > _WARNING: An illegal reflective access operation has occurred_ > _WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ > _WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil_ > _WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations_ > _WARNING: All illegal access operations will be denied in a future release_ > But the proxy classes get generated nonetheless.
[jira] [Commented] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225763#comment-17225763 ] Alexander Davis commented on AXIS2-5987: Okay, I think I fixed it by removing the following JARs from the class/module paths: * geronimo-stax-api_1.0_spec-1.0.1.jar * jaxen-1.1.6.jar At least I am not getting build errors. Not sure if they are needed for runtime, though (since the tutorial says to include all Axis2 JARs). > Cannot compile proxy classes built by wsdl2java > --- > > Key: AXIS2-5987 > URL: https://issues.apache.org/jira/browse/AXIS2-5987 > Project: Axis2 > Issue Type: Bug > Components: wsdl >Affects Versions: 1.7.8, 1.7.9 > Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK > 11.0.8.10 >Reporter: Alexander Davis >Priority: Major > > I am following the instructions at > [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] > to build proxy classes from a WSDL file. When I run wsdl2java, I get this > error: > _WARNING: An illegal reflective access operation has occurred_ > _WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ > _WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil_ > _WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations_ > _WARNING: All illegal access operations will be denied in a future release_ > But the proxy classes get generated nonetheless. I add all JARs from the > axis2-1.7.8/lib folder under the project's module path, tried to build and > got tons of errors from the proxy classes, such as: > _The method parse(String) in the type AddDocument.Factory is not applicable > for the arguments (XMLStreamReader)_ > _The method parse(String) in the type AddResponseDocument.Factory is not > applicable for the arguments (XMLStreamReader)_ > Tons of similar errors in every _parse_ call in the generated stub class. > Also tons of errors like this one: > _The package javax.xml.stream is accessible from more than one module: > geronimo.stax.api.1.0.spec, java.xml_ > I must use Axis2 1.7.8 (for compatibility with a third-party app), but I > tried 1.7.9 just in case and got the same problem. > Is there something I'm missing? > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
[jira] [Commented] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225774#comment-17225774 ] Alexander Davis commented on AXIS2-5987: Well, it did not work. Tried to run and got boot errors due to the missing JARs (the two I excluded). So I started removing JARs one by one which seemed like it would take forever. So I removed them all and started adding them one by one until I got no build errors. Ended up with: _C:\Tools\axis2-1.7.8\lib\axis2-metadata-1.7.8.jar_ _C:\Tools\axis2-1.7.8\lib\xml-resolver-1.2.jar_ _C:\Tools\axis2-1.7.8\lib\axis2-jaxws-1.7.8.jar_ _C:\Tools\axis2-1.7.8\lib\axis2-kernel-1.7.8.jar_ _C:\Tools\axis2-1.7.8\lib\xmlbeans-2.6.0.jar_ _C:\Tools\axis2-1.7.8\lib\axiom-api-1.2.20.jar_ _C:\Tools\axis2-1.7.8\lib\axis2-xmlbeans-1.7.8.jar_ Now, when I run it, I get this error: _Error occurred during initialization of boot layer_ _java.lang.module.ResolutionException: Module axis2.jaxws contains package org.apache.axis2.jaxws, module axis2.metadata exports package org.apache.axis2.jaxws to axis2.jaxws_ No idea what is missing. At this point, I am just wondering if the Axis2 is just not compatible with JDK 11, in which case, I'd rather spend time looking for alternatives. [~robertlazarski], any ideas? > Cannot compile proxy classes built by wsdl2java > --- > > Key: AXIS2-5987 > URL: https://issues.apache.org/jira/browse/AXIS2-5987 > Project: Axis2 > Issue Type: Bug > Components: wsdl >Affects Versions: 1.7.8, 1.7.9 > Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK > 11.0.8.10 >Reporter: Alexander Davis >Priority: Major > > I am following the instructions at > [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] > to build proxy classes from a WSDL file. When I run wsdl2java, I get this > error: > _WARNING: An illegal reflective access operation has occurred_ > _WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ > _WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil_ > _WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations_ > _WARNING: All illegal access operations will be denied in a future release_ > But the proxy classes get generated nonetheless. I add all JARs from the > axis2-1.7.8/lib folder under the project's module path, tried to build and > got tons of errors from the proxy classes, such as: > _The method parse(String) in the type AddDocument.Factory is not applicable > for the arguments (XMLStreamReader)_ > _The method parse(String) in the type AddResponseDocument.Factory is not > applicable for the arguments (XMLStreamReader)_ > Tons of similar errors in every _parse_ call in the generated stub class. > Also tons of errors like this one: > _The package javax.xml.stream is accessible from more than one module: > geronimo.stax.api.1.0.spec, java.xml_ > I must use Axis2 1.7.8 (for compatibility with a third-party app), but I > tried 1.7.9 just in case and got the same problem. > Is there something I'm missing? > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
[jira] [Commented] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225784#comment-17225784 ] Robert Lazarski commented on AXIS2-5987: Can you please post the entire stacktrace?Also, did you try JDK 8? > Cannot compile proxy classes built by wsdl2java > --- > > Key: AXIS2-5987 > URL: https://issues.apache.org/jira/browse/AXIS2-5987 > Project: Axis2 > Issue Type: Bug > Components: wsdl >Affects Versions: 1.7.8, 1.7.9 > Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK > 11.0.8.10 >Reporter: Alexander Davis >Priority: Major > > I am following the instructions at > [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] > to build proxy classes from a WSDL file. When I run wsdl2java, I get this > error: > _WARNING: An illegal reflective access operation has occurred_ > _WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ > _WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil_ > _WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations_ > _WARNING: All illegal access operations will be denied in a future release_ > But the proxy classes get generated nonetheless. I add all JARs from the > axis2-1.7.8/lib folder under the project's module path, tried to build and > got tons of errors from the proxy classes, such as: > _The method parse(String) in the type AddDocument.Factory is not applicable > for the arguments (XMLStreamReader)_ > _The method parse(String) in the type AddResponseDocument.Factory is not > applicable for the arguments (XMLStreamReader)_ > Tons of similar errors in every _parse_ call in the generated stub class. > Also tons of errors like this one: > _The package javax.xml.stream is accessible from more than one module: > geronimo.stax.api.1.0.spec, java.xml_ > I must use Axis2 1.7.8 (for compatibility with a third-party app), but I > tried 1.7.9 just in case and got the same problem. > Is there something I'm missing? > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
[jira] [Commented] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225796#comment-17225796 ] Alexander Davis commented on AXIS2-5987: I did not try JDK 8 because the whole point of this exercise it to upgrade from JDK 8 to JDK 11 (we have a working solution for JDK 8, but it's based on JAX-WS libraries). I'm not sure how to get stack trace because the error seems to come during Java boot phase before my code is even loaded. The error message I posted is the only thing I see in the console windows of Eclipse when I try to run it. > Cannot compile proxy classes built by wsdl2java > --- > > Key: AXIS2-5987 > URL: https://issues.apache.org/jira/browse/AXIS2-5987 > Project: Axis2 > Issue Type: Bug > Components: wsdl >Affects Versions: 1.7.8, 1.7.9 > Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK > 11.0.8.10 >Reporter: Alexander Davis >Priority: Major > > I am following the instructions at > [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] > to build proxy classes from a WSDL file. When I run wsdl2java, I get this > error: > _WARNING: An illegal reflective access operation has occurred_ > _WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ > _WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil_ > _WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations_ > _WARNING: All illegal access operations will be denied in a future release_ > But the proxy classes get generated nonetheless. I add all JARs from the > axis2-1.7.8/lib folder under the project's module path, tried to build and > got tons of errors from the proxy classes, such as: > _The method parse(String) in the type AddDocument.Factory is not applicable > for the arguments (XMLStreamReader)_ > _The method parse(String) in the type AddResponseDocument.Factory is not > applicable for the arguments (XMLStreamReader)_ > Tons of similar errors in every _parse_ call in the generated stub class. > Also tons of errors like this one: > _The package javax.xml.stream is accessible from more than one module: > geronimo.stax.api.1.0.spec, java.xml_ > I must use Axis2 1.7.8 (for compatibility with a third-party app), but I > tried 1.7.9 just in case and got the same problem. > Is there something I'm missing? > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
[jira] [Comment Edited] (AXIS2-5987) Cannot compile proxy classes built by wsdl2java
[ https://issues.apache.org/jira/browse/AXIS2-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225796#comment-17225796 ] Alexander Davis edited comment on AXIS2-5987 at 11/4/20, 7:20 AM: -- I did not try JDK 8 because the whole point of this exercise is to upgrade from JDK 8 to JDK 11 (we have a working solution for JDK 8, but it's based on JAX-WS libraries). I'm not sure how to get stack trace because the error seems to come during Java boot phase before my code is even loaded. The error message I posted is the only thing I see in the console windows of Eclipse when I try to run it. was (Author: alekdavis): I did not try JDK 8 because the whole point of this exercise it to upgrade from JDK 8 to JDK 11 (we have a working solution for JDK 8, but it's based on JAX-WS libraries). I'm not sure how to get stack trace because the error seems to come during Java boot phase before my code is even loaded. The error message I posted is the only thing I see in the console windows of Eclipse when I try to run it. > Cannot compile proxy classes built by wsdl2java > --- > > Key: AXIS2-5987 > URL: https://issues.apache.org/jira/browse/AXIS2-5987 > Project: Axis2 > Issue Type: Bug > Components: wsdl >Affects Versions: 1.7.8, 1.7.9 > Environment: Windows 10, Eclipse 2020-09 (4.17.0), Adopt OpenJDK > 11.0.8.10 >Reporter: Alexander Davis >Priority: Major > > I am following the instructions at > [https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html] > to build proxy classes from a WSDL file. When I run wsdl2java, I get this > error: > _WARNING: An illegal reflective access operation has occurred_ > _WARNING: Illegal reflective access by > org.apache.ws.commons.schema.utils.DOMUtil > ([file:/C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar|file:///C:/Tools/axis2-1.7.8/lib/xmlschema-core-2.2.1.jar]) > to method > com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.getXmlEncoding()_ > _WARNING: Please consider reporting this to the maintainers of > org.apache.ws.commons.schema.utils.DOMUtil_ > _WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations_ > _WARNING: All illegal access operations will be denied in a future release_ > But the proxy classes get generated nonetheless. I add all JARs from the > axis2-1.7.8/lib folder under the project's module path, tried to build and > got tons of errors from the proxy classes, such as: > _The method parse(String) in the type AddDocument.Factory is not applicable > for the arguments (XMLStreamReader)_ > _The method parse(String) in the type AddResponseDocument.Factory is not > applicable for the arguments (XMLStreamReader)_ > Tons of similar errors in every _parse_ call in the generated stub class. > Also tons of errors like this one: > _The package javax.xml.stream is accessible from more than one module: > geronimo.stax.api.1.0.spec, java.xml_ > I must use Axis2 1.7.8 (for compatibility with a third-party app), but I > tried 1.7.9 just in case and got the same problem. > Is there something I'm missing? > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
