davidyan | 2 Sep 2004 15:41
Picon

java.lang.NullPointerException crashed opennms 1.1.3

Hi Guys: 

I am runninh opennms-1.1.3 with j2sdk1.4.2_05 on debian. I am experiencing 
that opennms gets crashed when such an event "java.lang.NullPointerException 
at 
org.opennms.netmgt.notifd.NotificationTask.run(NotificationTask.java:248)" 
happens. 

Do some of you have same experience? Bug in "NotificationTask.java"?  I 
really appreciate any tips from you. 

Here is the shorted log info from output.log 

...
java.lang.NullPointerException
       at 
org.opennms.netmgt.notifd.NotificationTask.run(NotificationTask.java:248) 

Unexpected Signal : 11 occurred at PC=0x5F083F
Function=(null)+0x5F083F
Library=/usr/lib/j2sdk1.4.2_05/jre/lib/i386/server/libjvm.so 

NOTE: We are unable to locate the function name symbol for the error
     just occurred. Please refer to release documentation for possible
     reason and solutions. 

Current Java thread:
...... 

 -----
(Continue reading)

Tarus Balog | 2 Sep 2004 17:58
Favicon

Re: java.lang.NullPointerException crashed opennms 1.1.3


On Sep 2, 2004, at 9:41 AM, davidyan <at> vianet.ca wrote:

> Hi Guys:
> I am runninh opennms-1.1.3 with j2sdk1.4.2_05 on debian.

> java.lang.NullPointerException
>       at  
> org.opennms.netmgt.notifd.NotificationTask.run(NotificationTask.java: 
> 248)
> Unexpected Signal : 11 occurred at PC=0x5F083F
>

We are seeing this will the 1.4.2 JVM, but it could be related to other  
memory/file issues. How large is the network you are monitoring, in  
terms of number of interfaces? What size system are you running this on  
(memory, CPU)?

-T
________________________________________________________________________ 
___
Tarus Balog, OpenNMS Maintainer			Main:		+1 919 545 2553
Blast Consulting Company				Fax:			+1 503-961-7746
Email: tarus <at> opennms.org				URL: http://www.opennms.org
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
(Continue reading)

davidyan | 2 Sep 2004 18:42
Picon

Re: java.lang.NullPointerException crashed opennms 1.1.3

Hi There: 

I am trying to monitor our network equipments consisting of Switches, 
routers, and UPSs. There are about 70 nodes, but I am not sure how many 
interfaces on them exactly, probably over 1000 interfaces with IP and 
without IPs. 

CPU: Pentinum 2G
Memory: 512M 

I know a little about JAVA, but I still tried to go to 
"NotificationTask.java" and found something strange (I am not sure) as 
follows:
... 

private SortedMap m_notifTree;
...
m_notifTree.remove(task);
... 

But I cannot find initialization of  m_notifTree. problem or not? 

Thanks. 

By the way, I have some thinking (good or bad) about opennms after a period 
of time of running opennms. Talk later after I 'rewire' them. 

 --
David 

(Continue reading)

DJ Gregor | 2 Sep 2004 20:01

Re: Re: java.lang.NullPointerException crashed opennms 1.1.3

That looks like the problem to me.  m_notifTree does not ever appear to  
be initialized in NotificationTask, and it is private so no other  
classes can touch it.  Anyone know why we haven't seen this problem  
more often?

Does anyone else agree/disagree?

	- djg

On Sep 2, 2004, at 12:42 PM, davidyan <at> vianet.ca wrote:

> Hi There:
> I am trying to monitor our network equipments consisting of Switches,  
> routers, and UPSs. There are about 70 nodes, but I am not sure how  
> many interfaces on them exactly, probably over 1000 interfaces with IP  
> and without IPs.
> CPU: Pentinum 2G
> Memory: 512M
> I know a little about JAVA, but I still tried to go to  
> "NotificationTask.java" and found something strange (I am not sure) as  
> follows:
> ...
> private SortedMap m_notifTree;
> ...
> m_notifTree.remove(task);
> ...
> But I cannot find initialization of  m_notifTree. problem or not?
> Thanks.
> By the way, I have some thinking (good or bad) about opennms after a  
> period of time of running opennms. Talk later after I 'rewire' them.
(Continue reading)

Tarus Balog | 3 Sep 2004 19:55
Favicon

Re: Re: java.lang.NullPointerException crashed opennms 1.1.3


On Sep 2, 2004, at 2:01 PM, DJ Gregor wrote:

> That looks like the problem to me.  m_notifTree does not ever appear  
> to be initialized in NotificationTask, and it is private so no other  
> classes can touch it.  Anyone know why we haven't seen this problem  
> more often?

This is a bug, and I have no idea why we haven't seen it more often.

Anyone want to open a bug report in bugzilla? (grin)

-T
________________________________________________________________________ 
___
Tarus Balog, OpenNMS Maintainer			Main:		+1 919 545 2553
Blast Consulting Company				Fax:			+1 503-961-7746
Email: tarus <at> opennms.org				URL: http://www.opennms.org
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Wes Hall | 4 Sep 2004 03:32

build questions

I've just tried to build the latest CVS  to install into /opt2/opennms. 
1. The first build installed into ./dist so I'm assuming it doesn't 
check ~/opennms-global.properties
2.  So I check the README.build and edit a build.properties file with 
the following line:
<property name="install.dir" value="/opt2/opennms"/>
     run build.sh all  and everything remains the same.
3.  check the build.xml file which README.build says not to edit and add 
that line just before the orginal install.dir line.  Everything appears 
ok but it builds in 6 secs.  That appears to be to quick it usually 
takes ~1 min 50 secs.

I don't know java so here are my questions:
1.  Why didn't the build.sh all command read my build.properties file in 
the same directory?
2.  Since it only took 6 seconds after my edit to build.xml and there 
were no indication of files that changed can I assume that the build 
system doesn't work like make.  By that I mean it doesn't replace files 
if a change has been made in a conf file.
3.  Can we use the include-url syntax in any files in the etc 
directory?  Everytime I update I have to manual edit 10 -15 files before 
it is ready to go.

Thank You

wes

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
(Continue reading)

DJ Gregor | 4 Sep 2004 05:11

Re: build questions

Hi Wes,

You did the right thing by creating a build.properties file in the same 
directory as build.xml.  install.dir is also the right property (you'll 
see it referenced in tools/packages/opennms/opennms.spec.in and 
debian/rules).  In #2, however, you said that you did a "build.sh all" 
and everything remained the same.  This doesn't perform an install.  
You need to do "./build.sh install".  After you change install.dir and 
do "./build.sh install", you should see it install in the right place.  
One caveat: do a "./build.sh clean" after changing build.properties, as 
some files are "filtered" (in ant speak) and contain references to the 
install directory.

For reference, here's the different between the "all" and "install" 
targets (from running build.sh with no arguments for usage 
information):

      [java]  all       build everything (except documentation)
      [java]  install   build "all", and install

So to recap and answer your questions: 1) ant should be reading your 
build.properties file, but if you didn't do a "./build.sh install", you 
wouldn't see it installing into the new location; 2) ant does work like 
make, with the advantage that ant can track a change to any file in the 
build system and update only those files that depend on that source 
file, without having to be recursive--that's why it only took 6 seconds 
(well, that, and because nothing had changed); 3) I have no idea.  
Hopefully someone who is more cluefull about the configuration files 
can help you on that one.  If you don't get an answer here after a few 
days, I would suggest posting your question to opennms-discuss.  Check 
(Continue reading)

Wes Hall | 4 Sep 2004 06:17

Re: build questions

Thanks for the info on the build.properties file and the info on the 
clean  target.  When I said things didn't change I was looking at output 
from the build.sh info.   What you said about ant makes total sense 
guess I was sidetracked by the 
build.properties/.opennms-global.properties problems. 

