Note that there are some explanatory texts on larger screens.

plurals
  1. POpersisting a JSON string to OrientDB using Datanucleus without enhancer
    primarykey
    data
    text
    <p>I am trying to persist a json string (myobject.toJson() gives me my object in json) to orientdb. But I am hitting with "org.datanucleus.exceptions.ClassNotPersistableException: The class "java.lang.String" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found."</p> <p>How do I get around this?</p> <p>Thanks Gopi</p> <p>here is error stack </p> <blockquote> <p>java.lang.IllegalArgumentException: Type ("java.lang.String") is not that of an entity but needs to be for this operation at org.datanucleus.api.jpa.JPAEntityManager.assertEntity(JPAEntityManager.java:1330) at org.datanucleus.api.jpa.JPAEntityManager.persist(JPAEntityManager.java:529) at com.x.myclass.receive(Myclass.java:90) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.datanucleus.exceptions.ClassNotPersistableException: The class "java.lang.String" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found. at org.datanucleus.ObjectManagerImpl.assertClassPersistable(ObjectManagerImpl.java:5464) at org.datanucleus.api.jpa.JPAEntityManager.assertEntity(JPAEntityManager.java:1326) ... 9 more</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload