Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Issue with Serializier during update operation #65

Open
RAndrews137 opened this issue Dec 30, 2016 · 0 comments
Open

Issue with Serializier during update operation #65

RAndrews137 opened this issue Dec 30, 2016 · 0 comments
Assignees
Labels

Comments

@RAndrews137
Copy link
Contributor

We have a case were a custom serializer is being used to translate a Java object that serves as an enum to an OrientDB int. The create and get operations work just fine. We noticed that the update however has an issue. Listed below is a part of stack trace. The generated Spring Data class is not handling the update correctly because it is trying to use the string value. Can someone please take a look into this. We would be happy to provide any additional information.

java.lang.NumberFormatException: For input string: "CAN"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at com.orientechnologies.orient.core.metadata.schema.OType.convert(OType.java:357)
at com.orientechnologies.orient.core.record.impl.ODocumentHelper.convertField(ODocumentHelper.java:215)
at com.orientechnologies.orient.core.record.impl.ODocument.field(ODocument.java:1082)
at com.orientechnologies.orient.core.record.impl.ODocument.field(ODocument.java:912)
at com.orientechnologies.orient.object.enhancement.OObjectProxyMethodHandler.setDocFieldValue(OObjectProxyMethodHandler.java:406)
at com.orientechnologies.orient.object.enhancement.OObjectProxyMethodHandler.setValue(OObjectProxyMethodHandler.java:832)
at com.orientechnologies.orient.object.enhancement.OObjectProxyMethodHandler.manageSetMethod(OObjectProxyMethodHandler.java:760)
at com.orientechnologies.orient.object.enhancement.OObjectProxyMethodHandler.invoke(OObjectProxyMethodHandler.java:112)
at com.adp.entitlement.domain.model.Grant_$$jvst1af_4.setQualifier(Grant$$_jvst1af_4.java)
at com.adp.entitlement.domain.model.Grant.update(Grant.java:283)
at com.adp.entitlement.domain.service.GrantService.updateGrants(GrantService.java:598)

@robfrank robfrank self-assigned this Dec 31, 2016
@lvca lvca added the bug label Jan 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants