Closed SuperOok closed 8 years ago
I have just tested build 435 and it works all fine - I cannot reproduce your problem. The log file you posted does not not look at all like an openhab.log file. Are you sure that you are launching it through start.sh?
I'm running it on Windows 8.1 for test purposes, so launching start.bat. I'll check later the location of the logfile. Was the only ones I found; some {longerID}.log but not openhab.log
The log above is from runtime\server\configuration\1449525689744.log
I reran the application but still no Icons in the basic UI. Calling any icon URL manually gives a 404 from the Jetty, e.g. http://localhost:8080/icon/switch?state=OFF&format=svg
HTTP ERROR 404
Problem accessing /icon/switch. Reason:
Not Found
Find the openhab.log below.
2015-12-08 23:46:44.756 [WARN ] [.p.rrd4j.internal.RRD4jService] - Unknown property name : org.openhab.persistence.rrd4j
2015-12-08 23:46:44.756 [INFO ] [.p.rrd4j.internal.RRD4jService] - Removing invalid defintion component = null heartbeat = 0 min/max = 0.0/0.0 step = 0 0 archives(s) = [] 0 items(s) = []
2015-12-08 23:46:44.914 [WARN ] [.p.rrd4j.internal.RRD4jService] - Unknown property name : org.openhab.persistence.rrd4j
2015-12-08 23:46:44.914 [INFO ] [.p.rrd4j.internal.RRD4jService] - Removing invalid defintion component = null heartbeat = 0 min/max = 0.0/0.0 step = 0 0 archives(s) = [] 0 items(s) = []
2015-12-08 23:46:44.964 [INFO ] [s.ui.paper.internal.PaperUIApp] - Started Paper UI at /ui
2015-12-08 23:46:45.166 [ERROR] [p.r.i.charts.RRD4jChartServlet] - Error during servlet startup
org.osgi.service.http.NamespaceException: The alias '/rrdchart.png' is already in use.
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(ProxyServlet.java:169) ~[na:na]
at org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:66) ~[na:na]
at org.openhab.persistence.rrd4j.internal.charts.RRD4jChartServlet.activate(RRD4jChartServlet.java:121) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_60]
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.ServiceReg.getService(ServiceReg.java:53) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) [org.eclipse.osgi_3.10.2.v20150203-1939.jar:na]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_60]
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) [org.eclipse.osgi_3.10.2.v20150203-1939.jar:na]
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) [org.eclipse.osgi_3.10.2.v20150203-1939.jar:na]
at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) [org.eclipse.osgi_3.10.2.v20150203-1939.jar:na]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:496) [org.eclipse.osgi_3.10.2.v20150203-1939.jar:na]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) [org.eclipse.osgi_3.10.2.v20150203-1939.jar:na]
at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:619) [org.eclipse.osgi_3.10.2.v20150203-1939.jar:na]
at org.eclipse.equinox.internal.ds.InstanceProcess.getService(InstanceProcess.java:730) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:347) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:444) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:343) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89) [org.eclipse.equinox.ds_1.4.200.v20131126-2331.jar:na]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_60]
2015-12-08 23:46:45.253 [INFO ] [.u.d.internal.DashboardService] - Started dashboard at /start
2015-12-08 23:46:45.523 [INFO ] [.s.u.b.i.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2015-12-08 23:46:45.526 [INFO ] [.s.u.c.i.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2015-12-08 23:46:45.559 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v2.0.0, build 201512070207).
2015-12-08 23:46:45.601 [INFO ] [.e.s.m.c.i.ModelRepositoryImpl] - Loading model 'demo.sitemap'
2015-12-08 23:46:45.766 [INFO ] [s.c.d.internal.PersistentInbox] - Added new thing 'yahooweather:weather:20065906' to inbox.
2015-12-08 23:46:45.789 [INFO ] [.e.s.m.c.i.ModelRepositoryImpl] - Loading model 'demo.things'
2015-12-08 23:46:45.990 [INFO ] [.e.s.m.c.i.ModelRepositoryImpl] - Loading model 'logging.persist'
2015-12-08 23:46:46.005 [INFO ] [.e.s.m.c.i.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2015-12-08 23:46:46.045 [INFO ] [.e.s.m.c.i.ModelRepositoryImpl] - Loading model 'demo.rules'
2015-12-08 23:46:46.501 [INFO ] [.e.s.m.c.i.ModelRepositoryImpl] - Loading model 'demo.script'
2015-12-08 23:46:46.570 [INFO ] [.e.s.m.c.i.ModelRepositoryImpl] - Loading model 'demo.items'
2015-12-08 23:46:48.752 [INFO ] [.b.a.handler.AstroThingHandler] - Scheduled astro DailyJob at midnight for thing astro:sun:home
2015-12-08 23:46:48.754 [INFO ] [.b.a.handler.AstroThingHandler] - Scheduled astro PositionalJob with interval of 60 seconds for thing astro:sun:home
2015-12-08 23:47:23.965 [INFO ] [s.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2015-12-08 23:47:23.967 [INFO ] [.u.d.internal.DashboardService] - Stopped dashboard
2015-12-08 23:47:23.972 [INFO ] [.s.u.b.i.servlet.WebAppServlet] - Stopped Basic UI
2015-12-08 23:47:23.981 [INFO ] [.s.u.c.i.servlet.WebAppServlet] - Stopped Classic UI
@SuperOok Can you include a snippet of your .items file ?
I think I have found a problem with trying to override a default icon. See here for more details: https://community.openhab.org/t/various-icon-woes/4895 I think it is related.
Using Switch as an example, if I try to specify an icon for the individual item in the .items file, such as <light>
, I will get the 404. If I remove the icon element from the item completely, I will get the default switch icon. I have verified this with the IDE and the demo conf files as well.
@kaikreuzer can you try to reproduce by setting an icon such as<light>
on one of the Switch items in the demo items file and see what happens?
A little more. It looks like <light>
is actually a special case. The base image for light.svg does not exist, only -ON and -OFF. If I use <heating>
as the icon, it works as expected. I would have though that after toggling the switch with the light icon set that once the state was known, it would have selected the ON or OFF icon, but does not seem to be the case.
I tried the demo items and removed all
Agreed, unfortunately. I will copy my findings to a new ticket as a different issue.
@SuperOok Ok, I just tried the latest openHAB build on Windows 10 and I can reproduce the issue. The icon servlet simply is not registered for some reason and thus all requests result in an 404. I will analyse that closer and come back to you.
That was a tricky one - it indeed occurred only on WIndows. Should now be fixed with the next build!
Great!
I'm testing the latest Build #435, runtime demo. It seems to work but does not show any icons.
There are two components unsatisfied:
The log shows many referencing problems: