Skip to content

java.nio.file.Path unmarshalling exception #94

@xunkar

Description

@xunkar

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions