[L2SWITCH-56] Exception in thread "pool-31-thread-1" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "0xff" Created: 16/Oct/15  Updated: 19/Oct/17  Resolved: 09/Feb/16

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

Type: Bug
Reporter: Ravi Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: Zip Archive Karaflogg.zip     Text File karaf.log    
External issue ID: 4485
Priority: High

 Description   

Displaying all SWITCHES and only one HOSTS in DLUX topology GUI.

I have started karaf and installed the following features.

feature:install odl-restconf
feature:install odl-l2switch-switch
feature:install odl-mdsal-apidocs
feature:install odl-l2switch-switch-ui
feature:install odl-adsal-all
feature:install odl-adsal-northbound
feature:install odl-dlux-core
feature:install odl-dlux-node
feature:install odl-dlux-yangui

Then started MININET with following command
>> sudo mn --topo tree,3 --controller 'remote,ip=172.16.69.13,port=6633' --switch ovsk,protocols=OpenFlow13

I am able to ping the hosts without fail.

mininet> pingall

      • Ping: testing ping reachability
        h1 -> h2 h3 h4 h5 h6 h7 h8
        h2 -> h1 h3 h4 h5 h6 h7 h8
        h3 -> h1 h2 h4 h5 h6 h7 h8
        h4 -> h1 h2 h3 h5 h6 h7 h8
        h5 -> h1 h2 h3 h4 h6 h7 h8
        h6 -> h1 h2 h3 h4 h5 h7 h8
        h7 -> h1 h2 h3 h4 h5 h6 h8
        h8 -> h1 h2 h3 h4 h5 h6 h7
      • Results: 0% dropped (56/56 received)

Now I have opened the DLUX GUI, in the topology section we are able to see the Switches and only one host.

Apart from that we are getting the following Error in Karaf console.

opendaylight-user@root>
opendaylight-user@root>
opendaylight-user@root>Exception in thread "pool-31-thread-1" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "0xff"
at com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalExceptionHandler.java:45)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:147)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NumberFormatException: For input string: "0xff"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Short.parseShort(Short.java:117)
at java.lang.Short.parseShort(Short.java:143)
at org.opendaylight.l2switch.flow.ReactiveFlowWriter.ignoreThisMac(ReactiveFlowWriter.java:45)
at org.opendaylight.l2switch.flow.ReactiveFlowWriter.onArpPacketReceived(ReactiveFlowWriter.java:77)
at org.opendaylight.yangtools.yang.binding.util.NotificationListenerInvoker.invokeNotification(NotificationListenerInvoker.java:91)
at org.opendaylight.controller.md.sal.binding.impl.BindingDOMNotificationListenerAdapter.onNotification(BindingDOMNotificationListenerAdapter.java:44)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouterEvent.deliverNotification(DOMNotificationRouterEvent.java:50)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouter$1.onEvent(DOMNotificationRouter.java:68)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouter$1.onEvent(DOMNotificationRouter.java:65)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
... 3 more

Could you please help me to resolve the issue, i.e. display all SWITCHES and HOSTS in topology GUI.



 Comments   
Comment by Ravi [ 16/Oct/15 ]

Attachment Karaflogg.zip has been added with description: Karaf logger

Comment by Ravi [ 16/Oct/15 ]

How to reproduce?

1) Start the Karaf "<DLUX>/bin/karaf"

2) Wait until the following message comes

opendaylight-user@root>GossipRouter started at Fri Oct 16 16:05:34 IST 2015
Listening on port 12001 bound on address 0.0.0.0/0.0.0.0
Backlog is 1000, linger timeout is 2000, and read timeout is 0

3) Start mininet with following command, the following Exception is came.
Exception in thread "Thread-116" java.lang.IllegalStateException: Expected state: HANDSHAKING, actual state:RIP
at org.opendaylight.openflowplugin.openflow.md.core.ConnectionConductorImpl.checkState(ConnectionConductorImpl.java:393)

