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 B768E200B16 for ; Mon, 20 Jun 2016 11:43:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B62A5160A66; Mon, 20 Jun 2016 09:43:06 +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 30F8C160A24 for ; Mon, 20 Jun 2016 11:43:06 +0200 (CEST) Received: (qmail 77223 invoked by uid 500); 20 Jun 2016 09:43:05 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 77201 invoked by uid 99); 20 Jun 2016 09:43:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2016 09:43:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 49DD22C1F60 for ; Mon, 20 Jun 2016 09:43:05 +0000 (UTC) Date: Mon, 20 Jun 2016 09:43:05 +0000 (UTC) From: "miaoever (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-4058) Error uploading JAR with dependencies using flink.bat on a Windows stand-alone instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 20 Jun 2016 09:43:06 -0000 [ https://issues.apache.org/jira/browse/FLINK-4058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15339254#comment-15339254 ] miaoever commented on FLINK-4058: --------------------------------- I met the same problem . If [~mark.nadelson@point72.com] do not fix it yet, i may open a pr to fix. :) > Error uploading JAR with dependencies using flink.bat on a Windows stand-alone instance > --------------------------------------------------------------------------------------- > > Key: FLINK-4058 > URL: https://issues.apache.org/jira/browse/FLINK-4058 > Project: Flink > Issue Type: Bug > Reporter: Mark Nadelson > Priority: Critical > > Uploading a JAR with dependencies in a sub-directory causes an" Unable to create temporary file" IOException. This occurs in org.apache.flink.client.program.PackagedProgram.extractContainedLibraries() > This because of the line "name = name.replace(File.separatorChar, '_');" > File.separatorChar in windows is the backslash (\) but files read from a Jar are always in the format of the forward slash (/). Therefore the slash is never replaced with the '_'. The fix is to remove the File.separatorChar with '/'. -- This message was sent by Atlassian JIRA (v6.3.4#6332)