2017-05-08 10 views
1

Hazelcastマップに格納されているオブジェクトのフィールドの異なる値のセットを取得しようとしています。 Javaコードのこの行:Hazelcast SupplierとAggregationは同時実行例外を指定します

instructions.aggregate(Supplier.all(value -> value.getWorkArea()), Aggregations.distinctValues()); 

には、以下のスタックトレースがあります

instructions.aggregate(Supplier.all()), Aggregations.distinctValues()); 

か::

instructions.aggregate私はこの行をしようとした場合

java.util.concurrent.ExecutionException: com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: com.example.instruction.repository.HazelcastInstructionRepository$GeneratedEvaluationClass 
com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: com.example.instruction.repository.HazelcastInstructionRepository$GeneratedEvaluationClass 
java.lang.ClassNotFoundException: com.example.instruction.repository.HazelcastInstructionRepository$GeneratedEvaluationClass 

(Supplier.fromPredicate(Predicates.and(Predicates.equal( "type"、 "someType")、equal( "groupId"、null)、 Predicates.equal( "workArea"、 "someWorkArea")))、Aggregations.distinctValues());

これはうまくいきます...オブジェクトのフィールドへの参照を作成しているときに間違っているようです。 (私はオブジェクトの他のフィールドでも同じエラーを返しました)

これは私のローカル環境で実行されていて、他の集計/述語からオブジェクトがHazelcastマップに正しく配置されていると確信しています作業しています。

私は何が間違っているのか考えていますか?

多くのありがとうございます!

答えて

関連する問題