Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AD0B72004F2 for ; Sat, 26 Aug 2017 20:30:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A08AE16484E; Sat, 26 Aug 2017 18:30:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BE8681633CA for ; Sat, 26 Aug 2017 20:30:09 +0200 (CEST) Received: (qmail 51795 invoked by uid 500); 26 Aug 2017 18:30:08 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 51786 invoked by uid 99); 26 Aug 2017 18:30:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Aug 2017 18:30:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D763A183E7F for ; Sat, 26 Aug 2017 18:30:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id l2loyXKxPXt3 for ; Sat, 26 Aug 2017 18:30:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1411D5FDA1 for ; Sat, 26 Aug 2017 18:30:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5B395E0AF9 for ; Sat, 26 Aug 2017 18:30:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8C96C2537F for ; Sat, 26 Aug 2017 18:30:02 +0000 (UTC) Date: Sat, 26 Aug 2017 18:30:02 +0000 (UTC) From: "Hudson (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AXIS2-5793) Various tests fail when Axis2 is built using a path with spaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 26 Aug 2017 18:30:10 -0000 [ https://issues.apache.org/jira/browse/AXIS2-5793?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1614= 2883#comment-16142883 ]=20 Hudson commented on AXIS2-5793: ------------------------------- SUCCESS: Integrated in Jenkins build Axis2 #3815 (See [https://builds.apach= e.org/job/Axis2/3815/]) AXIS2-5793: Fix various build failures that occur when building in a path t= hat contains spaces. (veithen: rev 1806309) * (edit) axis2/modules/jaxbri/pom.xml * (edit) axis2/modules/jibx/pom.xml * (edit) axis2/modules/json/pom.xml > 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 x= 64 > Reporter: Thorsten Sch=C3=B6ning > Fix For: 1.7.7 > > Attachments: AXIS2-5793 AdminActions.patch, AXIS2-5793 all others= .patch, DescriptionTestUtils2.java.patch, DescriptionTestUtils.java.patch, = TEST-org.apache.axis2.jaxws.description.DBCwithReduceWSDLMemoryParmsTests.x= ml > > > DBCwithReduceWSDLMemoryParmsTests fails when Axis2 is build using a path = with spaces: > {CODE} > > junit.framewo= rk.AssertionFailedError: null > =09at junit.framework.Assert.fail(Assert.java:47) > =09at junit.framework.Assert.assertTrue(Assert.java:20) > =09at junit.framework.Assert.assertTrue(Assert.java:27) > =09at org.apache.axis2.jaxws.description.DBCwithReduceWSDLMemoryParmsTest= s.testDBCwithReduceWSDLMemoryParms(DBCwithReduceWSDLMemoryParmsTests.java:1= 40) > > {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.WSDLDefinitionWr= apper.: WSDLDefinitionWrapper(Definition,URL,boolean) entry > 2016-06-25 11:00:36,857 DEBUG org.apache.axis2.wsdl.util.WSDLWrapperReloa= dImpl.isReloadable: Enter WSDLWrapperReloadImpl.isReloadable(): null > 2016-06-25 11:00:36,857 DEBUG org.apache.axis2.wsdl.util.WSDLWrapperReloa= dImpl.getExplicitURI: WSDLWrapperReloadImpl.getExplicitURI(file:/C:/Users/t= schoening/Documents/Eclipse/Java Bug 2187/Libs Java 3rd/Apache/Axis2/1.7.3/= src/modules/metadata/test-resources/wsdl/BindingNamespaceDefaults.wsdl)=20 > 2016-06-25 11:00:36,857 DEBUG org.apache.axis2.wsdl.util.WSDLWrapperReloa= dImpl.isReloadable: WSDLWrapperReloadImpl.isReloaded(): [javax.wsdl.WSDLExc= eption] error [WSDLException: faultCode=3DWSDLWrapperReloadImpl : : java.n= et.URISyntaxException: Illegal character in path at index 48: file:/C:/User= s/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=3DWSDLWrapperReloadImp= l : : java.net.URISyntaxException: Illegal character in path at index 48: f= ile:/C:/Users/tschoening/Documents/Eclipse/Java Bug 2187/Libs Java 3rd/Apac= he/Axis2/1.7.3/src/modules/metadata/test-resources/wsdl/BindingNamespaceDef= aults.wsdl > =09at org.apache.axis2.wsdl.util.WSDLWrapperReloadImpl.getExplicitURI(WSD= LWrapperReloadImpl.java:1382) > {CODE} > The problem is in DescriptionTestUtils.getWSDLURL: > {CODE} > wsdlURL =3D 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 pathn= ame 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