About error

forum_thread

member visiting in jpql

baURI is a byte[]; JP QL> select e.baURI.length from URI e where id=82778 JP QL> [ObjectDB 2.2.9_04] javax.persistence.PersistenceException Navigation from 'byte[]' through 'length' is invalid (error 763) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:636) at util.JPQLcmd.QureyCMD(JPQLcmd.java:43) at util.JPQLcmd.main(JPQLcmd.java:28) Why I can not visit the length attribute? TIA ... from 'byte[]' through 'length' is invalid ( error 763 ) at com. objectdb . jpa . JpaQuery . getResultList ...

 
forum_thread

Using date in where clause

I am trying to build a SELECT query as follows. SELECT p FROM Persons p WHERE creationDate="07-25-2013" Here I have created Persons object as java.sql.Date attribute.   But in doing so I am getting following exception Operand type mismatch for operator '=' (error 757) (position 51) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:695)   Can someone provide me that way to build a query with date in where clause. ... Operand type mismatch for operator '=' (error 757) (position 51) at ...

 
forum_thread

auto-generated uuid fields

Hello, we're porting a JDO application to ObjectDB which uses uuid-hex generated values. However the page on generated values in your JPA tutorial only mentions numeric generated values, and when we try to use it the error message seems to imply that auto-generating strings isn't supported. Could you confirm whether this is the case? If so it seems an odd omission, given that it's part of both the JPA and JDO standards (JPA Generator.UUID_HEX and JDO value-strategy="uuid-hex") and that the Java language itself supports it (java.util.UUID). ... numeric generated values, and when we try to use it the error message seems to imply that auto-generating strings isn't supported. ...

 
issue

NullPointerException in ENH.g(ENH.java:401)

Hello, corresponding to your suggestion I created a private ticket in reply to http://www.objectdb.com/database/forum/1109. Attached you will find my database file (I removed most of the content but one corrupt instance is still included). ... but one corrupt instance is still included). I error happens when reading the field "Event.participants" of the entity with ...

 
forum_thread

Problem of query With an aggregate function

Hi I would know if this type of query is supported By JPA: select sum(nb1), sum(nb2), sum(nb3) from table If yes I have this methode that return a list of Long: ...   When i debug i have a sever error that Object can't cast to Big decimal  and my query ...

 
issue

ClassCastException after upgrade to 2.3.5_03

On upgrading to the latest version of objectdb I get the following exception on object retrieval: ... rbccm.felix.framework.ApplicationException: Error taking message from ObjectDB queue at ...

 
api-jdo

registerErrorHandler(handler)

Register an ErrorHandler instance for use in parsing the resource(s) META-INF/jdoconfig.xml.(Method of javax.jdo.spi.JDOImplHelper)

 
forum_thread

Cannot cast com.objectdb.jpa.Provider to PersistenceProvider

Hi! I'm trying to get ObjectDB 2.5.1_1 work with stable Glassfish 4 in a Java EE 7 NetBeans project. objectdb.jar is added into GF's classpath (domains\domain1\lib\ext folder). Any help, please?... Thanks! Here it is the persistence.xml config: ... </persistence > The following error appears when I try to deploy: SEVERE : Exception while ...

 
forum_thread

GWT RPC is throwing serialization exception when I have object db date value

Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'objectdb.java.util.Date' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = Sat Jan 29 00:00:00 PST 2011    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:614)  ... of mine Data Transfer Object. But still I am getting this error. Note: (In gwt RPC you cannot use the Entity objects, You need ...

 
issue

java.lang.NullPointerException during access a field, only if the classes enhanced

We get the following exception during access a field (Set of entities) The error occurs only if the entities are enhanced. ... during access a field (Set of entities) The error occurs only if the entities are enhanced.   Caused by: ...