jMonkeyEngine / jMonkeyEngine/jmonkeyengine
Exception thrown when jME application is executed from SMB share
Open
Nobody has claimed this yet.
bug
Contribution welcome
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 1.2k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 14
Description
java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.(File.java:423)
at com.jme3.asset.plugins.ClasspathLocator.locate(ClasspathLocator.java:88)
When running from a path like \\abc\def\, jME3 crashes in ClasspathLoader:
at String path = new File(url.toURI()).getCanonicalPath();
Creating a File object from an SMB path isn't supported by Java (?)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in ClasspathLocator.locate at the reported new File(url.toURI()).getCanonicalPath() call and reproduce the failure by running a jME application from an SMB path such as \abc\def. Done means the application no longer throws the URI authority exception and can locate its classpath assets from that path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100