axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5793) Various tests fail when Axis2 is built using a path with spaces
Date Sat, 26 Aug 2017 14:29:02 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16142824#comment-16142824
] 

Hudson commented on AXIS2-5793:
-------------------------------

SUCCESS: Integrated in Jenkins build Axis2 #3813 (See [https://builds.apache.org/job/Axis2/3813/])
AXIS2-5793: Replace usages of deprecated File.getURL(). (veithen: rev 1806292)
* (edit) axis2/modules/corba/src/org/apache/axis2/corba/deployer/CorbaDeployer.java
* (edit) axis2/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLCodegenEngine.java
* (edit) axis2/modules/jaxbri/src/main/java/org/apache/axis2/jaxbri/CodeGenerationUtility.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/context/sei/MessageContextService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/jaxb/string/JAXBStringService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/polymorphic/shape/tests/PolymorphicTests.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/AddressingProviderTests.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/GorillaDLWProxyTests.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/ProxyTests.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/RPCLitSWAProxyTests.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/RPCProxyTests.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/proxy/soap12/SOAP12EchoService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/enumtype/sei/Service.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/rpclit/stringarray/sei/RPCLitStringArrayService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbershandler/AddNumbersHandlerService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/client/AsyncService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbare/sei/BareDocLitService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbaremin/sei/BareDocLitMinService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/doclitbarenoarg/sei/BareDocLitNoArgService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faults/FaultyWebServiceService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/faultsservice/FaultsService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/headershandler/HeadersHandlerService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/nonwrap/sei/DocLitNonWrapService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/parallelasync/server/AsyncService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/resourceinjection/sei/ResourceInjectionService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/stringlist/sei/StringListService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/wrap/sei/DocLitWrapService.java
* (edit) axis2/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java
* (edit) axis2/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSDeployer.java
* (edit) axis2/modules/jaxws/src/org/apache/axis2/jaxws/framework/JAXWSServiceBuilderExtension.java
* (edit) axis2/modules/jaxws/src/org/apache/axis2/jaxws/runtime/description/marshal/impl/PackageSetBuilder.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/catalog/MultiRedirectionCatalogTest.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/catalog/XMLCatalogTests.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/client/ClientConfigTests.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/client/ReleaseServiceTests.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/description/DescriptionTestUtils2.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/description/sample/addnumbers/AddNumbersService.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerResolverTest.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/spi/ClientMetadataHandlerChainTest.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/spi/ClientMetadataTest.java
* (edit) axis2/modules/jaxws/test/org/apache/axis2/jaxws/wsdl/schemareader/SchemaReaderTests.java
* (edit) axis2/modules/jibx-codegen/src/main/java/org/apache/axis2/jibx/CodeGenerationUtility.java
* (edit) axis2/modules/kernel/test/org/apache/axis2/addressing/wsdl/WSDL11ActionHelperTest.java
* (edit) axis2/modules/kernel/test/org/apache/axis2/client/ServiceClientTest.java
* (edit) axis2/modules/kernel/test/org/apache/axis2/description/WSDLWrapperTest.java
* (edit) axis2/modules/kernel/test/org/apache/axis2/validation/ValidateAxis2XMLTest.java
* (edit) axis2/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java
* (edit) axis2/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
* (edit) axis2/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java
* (edit) axis2/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java
* (edit) axis2/modules/metadata/src/org/apache/axis2/jaxws/util/CatalogWSDLLocator.java
* (edit) axis2/modules/metadata/src/org/apache/axis2/jaxws/util/ModuleWSDLLocator.java
* (edit) axis2/modules/metadata/src/org/apache/axis2/metadata/registry/MetadataFactoryRegistry.java
* (edit) axis2/modules/metadata/test/org/apache/axis2/jaxws/description/DescriptionTestUtils.java
* (edit) axis2/modules/metadata/test/org/apache/axis2/jaxws/description/impl/ClientDBCSupportEndpointTests.java
* (edit) axis2/modules/metadata/test/org/apache/axis2/jaxws/description/impl/ClientDBCSupportHandlersTests.java
* (edit) axis2/modules/metadata/test/org/apache/axis2/jaxws/description/impl/DescriptionFactoryImplTests.java
* (edit) axis2/modules/scripting/src/org/apache/axis2/scripting/ScriptDeploymentEngine.java
* (edit) axis2/modules/scripting/test/org/apache/axis2/scripting/ScriptModuleTest.java
* (edit) axis2/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/WSDL2JavaGenerator.java
* (edit) axis2/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/util/ClassFileReader.java
* (edit) axis2/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/core/ClassFileHandler.java
* (edit) axis2/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/core/ClassFileHandler.java
* (edit) axis2/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/eclipse/ui/ServiceXMLGenerationPage.java
* (edit) axis2/modules/tool/axis2-eclipse-service-plugin/src/main/java/org/apache/axis2/tool/service/eclipse/ui/WSDLOptionsPage.java
* (edit) axis2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/bean/ClassLoadingTestBean.java
* (edit) axis2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/bean/CodegenBean.java
* (edit) axis2/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/ServiceXMLGenerationPage.java


> Various tests fail when Axis2 is built using a path with spaces
> ---------------------------------------------------------------
>
>                 Key: AXIS2-5793
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5793
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.7.3
>         Environment: Windows 8.1 x64 Prof., Tomcat 7.0.68, JDK 1.8.0_92 x64
>            Reporter: Thorsten Schöning
>         Attachments: AXIS2-5793 AdminActions.patch, AXIS2-5793 all others.patch, DescriptionTestUtils2.java.patch,
DescriptionTestUtils.java.patch, TEST-org.apache.axis2.jaxws.description.DBCwithReduceWSDLMemoryParmsTests.xml
>
>
> DBCwithReduceWSDLMemoryParmsTests fails when Axis2 is build using a path with spaces:
> {CODE}
>   <testcase time="0.017" classname="org.apache.axis2.jaxws.description.DBCwithReduceWSDLMemoryParmsTests"
name="testDBCwithReduceWSDLMemoryParms">
>     <failure type="junit.framework.AssertionFailedError:">junit.framework.AssertionFailedError:
null
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at junit.framework.Assert.assertTrue(Assert.java:27)
> 	at org.apache.axis2.jaxws.description.DBCwithReduceWSDLMemoryParmsTests.testDBCwithReduceWSDLMemoryParms(DBCwithReduceWSDLMemoryParmsTests.java:140)
> </failure>
> {CODE}
> After enabling logging using log4j the reason is easier to find:
> {CODE}
> 2016-06-25 11:00:36,857 DEBUG org.apache.axis2.jaxws.util.WSDL4JWrapper.<init>:
WSDL4JWrapper(Definition, boolean) entry
> 2016-06-25 11:00:36,857 DEBUG org.apache.axis2.wsdl.util.WSDLDefinitionWrapper.<init>:
WSDLDefinitionWrapper(Definition,URL,boolean) entry
> 2016-06-25 11:00:36,857 DEBUG org.apache.axis2.wsdl.util.WSDLWrapperReloadImpl.isReloadable:
Enter WSDLWrapperReloadImpl.isReloadable(): null
> 2016-06-25 11:00:36,857 DEBUG org.apache.axis2.wsdl.util.WSDLWrapperReloadImpl.getExplicitURI:
WSDLWrapperReloadImpl.getExplicitURI(file:/C:/Users/tschoening/Documents/Eclipse/Java Bug
2187/Libs Java 3rd/Apache/Axis2/1.7.3/src/modules/metadata/test-resources/wsdl/BindingNamespaceDefaults.wsdl)

> 2016-06-25 11:00:36,857 DEBUG org.apache.axis2.wsdl.util.WSDLWrapperReloadImpl.isReloadable:
WSDLWrapperReloadImpl.isReloaded(): [javax.wsdl.WSDLException]  error [WSDLException: faultCode=WSDLWrapperReloadImpl
: : java.net.URISyntaxException: Illegal character in path at index 48: file:/C:/Users/tschoening/Documents/Eclipse/Java
Bug 2187/Libs Java 3rd/Apache/Axis2/1.7.3/src/modules/metadata/test-resources/wsdl/BindingNamespaceDefaults.wsdl]
> javax.wsdl.WSDLException: WSDLException: faultCode=WSDLWrapperReloadImpl : : java.net.URISyntaxException:
Illegal character in path at index 48: file:/C:/Users/tschoening/Documents/Eclipse/Java Bug
2187/Libs Java 3rd/Apache/Axis2/1.7.3/src/modules/metadata/test-resources/wsdl/BindingNamespaceDefaults.wsdl
> 	at org.apache.axis2.wsdl.util.WSDLWrapperReloadImpl.getExplicitURI(WSDLWrapperReloadImpl.java:1382)
> {CODE}
> The problem is in DescriptionTestUtils.getWSDLURL:
> {CODE}
> wsdlURL = new File(urlString).getAbsoluteFile().toURL();
> {CODE}
> toURL is kown to fail in situations like these:
> {QUOTE}
> Deprecated. This method does not automatically escape characters that are illegal in
URLs. It is recommended that new code convert an abstract pathname into a URL by first converting
it into a URI, via the toURI method, and then converting the URI into a URL via the URI.toURL
method.
> {QUOTE}
> https://docs.oracle.com/javase/7/docs/api/java/io/File.html#toURL()



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message