Hi to all,
I seem to have some incompatibility using a simple number in my yaml
2011-10-31 14:43:26,283 ERROR [main] de.equens.filedemon.FileDemonExceptionHandler: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
…
finishFileAllMinutes: 60
…
I also tried things like this
finishFileAllMinutes: !!long 60
getting the same conflict
and
finishFileAllMinutes: !!Long 60
getting
org.yaml.snakeyaml.error.YAMLException: Class not found: Long
I am loading it like this
long intervalForFinish = (Long) logInfo.get("finishFileAllMinutes");
and even though I know a method of loading it differently, I'd like to know
how I can write it in yaml so I really get a Long and not an Int
thanks a lot in advance and many regards
Malte