[JBoss JIRA] (JBWS-4112) 9 failures in the testsuite runs with security manager enabled on wfly-13
by R Searls (JIRA)
[ https://issues.jboss.org/browse/JBWS-4112?page=com.atlassian.jira.plugin.... ]
R Searls commented on JBWS-4112:
--------------------------------
I have traced the root cause into jdk-9's failure to successfully return a Proxy object
for an EscapeHandlerInvocationHandler. The handler class is created with the
com.sun.xml.bind.marshaller.CharacterEscapeHandler interface.
JDK-9's ProxyGenerator successfully creates the proxy class.
It returns bytes that represent a class with 4 methods and …
[View More]a no-args constructor
{code:java}
public native int java.lang.Object.hashCode()
public boolean java.lang.Object.equals(java.lang.Object)
public java.lang.String java.lang.Object.toString()
public abstract void com.sun.xml.bind.marshaller.CharacterEscapeHandler.escape(char[],int,int,boolean,java.io.Writer) throws java.io.IOException
{code}
The JDK then proceeds to further process the proxy class in ReflectAccess.copyMethod
This in turn calls Class.getMethod. When the call to Class.getMethod reaches the proxy's
toString method the exception is thrown.
{code:java}
Method threw "java.lang.NullPointerException" exception. Cannot evaluate
com.sun.proxy.$Proxy35.toString()
{code}
A null value is returned to the apache code and a failure in apache is flagged
later in the processing when no EscapeHandler is available.
All of the classes used in the generation of the proxy come from package com.sun.xml.*.
The classloader is jboss-modules and I can confirm all classes are retrieved from there.
I have tested this with jdk-8_72, jdk-9.0.4, jdk-10. The code fails in the same way
for all three and curiously are there src code differences between jdk-8 and jd9.
I don't know what to do to pursue this further and resolve the failure.
Suggestions would be appreciated.
> 9 failures in the testsuite runs with security manager enabled on wfly-13
> -------------------------------------------------------------------------
>
> Key: JBWS-4112
> URL: https://issues.jboss.org/browse/JBWS-4112
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-5.2.1.Final
> Reporter: R Searls
> Assignee: R Searls
>
> https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...
> tests:
> org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithThreadBusStrategy org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithNewBusStrategy org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithTCCLBusStrategy org.jboss.test.ws.jaxws.samples.wsse.policy.jaspi.JaspiAuthenticationTestCase.testInContainerClientAuthModule org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModulesWithJBossWSClientAggregationModule
> org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModules
> org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefTestCase.testApplicationClient
> org.jboss.test.ws.jaxws.samples.webserviceref.WebServiceRefTestCase.testApplicationClient
> org.jboss.test.ws.publish.EndpointPublishTestCase.testEndpointPublish
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
[View Less]
6 years, 11 months
[JBoss JIRA] (JBWS-4112) 9 failures in the testsuite runs with security manager enabled on wfly-13
by R Searls (JIRA)
[ https://issues.jboss.org/browse/JBWS-4112?page=com.atlassian.jira.plugin.... ]
R Searls commented on JBWS-4112:
--------------------------------
The following 2 tests are continuing to fail with a java.lang.NullPointerException
org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefTestCase.testApplicationClient
org.jboss.test.ws.jaxws.samples.webserviceref.WebServiceRefTestCase.testApplicationClient
StrackTrace
{code:java}
17:18:29,046 ERROR [org.jboss.as.appclient] (Thread-42) …
[View More]WFLYAC0002: InvocationTargetException running app client main: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.jboss.as.appclient//org.jboss.as.appclient.service.ApplicationClientStartService$1.run(ApplicationClientStartService.java:99)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set
at org.apache.cxf.impl//org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:161)
at com.sun.proxy.$Proxy36.echo(Unknown Source)
at deployment.jaxws-samples-serviceref-appclient.ear.jaxws-samples-serviceref-appclient.jar//org.jboss.test.ws.jaxws.samples.serviceref.ApplicationClient.main(ApplicationClient.java:65)
... 6 more
Caused by: java.lang.NullPointerException
at com.sun.xml.bind//com.sun.xml.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:518)
at org.apache.cxf//org.apache.cxf.common.jaxb.JAXBUtils.setEscapeHandler(JAXBUtils.java:1567)
at org.apache.cxf.impl//org.apache.cxf.jaxb.io.DataWriterImpl.lambda$createMarshaller$0(DataWriterImpl.java:138)
at org.apache.cxf.impl//org.apache.cxf.jaxb.JAXBDataBinding.applyEscapeHandler(JAXBDataBinding.java:270)
at org.apache.cxf.impl//org.apache.cxf.jaxb.io.DataWriterImpl.createMarshaller(DataWriterImpl.java:138)
at org.apache.cxf.impl//org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:239)
at org.apache.cxf//org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:118)
at org.apache.cxf.impl//org.apache.cxf.binding.soap.interceptor.RPCOutInterceptor.handleMessage(RPCOutInterceptor.java:111)
at org.apache.cxf//org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf//org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533)
at org.apache.cxf//org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:442)
at org.apache.cxf//org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:343)
at org.apache.cxf//org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
at org.apache.cxf.impl//org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.impl//org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)
... 8 more
{code}
> 9 failures in the testsuite runs with security manager enabled on wfly-13
> -------------------------------------------------------------------------
>
> Key: JBWS-4112
> URL: https://issues.jboss.org/browse/JBWS-4112
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-5.2.1.Final
> Reporter: R Searls
> Assignee: R Searls
>
> https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...
> tests:
> org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithThreadBusStrategy org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithNewBusStrategy org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithTCCLBusStrategy org.jboss.test.ws.jaxws.samples.wsse.policy.jaspi.JaspiAuthenticationTestCase.testInContainerClientAuthModule org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModulesWithJBossWSClientAggregationModule
> org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModules
> org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefTestCase.testApplicationClient
> org.jboss.test.ws.jaxws.samples.webserviceref.WebServiceRefTestCase.testApplicationClient
> org.jboss.test.ws.publish.EndpointPublishTestCase.testEndpointPublish
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
[View Less]
6 years, 11 months
[JBoss JIRA] (JBWS-4112) 9 failures in the testsuite runs with security manager enabled on wfly-13
by R Searls (JIRA)
[ https://issues.jboss.org/browse/JBWS-4112?page=com.atlassian.jira.plugin.... ]
R Searls commented on JBWS-4112:
--------------------------------
The following 7 tests are fixed by a combination of the script change in WFLY-10209 and the addition of permissions.xml files, which have not yet been checked in.
org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithThreadBusStrategy
org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.…
[View More]testClientWithNewBusStrategy
org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithTCCLBusStrategy
org.jboss.test.ws.jaxws.samples.wsse.policy.jaspi.JaspiAuthenticationTestCase.testInContainerClientAuthModule
org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModulesWithJBossWSClientAggregationModule
org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModules
org.jboss.test.ws.publish.EndpointPublishTestCase.testEndpointPublish
> 9 failures in the testsuite runs with security manager enabled on wfly-13
> -------------------------------------------------------------------------
>
> Key: JBWS-4112
> URL: https://issues.jboss.org/browse/JBWS-4112
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-5.2.1.Final
> Reporter: R Searls
> Assignee: R Searls
>
> https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...
> tests:
> org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithThreadBusStrategy org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithNewBusStrategy org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithTCCLBusStrategy org.jboss.test.ws.jaxws.samples.wsse.policy.jaspi.JaspiAuthenticationTestCase.testInContainerClientAuthModule org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModulesWithJBossWSClientAggregationModule
> org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModules
> org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefTestCase.testApplicationClient
> org.jboss.test.ws.jaxws.samples.webserviceref.WebServiceRefTestCase.testApplicationClient
> org.jboss.test.ws.publish.EndpointPublishTestCase.testEndpointPublish
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
[View Less]
6 years, 11 months
[JBoss JIRA] (JBWS-4112) 9 failures in the testsuite runs with security manager enabled on wfly-13
by R Searls (JIRA)
R Searls created JBWS-4112:
------------------------------
Summary: 9 failures in the testsuite runs with security manager enabled on wfly-13
Key: JBWS-4112
URL: https://issues.jboss.org/browse/JBWS-4112
Project: JBoss Web Services
Issue Type: Bug
Components: jbossws-cxf
Affects Versions: jbossws-cxf-5.2.1.Final
Reporter: R Searls
Assignee: R Searls
https://jbossws-jenkins.rhev-ci-vms.…
[View More]eng.rdu2.redhat.com/jenkins/job/CXF-C...
tests:
org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithThreadBusStrategy org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithNewBusStrategy org.jboss.test.ws.jaxws.cxf.jbws3713.ClientBusStrategyTestCase.testClientWithTCCLBusStrategy org.jboss.test.ws.jaxws.samples.wsse.policy.jaspi.JaspiAuthenticationTestCase.testInContainerClientAuthModule org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModulesWithJBossWSClientAggregationModule
org.jboss.test.ws.jaxws.jbws1666.JBWS1666TestCase.testClientUsingJBossModules
org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefTestCase.testApplicationClient
org.jboss.test.ws.jaxws.samples.webserviceref.WebServiceRefTestCase.testApplicationClient
org.jboss.test.ws.publish.EndpointPublishTestCase.testEndpointPublish
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
[View Less]
6 years, 11 months
[JBoss JIRA] (JBWS-4107) wsconsume script is not working on JDK9+
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/JBWS-4107?page=com.atlassian.jira.plugin.... ]
Alessio Soldano commented on JBWS-4107:
---------------------------------------
Thanks [~rsearls].
[~mkopecky], I've actually merged a slightly improved version of Rebecca's changes. In any case, before closing this jira, we should probably verify the fix with jdk from different vendors and on different operating system (last time I played with the compiler api, we later found unexpected issues with IBM jdk, for …
[View More]example). Is that something you can do?
> wsconsume script is not working on JDK9+
> ----------------------------------------
>
> Key: JBWS-4107
> URL: https://issues.jboss.org/browse/JBWS-4107
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-5.2.0.Final
> Reporter: R Searls
> Assignee: R Searls
> Priority: Blocker
> Fix For: jbossws-cxf-5.2.1.Final
>
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
[View Less]
6 years, 11 months