From owner-freebsd-java@FreeBSD.ORG Wed Dec 17 20:55:13 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 40DB350F for ; Wed, 17 Dec 2014 20:55:13 +0000 (UTC) Received: from nm13-vm0.bullet.mail.bf1.yahoo.com (nm13-vm0.bullet.mail.bf1.yahoo.com [98.139.213.79]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EADDC1BB4 for ; Wed, 17 Dec 2014 20:55:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1418849711; bh=0M4rGnf2OUe6oh6pW/MAQu+x8JDXNIWmc5qYSiTYwTE=; h=Date:From:To:Subject:From:Subject; b=otFjG+Qd1pomZUfEqUUzJgB/tKLqvQ2sVtHRig4j/RMriPvjzZFQTwR7Nwyq4kcX4b5dJB3iteG1t6IB4SfhHLtSINyPzjp78qtHrb5Xo6pVyZbGYMAyQDTqVmZj/r+BDkua2BGNTxJNyoujGH3/U0h1EJKpf1L2izuEtMi0pI37/AUD2VFhJuJyqM0YR2b18pCbOHExa1hY5Hi9GkX7xnpvkmzooZjRHuy0e71x8+OMKLX/hQAwTzJvdYGhxgJgu0lKqL+Ew2gNWiQ/eifam3EVoLIJ+u49f2sjKQ0vrVOnWDkJjTFekkBLz71dHwJXuHjB6c9r4pgxIkQwyaBABQ== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=gjna6cC+smuQPts6/F8oM2KtNMoXwCxqTfLXU9J9a2RpkCqou+ZxoYqAX4vbSGxi2pEnG88moSgXc+5Oce8VhYpdBlhhAZoUcehn0Rm2pNap+IqQdBRxl8ocMNxmzN6qzbkcXZAssje1B+8R4PL7iTvUasbJkQ2KPf3SgEiaOcf2tvN3yrCLQwVBDJLC84ppF5IrU3GS+Fyo9FiMv39WGaiOFiQqQAaZ5w/VJGh35R6X3WJuCbzWJJegJP0ra4sYNYkjWOYX9AM7NqkOMifsEwAVYqXogRUjAniCqCc52QEBPJfSB/Fs2gTGnoVN96x8gsIcIxmMwWzHkiaede0WcA==; Received: from [98.139.214.32] by nm13.bullet.mail.bf1.yahoo.com with NNFMP; 17 Dec 2014 20:55:11 -0000 Received: from [98.139.211.200] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 17 Dec 2014 20:55:11 -0000 Received: from [127.0.0.1] by smtp209.mail.bf1.yahoo.com with NNFMP; 17 Dec 2014 20:55:11 -0000 X-Yahoo-Newman-Id: 373903.83298.bm@smtp209.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 1VV.OLsVM1nbNoFPUSBT5TcaMLzFR_xnb6oGUrawdtXkSK2 BUVijpGl4_GEWA2dLCM8c3.S3l1pEP9KUcihMAHV4Arl4ztg5IZfbn2quOoF IIthshUY.geMMscx9hyfc5cbzwVhvlBGt.FsdaPoQy2l77dc0AkDbRIcIdby mhQx7iwtQgne4m3hmV6dT4__dTWHN_6F9mwZd37jqfY211my.n3gOoMFWKaO 1kurPZRI4oMM1H1W5xXOke1HfIq_AZ5AzATx9qZDlycQwDbIDb49p_W.gBmo hz.2DOJpudeef2f2vlMVSqFhPL2J9KG.Muine1FpjfZxZEH2s1Tayi3nxZ_z MMIqaHZCJ73PZUwcjQLd0GQPgM4NrrxVUVrL363OUwnjv5KKiU_w6RPhpC44 LvfblEwafsgw_i3pgBCbRHKi4654tboTOcjQQpQZKEMP4AgU.VVp.vhDAbhc rOz9LJvs6nw_2JEjkKOikWas2hBaMVhd2H1PEpEgd5dAKM55ZLGy0JdzzDAN O5QasbAQbQklrOkk_pbdNHxc_GueIH.cOZrV17H9NNKeRLfoIMxNoStG7_Gb c4jXWGl_i_Qa2h3s8f10M8My6JI5xkhPIacGNzB9CHXnB8SJanViw_PtQNU8 REPlDNMTiu_uxqmwbOuzrkC_IdnrSBvk1mFWFz29idksavVsd6.9ZLY8xDMR h5RetITa9ZK5O6G1X_dN1zh4qqSWUQBCeT0ODvHLEHoJxtNUNqME33Rc- X-Yahoo-SMTP: h3Xqg6.swBC0yI913RMMwp94grO_cg-- Message-ID: <5491EDAE.2010608@yahoo.com> Date: Wed, 17 Dec 2014 15:55:10 -0500 From: Paul Pathiakis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Paul Pathiakis via freebsd-java Subject: OpenJDK 1.7 has issues versus linux-sun-jdk17 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2014 20:55:13 -0000 Hi, I've been working with the OpenNMS people for about 3 weeks and we've narrowed it down to it being a problem with OpenJDK1.7. Please note the following from Ron Roskens at the OpenNMS project: On 12/14/2014 15:53, Ronald Roskens wrote: >> On Dec 13, 2014, at 10:27 PM, Ronald Roskens wrote: >> >> I was able to get the unit tests after that to run through to completion. >> >> I’ve checked my fixes for NMS-7254, NMS-7257, and NMS-7260 into a branch roskens/freebsd-build in the repository, and its just starting it run through the bamboo CI process. >> >> If its without any errors I’ll see about getting it merged into master & develop branches. >> >> I am cautiously optimistic that you could run a build of OpenNMS 14.0.2 on FreeBSD 10.1 with OpenJDK 1.7.0_71-b14. I think any further problems uncovered would likely be FreeBSD JVM specific issues with OpenJDK. >> >> Ron > My optimism has been greatly diminished because on running the build after about 10 minutes, the JVM crashed with a fatal error: > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x0000000803a4d4ae, pid=84602, tid=35353228288 > # > # JRE version: OpenJDK Runtime Environment (7.0-b14) (build 1.7.0_71-b14) > # Java VM: OpenJDK 64-Bit Server VM (24.71-b01 mixed mode bsd-amd64 compressed oops) > # Problematic frame: > # j java.net.SocketException.(Ljava/lang/String;)V+0 > # > # Core dump written. Default location: /cores/core or core.84602 > > > > When I tried to run OpenNMS with the linux-sun-jdk17 it runs, but I got this error in web.log when I tried to access the web interface. > > 2014-12-14 14:17:14,213 WARN [Main] o.e.j.u.c.AbstractLifeCycle: FAILED org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@131fc7e: java.io.IOException: Function not implemented > java.io.IOException: Function not implemented > at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method) ~[?:1.7.0_71] > at sun.nio.ch.EPollArrayWrapper.(EPollArrayWrapper.java:130) ~[?:1.7.0_71] > at sun.nio.ch.EPollSelectorImpl.(EPollSelectorImpl.java:68) ~[?:1.7.0_71] > at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36) ~[?:1.7.0_71] > at java.nio.channels.Selector.open(Selector.java:227) ~[?:1.7.0_71] > … > > Which I take to mean that the FreeBSD Linux kernel emulator doesn’t implement the epoll interface. > > Creating $OPENNMS_HOME/etc/opennms.conf with: > ADDITIONAL_MANAGER_OPTIONS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider" > > Then its up and running. > > Ron Please note that line just before his signature. "Then its up and running." Ron managed to get FreeBSD 10.1 running with OpenNMS 1.14.0.2 and killed it after 4 hours of it running in a stable fashion. However, his attempts to get it running with FreeBSD 10.1 and openjdk17 1.7.0_71-b14 failed. Could someone please push this up to the OpenJDK people and figure out what is wrong? Source: http://sourceforge.net/projects/opennms/?source=typ_redirect 1) Unpack it 2) install pkgs jicmp, jicmp6, jrrd, iplike and postgresql9.x 3) Go into the source directory. 4) set JAVA_HOME to the path given by 'which java' 5) set JAVA_VENDOR to openjdk 6) ./compile.pl 7) ./assemble.pl -Dopennms.home=/usr/local/opennms 8) copy from the /targets/ opennms-1.14.x.x.tar.gz to /usr/local/opennms 9) Go to the install directory and unpack it. 10) from the install directory run ./bin/runjava -s 11) same directory run ./bin/install -dis 12) since it's not a port, start it with: ./bin/opennms start 13) browse to http://localhost:8980/opennms/ *shrug* I believe I've done all the leg work that I can on this. I'm not someone who can debug the openjdk 1.7 and figure out why this is bombing out. So, I'm asking, in the truest sense of the FreeBSD community, please help. Thank you, P. 8) configure postgresql to have a role for opennms and password 9)