{"action":"opened","issue":{"url":"https://api.github.com/repos/openhab/openhab2/issues/146","labels_url":"https://api.github.com/repos/openhab/openhab2/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab2/issues/146/comments","events_url":"https://api.github.com/repos/openhab/openhab2/issues/146/events","html_url":"https://github.com/openhab/openhab2/issues/146","id":59360659,"number":146,"title":"compat1x: Support for \"org.openhab.core.items.ItemRegistry\"","user":{"login":"dkreutzer","id":5984083,"avatar_url":"https://avatars.githubusercontent.com/u/5984083?v=3","gravatar_id":"","url":"https://api.github.com/users/dkreutzer","html_url":"https://github.com/dkreutzer","followers_url":"https://api.github.com/users/dkreutzer/followers","following_url":"https://api.github.com/users/dkreutzer/following{/other_user}","gists_url":"https://api.github.com/users/dkreutzer/gists{/gist_id}","starred_url":"https://api.github.com/users/dkreutzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkreutzer/subscriptions","organizations_url":"https://api.github.com/users/dkreutzer/orgs","repos_url":"https://api.github.com/users/dkreutzer/repos","events_url":"https://api.github.com/users/dkreutzer/events{/privacy}","received_events_url":"https://api.github.com/users/dkreutzer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-28T22:01:34Z","updated_at":"2015-02-28T22:01:34Z","closed_at":null,"body":"Hi,\r\n\r\nI am playing around with openhab2 since a few days and I must say that I really like that approach!\r\nBut I am struggling with a few things (configuration stuff is not very verbose if something is not setup well - of course this is also due to the OSGI stack and the given laziness of configuration/ service-injections)\r\n\r\nNow back to my \"problem\". I am going to replace my own \"homemade\" solution and require some sort of charting (e.g.  temperature/humidity in a certain period)\r\n\r\nFor opanhab2 I am using RRD4J. As far as I understood is the charting of RRD4J not supported, so I am going to use the default charting instead. And - finally ;-) - here is my problem:\r\n\r\nInvoking the chartservlet gives me an:\r\n```\r\njava.lang.IllegalStateException: RRD file does not contain RRA: MAX archive\r\n\tat org.rrd4j.core.RrdDb.findMatchingArchive(Unknown Source)\r\n\tat org.rrd4j.core.RrdDb.fetchData(Unknown Source)\r\n\tat org.rrd4j.core.FetchRequest.fetchData(Unknown Source)\r\n\tat org.openhab.persistence.rrd4j.internal.RRD4jService.query(RRD4jService.java:198)\r\n\tat org.openhab.core.persistence.internal.QueryablePersistenceServiceDelegate.query(QueryablePersistenceServiceDelegate.java:57)\r\n\tat org.eclipse.smarthome.ui.internal.chart.DefaultChartProvider.addItem(DefaultChartProvider.java:251)\r\n\tat org.eclipse.smarthome.ui.internal.chart.DefaultChartProvider.createChart(DefaultChartProvider.java:171)\r\n\tat org.eclipse.smarthome.ui.internal.chart.ChartServlet.doGet(ChartServlet.java:171)\r\n```\r\n\r\nLooking into the code this shows that `org.openhab.core.items.ItemRegistry`is not being injected into the `RRD4JService`, which leads the the `MAX` consolidation function.\r\n\r\nIn the `rrd4j.xml`of the plugin you see that it requires\r\n```\r\n  <reference bind=\"setItemRegistry\" cardinality=\"0..1\" interface=\"org.openhab.core.items.ItemRegistry\" name=\"ItemRegistry\" policy=\"dynamic\" unbind=\"unsetItemRegistry\"/>\r\n```\r\n\r\nAnd - finally - that is not (yet - hopefully) supported by the *compat1x* API.\r\nIs there any roadmap for this? Or is maybe someone already working on it?\r\n\r\nThanks and keep it up!\r\nDaniel"}}