144 words

Explorer doesn't open file

2017-02-16 10:28

Explorer doesn't open file...see attached error message and odb.  Explorer doesn't cleanly close the connection either (due to error I presume).

Many thanks


russ0ne's picture
Joined on 2014-02-27
User Post #6
2017-02-16 10:34

Should add that Doctor doesn't find any issues and file works fine programmatically.

russ0ne's picture
Joined on 2014-02-27
User Post #7
2017-02-16 19:45

It seems as an ObjectDB Explorer bug is handling a specific field of the type java.util.concurrent.TimeUnit.

Could you please check if after changing the type of that field, e.g. to java.lang.Object, the file is opened in the Explorer?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support's picture
Joined on 2010-05-03
User Post #2,703
2017-02-17 09:12

Yes, you're right.  When I refactored the code to store the value as a String and not a TimeUnit it works fine.  I shouldn't have been storing TimeUnit in the entity anyway as it is not a persistable type but it was in a super class and I missed it from an earlier re-factoring.  Odd how ObjectDb should persist the value and not throw an exception as it normally does for non-persistable types?

russ0ne's picture
Joined on 2014-02-27
User Post #8

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Maximum file size: 32 MB