I made the blind assumption that the get would return the same class. I will change my code to casts the property gets to map and go from there. Thanks!
On Friday, July 24, 2015 at 1:33:40 AM UTC-6, Luigi Dell'Aquila wrote: > > Hi José, > > this could be a problem in the driver or more likely in your application. > All the map attributes are returned as OTrackedMap instances, that > implements Map (not Hashtable). > I suggest you to use Map interface in your variable declarations. > If you want, you can post the code snippet that fails, I can review it > > Thanks > > Luigi > > > 2015-07-23 18:47 GMT+02:00 José Cornado <[email protected] <javascript:> > >: > >> Luigi: >> >> >> This is the exception. It seems that the gets return something different >> to what it was set. I am using 2.0.12 on OS X 10.9 >> >> >> Evaluation failed. Reason(s): >> >> ClassCastException: Cannot cast >> com.orientechnologies.orient.core.db.record.OTrackedMap (id=101) to >> java.util.Hashtable >> >> >> Thanks a lot!!! >> >> On Thursday, July 23, 2015 at 7:01:38 AM UTC-6, José Cornado wrote: >>> >>> Ok. Will do >>> >>> On Thursday, July 23, 2015 at 12:05:10 AM UTC-6, Luigi Dell'Aquila wrote: >>>> >>>> Hi Jose, >>>> >>>> Embedded Map is a supported type for attributes in OrientDB, so you >>>> should have no problems with it. >>>> Could you please report the full stack trace or a test case to >>>> reproduce it? Also OrientDB version number will help >>>> >>>> Thanks >>>> >>>> Luigi >>>> >>>> >>>> 2015-07-22 18:10 GMT+02:00 José Cornado <[email protected]>: >>>> >>>>> Hello! >>>>> >>>>> I try to store a hashtable in a vertex property (I am using os x and >>>>> oriented TX .12 blueprints api) It sets without problems but when I tried >>>>> to retrieve it, it fails with an exception. Should I stay away from this? >>>>> >>>>> Thanks! >>>>> >>>>> -- >>>>> >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "OrientDB" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
