java.util.IllegalFormatConversionException: d != java.lang.Double

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • {code} INFO: Method: POST , URI: /3/Parse, route: /3/Parse, parms: {number_columns=9, source_frames=["nfs://home3/jenkins/slave_dir_from_mr-0xb1/workspace/h2o_master_DEV_pyunit_small_J6/smalldata/junit/cars_20mpg.csv"], single_quotes=False, column_types=["Enum","Numeric","Numeric","Numeric","Numeric","Numeric","Numeric","Numeric","Numeric"], parse_type=CSV, destination_frame=cars_20mpg.hex, delete_on_done=True, column_names=["name","economy","cylinders","displacement","power","weight","acceleration","year","economy_20mpg"], check_header=1, separator=44, blocking=False, chunk_size=4194304} 01-24 15:34:10.462 172.16.2.180:56793 26601 #26081-17 INFO: Method: POST , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(tmp= py_1 (:= cars_20mpg.hex (as.factor (cols_py cars_20mpg.hex "cylinders")) 2 [])), session_id=_sid_a5c4} 01-24 15:34:10.470 172.16.2.180:56793 26601 #26081-15 INFO: Method: POST , URI: /3/ModelBuilders/drf, route: /3/ModelBuilders/drf, parms: {seed=1234, training_frame=py_1, response_column=cylinders, ignored_columns=["economy_20mpg","name","economy"], fold_assignment=Modulo, nfolds=5} {code} Fails with {code} 01-24 15:34:19.929 172.16.2.180:56793 26601 FJ-2-7 INFO: 2016-01-24 15:34:19 0.007 sec 0 NaN NaN NaN 1.00000 34.53878 0.75342 onExCompletion for hex.tree.SharedTree$ScoreBuildOneTree@69123787 java.util.IllegalFormatConversionException: d != java.lang.Double at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999) at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2709) at java.util.Formatter$FormatSpecifier.print(Formatter.java:2661) at java.util.Formatter.format(Formatter.java:2433) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at hex.tree.DHistogram.toString(DHistogram.java:226) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuilder.append(StringBuilder.java:115) at hex.tree.DHistogram.bin(DHistogram.java:122) at hex.tree.ScoreBuildHistogram.overAllRows(ScoreBuildHistogram.java:267) at hex.tree.ScoreBuildHistogram.accum_all(ScoreBuildHistogram.java:233) at hex.tree.ScoreBuildHistogram.map(ScoreBuildHistogram.java:108) at water.MRTask.compute2(MRTask.java:613) at water.H2O$H2OCountedCompleter.compute1(H2O.java:1084) at hex.tree.ScoreBuildHistogram$Icer.compute1(ScoreBuildHistogram$Icer.java) at water.H2O$H2OCountedCompleter.compute(H2O.java:1080) at jsr166y.CountedCompleter.exec(CountedCompleter.java:468) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) {code} So 2 errors at once: out-of-bounds in histogram building that fails to print because of some type mismatch.
    via by Arno Candel,
  • {code} INFO: Method: POST , URI: /3/Parse, route: /3/Parse, parms: {number_columns=9, source_frames=["nfs://home3/jenkins/slave_dir_from_mr-0xb1/workspace/h2o_master_DEV_pyunit_small_J6/smalldata/junit/cars_20mpg.csv"], single_quotes=False, column_types=["Enum","Numeric","Numeric","Numeric","Numeric","Numeric","Numeric","Numeric","Numeric"], parse_type=CSV, destination_frame=cars_20mpg.hex, delete_on_done=True, column_names=["name","economy","cylinders","displacement","power","weight","acceleration","year","economy_20mpg"], check_header=1, separator=44, blocking=False, chunk_size=4194304} 01-24 15:34:10.462 172.16.2.180:56793 26601 #26081-17 INFO: Method: POST , URI: /99/Rapids, route: /99/Rapids, parms: {ast=(tmp= py_1 (:= cars_20mpg.hex (as.factor (cols_py cars_20mpg.hex "cylinders")) 2 [])), session_id=_sid_a5c4} 01-24 15:34:10.470 172.16.2.180:56793 26601 #26081-15 INFO: Method: POST , URI: /3/ModelBuilders/drf, route: /3/ModelBuilders/drf, parms: {seed=1234, training_frame=py_1, response_column=cylinders, ignored_columns=["economy_20mpg","name","economy"], fold_assignment=Modulo, nfolds=5} {code} Fails with {code} 01-24 15:34:19.929 172.16.2.180:56793 26601 FJ-2-7 INFO: 2016-01-24 15:34:19 0.007 sec 0 NaN NaN NaN 1.00000 34.53878 0.75342 onExCompletion for hex.tree.SharedTree$ScoreBuildOneTree@69123787 java.util.IllegalFormatConversionException: d != java.lang.Double at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999) at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2709) at java.util.Formatter$FormatSpecifier.print(Formatter.java:2661) at java.util.Formatter.format(Formatter.java:2433) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at hex.tree.DHistogram.toString(DHistogram.java:226) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuilder.append(StringBuilder.java:115) at hex.tree.DHistogram.bin(DHistogram.java:122) at hex.tree.ScoreBuildHistogram.overAllRows(ScoreBuildHistogram.java:267) at hex.tree.ScoreBuildHistogram.accum_all(ScoreBuildHistogram.java:233) at hex.tree.ScoreBuildHistogram.map(ScoreBuildHistogram.java:108) at water.MRTask.compute2(MRTask.java:613) at water.H2O$H2OCountedCompleter.compute1(H2O.java:1084) at hex.tree.ScoreBuildHistogram$Icer.compute1(ScoreBuildHistogram$Icer.java) at water.H2O$H2OCountedCompleter.compute(H2O.java:1080) at jsr166y.CountedCompleter.exec(CountedCompleter.java:468) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) {code} So 2 errors at once: out-of-bounds in histogram building that fails to print because of some type mismatch.
    via by Arno Candel,
  • Java: String Formatting
    via Stack Overflow by user102817
    ,
  • GitHub comment 40#170362651
    via GitHub by phoenixlzx
    ,
  • From h2ostream: Hello, I was just trying out the Scala REPL, and ran in to an issue while parsing a file. I tracked the issue down to csv(default) vs tsv. I can't quite manage to track back from the scala parse method to (where I assume) I will be able to set the separator char. -JD java.util.IllegalFormatConversionException: d != java.lang.Double at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302) at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2793) at java.util.Formatter$FormatSpecifier.print(Formatter.java:2747) at java.util.Formatter.format(Formatter.java:2520) at java.util.Formatter.format(Formatter.java:2455) at java.lang.String.format(String.java:2925) at water.fvec.Frame.toString(Frame.java:457) at water.api.dsl.Utils$$anonfun$head$1.apply(Utils.scala:62) at water.api.dsl.Utils$$anonfun$head$1.apply(Utils.scala:62) at scala.collection.immutable.NumericRange.foreach(NumericRange.scala:74) at water.api.dsl.Utils$.head(Utils.scala:62) at water.api.dsl.DFrame.toString(H2ODsl.scala:174) at scala.runtime.ScalaRunTime$.scala$runtime$ScalaRunTime$$inner$1(ScalaRunTime.scala:324) at scala.runtime.ScalaRunTime$.stringOf(ScalaRunTime.scala:329) at scala.runtime.ScalaRunTime$.replStringOf(ScalaRunTime.scala:337) at .<init>(<console>:10) at .<clinit>(<console>) at $print(<console>) 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:483) at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:734) at scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:983) at scala.tools.nsc.interpreter.IMain.loadAndRunReq$1(IMain.scala:573) at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:604) at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:568) at scala.tools.nsc.interpreter.ILoop.reallyInterpret$1(ILoop.scala:756) at scala.tools.nsc.interpreter.ILoop.interpretStartingWith(ILoop.scala:801) at scala.tools.nsc.interpreter.ILoop.command(ILoop.scala:713) at scala.tools.nsc.interpreter.ILoop.processLine$1(ILoop.scala:577) at scala.tools.nsc.interpreter.ILoop.innerLoop$1(ILoop.scala:584) at scala.tools.nsc.interpreter.ILoop.loop(ILoop.scala:587) at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:878) at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:833) at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:833) at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135) at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:833) at water.api.dsl.ShalalaRepl$.launchRepl(ShalalaRepl.scala:47) at water.api.dsl.ShalalaRepl$.userMain(ShalalaRepl.scala:31) at water.api.dsl.ShalalaRepl.userMain(ShalalaRepl.scala) 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:483) at water.Boot.run(Boot.java:304) at water.Boot.boot2(Boot.java:280) at water.Boot.main(Boot.java:136) at water.Boot.main(Boot.java:126) at water.api.dsl.ShalalaRepl$.main(ShalalaRepl.scala:26) at water.api.dsl.ShalalaRepl.main(ShalalaRepl.scala)
    via by Michal Malohlava,
  • From h2ostream: Hello, I was just trying out the Scala REPL, and ran in to an issue while parsing a file. I tracked the issue down to csv(default) vs tsv. I can't quite manage to track back from the scala parse method to (where I assume) I will be able to set the separator char. -JD java.util.IllegalFormatConversionException: d != java.lang.Double at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302) at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2793) at java.util.Formatter$FormatSpecifier.print(Formatter.java:2747) at java.util.Formatter.format(Formatter.java:2520) at java.util.Formatter.format(Formatter.java:2455) at java.lang.String.format(String.java:2925) at water.fvec.Frame.toString(Frame.java:457) at water.api.dsl.Utils$$anonfun$head$1.apply(Utils.scala:62) at water.api.dsl.Utils$$anonfun$head$1.apply(Utils.scala:62) at scala.collection.immutable.NumericRange.foreach(NumericRange.scala:74) at water.api.dsl.Utils$.head(Utils.scala:62) at water.api.dsl.DFrame.toString(H2ODsl.scala:174) at scala.runtime.ScalaRunTime$.scala$runtime$ScalaRunTime$$inner$1(ScalaRunTime.scala:324) at scala.runtime.ScalaRunTime$.stringOf(ScalaRunTime.scala:329) at scala.runtime.ScalaRunTime$.replStringOf(ScalaRunTime.scala:337) at .<init>(<console>:10) at .<clinit>(<console>) at $print(<console>) 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:483) at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:734) at scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:983) at scala.tools.nsc.interpreter.IMain.loadAndRunReq$1(IMain.scala:573) at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:604) at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:568) at scala.tools.nsc.interpreter.ILoop.reallyInterpret$1(ILoop.scala:756) at scala.tools.nsc.interpreter.ILoop.interpretStartingWith(ILoop.scala:801) at scala.tools.nsc.interpreter.ILoop.command(ILoop.scala:713) at scala.tools.nsc.interpreter.ILoop.processLine$1(ILoop.scala:577) at scala.tools.nsc.interpreter.ILoop.innerLoop$1(ILoop.scala:584) at scala.tools.nsc.interpreter.ILoop.loop(ILoop.scala:587) at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:878) at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:833) at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:833) at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135) at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:833) at water.api.dsl.ShalalaRepl$.launchRepl(ShalalaRepl.scala:47) at water.api.dsl.ShalalaRepl$.userMain(ShalalaRepl.scala:31) at water.api.dsl.ShalalaRepl.userMain(ShalalaRepl.scala) 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:483) at water.Boot.run(Boot.java:304) at water.Boot.boot2(Boot.java:280) at water.Boot.main(Boot.java:136) at water.Boot.main(Boot.java:126) at water.api.dsl.ShalalaRepl$.main(ShalalaRepl.scala:26) at water.api.dsl.ShalalaRepl.main(ShalalaRepl.scala)
    via by Michal Malohlava,
    • java.util.IllegalFormatConversionException: d != java.lang.Double at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999) at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2709) at java.util.Formatter$FormatSpecifier.print(Formatter.java:2661) at java.util.Formatter.format(Formatter.java:2433) at java.util.Formatter.format(Formatter.java:2367) at java.lang.String.format(String.java:2769) at hex.tree.DHistogram.toString(DHistogram.java:226) at java.lang.String.valueOf(String.java:2826) at java.lang.StringBuilder.append(StringBuilder.java:115) at hex.tree.DHistogram.bin(DHistogram.java:122) at hex.tree.ScoreBuildHistogram.overAllRows(ScoreBuildHistogram.java:267) at hex.tree.ScoreBuildHistogram.accum_all(ScoreBuildHistogram.java:233) at hex.tree.ScoreBuildHistogram.map(ScoreBuildHistogram.java:108) at water.MRTask.compute2(MRTask.java:613) at water.H2O$H2OCountedCompleter.compute1(H2O.java:1084) at hex.tree.ScoreBuildHistogram$Icer.compute1(ScoreBuildHistogram$Icer.java) at water.H2O$H2OCountedCompleter.compute(H2O.java:1080) at jsr166y.CountedCompleter.exec(CountedCompleter.java:468) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

    Users with the same issue

    silex
    silex2 times, last one,
    Unknown visitor1 times, last one,
    aldrinleal
    aldrinleal1 times, last one,
    Unknown visitor1 times, last one,
    bmacedo
    bmacedo3 times, last one,
    18 more bugmates