db4o Persistence broken in 1.8?

Hi, it looks to me like the db4o persistence service is broken in openhab 1.8.

Yesterday I installed the new version via the apt-repository and my db4o persistence stopped working. I just copied the old 1.7 JAR over the 1.8 JAR and now it is working for me

db4o with the old version:

07:15:40.586 [DEBUG] [o.i.r.i.resources.ItemResource:205 ] - Received HTTP POST request at 'items/HT_Rule_WZ_1200_WT' with value '11.0'. 07:15:40.653 [DEBUG] [o.p.d.i.Db4oPersistenceService:118 ] - Stored item state 'HT_Rule_WZ_1200_WT' -> '11.0' 07:15:41.076 [DEBUG] [o.o.i.r.i.b.GeneralBroadcaster:46 ] - broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@1590c3e' is empty

db40 with the new version:

7:10:19.046 [DEBUG] [o.i.r.i.resources.ItemResource:205  ] - Received HTTP POST request at 'items/HT_Rule_WZ_0630_WT' with value '10'.
07:10:19.423 [DEBUG] [o.o.i.r.i.b.GeneralBroadcaster:46   ] - broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@e903f6' is empty
07:10:19.505 [DEBUG] [.r.i.resources.SitemapResource:146  ] - Received HTTP GET request at 'sitemaps/default/06000000010000' for media type 'null'.

(Both items are configured identically in the db4o.persist file)

Also, all the “Restored item state from…” log entries for the db4o persistence service are missing with the 1.8 SNAPSHOT binding.

The MySQL-Persistence seems to be working for me, so it doesn’t seem to be a general persistence service problem.

Hi Jörg, Would you open an issue for this if you have a github account, or should I? Any other information you can provide (here or in the issue) would be very helpful.

I don’t have a githubaccount, but the same problem. What I can provide is the following:

!ENTRY org.eclipse.equinox.ds 4 0 2016-01-07 16:33:38.529
        serviceFactory = false
        serviceInterface = [org.openhab.core.persistence.QueryablePersistenceService, org.openhab.core.persistence.PersistenceService]
        references = null
        located in bundle = org.openhab.persistence.db4o_1.8.0.201601052309 [232]
]

!ENTRY org.openhab.persistence.db4o 4 0 2016-01-07 16:33:56.141
!MESSAGE [SCR] Found components with duplicated names inside their bundle! This component will not be processed: Component[
        name = org.openhab.persistence.db4o
        activate = activate
        deactivate = deactivate

eventually this can help?

I’ve opened issue #3728 to track this.

1 Like

@nibblerrick and @gymlet, would you mind trying this JAR to confirm or refute the idea that it fixes the problems you’ve reported? Simply move your current db4o persistence JAR out of the addons folder, and move this one to the addons folder.

Sorry for the late reply - yes, this JAR seems to be working fine.

Thanks,

Jörg

1 Like

Works for me also, thank you!

1 Like