[jbossws-issues] [JBoss JIRA] (JBWS-4112) 9 failures in the testsuite runs with security manager enabled on wfly-13

R Searls (JIRA) issues at jboss.org
Thu Apr 12 08:04:00 EDT 2018


    [ https://issues.jboss.org/browse/JBWS-4112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13560146#comment-13560146 ] 

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 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-CORE-AS-13.0.0-SECMGR/23/testReport/
> 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)


More information about the jbossws-issues mailing list