2
votes
2answers
40 views

Why won't astyanax (java) recognize my @Id annotated values in my scala case class parameter list?

So here's my dilemma: I have a domain model with a bunch of case classes in scala such as User and Organization. Within my data access layer (dao, repository, etc) I am using astyanax(a java library ...
1
vote
1answer
81 views

Scala API design for for Java compatibility

Suppose I have the following Scala API, which I plan to call from both Scala and Java: sealed abstract class InterpMethod case object InterpLinear extends InterpMethod case object InterpNearest ...
4
votes
1answer
67 views

How do I get the class of java.lang.Enum in scala?

I am new to Scala and I am converting some Java code to Scala that uses the Jackson library to handle JSON serialization. I ran into a problem in a Jackson SimpleModule implementation. In Java, I ...
0
votes
1answer
29 views

Invoking Java from Jython versus invoking Java from Scala and vice versa [closed]

Compared to Scala it seems much more difficult to call Java methods from Python : How do I call Java Methods from Jython that is executed by the Java class? From reading this answer it seems you do ...
0
votes
1answer
44 views

gzip support in Spark

For a Big Data project, I'm planning to use spark, which has some nice features like in-memory-computations for repeated workloads. It can run on local files or on top of HDFS. However, in the ...
1
vote
1answer
86 views

mixed java and scala code, is it a good practice to use @BeanProperty?

I have a mixed Java and Scala code. In my Java code I usually access DTO's via their dto.getSomething(). Now that I'm starting to introduce new Scala code, I don't want some old Java code that uses ...
0
votes
1answer
44 views

Scala Generic Parameter Type passed to Java Generic container

Question: How I can pass Generic Type from Scala to Java so the next code in JavaContainer will not fail like this: I'm instance of SomeClass Exception in thread "main" java.lang.ClassCastException: ...
1
vote
1answer
25 views

Riak (Java Client) suddenly stopped creating secondary indexes

Note I am using the Java client in Scala. case class annotations are slightly different. I have the following POJO: case class User( @(JsonProperty@field)("guid") @(RiakKey@field) val guid: ...
-1
votes
0answers
29 views

Installing Goose using maven or alternatives

I am keen to use a software tool called Goose, available here https://github.com/jiminoc/goose. I have been trying to install it for a while without any success. I have installed java, maven etc, ...
-2
votes
0answers
459 views

The Current Java vs Scala licence Topic (Oracle - Google - JVM) [closed]

I would like a look at the JVM world with one of Java or Scala languages. Both seem to have nice syntax (well, Scala a bit more), but my current question has to do with the license that comes along ...
2
votes
1answer
119 views

play framework migrate to 2.1.1 gives me a headache

So I wanted to start working on a play framework project of mine I abandoned 5 months ago, the project was still in version 2.0.4 and seeing 2.1.1 was the latest version I did this tutorial to update ...
0
votes
1answer
90 views
+50

Integrating Scala app with NewRelic Java Agent

I want to integrate a Scala app (Kestrel, http://robey.github.com/kestrel) with NewRelic using java agant but failed with error sh scripts/devel.sh Starting kestrel in development mode... Mar 28, ...
2
votes
3answers
117 views

How to do OAuth authentication from Java/Scala when we know username/password?

tl;dr - I want to authenticate against an OAuth 2.0 API with my own username/password from a desktop app (do not want to open browser) from Java/Scala. Why? I want to authenticate with Pocket's v3 ...
0
votes
1answer
53 views

Looking for ExecutorService with thread pool & minimal schedule latency [closed]

Looking for ExecutorService like FixedThreadPool or ForkJoinPool but with minimal latency for adding tasks to work queue and dequeueing them for execution. Highly desired for it to be CPU cache aware ...
2
votes
0answers
61 views

Single-threaded Java Websocket for Testing

We are developing an application with Scala and Websockets. For the latter we use Java-Websocket. The application itself works great and we are in the middle of writing unit tests. We use a WebSocket ...

1 2 3 4 5 100
15 30 50 per page