Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81AAF176BD for ; Sat, 13 Jun 2015 14:12:00 +0000 (UTC) Received: (qmail 65089 invoked by uid 500); 13 Jun 2015 14:12:00 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 65039 invoked by uid 500); 13 Jun 2015 14:12:00 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 65029 invoked by uid 99); 13 Jun 2015 14:12:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jun 2015 14:12:00 +0000 Date: Sat, 13 Jun 2015 14:12:00 +0000 (UTC) From: =?utf-8?Q?Johannes_G=C3=BCnther_=28JIRA=29?= To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-2208) Build error for Java IBM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-2208?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1458= 4610#comment-14584610 ]=20 Johannes G=C3=BCnther commented on FLINK-2208: ----------------------------------------- My first guess is that the IBM JDK is not supported officially and therefor= e not tested. Also the Automatic buildprocess in Travis does not seem to support it. http://docs.travis-ci.com/user/languages/java/#Testing-Against-Multiple-JDK= s That being said the com.sun,management packages are internal API's for the = Sun(Oracle) JDKs that seem to be used by the openjdk also a fix is to use the java.lang.management.OperatingSystemMXBean instead com.sun.* packages are not meant to be used outside the sun jdk and are no= t meant to be used in programms > Build error for Java IBM > ------------------------ > > Key: FLINK-2208 > URL: https://issues.apache.org/jira/browse/FLINK-2208 > Project: Flink > Issue Type: Bug > Components: Build System > Affects Versions: 0.9 > Reporter: Felix Neutatz > Priority: Minor > > Using IBM Java 7 will break the built: > {code:xml} > [INFO] --- scala-maven-plugin:3.1.4:compile (scala-compile-first) @ f= link-runtime --- > [INFO] /share/flink/flink-0.9-SNAPSHOT-wo-Yarn/flink-runtime/src/main/jav= a:-1: info: compiling > [INFO] /share/flink/flink-0.9-SNAPSHOT-wo-Yarn/flink-runtime/src/main/sca= la:-1: info: compiling > [INFO] Compiling 461 source files to /share/flink/flink-0.9-SNAPSHOT-wo-Y= arn/flink-runtime/target/classes at 1434059956648 > [ERROR] /share/flink/flink-0.9-SNAPSHOT-wo-Yarn/flink-runtime/src/main/sc= ala/org/apache/flink/runtime/taskmanager/TaskManager.scala:1768: error: typ= e OperatingSystemMXBean is not a member of package com.sun.management > [ERROR] asInstanceOf[com.sun.management.OperatingSystemMXBean= ]). > [ERROR] ^ > [ERROR] /share/flink/flink-0.9-SNAPSHOT-wo-Yarn/flink-runtime/src/main/sc= ala/org/apache/flink/runtime/taskmanager/TaskManager.scala:1787: error: typ= e OperatingSystemMXBean is not a member of package com.sun.management > [ERROR] val methodsList =3D classOf[com.sun.management.OperatingSyste= mMXBean].getMethods() > [ERROR] ^ > [ERROR] two errors found > [INFO] ------------------------------------------------------------------= ------ > [INFO] Reactor Summary: > [INFO]=20 > [INFO] flink .............................................. SUCCESS [ 14.= 447 s] > [INFO] flink-shaded-hadoop ................................ SUCCESS [ 2.= 548 s] > [INFO] flink-shaded-include-yarn .......................... SUCCESS [ 36.= 122 s] > [INFO] flink-shaded-include-yarn-tests .................... SUCCESS [ 36.= 980 s] > [INFO] flink-core ......................................... SUCCESS [ 21.= 887 s] > [INFO] flink-java ......................................... SUCCESS [ 16.= 023 s] > [INFO] flink-runtime ...................................... FAILURE [ 20.= 241 s] > [INFO] flink-optimizer .................................... SKIPPED > [hadoop@ibm-power-1 /]$ java -version > java version "1.7.0" > Java(TM) SE Runtime Environment (build pxp6470_27sr1fp1-20140708_01(SR1 F= P1)) > IBM J9 VM (build 2.7, JRE 1.7.0 Linux ppc64-64 Compressed References 2014= 0707_205525 (JIT enabled, AOT enabled) > J9VM - R27_Java727_SR1_20140707_1408_B205525 > JIT - tr.r13.java_20140410_61421.07 > GC - R27_Java727_SR1_20140707_1408_B205525_CMPRSS > J9CL - 20140707_205525) > JCL - 20140707_01 based on Oracle 7u65-b16 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)