InCNTRE / FlowScale

OpenFlow Based Load Balancer
http://incntre.github.io/FlowScale
Other
20 stars 11 forks source link

Hot swapping crashes with a NullPointer exception #36

Closed akhalfan closed 11 years ago

akhalfan commented 12 years ago

On random time intervals the hot swapping bundle crashes

Here's a sample :

java.lang.NullPointerException: null at edu.iu.incntre.flowscaleflowupdate.FlowscaleFlowUpdate.hotSwap(FlowscaleFlowUpdate.java:560) ~[bundlefile:na] at edu.iu.incntre.flowscaleflowupdate.FlowscaleFlowUpdate.access$8(FlowscaleFlowUpdate.java:489) ~[bundlefile:na] at edu.iu.incntre.flowscaleflowupdate.FlowscaleFlowUpdate$1.run(FlowscaleFlowUpdate.java:271) ~[bundlefile:na] at java.lang.Thread.run(Thread.java:679) [na:1.6.0_24]

akhalfan commented 11 years ago

updated flowscaleflowupdate code to include a check when lowports data structure returns null (see commit 92faa6e25834b0d0fe8bcfa5d46a5f0e29d72f58) to branch dev/0.6

akhalfan commented 11 years ago

it seems commit 2faa6e25834b0d0fe8bcfa5d46a5f0e29d72f58 resolved the issue, no null pointer crashes ever since