Uploaded image for project: 'ovsdb'
  1. ovsdb
  2. OVSDB-20

ipfix.getObs_domain_id() is declared as returning OvsDBSet<Integer> but actually returns OvsDBSet<BigInteger>

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • API
    • None
    • Operating System: Windows
      Platform: PC

    • 1126

    Description

      ipfix.getObs_domain_id() is declared as returning OvsDBSet<Integer> but actually returns OvsDBSet<BigInteger>

      This causes a runtime ClassCast exception.

      Here are some code snippets:

      final OvsDBSet<UUID> ipfixSet = bridge.getIpfix();
      if (ipfixSet != null && ipfixSet.size() > 0)
      {
      final UUID ipfixUUID = ipfixSet.iterator().next();
      final IPFIX ipfix = (IPFIX) ovsdbConfigService.getRow(ovsNode, IPFIX.NAME.getName(), ipfixUUID.toString());
      if (ipfix != null)
      {
      final OvsDBSet<Integer> obsDomainIdSet = ipfix.getObs_domain_id();
      if (obsDomainIdSet != null && obsDomainIdSet.size() > 0)
      {
      final Integer i = obsDomainIdSet.iterator().next();

      That last line causes a classcast exception.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jimoo99@hotmail.com Jim O
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: