Opendedup sdfs java.lang.numberformatexception



Error  sdfs java.lang.numberformatexception


Running Program SDFS Version 3.0.4
reading config file = /etc/sdfs/sdfs0-volume-cfg.xml
java.lang.NumberFormatException: For input string: "1,95"
        at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
        at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
        at java.lang.Float.parseFloat(Float.java:451)
        at org.opendedup.util.StringUtils.parseSize(StringUtils.java:64)
        at org.opendedup.sdfs.io.Volume.<init>(Volume.java:190)
        at org.opendedup.sdfs.Config.parseSDFSConfigFile(Config.java:365)
        at org.opendedup.sdfs.servers.SDFSService.start(SDFSService.java:39)
        at fuse.SDFS.MountSDFS.setup(MountSDFS.java:200)
        at fuse.SDFS.MountSDFS.init(MountSDFS.java:235)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:207)
Exiting because java.lang.NumberFormatException: For input string: "1,95"
Service exit with a return value of 255


Solution
 

the issue is that you are running it on a system that uses "," instead of "." for decimal numbers. Take a look at the config xml and change the numeric values to comply with "."

Same solution Windows or Linux 



Popular posts from this blog

Remote Server returned '550 5.2.3 RESOLVER.RST.RecipSizeLimit; message too large for this recipient'

Haproxy error inconsistencies between private key and certificate loaded from PEM file

Porque a centralização de arquivos?