Hi, I just upgraded my JNRPE from 2.3.0 to 2.3.0.1. I ran the installer using:
I noticed it replaced the jnrpe.ini but not the plugins folder. That's fine, once I had a backup of my plugins and jnrpe.ini.
However, I can't install it anymore. And at this moment I don't have any plugins rather than the base directory which came pre-installed. Here is the error I'm seeing:
WARNING|wrapper|Service jnrpe|14-03-17 15:00:53|YAJSW: yajsw-stable-11.04
WARNING|wrapper|Service jnrpe|14-03-17 15:00:53|OS : Linux/3.5.0-47-generic/amd64
WARNING|wrapper|Service jnrpe|14-03-17 15:00:53|JVM : Oracle Corporation/1.7.0_51
INFO|wrapper|Service jnrpe|14-03-17 15:00:53|working dir /usr/local/JNRPE
INFO|wrapper|Service jnrpe|14-03-17 15:00:53|exec:/usr/lib/jvm/java-7-oracle/jre/bin/java -classpath /usr/local/JNRPE/wrapper/./wrapperApp.jar:/usr/local/JNRPE/lib/xml-apis-1.0.b2.jar:/usr/local/JNRPE/lib/slf4j-jcl-1.6.4.jar:/usr/local/JNRPE/lib/slf4j-api-1.6.4.jar:/usr/local/JNRPE/lib/jnrpe-server-2.0.3.jar:/usr/local/JNRPE/lib/jcheck_nrpe-2.0.3.jar:/usr/local/JNRPE/lib/commons-configuration-1.9.jar:/usr/local/JNRPE/lib/commons-codec-1.8.jar:/usr/local/JNRPE/lib/jnrpe-lib-2.0.3.jar:/usr/local/JNRPE/lib/dnsjava-2.1.1.jar:/usr/local/JNRPE/lib/jline-2.11.jar:/usr/local/JNRPE/lib/plexus-utils-1.5.6.jar:/usr/local/JNRPE/lib/commons-net-3.3.jar:/usr/local/JNRPE/lib/junit-3.8.2.jar:/usr/local/JNRPE/lib/log4j-1.2.16.jar:/usr/local/JNRPE/lib/commons-logging-1.1.1.jar:/usr/local/JNRPE/lib/jnrpe-server-2.0.3.1.jar:/usr/local/JNRPE/lib/commons-cli-2.0-mahout.jar:/usr/local/JNRPE/lib/dom4j-1.6.1.jar:/usr/local/JNRPE/lib/commons-lang-2.6.jar:/usr/local/JNRPE/lib/jsch-0.1.50.jar:/usr/local/JNRPE/lib/commons-io-2.4.jar:/usr/local/JNRPE/etc -Dapp.home=/usr/local/JNRPE -Xrs -Dwrapper.service=true -Dwrapper.console.visible=false -Dwrapper.port=15003 -Dwrapper.key=5425036365124730515 -Dwrapper.teeName=5425036365124730515$1395079253259 -Dwrapper.tmp.path=/usr/local/JNRPE/wrapper -Djna_tmpdir=/usr/local/JNRPE/wrapper -Dwrapper.config=/usr/local/JNRPE/wrapper/etc/wrapper.conf -Dwrapper.visible=false -Dwrapper.pidfile=/run/wrapper.jnrpe.pid org.rzo.yajsw.app.WrapperJVMMain
INFO|wrapper|Service jnrpe|14-03-17 15:00:53|started process 21546
INFO|wrapper|Service jnrpe|14-03-17 15:00:53|started process with pid 21546
INFO|21546/0|Service jnrpe|14-03-17 15:00:55|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|21546/0|Service jnrpe|14-03-17 15:00:55|java.lang.reflect.InvocationTargetException
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at java.lang.reflect.Method.invoke(Method.java:606)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:53)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:36)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55|Caused by: java.lang.NullPointerException
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.utils.PluginRepositoryUtil.parsePluginDefinition(PluginRepositoryUtil.java:198)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.utils.PluginRepositoryUtil.loadFromXmlPluginPackageDefinitions(PluginRepositoryUtil.java:105)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.utils.PluginRepositoryUtil.loadFromXmlPluginPackageDefinitions(PluginRepositoryUtil.java:70)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.server.plugins.DynaPluginRepository.configurePlugins(DynaPluginRepository.java:128)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.server.plugins.DynaPluginRepository.load(DynaPluginRepository.java:150)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.server.JNRPEServer.loadPluginDefinitions(JNRPEServer.java:287)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.server.JNRPEServer.main(JNRPEServer.java:358)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| ... 6 more
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|waitpid 21546 59136
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|exit code posix process: 59136 application: 0
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|restart process due to default exit code rule
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|shutdown wrapper due to exit code rule
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|process not in state RUNNING -> Delaying stop
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|shutdown wrapper due to exit code rule
Do you know what it could be?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I just upgraded my JNRPE from 2.3.0 to 2.3.0.1. I ran the installer using:
I noticed it replaced the jnrpe.ini but not the plugins folder. That's fine, once I had a backup of my plugins and jnrpe.ini.
However, I can't install it anymore. And at this moment I don't have any plugins rather than the base directory which came pre-installed. Here is the error I'm seeing:
WARNING|wrapper|Service jnrpe|14-03-17 15:00:53|YAJSW: yajsw-stable-11.04
WARNING|wrapper|Service jnrpe|14-03-17 15:00:53|OS : Linux/3.5.0-47-generic/amd64
WARNING|wrapper|Service jnrpe|14-03-17 15:00:53|JVM : Oracle Corporation/1.7.0_51
INFO|wrapper|Service jnrpe|14-03-17 15:00:53|working dir /usr/local/JNRPE
INFO|wrapper|Service jnrpe|14-03-17 15:00:53|exec:/usr/lib/jvm/java-7-oracle/jre/bin/java -classpath /usr/local/JNRPE/wrapper/./wrapperApp.jar:/usr/local/JNRPE/lib/xml-apis-1.0.b2.jar:/usr/local/JNRPE/lib/slf4j-jcl-1.6.4.jar:/usr/local/JNRPE/lib/slf4j-api-1.6.4.jar:/usr/local/JNRPE/lib/jnrpe-server-2.0.3.jar:/usr/local/JNRPE/lib/jcheck_nrpe-2.0.3.jar:/usr/local/JNRPE/lib/commons-configuration-1.9.jar:/usr/local/JNRPE/lib/commons-codec-1.8.jar:/usr/local/JNRPE/lib/jnrpe-lib-2.0.3.jar:/usr/local/JNRPE/lib/dnsjava-2.1.1.jar:/usr/local/JNRPE/lib/jline-2.11.jar:/usr/local/JNRPE/lib/plexus-utils-1.5.6.jar:/usr/local/JNRPE/lib/commons-net-3.3.jar:/usr/local/JNRPE/lib/junit-3.8.2.jar:/usr/local/JNRPE/lib/log4j-1.2.16.jar:/usr/local/JNRPE/lib/commons-logging-1.1.1.jar:/usr/local/JNRPE/lib/jnrpe-server-2.0.3.1.jar:/usr/local/JNRPE/lib/commons-cli-2.0-mahout.jar:/usr/local/JNRPE/lib/dom4j-1.6.1.jar:/usr/local/JNRPE/lib/commons-lang-2.6.jar:/usr/local/JNRPE/lib/jsch-0.1.50.jar:/usr/local/JNRPE/lib/commons-io-2.4.jar:/usr/local/JNRPE/etc -Dapp.home=/usr/local/JNRPE -Xrs -Dwrapper.service=true -Dwrapper.console.visible=false -Dwrapper.port=15003 -Dwrapper.key=5425036365124730515 -Dwrapper.teeName=5425036365124730515$1395079253259 -Dwrapper.tmp.path=/usr/local/JNRPE/wrapper -Djna_tmpdir=/usr/local/JNRPE/wrapper -Dwrapper.config=/usr/local/JNRPE/wrapper/etc/wrapper.conf -Dwrapper.visible=false -Dwrapper.pidfile=/run/wrapper.jnrpe.pid org.rzo.yajsw.app.WrapperJVMMain
INFO|wrapper|Service jnrpe|14-03-17 15:00:53|started process 21546
INFO|wrapper|Service jnrpe|14-03-17 15:00:53|started process with pid 21546
INFO|21546/0|Service jnrpe|14-03-17 15:00:55|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|21546/0|Service jnrpe|14-03-17 15:00:55|java.lang.reflect.InvocationTargetException
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at java.lang.reflect.Method.invoke(Method.java:606)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:53)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:36)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55|Caused by: java.lang.NullPointerException
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.utils.PluginRepositoryUtil.parsePluginDefinition(PluginRepositoryUtil.java:198)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.utils.PluginRepositoryUtil.loadFromXmlPluginPackageDefinitions(PluginRepositoryUtil.java:105)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.utils.PluginRepositoryUtil.loadFromXmlPluginPackageDefinitions(PluginRepositoryUtil.java:70)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.server.plugins.DynaPluginRepository.configurePlugins(DynaPluginRepository.java:128)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.server.plugins.DynaPluginRepository.load(DynaPluginRepository.java:150)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.server.JNRPEServer.loadPluginDefinitions(JNRPEServer.java:287)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| at it.jnrpe.server.JNRPEServer.main(JNRPEServer.java:358)
INFO|21546/0|Service jnrpe|14-03-17 15:00:55| ... 6 more
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|waitpid 21546 59136
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|exit code posix process: 59136 application: 0
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|restart process due to default exit code rule
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|shutdown wrapper due to exit code rule
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|process not in state RUNNING -> Delaying stop
INFO|wrapper|Service jnrpe|14-03-17 15:00:55|shutdown wrapper due to exit code rule
Do you know what it could be?
Thanks
Just an update... it seams something with the base plugins. I just removed the plugins/base directory and the server starts ok.
That's weird. Can you please try to install JNRPE in a NEW, empty directory and see if it works ?