question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception: ERROR java.nio.file.NoSuchFileException: /tmp/testngXmlPathInJar-15086412835569336174

See original GitHub issue

TestNG Version

7.6.0

I have some bad news with last release 7.6.0, We tested a snapshot last week from master and that was working. But there seems to be a new commit in-between that affects us badly. non of the executions passed.

I expect it is related to this commit: d190ade

Seems that some tmp path is added infront of the path

argument: -xmlpathinjar suites/postrelease/emulator_wrat_postrelease.xml

Exception: 2022-05-18T08:44:26,315 ERROR java.nio.file.NoSuchFileException: /tmp/testngXmlPathInJar-15086412835569336174/suites/old_action_test_suites/rnc_action_regression_with_configurationdata.xml

Sample Test

package org.testng.sample;
import org.testng.annotations.Test;
public class XmlPathInJarTest {
		@Test
		public void test() {
			System.out.println("Test");
		}
}

Sample Suite

<suite name="MJE PostRelease test on G2Rbs" verbose="1">
    <test name="XmlPathInJarTest" preserve-order="true">
        <classes>
            <class name="org.testng.sample.XmlPathInJarTest" />
        </classes>
    </test>
</suite>

Command

java -classpath target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar org.testng.TestNG -testjar target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar -xmlpathinjar suites/xmlpathinjarSuite.xml

TestNG 7.5 Output

Test

===============================================
MJE PostRelease test on G2Rbs
Total tests run: 1, Passes: 1, Failures: 0, Skips: 0
===============================================

TestNg 7.6.0 Output

bash-3.2$ java -classpath target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar org.testng.TestNG -testjar target/testng-sample-xmlpathinjar-0.0.1-SNAPSHOT-jar-with-dependencies.jar -xmlpathinjar suites/xmlpathinjarSuite.xml
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
13:10:47.078 [main] ERROR org.testng.TestNG - java.nio.file.NoSuchFileException: /var/folders/3l/qqzzwt655k16_hjq1gk_grl40000gp/T/testngXmlPathInJar-16857375091475056093/META-INF/maven/com.google.code.findbugs/jsr305/pom.xml

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:23 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bobshiecommented, Jun 22, 2022

@krmahadevan , I’ll test the TestNG version 7.6.1 rc version. and come back here after several days. Thanks.

0reactions
bobshiecommented, Jul 4, 2022

@krmahadevan , OK, Very thanks for your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve the java.nio.file.NoSuchFileException?
The problem is that your default directory at application startup is not what you think it is. Try adding the following line to...
Read more >
How to resolve error java.nio.file.NoSuchFileException
This quick coding tip explains how to resolve error java.nio.file.NoSuchFileException when using NIO API in Java.
Read more >
NoSuchFileException (Java Platform SE 8 ) - Oracle Help Center
public class NoSuchFileException extends FileSystemException. Checked exception thrown when an attempt is made to access a file that does not exist.
Read more >
No such file found error<java.nio.file.NoSuchFileException: C ...
Description Yesterday my project was working fine.But today when I generated the signed apk from android studio, the apk generated successfully, ...
Read more >
apache nifi error - Cloudera Community - 280541
This error is telling you that the user running the NiFi process is unable to see that file. ...java.nio.file.NoSuchFileException
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found