Announcement Announcement Module
Collapse
No announcement yet.
Ehcache Persistence Class Loading Issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ehcache Persistence Class Loading Issue

    I'm having a class loading problem with an ehcache persisted cache and dm server (1.0.1.RELEASE). I keep getting a ClassNotFoundException when my server is restarted--specifically when a bundle attempts to load the cache's index. Here is the scenario: I have a serializable class, AKey, in a domain bundle; in a separate bundle I have a persistent ehcache instance. I can add/retrieve items no problem and flush to disk, but when the server is restarted, I get ClassNotFoundException: AKey. Any ideas to get around this? I'd really like to be able to use AKey as a key.

  • #2
    The two most obvious areas to explore are wiring and context class loading.

    If the wiring is different after dm Server restarts, you could investigate this by using the Equinox console. Start by exploring the wiring of the package of the class which eventually fails to load and see which bundles import and export that package. Compare this wiring in the successful situation and after the restart. (In general, the wiring should be identical after a restart unless the set of available bundles has changed.)

    For context class loading, you'd either need to write a bit of code to dump out the TCCL or use a debugger to stop at an appropriate point.

    Alternatively, if you prefer, please reproduce the behaviour with a simple testcase on 1.0.2 and raise a JIRA to go on our backlog.

    Comment

    Working...
    X