Return-Path: X-Original-To: apmail-flink-user-archive@minotaur.apache.org Delivered-To: apmail-flink-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB58A10404 for ; Wed, 11 Feb 2015 01:44:25 +0000 (UTC) Received: (qmail 94647 invoked by uid 500); 11 Feb 2015 01:44:25 -0000 Delivered-To: apmail-flink-user-archive@flink.apache.org Received: (qmail 94575 invoked by uid 500); 11 Feb 2015 01:44:25 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 94565 invoked by uid 99); 11 Feb 2015 01:44:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2015 01:44:25 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of hoangthevinh.htv@gmail.com does not designate 162.253.133.43 as permitted sender) Received: from [162.253.133.43] (HELO mwork.nabble.com) (162.253.133.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2015 01:44:20 +0000 Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 525321381119 for ; Tue, 10 Feb 2015 17:42:58 -0800 (PST) Date: Tue, 10 Feb 2015 17:37:08 -0800 (PST) From: Vinh June To: user@flink.incubator.apache.org Message-ID: <1423618628097-720.post@n4.nabble.com> Subject: [Exception]Key expressions are only supported on POJO types and Tuples MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, I ran into this exception while trying to call groupBy function. I thought all val(s) are already set to public by default. My class can be found here http://pastebin.com/EZuiP9XA Any one has any idea how to fix it? Thank you. ====================================== log4j:WARN No appenders could be found for logger (org.apache.flink.api.java.typeutils.TypeExtractor). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread "main" java.lang.IllegalArgumentException: Key expressions are only supported on POJO types and Tuples. A type is considered a POJO if all its fields are public, or have both getters and setters defined at org.apache.flink.api.java.operators.Keys$ExpressionKeys.(Keys.java:276) at org.apache.flink.api.scala.DataSet.groupBy(DataSet.scala:707) at vj.polimi.thesis.gmql.model.GmqlSampleSet.(GmqlSampleSet.scala:35) at vj.polimi.thesis.test.GmqlFromNarrowPeak$.main(GmqlFromNarrowPeak.scala:63) at vj.polimi.thesis.test.GmqlFromNarrowPeak.main(GmqlFromNarrowPeak.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) ====================================== -- View this message in context: http://apache-flink-incubator-user-mailing-list-archive.2336050.n4.nabble.com/Exception-Key-expressions-are-only-supported-on-POJO-types-and-Tuples-tp720.html Sent from the Apache Flink (Incubator) User Mailing List archive. mailing list archive at Nabble.com.