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

java.nio.file.Path unmarshalling exception #94

Closed
xunkar opened this issue Jul 8, 2017 · 0 comments

Comments

@xunkar
Copy link

commented Jul 8, 2017

Hello,

On Windows 10, if I marshal an absolute Path variable (like C:\Windows) it will be marshalled as C:/Windows as expected. However, the converter is not able to unmarshal this value, resulting in the following exception:

cause-exception     : java.nio.file.FileSystemNotFoundException
cause-message       : Provider "C" not installed
class               : java.nio.file.Path
required-type       : java.nio.file.Path
converter-type      : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter   : com.thoughtworks.xstream.converters.extended.PathConverter
path                : /com.jenmaarai.steropes.FileWalker/roots/entry/path
line number         : 4
class[1]            : java.util.HashMap
converter-type[1]   : com.thoughtworks.xstream.converters.collections.MapConverter
class[2]            : com.jenmaarai.steropes.FileWalker
converter-type[2]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
version             : 1.4.10

Manually editing the XML file to change the value to C:\Windows solves the issue.

@joehni joehni self-assigned this Jul 9, 2017
@joehni joehni added the bug label Jul 9, 2017
@joehni joehni added this to the 1.4.x milestone Jul 9, 2017
@joehni joehni closed this in c66e3ab Oct 14, 2017
joehni added a commit that referenced this issue Oct 14, 2017
@joehni joehni modified the milestones: 1.4.x, 1.4.11 Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.