Date: Thu, 12 Feb 2015 11:07:04 -0500 From: Paul Pathiakis <pathiaki2@yahoo.com> To: Greg Lewis <glewis@eyesbeyond.com>, Jean-Yves Moulin <jym@baaz.fr> Cc: freebsd-java <freebsd-java@freebsd.org> Subject: Re: OpenJDK 1.7 has issues versus linux-sun-jdk17 Message-ID: <54DCCFA8.7000703@yahoo.com> In-Reply-To: <20150212082159.GA20132@misty.eyesbeyond.com> References: <5491EDAE.2010608@yahoo.com> <E1961058-486E-4D32-ABA7-50A831F67969@baaz.fr> <20150212082159.GA20132@misty.eyesbeyond.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Greg, Better late than..... Actually, no. Once it get's running, it will crash, usually, within 10 minutes. Sometimes, just activating the GUI web page will make it crash faster. I thought I had enclosed the instructions on how to set this up in a later/earlier post. First, you'll need an instance of Postgresql running and access to it. Here's the first part: (I will be posting this to the OpenNMS wiki for building on FreeBSD 10+ ) So, do the following: Download the software by going to the software www.sourceforge.net/opennms <http://www.sourceforge.net/opennms> site and saving the file when prompted Move it to a 'build' directory Unpack gunzip < opennms-source-<ver>.tar.gz | tar xpf - Install supporting packages pkg install iplike pkg install jicmp jicmp6 pkg install git pkg install jrrdtool pkg install bash set the environment variables: JAVA_HOME = /usr/local JAVA_VENDOR = openjdk in the 'build' directory, ./compile.pl ./assemble.pl -Dopennms.home=/usr/local/opennms once this completes, mkdir /usr/local/opennms copy the new version from targets directory, it should be named something like: opennms-<version>.tar.gz, to /usr/local/opennms unpack < opennms-<versions>.tar.gz | tar xpf - create a role opennms in the PGSQL database... Give it a password and the ability to login create a database named opennms and with opennms as the owner go into the the opennms etc directory: /usr/local/opennms/etc Edit the opennms-datasouce.xml file Search for the string jdbc-data. Search for the string localhost. If postgresql is on a remote machine, replace localhost with that address Search for localhost again and repeat the the replacement Search for postgres change the instance to pgsql Write out the file. Go back up to /usr/local/opennms run: ./bin/runjava -s (Success looks like: runjava: Looking for an appropriate JRE... runjava: Checking for an appropriate JRE in JAVA_HOME... runjava: skipping... JAVA_HOME not set runjava: Checking JRE in user's path: "/usr/local/bin/java"... runjava: found an appropriate JRE in user's path: "/usr/local/bin/java" runjava: value of "/usr/local/bin/java" stored in configuration file . ) Run the schema installer: ./bin/install -dis (the output is huge while it creates tables, schemas, etc Start opennms with: ./bin/opennms start I hope this is good. Let me know if you have issues. This is reproducible with this software. It will crash. However, I just noticed they upgraded to 1.15 on the download site and this was still occurring on the last version of 1.14. P. PS - I'd like to see this work soon as, not only do I want to create it on their Wiki, but I want to create and maintain the port and its dependencies. On 02/12/2015 03:21, Greg Lewis wrote: > On Tue, Dec 23, 2014 at 09:42:45AM +0100, Jean-Yves Moulin wrote: >>> On 17 Dec 2014, at 21:55 , Paul Pathiakis via freebsd-java <freebsd-java@freebsd.org> wrote: >>> >>>> # 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.<init>(Ljava/lang/String;)V+0 >>>> # >>>> # Core dump written. Default location: /cores/core or core.84602 >>>> >> Interesting, we are tracking exactly the same kind of issue (Segfault on SocketException.init) with our home made applications. >> >> The same java binary runs fine on Linux-openjdk7 (Linux OS or FreeBSD OS). >> >> Did you got a response from OpenJDK team ? > Late reply on this. Is it possible to narrow this down to a simpler test > case than "set up OpenNMS and run it for ten minutes"? I assume one has to > actually do more than just run it, since the exception is likely a result > of some kind of network traffic. > > If not that, a wiki or something on how to set up OpenNMS and provoke the > problem would be a big help. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54DCCFA8.7000703>