[OPNFLWPLUG-117] java.lang.Long.parseLong throws NumberFormatException for input string on switch OFPT_HELLO Created: 17/Apr/14  Updated: 27/Sep/21  Resolved: 19/Aug/14

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Ermin Sakic Assignee: Ermin Sakic
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Issue Links:
Blocks
blocks OPNFLWPLUG-110 Milestone: AD-SAL Compatibility adapt... Resolved
External issue ID: 770

 Description   

2014-04-17 12:50:41.121 CEST [nioEventLoopGroup-9-1] INFO o.o.o.p.i.c.PublishingChannelInitializer - Incoming connection from (remote address): /10.162.149.170:38494 --> :6633
2014-04-17 12:50:41.121 CEST [nioEventLoopGroup-9-1] INFO o.o.o.p.i.c.PublishingChannelInitializer - Incoming connection accepted - building pipeline
2014-04-17 12:50:41.153 CEST [nioEventLoopGroup-9-1] INFO o.o.o.p.i.c.ConnectionAdapterImpl - Hello received / branch
2014-04-17 12:50:41.262 CEST [md-sal-binding-notification-3] ERROR o.o.c.sal.binding.impl.NotifyTask - Unhandled exception thrown by listener: org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker@553ab7a4
java.lang.NumberFormatException: For input string: "14561112084339025498"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_51]
at java.lang.Long.parseLong(Long.java:444) ~[na:1.7.0_51]
at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_51]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADMacAddress(NodeMapping.java:360) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNodeProperties(NodeMapping.java:334) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNodeProperties(NodeMapping.java:320) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter.onNodeUpdated(InventoryAndReadAdapter.java:634) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker.onNotification(InventoryAndReadAdapter$$Broker$ListenerInvoker.java) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.NotifyTask.call(NotifyTask.java:59) ~[na:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
2014-04-17 12:50:41.266 CEST [md-sal-binding-notification-1] INFO o.o.c.m.s.manager.StatisticsProvider - Attempted to get non-existing handler for Uri [_value=openflow:14561112084339025498]
2014-04-17 12:50:41.268 CEST [md-sal-binding-notification-0] INFO o.o.c.m.s.manager.StatisticsProvider - Attempted to get non-existing handler for Uri [_value=openflow:14561112084339025498]
2014-04-17 12:50:41.271 CEST [md-sal-binding-notification-3] ERROR o.o.c.sal.binding.impl.NotifyTask - Unhandled exception thrown by listener: org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker@553ab7a4
java.lang.NumberFormatException: For input string: "14561112084339025498"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_51]
at java.lang.Long.parseLong(Long.java:444) ~[na:1.7.0_51]
at java.lang.Long.parseLong(Long.java:483) ~[na:1.7.0_51]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADMacAddress(NodeMapping.java:360) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNodeProperties(NodeMapping.java:334) ~[na:na]
at org.opendaylight.controller.sal.compatibility.NodeMapping.toADNodeProperties(NodeMapping.java:320) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter.onNodeUpdated(InventoryAndReadAdapter.java:634) ~[na:na]
at org.opendaylight.controller.sal.compatibility.InventoryAndReadAdapter$$Broker$ListenerInvoker.onNotification(InventoryAndReadAdapter$$Broker$ListenerInvoker.java) ~[na:na]
at org.opendaylight.controller.sal.binding.impl.NotifyTask.call(NotifyTask.java:59) ~[na:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
2014-04-17 12:50:41.286 CEST [Thread-15] ERROR o.o.o.o.md.queue.TicketFinisher - For input string: "14561112084339025498"
java.lang.NumberFormatException: For input string: "14561112084339025498"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.7.0_51]
at java.lang.Long.parseLong(Long.java:444) ~[na:1.7.0_51]
at java.lang.Long.valueOf(Long.java:513) ~[na:1.7.0_51]
at java.lang.Long.decode(Long.java:665) ~[na:1.7.0_51]
at org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil.dataPathIdFromNodeId(InventoryDataServiceUtil.java:135) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeaker.lldpDataFrom(LLDPSpeaker.java:104) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeaker.addNodeConnector(LLDPSpeaker.java:82) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeakerPopListener.onPop(LLDPSpeakerPopListener.java:37) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.queue.TicketFinisher.run(TicketFinisher.java:65) ~[na:na]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]



 Comments   
