You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to java-dri...@lists.datastax.com
Hi!
I'm developing a scala application using the java driver. In runtime an exception is thrown. The source code line with problem and the stacktrace can be view here: https://gist.github.com/jvanz/d5b06eda316eab60348c
Have you ever seen some similiar problem in a scala application? What's my mistake?
Thank you
Olivier Michallat
unread,
May 20, 2015, 9:35:52 AM5/20/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to java-dri...@lists.datastax.com
Hi,
The type checker resolves latitude as type Any because of the null. In the Java world this resolves to Object, the driver doesn't know how to map that. I think you need to specify the type explicitly.
scala> var foo = Some(1.0) match { case Some(d) => d case _ => null }
foo: Any = 1.0
scala> var foo:java.lang.Double = Some(1.0) match { case Some(d) => d case _ => null }