java.lang.RuntimeException

Could not generate supporting file 'SupportingFile: templateFile: gradle-wrapper.jar folder: gradle\wrapper destinationFilename: gradle-wrapper.jar '

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2106

  • Stack trace

    • java.lang.RuntimeException: Could not generate supporting file 'SupportingFile: templateFile: gradle-wrapper.jar folder: gradle\wrapper destinationFilename: gradle-wrapper.jar ' at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:593) at io.swagger.codegen.DefaultGeneratorTest.testSkipOverwrite(DefaultGeneratorTest.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:205) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:108) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: java.io.FileNotFoundException: C:\Users\UW4J\AppData\Local\Temp\junit5719672984201658963\gradle\wrapper\gradle-wrapper.jar (The requested operation cannot be performed on a file with a user-mapped section open) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:577) ... 10 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    rprp
    93 times, last one
    bandocabandoca
    82 times, last one
    ivanszkypeterivanszkypeter
    Once,
    QrCericQrCeric
    216 times, last one
    batwalrus76batwalrus76
    Once,
    166 more bugmates