Comment by Michal Rehak [ 21/May/14 ]

https://git.opendaylight.org/gerrit/#/c/7289/

Comment by Michal Rehak [ 26/May/14 ]

merged,
please verify

Comment by Ermin Sakic [ 26/May/14 ]

Hello Michal, this seems to fix the error only partially, in sal-compatibility. The openflowplugin part is still resulting with the same exceptions.

2014-05-26 12:32:08.078 CEST [Thread-9] ERROR o.o.o.o.md.queue.TicketFinisher - For input string: "10210232779920710278"
java.lang.NumberFormatException: For input string: "10210232779920710278"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_05]
at java.lang.Long.parseLong(Long.java:592) ~[na:1.8.0_05]
at java.lang.Long.valueOf(Long.java:776) ~[na:1.8.0_05]
at java.lang.Long.decode(Long.java:928) ~[na:1.8.0_05]
at org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil.dataPathIdFromNodeId(InventoryDataServiceUtil.java:135) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeaker.lldpDataFrom(LLDPSpeaker.java:104) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeaker.addNodeConnector(LLDPSpeaker.java:82) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeakerPopListener.onPop(LLDPSpeakerPopListener.java:37) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.queue.TicketFinisher.run(TicketFinisher.java:64) ~[na:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_05]
2014-05-26 12:32:08.134 CEST [Thread-9] ERROR o.o.o.o.md.queue.TicketFinisher - For input string: "15858872612550154886"
java.lang.NumberFormatException: For input string: "15858872612550154886"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_05]
at java.lang.Long.parseLong(Long.java:592) ~[na:1.8.0_05]
at java.lang.Long.valueOf(Long.java:776) ~[na:1.8.0_05]
at java.lang.Long.decode(Long.java:928) ~[na:1.8.0_05]
at org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil.dataPathIdFromNodeId(InventoryDataServiceUtil.java:135) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeaker.lldpDataFrom(LLDPSpeaker.java:104) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeaker.addNodeConnector(LLDPSpeaker.java:82) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeakerPopListener.onPop(LLDPSpeakerPopListener.java:37) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.queue.TicketFinisher.run(TicketFinisher.java:64) ~[na:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_05]
2014-05-26 12:32:08.171 CEST [Thread-9] ERROR o.o.o.o.md.queue.TicketFinisher - For input string: "12165920918106348166"
java.lang.NumberFormatException: For input string: "12165920918106348166"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_05]
at java.lang.Long.parseLong(Long.java:592) ~[na:1.8.0_05]
at java.lang.Long.valueOf(Long.java:776) ~[na:1.8.0_05]
at java.lang.Long.decode(Long.java:928) ~[na:1.8.0_05]
at org.opendaylight.openflowplugin.openflow.md.util.InventoryDataServiceUtil.dataPathIdFromNodeId(InventoryDataServiceUtil.java:135) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeaker.lldpDataFrom(LLDPSpeaker.java:104) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeaker.addNodeConnector(LLDPSpeaker.java:82) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.lldp.LLDPSpeakerPopListener.onPop(LLDPSpeakerPopListener.java:37) ~[na:na]
at org.opendaylight.openflowplugin.openflow.md.queue.TicketFinisher.run(TicketFinisher.java:64) ~[na:na]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_05]

Comment by Michal Rehak [ 26/May/14 ]

My fault - I get only low datapathIds from mininet.

https://git.opendaylight.org/gerrit/#/c/7399/

Comment by Michal Rehak [ 26/May/14 ]

merged,
please retest

Comment by Abhijit Kumbhare [ 12/Aug/14 ]

Any status on this?

Comment by Viera Zelcamova [ 19/Aug/14 ]

(In reply to Abhijit Kumbhare from comment #6)
> Any status on this?

We are waiting for Ermin Sakic to review the bug, can you help?

Comment by Ermin Sakic [ 19/Aug/14 ]

Hello, sorry for the late answer. I am not getting having this error anymore in the newer builds.

Comment by Abhijit Kumbhare [ 19/Aug/14 ]

Thanks Ermin.

Generated at Wed Feb 07 20:31:36 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.