Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-2037

flows -j breaks after adding point intents (update REST codec)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
    • Environment:

      Single && Multi node

    • Epic Link:
    • Sprint:
      Cardinal Sprint 6 (5/26-5/29)

      Description

      commit c17042d9e53814935b4c85ad304543e99b36f10d
      Author: Sho SHIMIZU <sshimizu@us.fujitsu.com>
      Date: Thu May 28 12:07:23 2015 -0700

      Refactor: Rename the class and method to make them more descriptive

      • Rename from FlowModBuilderHelper to OpenFlowValueMapper
      • Rename from UnsupportedConversionException to NoMappingFoundException
      • For methods, use "lookup" instead of "convert"

      Change-Id: I8e86e3221385a48524247aa78a497b524e16071a

      ######################

      After installing point intents I check for flows state using flows -j command but I kept getting error executing the command:

      onos> flows -j
      Error executing command: org.onosproject.net.flow.criteria.OchSignalTypeCriterion cannot be cast to org.onosproject.net.flow.criteria.OpticalSignalTypeCriterion

      Here is the log:

      2015-05-28 20:03:40,726 | INFO | h for user karaf | command | 131 - org.apache.karaf.log.command - 3.0.3 | Sending CLI command: 'flows -j'
      2015-05-28 20:03:40,882 | ERROR | h for user karaf | ShellUtil | 25 - org.apache.karaf.shell.console - 3.0.3 | Exception caught while executing command
      java.lang.ClassCastException: org.onosproject.net.flow.criteria.OchSignalTypeCriterion cannot be cast to org.onosproject.net.flow.criteria.OpticalSignalTypeCriterion
      at org.onosproject.codec.impl.CriterionCodec$FormatOchSigType.encodeCriterion(CriterionCodec.java:337)
      at org.onosproject.codec.impl.CriterionCodec.encode(CriterionCodec.java:367)
      at org.onosproject.codec.impl.CriterionCodec.encode(CriterionCodec.java:57)
      at org.onosproject.codec.impl.TrafficSelectorCodec.encode(TrafficSelectorCodec.java:43)
      at org.onosproject.codec.impl.TrafficSelectorCodec.encode(TrafficSelectorCodec.java:31)
      at org.onosproject.codec.impl.FlowEntryCodec.encode(FlowEntryCodec.java:60)
      at org.onosproject.codec.impl.FlowEntryCodec.encode(FlowEntryCodec.java:31)
      at org.onosproject.cli.AbstractShellCommand.jsonForEntity(AbstractShellCommand.java:165)
      at org.onosproject.cli.net.FlowsListCommand.lambda$json$32(FlowsListCommand.java:102)
      at org.onosproject.cli.net.FlowsListCommand$$Lambda$308/1165196443.accept(Unknown Source)
      at java.util.ArrayList.forEach(ArrayList.java:1249)[:1.8.0_25]
      at org.onosproject.cli.net.FlowsListCommand.json(FlowsListCommand.java:102)
      at org.onosproject.cli.net.FlowsListCommand.json(FlowsListCommand.java:91)
      at org.onosproject.cli.net.FlowsListCommand.execute(FlowsListCommand.java:73)
      at org.onosproject.cli.AbstractShellCommand.doExecute(AbstractShellCommand.java:129)
      at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)[25:org.apache.karaf.shell.console:3.0.3]
      at Proxy750d5171_f2d8_4a9a_bf69_67b3660428ae.execute(Unknown Source)[:]
      at Proxy750d5171_f2d8_4a9a_bf69_67b3660428ae.execute(Unknown Source)[:]
      at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[25:org.apache.karaf.shell.console:3.0.3]
      at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
      at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:208)
      at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.runConsole(ShellFactoryImpl.java:158)[86:org.apache.karaf.shell.ssh:3.0.3]
      at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1$1.run(ShellFactoryImpl.java:133)
      at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_25]
      at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)[26:org.apache.karaf.jaas.modules:3.0.3]
      at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$1.run(ShellFactoryImpl.java:129)[86:org.apache.karaf.shell.ssh:3.0.3]

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Kelvin Kelvin Flores
            Reporter:
            Kelvin Kelvin Flores
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: