On Feb 7, 2014, at 10:24 AM, jcat <j...@nysasounds.co.uk> wrote:

> I'm afraid it's not working still:
> 
> 
>  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:243)
>       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)
> - Running execution phase
> 
> 
> 
> Don't forget that the snmpifdescr was not actually null in this case, but
> "blank" or "empty"  - ""
> 
> Not sure if that will be the difference?

Is that happening with the latest code changes that I made ?

For each of the variables from the SQL query, the construstor of the 
SnmpInterfaceUpgrade class is checking if they are null, empty or spaces only. 
If that the case, the code will consider the variable null (to simplify the 
rest of the code). Then, if the ifDescr and ifName are both null at the same 
time, I'm assigning the string "null" to ifName in order to avoid issues when 
building the directories.

Alejandro.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
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