MinimServer Forum
refreshing MinimWatch with an invalid subnet crashes - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: refreshing MinimWatch with an invalid subnet crashes (/showthread.php?tid=2269)



refreshing MinimWatch with an invalid subnet crashes - winxi - 16-03-2015 20:15

Hi, I recently set up MinimServer in a new network environment and came across the following MinimWatch crash:
1) Start MinimWatch with an invalid ohnet.subnet property set. MinimWatch will show the red icon with a 'subnet not found'- message, as expected.
2) Click 'Refresh'. MinimWatch will crash with a NullPointerException.


RE: refreshing MinimWatch with an invalid subnet crashes - simoncn - 16-03-2015 22:24

(16-03-2015 20:15)winxi Wrote:  Hi, I recently set up MinimServer in a new network environment and came across the following MinimWatch crash:
1) Start MinimWatch with an invalid ohnet.subnet property set. MinimWatch will show the red icon with a 'subnet not found'- message, as expected.
2) Click 'Refresh'. MinimWatch will crash with a NullPointerException.

Thanks for letting me know. Can you post the full stack trace (available in the log window)?


RE: refreshing MinimWatch with an invalid subnet crashes - winxi - 16-03-2015 22:39

(16-03-2015 22:24)simoncn Wrote:  Thanks for letting me know. Can you post the full stack trace (available in the log window)?
Of course:

java.lang.NullPointerException
at org.jminim.lib.ObserverService.refreshLists(ObserverService.java:266)
at org.jminim.lib.ObserverService.access$700(ObserverService.java:42)
at org.jminim.lib.ObserverService$ObserverImpl.refresh(ObserverService.java:454)
at com.minimserver.lib.TrayControl$TrayView$10$1.action(TrayControl.java:2329)
at com.minimserver.lib.TrayControl$Action.run(TrayControl.java:1156)
at org.jminim.core.RuntimeImpl$1.run(RuntimeImpl.java:1295)


RE: refreshing MinimWatch with an invalid subnet crashes - simoncn - 18-03-2015 12:41

(16-03-2015 22:39)winxi Wrote:  Of course:

java.lang.NullPointerException
at org.jminim.lib.ObserverService.refreshLists(ObserverService.java:266)
at org.jminim.lib.ObserverService.access$700(ObserverService.java:42)
at org.jminim.lib.ObserverService$ObserverImpl.refresh(ObserverService.java:454)
at com.minimserver.lib.TrayControl$TrayView$10$1.action(TrayControl.java:2329)
at com.minimserver.lib.TrayControl$Action.run(TrayControl.java:1156)
at org.jminim.core.RuntimeImpl$1.run(RuntimeImpl.java:1295)

This problem is now fixed in MinimWatch update 31. There are two changes:

1) Fix NullPointerException when Refresh is selected and ohNet hasn't been started
2) Show Relaunch instead of Refresh after a startup error

Thanks for helping me find and fix this problem!


RE: refreshing MinimWatch with an invalid subnet crashes - winxi - 19-03-2015 09:03

(18-03-2015 12:41)simoncn Wrote:  This problem is now fixed in MinimWatch update 31. There are two changes:

1) Fix NullPointerException when Refresh is selected and ohNet hasn't been started
2) Show Relaunch instead of Refresh after a startup error

Thanks for helping me find and fix this problem!

Many thanks for the quick fix!