4) Execute "pingall" command in Mininet console, then following exception came.

Exception in thread "pool-29-thread-1" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "0xff"

5) Start the DLUX GUI in browser, select the topology,--> All SWITCHES are displayed with only one HOST

Full Trace:

opendaylight-user@root>Exception in thread "Thread-116" java.lang.IllegalStateException: Expected state: HANDSHAKING, actual state:RIP
at org.opendaylight.openflowplugin.openflow.md.core.ConnectionConductorImpl.checkState(ConnectionConductorImpl.java:393)
at org.opendaylight.openflowplugin.openflow.md.core.ConnectionConductorImpl.onConnectionReady(ConnectionConductorImpl.java:455)
at org.opendaylight.openflowjava.protocol.impl.core.connection.ConnectionAdapterImpl$3.run(ConnectionAdapterImpl.java:472)
at java.lang.Thread.run(Thread.java:745)

opendaylight-user@root>Exception in thread "pool-29-thread-1" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "0xff"
at com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalExceptionHandler.java:45)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:147)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NumberFormatException: For input string: "0xff"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Short.parseShort(Short.java:117)
at java.lang.Short.parseShort(Short.java:143)
at org.opendaylight.l2switch.flow.ReactiveFlowWriter.ignoreThisMac(ReactiveFlowWriter.java:45)
at org.opendaylight.l2switch.flow.ReactiveFlowWriter.onArpPacketReceived(ReactiveFlowWriter.java:77)
at org.opendaylight.yangtools.yang.binding.util.NotificationListenerInvoker.invokeNotification(NotificationListenerInvoker.java:91)
at org.opendaylight.controller.md.sal.binding.impl.BindingDOMNotificationListenerAdapter.onNotification(BindingDOMNotificationListenerAdapter.java:44)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouterEvent.deliverNotification(DOMNotificationRouterEvent.java:50)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouter$1.onEvent(DOMNotificationRouter.java:68)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouter$1.onEvent(DOMNotificationRouter.java:65)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
... 3 more

Comment by Robert Varga [ 16/Oct/15 ]

https://git.opendaylight.org/gerrit/28472

Comment by Ravi [ 16/Oct/15 ]

Attachment karaf.log has been added with description: Karaf logger

Comment by Ravi [ 16/Oct/15 ]

>Exception in thread "pool-27-thread-1" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "0x5e"
at com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalExceptionHandler.java:45)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:147)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NumberFormatException: For input string: "0x5e"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Short.parseShort(Short.java:117)
at java.lang.Short.parseShort(Short.java:143)
at org.opendaylight.l2switch.flow.ReactiveFlowWriter.ignoreThisMac(ReactiveFlowWriter.java:45)
at org.opendaylight.l2switch.flow.ReactiveFlowWriter.onArpPacketReceived(ReactiveFlowWriter.java:77)
at org.opendaylight.yangtools.yang.binding.util.NotificationListenerInvoker.invokeNotification(NotificationListenerInvoker.java:91)
at org.opendaylight.controller.md.sal.binding.impl.BindingDOMNotificationListenerAdapter.onNotification(BindingDOMNotificationListenerAdapter.java:44)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouterEvent.deliverNotification(DOMNotificationRouterEvent.java:50)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouter$1.onEvent(DOMNotificationRouter.java:68)
at org.opendaylight.controller.md.sal.dom.broker.impl.DOMNotificationRouter$1.onEvent(DOMNotificationRouter.java:65)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
... 3 more

Comment by Ravi [ 16/Oct/15 ]

Verified, not working for me... please find the attached Karaf logger (Karaf logger (666.53 KB, application/octet-stream) 2015-10-16 11:09 UTC, KumarBabu )

Comment by A H [ 02/Feb/16 ]

Adding ammandke@cisco.com. Amit Mandke, could you confirm this bug and determine if this is a blocker for Beryllium?

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