OpenNMS Upgrader fails with java.lang.reflect.InvocationTargetException

Description

Installation fails when trying to configure with:

/opt/opennms/bin/install -dis

The database setup runs OK, but then the application fails with:

==============================================================================

OpenNMS Upgrader

==============================================================================
java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:525)at java.lang.Thread.run(Thread.java:748)

I subsequently discovered that OpenJDK was not installed as a dependency of the installation of OpenNMS, as expected from the installation instructions (see here).

I installed the JDK as follows:

yum install java-1.8.0-openjdk-develop

The installation successfully ran to completion.

Environment

Centos 7

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Alejandro Galue August 22, 2018 at 3:30 PM

I strongly encourage you to avoid the usage of OpenJDK with OpenNMS. Please use Oracle JDK 8, and if it fails with Oracle JDK we will take a look.

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

PagerDuty

Created April 8, 2018 at 8:07 AM
Updated September 21, 2021 at 7:25 PM