Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1015

ClassCastException: scala.math.BigInt cannot be cast to java.lang.Long for an attribute with data type as Long.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Abandoned
    • 0.8-incubating
    • None
    • None
    • None

    Description

      A type is created with the below info. An entity is created with respective attributes including the Long value for timestamp. But when that stored entity is retrieved, it returns a Referenceable with timestamp attribute containing scala.math.BigInt type instead of java.lang.Long type

      TypesUtil.createClassTypeDef(
                      DeviceInfo.NAME_SPACE, null,
                      TypesUtil.createUniqueRequiredAttrDef(DeviceInfo.NAME, DataTypes.STRING_TYPE),
                      TypesUtil.createUniqueRequiredAttrDef(DeviceInfo.XID, DataTypes.STRING_TYPE),
                      attrDef(DeviceInfo.TIMESTAMP, DataTypes.LONG_TYPE),
                      attrDef(DeviceInfo.VERSION, DataTypes.STRING_TYPE)
              );
      

      You can look at the test code here

      Attachments

        Activity

          People

            Unassigned Unassigned
            satish.duggana Satish Duggana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: