java.util.IllegalFormatConversionException: e != java.lang.Long

JIRA | Kevin Normoyle | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    this seems new. subtract with two data frames? is it thinking the - is part of the frame name (no spaces) exec_query parameters: {'str': 'z.hex=r.hex-r.hex;'} ===== Running test "py/testdir_single_jvm_fvec/test_exec2_unary.py" (6/51) ===== java.util.IllegalFormatConversionException: e != java.lang.Long 03:56:12.173 # Session INFO WATER: at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999) 03:56:12.179 # Session INFO WATER: at java.util.Formatter$FormatSpecifier.printFloat(Formatter.java:2722) 03:56:12.180 # Session INFO WATER: at java.util.Formatter$FormatSpecifier.print(Formatter.java:2667) 03:56:12.180 # Session INFO WATER: at java.util.Formatter.format(Formatter.java:2433) 03:56:12.181 # Session INFO WATER: at java.util.Formatter.format(Formatter.java:2367) 03:56:12.181 # Session INFO WATER: at java.lang.String.format(String.java:2769) 03:56:12.182 # Session INFO WATER: at water.fvec.Frame.toString(Frame.java:529) 03:56:12.182 # Session INFO WATER: at water.api.Exec2.serve(Exec2.java:50) 03:56:12.183 # Session INFO WATER: at water.api.Request.serveGrid(Request.java:139) 03:56:12.183 # Session INFO WATER: at water.Request2.superServeGrid(Request2.java:478) 03:56:12.184 # Session INFO WATER: at water.api.Exec2.serveGrid(Exec2.java:71) 03:56:12.184 # Session INFO WATER: at water.api.Request.serve(Request.java:116) 03:56:12.185 # Session INFO WATER: at water.api.RequestServer.serve(RequestServer.java:328) 03:56:12.185 # Session INFO WATER: at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:421) 03:56:12.186 # Session INFO WATER: at java.lang.Thread.run(Thread.java:662)

    JIRA | 3 years ago | Kevin Normoyle
    java.util.IllegalFormatConversionException: e != java.lang.Long
  2. 0

    update: looks like I was incorrectly using 'c' as a name below (it's reserved). update: initially thought the problem was: The a,b,d,e,f,g things are not created as keys usable between execs. I have to do the a=c(0) thing to make sure it gets created as a key and kept. but apparently it still fails. Are named keys not usable in cbind() ? odd error message though for non-existent variables/keys [2014-05-13 11:11:26.084010] exec_query parameters: {'str': 'a=rep_len(0,100)'} [2014-05-13 11:11:26.084080] Frame return [2014-05-13 11:11:26.129698] exec_query parameters: {'str': 'b=a; d=a; e=a; f=a; g=a;'} [2014-05-13 11:11:26.129771] Frame return [2014-05-13 11:11:26.146396] exec_query parameters: {'str': 'h <- cbind(a, b, c, d, e, f, g)'} [2014-05-13 11:11:26.146496] rjson: { [2014-05-13 11:11:26.155883] "error": "Passed 7 args but expected 1\nh <- cbind(a, b, c, d, e, f, g)\n ^--------------------^\n", [2014-05-13 11:11:26.155883] "response": { [2014-05-13 11:11:26.155883] "h2o": "pytest-kevin-5043", [2014-05-13 11:11:26.155883] "node": "/192.168.1.41:54321", [2014-05-13 11:11:26.155883] "status": "error", [2014-05-13 11:11:26.155883] "time": 5 [2014-05-13 11:11:26.155883] } [2014-05-13 11:11:26.155883] } [2014-05-13 11:11:26.155937] rjson error in exec_query: Passed 7 args but expected 1 [2014-05-13 11:11:26.157337] h <- cbind(a, b, c, d, e, f, g) [2014-05-13 11:11:26.157337] ^--------------------^ [2014-05-13 11:11:26.157337] ERROR [2014-05-13 11:11:26.157377] java.util.IllegalFormatConversionException: e != java.lang.Long [2014-05-13 11:11:26.157639] at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4045) [2014-05-13 11:11:26.158759] at java.util.Formatter$FormatSpecifier.printFloat(Formatter.java:2761) [2014-05-13 11:11:26.158833] at java.util.Formatter$FormatSpecifier.print(Formatter.java:2708) [2014-05-13 11:11:26.158891] at java.util.Formatter.format(Formatter.java:2488) [2014-05-13 11:11:26.158931] at java.util.Formatter.format(Formatter.java:2423) [2014-05-13 11:11:26.158966] at java.lang.String.format(String.java:2797) [2014-05-13 11:11:26.159003] at water.fvec.Frame.toString(Frame.java:551) [2014-05-13 11:11:26.159042] at water.api.Exec2.serve(Exec2.java:51) [2014-05-13 11:11:26.159076] at water.api.Request.serveGrid(Request.java:140) [2014-05-13 11:11:26.159111] at water.Request2.superServeGrid(Request2.java:478) [2014-05-13 11:11:26.159147] at water.api.Exec2.serveGrid(Exec2.java:77) [2014-05-13 11:11:26.159180] at water.api.Request.serve(Request.java:117) [2014-05-13 11:11:26.159215] at water.api.RequestServer.serve(RequestServer.java:389) [2014-05-13 11:11:26.159251] at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:425) [2014-05-13 11:11:26.159288] at java.lang.Thread.run(Thread.java:744)

    JIRA | 3 years ago | Kevin Normoyle
    java.util.IllegalFormatConversionException: e != java.lang.Long
  3. 0

    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)

    JIRA | 3 years ago | Michal Malohlava
    java.util.IllegalFormatConversionException: d != java.lang.Double
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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)

    JIRA | 3 years ago | Michal Malohlava
    java.util.IllegalFormatConversionException: d != java.lang.Double
  6. 0

    Can you format a toString() in JAVA? - For Beginners - GameDev.net

    gamedev.net | 1 year ago
    java.util.IllegalFormatConversionException: f != java.lang.Integer

  1. aldrinleal 1 times, last 5 months ago
  2. bmacedo 3 times, last 6 months ago
  3. iridic 3 times, last 7 months ago
  4. Ranjana Dangol 8 times, last 11 months ago
  5. Diogo Jaym 6 times, last 11 months ago
3 more registered users
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.IllegalFormatConversionException

    e != java.lang.Long

    at java.util.Formatter$FormatSpecifier.failConversion()
  2. Java RT
    String.format
    1. java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:3999)
    2. java.util.Formatter$FormatSpecifier.printFloat(Formatter.java:2722)
    3. java.util.Formatter$FormatSpecifier.print(Formatter.java:2667)
    4. java.util.Formatter.format(Formatter.java:2433)
    5. java.util.Formatter.format(Formatter.java:2367)
    6. java.lang.String.format(String.java:2769)
    6 frames
  3. water.fvec
    Frame.toString
    1. water.fvec.Frame.toString(Frame.java:529)
    1 frame
  4. water.api
    Request.serveGrid
    1. water.api.Exec2.serve(Exec2.java:50)
    2. water.api.Request.serveGrid(Request.java:139)
    2 frames
  5. water
    Request2.superServeGrid
    1. water.Request2.superServeGrid(Request2.java:478)
    1 frame
  6. water.api
    RequestServer.serve
    1. water.api.Exec2.serveGrid(Exec2.java:71)
    2. water.api.Request.serve(Request.java:116)
    3. water.api.RequestServer.serve(RequestServer.java:328)
    3 frames
  7. water
    NanoHTTPD$HTTPSession.run
    1. water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:421)
    1 frame
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame