Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows - dev mode - java.io.FileNotFoundException: \tmp\shamrock-classes\ #1030

Closed
rsvoboda opened this issue Feb 23, 2019 · 2 comments
Closed
Milestone

Comments

@rsvoboda
Copy link
Member

When running dev mode on Windows 10 there are several java.io.FileNotFoundException thrown

mvn shamrock:dev
...
java.io.FileNotFoundException: \tmp\shamrock-classes\com.example.demo.metric.MetricController_Subclass.class (Systém nemůže nalézt uvedenou cestu)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
        at org.jboss.shamrock.runner.RuntimeClassLoader.writeClass(RuntimeClassLoader.java:283)
        at org.jboss.shamrock.deployment.ShamrockAugmentor.run(ShamrockAugmentor.java:105)
        at org.jboss.shamrock.runner.RuntimeRunner.run(RuntimeRunner.java:85)
        at org.jboss.shamrock.dev.DevModeMain.doStart(DevModeMain.java:122)
        at org.jboss.shamrock.dev.DevModeMain.main(DevModeMain.java:83)
java.io.FileNotFoundException: \tmp\shamrock-classes\org.jboss.protean.arc.setup.Default_ComponentsProvider.class (Systém nemůže nalézt uvedenou cestu)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
        at org.jboss.shamrock.runner.RuntimeClassLoader.writeClass(RuntimeClassLoader.java:283)
        at org.jboss.shamrock.deployment.ShamrockAugmentor.run(ShamrockAugmentor.java:105)
        at org.jboss.shamrock.runner.RuntimeRunner.run(RuntimeRunner.java:85)
        at org.jboss.shamrock.dev.DevModeMain.doStart(DevModeMain.java:122)
        at org.jboss.shamrock.dev.DevModeMain.main(DevModeMain.java:83)
...
mvn -version
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T20:49:05+01:00)
Maven home: c:\Users\Rostislav\Downloads\apache-maven-3.5.3\bin\..
Java version: 1.8.0_201, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_201\jre
Default locale: cs_CZ, platform encoding: Cp1250
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

@rsvoboda
Copy link
Member Author

https://github.com/jbossas/protean-shamrock/blob/master/core/deployment/src/main/java/io/quarkus/runner/RuntimeClassLoader.java#L278

/tmp/... path is hardcoded, Path tempDir = Files.createTempDirectory("quarkus-classes"); could be used insted

@stuartwdouglas stuartwdouglas added this to the 0.10.0 milestone Feb 25, 2019
@cescoffier cescoffier changed the title Windows - dev mode - java.io.FileNotFoundException: \tmp\shamrock-classes\... Windows - dev mode - java.io.FileNotFoundException: \tmp\shamrock-classes\ Mar 6, 2019
@dmlloyd
Copy link
Member

dmlloyd commented Mar 27, 2019

See #1673 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants