Greg Cooper wrote, On 10-03-2007 14:49:

> I have a stock installation of NAV 3.2.1 on a CentOS 4.4 box.  I am seeing
> this in the getDeviceData-stderr.log.  Any idea what it means?
> 
> java.lang.NullPointerException
>        at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(
> AbstractJdbc2Statement.java:53)
>        at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(
> AbstractJdbc1Statement.java:273)
>        at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(
> AbstractJdbc1Statement.java:259)
>        at no.ntnu.nav.Database.Database.update(Database.java:1004)
>        at OidTester.doTest(OidTester.java:308)
>        at OidTester.oidTest(OidTester.java:43)
>        at QueryNetbox.run(QueryNetbox.java:722)

> java.lang.NullPointerException
>        at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(
> AbstractJdbc1Statement.java:274)
>        at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(
> AbstractJdbc1Statement.java:259)
>        at no.ntnu.nav.Database.Database.update(Database.java:1004)
>        at no.ntnu.nav.Database.Database.update(Database.java:989)
>        at
> no.ntnu.nav.getDeviceData.dataplugins.Swport.SwportHandler.handleData(
> SwportHandler.java:305)
>        at DataContainersImpl.callDataHandlers(DataContainersImpl.java:69)
>        at QueryNetbox.run(QueryNetbox.java:806)

These are two NullPointerExceptions inside the PostgreSQL JDBC driver,
although I cannot say why they occur.  The first happens as getDeviceData
tries to update the database to register that a box supports a given SNMP OID.
 The second happens as NAV tries to update an entry in the swport table.

You'd have to look at the code of the JDBC driver to be able to see what could
cause NullPointerExceptions at those particular lines
(AbstractJdbc2Statement.java:53 and AbstractJdbc1Statement.java:274), but I
don't even know which version of the driver you are using.

-- 
mvh
Morten Brekkevold
UNINETT
_______________________________________________
nav-users mailing list
[email protected]
http://mailman.itea.ntnu.no/mailman/listinfo/nav-users

Reply via email to