Finally got it all to build and install correctly but it required edits 
to the build.xml file for install.dir and the servlet directory.
I'll go thru all the steps again using the build.sh clean and 
build.properties and post back with any problems or questions. 

Thank You every bit helps
wes

DJ Gregor wrote:

> Hi Wes,
>
> You did the right thing by creating a build.properties file in the 
> same directory as build.xml.  install.dir is also the right property 
> (you'll see it referenced in tools/packages/opennms/opennms.spec.in 
> and debian/rules).  In #2, however, you said that you did a "build.sh 
> all" and everything remained the same.  This doesn't perform an 
> install.  You need to do "./build.sh install".  After you change 
> install.dir and do "./build.sh install", you should see it install in 
> the right place.  One caveat: do a "./build.sh clean" after changing 
> build.properties, as some files are "filtered" (in ant speak) and 
> contain references to the install directory.
>
> For reference, here's the different between the "all" and "install" 
(Continue reading)

Phil Pierotti | 6 Sep 2004 01:13
Picon

RE: No HTML Display after OpenNMS install


linux:~ # rpm -qi opennms
Name        : opennms                      Relocations: (not relocatable)
Version     : 1.1.3                             Vendor: (none)
Release     : 2                             Build Date: Wed Aug  4 
00:49:01 2004
Install date: Sun Aug 29 16:51:01 2004      Build Host: kolth-1-rsm
Group       : Applications/System           Source RPM: 
opennms-1.1.3-2.src.rpm
Size        : 24140356                         License: LGPL/GPL
Signature   : (none)
URL         : ftp://opennms.org/pub/releases/OpenNMS/
Summary     : Enterprise-level network management platform
Description :
OpenNMS is a network management package.
This is the 1.0 stable tree.
Distribution: (none)

linux:~ # rpm -q --whatprovides tomcat
jakarta-tomcat-5.0.19-13

linux:~ # rpm -qi jakarta-tomcat
Name        : jakarta-tomcat               Relocations: (not relocatable)
Version     : 5.0.19                            Vendor: SuSE Linux AG, 
Nuernberg, Germany
Release     : 13                            Build Date: Mon Apr  5 
07:05:00 2004
Install date: Sun Aug 29 14:51:44 2004      Build Host: alvarez.suse.de
Group       : Productivity/Networking/Web/Frontends   Source RPM: 
jakarta-tomcat-5.0.19-13.src.rpm
(Continue reading)

Flavio Antelo | 6 Sep 2004 10:10
Picon

Re: No HTML Display after OpenNMS install

Have you tried to point your browser to http://localhost:8080/opennms ?.

By default on port 8180 is installed mx4j http adaptor, not the tomcat 
server ,wich is running on port 8080.

Phil Pierotti wrote:
>  
> linux:~ # rpm -qi opennms
> Name        : opennms                      Relocations: (not relocatable)
> Version     : 1.1.3                             Vendor: (none)
> Release     : 2                             Build Date: Wed Aug  4 
> 00:49:01 2004
> Install date: Sun Aug 29 16:51:01 2004      Build Host: kolth-1-rsm
> Group       : Applications/System           Source RPM: 
> opennms-1.1.3-2.src.rpm
> Size        : 24140356                         License: LGPL/GPL
> Signature   : (none)
> URL         : ftp://opennms.org/pub/releases/OpenNMS/
> Summary     : Enterprise-level network management platform
> Description :
> OpenNMS is a network management package.
> This is the 1.0 stable tree.
> Distribution: (none)
> 
> 
> linux:~ # rpm -q --whatprovides tomcat
> jakarta-tomcat-5.0.19-13
> 
> linux:~ # rpm -qi jakarta-tomcat
> Name        : jakarta-tomcat               Relocations: (not relocatable)
(Continue reading)


Gmane