[jboss-jira] [JBoss JIRA] Commented: (JBAS-8702) WebServices test case org.jboss.webservice.jbws309.JBWS309TestCase failing when run against IPv6 addresses

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Fri Dec 10 16:01:53 EST 2010


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

Richard Achmatowicz commented on JBAS-8702:
-------------------------------------------

As in the admindevel test cases, this test deploys jars containing webservice artifacts:
ws4ee-jbws309.jar
ws4ee-jbws309-client.jar

These artifacts contain wsdl.xml files and jboss-client.xml files making reference to wsdl override URLs and soap:address location URLs.
These URLs were being improperly formed when the jars were created, due to substitution of an IPv6 literal address into the URL instead of an IPv6 literal enclosed in brackets, as per rfc2732.

I modified the following files so that the URLs are correctly constructed for both IPv4 and IPv6 addresses:
testsuite/imports/section/webservice.xml
testsuite/src/resources/webservice/jbws309/META-INF/wsdl/OrganizationService.wsdl 
to fix the URL generation in the wsdl.

Also made a small change to the test case itself to fix a connection URL.

These tests now pass for the server configurations jacc and jacc+securitymgr.


> WebServices test case org.jboss.webservice.jbws309.JBWS309TestCase failing when run against IPv6 addresses 
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-8702
>                 URL: https://issues.jboss.org/browse/JBAS-8702
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web Services
>    Affects Versions: 6.0.0.CR1
>            Reporter: Richard Achmatowicz
>            Assignee: Alessio Soldano
>             Fix For: TBD-6.x
>
>         Attachments: server.log, test.log
>
>
> When running the testsuite with IPv6 addresses, tests from the following test classes are failing:
> org.jboss.test.webservice.jbws309.JBWS309TestCase
> The details of the failures can be found here in the Hudson job for the run:
> http://hudson.qa.jboss.com/hudson/view/JBoss%20AS/job/JBoss-AS-6.0.x-testSuite-ipv6-clone/6/
> These test failures exhibit a common error:
> Error Message
> Call invocation failed; nested exception is:   java.lang.RuntimeException: Invalid address: http://fec0:0:a16:ffff::1:8080/ws4ee-jbws309/RoleSecured
> Stacktrace
> java.rmi.RemoteException: Call invocation failed; nested exception is: 
> 	java.lang.RuntimeException: Invalid address: http://fec0:0:a16:ffff::1:8080/ws4ee-jbws309/RoleSecured
> 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:546)
> 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:286)
> 	at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:154)
> 	at $Proxy4.getContactInfo(Unknown Source)
> 	at org.jboss.test.webservice.jbws309.JBWS309TestCase.testRoleSecuredServiceAccess(JBWS309TestCase.java:193)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
> 	at junit.extensions.TestSetup.run(TestSetup.java:27)
> Caused by: java.lang.RuntimeException: Invalid address: http://fec0:0:a16:ffff::1:8080/ws4ee-jbws309/RoleSecured
> 	at org.jboss.ws.core.client.transport.NettyClient.invokeInternal(NettyClient.java:148)
> 	at org.jboss.ws.core.client.transport.NettyClient.invoke(NettyClient.java:123)
> 	at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:150)
> 	at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:69)
> 	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:369)
> 	at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:527)
> Caused by: java.net.MalformedURLException: For input string: "0:a16:ffff::1:8080"
> 	at java.net.URL.<init>(URL.java:601)
> 	at java.net.URL.<init>(URL.java:464)
> 	at java.net.URL.<init>(URL.java:413)
> 	at org.jboss.ws.core.client.transport.NettyClient.invokeInternal(NettyClient.java:144)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list