Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3C76176E4 for ; Sun, 8 Feb 2015 17:09:29 +0000 (UTC) Received: (qmail 57586 invoked by uid 500); 8 Feb 2015 17:09:29 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 57558 invoked by uid 500); 8 Feb 2015 17:09:29 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 57532 invoked by uid 99); 8 Feb 2015 17:09:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Feb 2015 17:09:28 +0000 X-ASF-Spam-Status: No, hits=0.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of apc4@ya.ru designates 84.201.143.136 as permitted sender) Received: from [84.201.143.136] (HELO forward3l.mail.yandex.net) (84.201.143.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Feb 2015 17:09:02 +0000 Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward3l.mail.yandex.net (Yandex) with ESMTP id 7B96F150107D for ; Sun, 8 Feb 2015 20:08:28 +0300 (MSK) Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id 27A741B61200 for ; Sun, 8 Feb 2015 20:08:28 +0300 (MSK) Received: from unknown (unknown [2601:9:3400:5000:fcbf:7c2e:5dfa:ac73]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id oYzuLoqfAd-8Q6GeoI1; Sun, 8 Feb 2015 20:08:27 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1423415307; bh=ma8k2nW93vCRccKBUIx2pb9K4X1uRDph70aITWs2rBY=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ouqI61K/MNtRpO5QbATPAGhXi2V2HDfuO4yK66WgjQ6LA1RG2oeEVAY0bR4pZKNgZ dYbcLUiIOOohgbdZFNf+wL3fLTkuqb8JVSuCpaj0HSZgJcwHKGMcEKKcdQsY/6RZZB LKHJCPaWk/dnDeYFIDccwMHMBet7dC6T7v0F7gGk= Authentication-Results: smtp14.mail.yandex.net; dkim=pass header.i=@ya.ru Message-ID: <54D79802.6040305@ya.ru> Date: Sun, 08 Feb 2015 09:08:18 -0800 From: Andrey Pokhilko User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: dev@jmeter.apache.org Subject: Re: Possible NPE in FileServer References: <54D544C7.4030306@ya.ru> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org It occurs when you have CSV Data Set and specified file was not found. Then in the log there is one exception about "file not found" and many of NPE, I guess for every iteration. Andrey Pokhilko On 02/08/2015 04:36 AM, sebb wrote: > On 6 February 2015 at 22:48, Andrey Pokhilko wrote: >> Hi, >> >> I just met the situation, when this line of code returns null and >> causing NPE: >> https://github.com/apache/jmeter/blob/31c3385075bff2140a4c2b6cdaa2c4a4c1a4a76e/src/core/org/apache/jmeter/services/FileServer.java#L286 >> >> fileEntry.headerLine will be non-null only if hasHeader parameter is >> true. Is this what expected? > The Javadoc says the method can return null. > > Where does the NPE occur? > >> -- >> Andrey Pokhilko >>