Hi Alejandro,

Here you go!

Processing SnmpInterfaceRrdMigratorOnline: Merge SNMP Interface directories
(Online Version): NMS-6056
- Running pre-execution phase
  OpenNMS Home: /opennms/current
  OpenNMS Version: 1.12.3
  Is RRDtool enabled? false
  Is storeByGroup enabled? true
  RRD Extension: .jrb
  RRD Strategy: org.opennms.netmgt.rrd.jrobin.JRobinRrdStrategy
  Connecting to jdbc:postgresql://localhost:5432/opennms
  Error: can't retrieve the required data from the OpenNMS Database or there
were problems while processing them.
  Reason(java.lang.NullPointerException): Unknown
java.lang.NullPointerException
        at java.io.File.<init>(File.java:360)
        at
org.opennms.upgrade.implementations.SnmpInterfaceUpgrade.getOldInterfaceDir(SnmpInterfaceUpgrade.java:145)
        at
org.opennms.upgrade.implementations.SnmpInterfaceUpgrade.shouldMerge(SnmpInterfaceUpgrade.java:238)
        at
org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.getInterfacesToMerge(SnmpInterfaceRrdMigratorOnline.java:246)
        at
org.opennms.upgrade.implementations.SnmpInterfaceRrdMigratorOnline.preExecute(SnmpInterfaceRrdMigratorOnline.java:131)
        at org.opennms.upgrade.support.Upgrade.executeUpgrade(Upgrade.java:138)
        at org.opennms.upgrade.support.Upgrade.execute(Upgrade.java:234)
        at org.opennms.upgrade.support.Upgrade.main(Upgrade.java:260)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:362)
        at java.lang.Thread.run(Thread.java:744)


In the end, I've just done through the DB and and looked at every entry that
might be a bit dodgy for a file name.
It looks like the combination that is causing this error is for snmp
interfaces that match the following:

snmpifdescr='' and snmpifname is null

If I delete those from the test DB I've got running, the error goes away :)

I guess in a ideal world the parser would simply "pass" or "skip on
combination like this.  Is that possible?



Cheers,
jcat



--
View this message in context: 
http://opennms.530661.n2.nabble.com/1-12-Upgrade-tools-failure-for-many-rrd-files-tp7585683p7585790.html
Sent from the OpenNMS - devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to