Comments (5)
Investigating this issue leads to the result that the connection to WinFSP is not broken.
IoStatus=c0000034[0]
says, that the object cannot be found.
All you have to do is setting the correct file encoding. Java uses CP1252 as default encoding on Windows which only uses 1 byte per character. The interface in WinFSP expects UTF-8 encoding which is 1-4 bytes per character. This means that there are invalid characters in your path when trying to access the file system.
Simply change the file encoding in the IDE to UTF-8 or use the parameter -Dfile.encoding=UTF-8
when compiling in the commandline. This solves the issues.
from jnr-fuse.
Hey, @ab3dat, @TriangularIT! Yes, sorry, I missed the issue initially. It's true, the encoding might need to be explicitly specified on windows, https://github.com/SerCeMan/jnr-fuse/blob/master/INSTALLATION.md#troubleshooting.
We might also need to add some runtime warnings to make sure there is some logging that warns abut the encoding at runtime.
from jnr-fuse.
I just now saw that you already pointed to this issue in the troubleshooting section. I mean, I read that sentence quite a few times. Unfortunately the highlighted error service java has failed to start
takes over the focus when reading and one totally ignores the rest of the sentence if you do not have that error.
A runtime warning would be a great solution.
from jnr-fuse.
@SerCeMan I implemented a runtime warning now in AbstractFuseFS.java
case WINDOWS:
if (!System.getProperty("file.encoding").equals("UTF-8"))
{
System.out.println("UTF-8 encoding required! Current encoding: " + System.getProperty("file.encoding"));
}
String winFspPath = WinPathUtils.getWinFspPath();
libFuse = loader.load(winFspPath);
break;
In case Windows is detected as platform and the codepage is not UTF-8, a message will be printed in the command line.
Guess that should do it. If you are fine with this fix, I'm going to create a pull request.
from jnr-fuse.
Thank you, @ab3dat for your help! It all works – I have missed the warning on the Installation page! 🤦♂️
from jnr-fuse.
Related Issues (20)
- Java 9 module support HOT 1
- write throughput very low compared to read HOT 1
- Problem with samba share folders (jnr-fuse + winfsp) HOT 2
- Capturing SetSecurity events HOT 2
- Fix CVE-2014-4043 HOT 4
- Wrong dependency scopes in release 0.5.6 HOT 2
- GraalVM native image support
- Winfsp and jnr-fuse not working HOT 3
- Why not implement the inode interface provided by kernel fuse to replace the current path interface? HOT 5
- Program doesn't shut down properly in some cases on windows
- JVM crash with jnr-fuse and javafx
- WinFsp 1.12 doesn't pass the CI check
- Test failures on AWS Graviton (ARM, aarch64 GNU/Linux)
- Winfsp read callback random offset
- I can't get getxattr() working HOT 1
- -bash: cd : mydirectory: Input/output error HOT 1
- Path Problem with Windows HOT 6
- The wrapper.jar is stale. HOT 4
- Can't run in gradle HOT 2
- Multiple folders created by FUSE cannot be monitored at the same time HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jnr-fuse.