About Time

issue

NullpointerException at a normal select

When I run the following code: EntityManager em = getEm(); Customer result = null; try {     logger.debug("Ident: "+ident);     result = em.createQuery("Select c from Customer c where c.identifier=:id", Customer.class).setParameter("id", ident).getSingleResult(); } catch (javax.persistence.NoResultException nre) { } finally {      em.close(); } I get the following error (you can also see the log message containing the String parameter at the top): ... This have been working for quite some time, I've also tried to run the DB doctor with the following result: ...

 
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)  ... sure I create a new java.util.Date() object and set the time using the old objectdb.java.util.date.  SO I have something like ...

 
forum_thread

explorer NullPointerException

I studied ObjectDB a few hours ago and got some problems when use explorer . I run it and right-click in 'Open local database' window,and the all the pop menu item is gray and disabled,such as ‘new database’,'new directory','cut','copy' ... if I click 'tools---oprions' before open database, the errot I got is: [2012-05-21 09:51:11 #1 explorer] java.lang.NullPointerException at com.objectdb.o.CNC.p(CNC.java:253) at com.objectdb.o.EHL.d(EHL.java:55) at com.objectdb.o.VPN.(VPN.java:60) at com.objectdb.o.OPD.(OPD.java:69) at com.objectdb.o.OPD.(OPD.java:42) ... is normal。 2、what I mean is that: the time when I want to creat a new database,[file>open embedded],right click, ...

 
forum_thread

Possible issue with String fields

Hi I'm brand new to objectdb and I'm trying to create an objectdb from a sample db via jdbc. The code all works and for a few thousand records but when I increase the number of records I get the following " #1 2012-04-18 07:00 Hi I'm brand new to objectdb and I'm trying to create an objectdb from a sample db via jdbc. ...

 
forum_thread

Performance issues on aggregate query

we are using this aggregate query to collect some data: ... results with all the eagerly reachable objects take more time than just executing the query (i.e. when every result object requires ...

 
issue

Exception in thread "ODB-StoreHandler-5094" java.lang.NullPointerException

Hi, ... but never used (no login). There may be some impact over time (but not necessaraly) on memory consumption and socket usage, but this ...

 
forum_thread

List of Enum Values in an entity

Hello, I'm new with ObjectDB and just tried out the example in the Eclipse/Glassfish tutorial (http://www.objectdb.com/tutorial/jpa/eclipse/ee). After testing was successful, I extended the Guest class with an ArrayList of Enums: private ArrayList<GuestFlag> flags; The flags are stored into the database without any problem. In the explorer I can see that it is stored as array of Strings. #1 2013-11-07 14:16 Hello, I'm new with ObjectDB and just tried out the example in the Eclipse/Glassfish tutorial ( http ...

 
issue

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... super class and removing one of its subclasses at the same time. After investigating this issue it seems that fixing the problem ...

 
forum_thread

InternalError on multiple AND and JOIN Query

Hi, Using objectdb 2.2.8_06. Running the following query: SELECT DISTINCT $1 FROM CDI $1 JOIN $1.contactDetails $2 JOIN $2.addresses $3 JOIN $3.attributeList $4 JOIN $2.phoneNumbers $5 JOIN $5.attributeList $6 WHERE ((($4.name='suburb') AND ($4.valueAsString='Los Angeles')) AND (($6.name='areacode') AND ($6.valueAsString='310'))) Getting: ... - Will use the pattern time_example-%d{yyyy-MM-dd}.log for the active file 09:30:08,884 |-INFO in ... is 'yyyy-MM-dd' from file name pattern 'time_example-%d{yyyy-MM-dd}.log'. 09:30:08,884 |-INFO in ... - Active log file name: time_example.log 09:30:08,908 |-INFO in ...

 
forum_thread

How to enhance the JPA/Spring/MVC to implement RESTfull for CURL client?

Here is my attempt to enhance the JPA/MVC/eclipse tutorial to implement a RESTful service. Why does this not work with this curl command? I get 404. Can someone help me correct this? Do I need to change my web.xml servlet mapping in web.xml? I've been experimenting with and nothing seems to work. Thanks Siegfried Here is my web.xml fragment: ... this is progress (I've been fighting with this a long time!).  So how do I get this to produce JSON code? Thank you very ...