[SOLVED] I Cannot Specify a Different Sitemap

RPi, OpenHABian.
I have created three sitemaps
home.sitemap
misc.sitemap,
notifications.sitemap
in the sitemaps folder
but basicUI and classicUI will only accept home.sitemap.
Working with the BasicUI:
(1) I tried adding ?sitemap=notifications to the localhost…URL.
Result: I get a page saying, “Welcome…Available sitemaps ! Home”. If I click Home, I get the home.sitemap.
(2) I have tried renaming home.sitemap to home.sitemapX to “hide” it.
Result: BasicUI says I have not defined any sitemaps yet. But the other two are in the sitemaps folder where home.sitemap is located.

(3) I have edited PaperUI,configuration, services and changed the default sitemap to notifications and misc and neither work.
Result: I get the “have not defined” message for either.

(4) I have created basicui.cfg and inserted:
# Defining the default sitemap to use
org.eclipse.smarthome.basicui:defaultSitemap=notifications

# The icon type to use, either png or svg
org.eclipse.smarthome.basicui:iconType=svg
Result: Again I get the undefined.

(5) If I remove “X” from home.sitemapX and start basicUI
Result: I get the not defined (because of either the cfg or the default in PaperUI) but if I add ?sitemap=home I get the home.sitemap.

For the ClassicUI
For step (1) above I get a large dump starting with "Problem accessing /classicui/app: Reason Server Error Caused By followed by 30 or 40 lines with a whole lot of references to jetty but including “sitemap notifications could not be found”.
Then more Caused By and similar lines then more Caused By and similar lines.
But I can change the URL to …sitemap=home and I get the home.sitemap but notifications.sitemap is in the same folder as home.sitemap.

For step 2 above I get the same large dump.

For step 3 above I get the large dump.

I didn’t try the equivilant of step 4 for the ClassicUI because I’m pretty sure I’ll get the similar results.

For step 5 above I get the large dump but again can replace the “sitemap=notifications” with “sitemap=home” and I get the home sitemap.

I have rebooted many times during these steps.

What can I do to change the site map? I have a lot of experimentation to do and really need to swap sitemaps repeatedly. Also, I have a HABpanel and that seems to ignore these sitemaps but perhaps it is locking things up…perhaps???

Any ideas?

Your extra sitemaps are probably not defined correctly.

Does the opening line match your filename?

sitemap home label="Home" {
and
sitemap notifications label="Notifications" {
and
sitemap misc label="Misc" {

Works for me, for engineer.sitemap in /conf/sitemaps/

http://localhost:8080/basicui/app?sitemap=engineer

http://localhost:8080/classicui/app?sitemap=engineer

Have you looked in openhab.log for sitemap related messages?

Correct:

These dashboards can be designed interactively in the embedded designer, rather than using configuration files.

This is what I have. They look right to me but I never know: Also, the misc one is of no interest, it was for some other stuff.

sitemap misc label=“Misc”
{
Number item=ElectricPotential

}

sitemap notifications label=“Notifications” {
Frame label=“Notifications” {
Switch item=Send_via_App_Switch
Switch item=Send_via_Mail_Switch
Switch item=Send_via_Telegram_Switch
}
}

Find out. Have a look in openhab.log for messages for each of your sitemaps, like

2019-08-06 13:34:16.747 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'engineer.sitemap'
2019-08-06 13:34:16.844 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'

Well, the logs have been a problem for me. I assume you mean the ones in:
/var/log/openhab2.
They don’t seem to be updating.
audit.log is 0 bytes and Modified 07/30/2019 14:01
events.log is 767.7 Kib Modified 09/28/2019 13:17 (that is about 12 minutes ago) but there are only 14 entries, all 2019-08-17 14:08:37 and incrementing in time.
Openhab.log has 22 similar entries.
But hold it, I just noticed that when I tried to check the events.log yesterday it was only 717 Kib. So I just tried a different text reader (Geany) and it reports that it isn’t a text file. So I used wxHexEditor and low and behold, after the 14 visible entries there are 142378 bytes of all zeros followed by more time stamped entries. But the HexEditor is hung right now and seems to have everything else hung. Before it hung I thought I saw something about, “it didn’t like” something in notifications.sitemap. Looks like I have to power down the RPi because it isn’t responding.
I’ll reboot and see if I can get something from the part of the logs that are being updated.

events.log and openhab.log are text files. I am using cat or tail for a quick look. But maybe something went wrong. You can try to delete the files (or move them to a different name or location) so that OH2 re-generates the files (new entries only of course).

Some editors can add formatting strings that are not displayed at the beginning of a file, which if it happened will make your sitemaps unreadable by OH2. Most secure way is to take a simple editor (e.g., nano or vim on linux) and re-create the files from scratch by re-typing the content.

This is getting very frustrating. Both the event.log and openhab.log are getting filled with 0x00. The events.log gets about 700KB of them and openhab.log gets over 2MB of them.
I have been trying many things to get a handle on this. I have deleted all but 4 characters from both files so they show in the folder as Size= 4 bytes. I did this with no browser windows open. Then I open the openhab/start/index page and the files remain the same size. Then if I select either basicUI or classicUI the openhab.log jumps to 2.5MB in size. Note, both these are set to default to notifications.sitemap.
I can change the URL for basicUI to =home and then I get the home sitemap. Up until then the events.log has remained at 4 bytes. If I cause an event events.log jumps to over 700KB. If I open the events.log (using LibreOffice Writer, the only program that can open a file that large…and it takes forever) it starts with the 4 characters I left in it followed by over 700 “#” (the character Writer uses to designate 0x00) followed by a legitimate report of the event I created. That is about 225 characters long.

Where are all these 0x00 s coming from. They make working with the logs extremely difficult. Any ideas? Should I start a new thread?

This is what is left in openhab.log after I delete the 2.5MB of 0x00 s. Note it starts with the “#” that was 0x00 in the file. Then I think it says it can’t find notifications on some eclipse server???

###################################################################################################################################################################2019-09-29 10:34:51.135 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /classicui/app
javax.servlet.ServletException: javax.servlet.ServletException: Sitemap ‘notifications’ could not be found
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:88) ~[?:?]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.Server.handle(Server.java:531) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352) [84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) [84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) [75:org.eclipse.jetty.io:9.4.11.v20180605]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) [75:org.eclipse.jetty.io:9.4.11.v20180605]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) [75:org.eclipse.jetty.io:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at java.lang.Thread.run(Thread.java:745) [?:?]
Caused by: javax.servlet.ServletException: Sitemap ‘notifications’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:204) ~[?:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) ~[82:org.eclipse.jetty.security:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[?:?]
… 15 more
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ‘notifications’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:165) ~[?:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) ~[82:org.eclipse.jetty.security:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[?:?]
… 15 more
2019-09-29 10:35:15.329 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /classicui/app
javax.servlet.ServletException: javax.servlet.ServletException: Sitemap ‘notifications’ could not be found
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:88) ~[?:?]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.Server.handle(Server.java:531) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352) [84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) [84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) [75:org.eclipse.jetty.io:9.4.11.v20180605]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) [75:org.eclipse.jetty.io:9.4.11.v20180605]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) [75:org.eclipse.jetty.io:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at java.lang.Thread.run(Thread.java:745) [?:?]
Caused by: javax.servlet.ServletException: Sitemap ‘notifications’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:204) ~[?:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) ~[82:org.eclipse.jetty.security:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[?:?]
… 15 more
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ‘notifications’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:165) ~[?:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) ~[82:org.eclipse.jetty.security:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[?:?]
… 15 more
2019-09-29 10:35:20.459 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:35:20.472 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:35:20.489 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:35:20.498 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:40:23.679 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:40:23.688 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:40:23.696 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:40:23.702 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:41:04.416 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /classicui/app
javax.servlet.ServletException: javax.servlet.ServletException: Sitemap ‘notifications’ could not be found
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:88) ~[?:?]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.Server.handle(Server.java:531) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352) [84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) [84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) [75:org.eclipse.jetty.io:9.4.11.v20180605]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) [75:org.eclipse.jetty.io:9.4.11.v20180605]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) [75:org.eclipse.jetty.io:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680) [87:org.eclipse.jetty.util:9.4.11.v20180605]
at java.lang.Thread.run(Thread.java:745) [?:?]
Caused by: javax.servlet.ServletException: Sitemap ‘notifications’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:204) ~[?:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) ~[82:org.eclipse.jetty.security:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[?:?]
… 15 more
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ‘notifications’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:165) ~[?:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) ~[82:org.eclipse.jetty.security:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) ~[?:?]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) ~[85:org.eclipse.jetty.servlet:9.4.11.v20180605]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) ~[84:org.eclipse.jetty.server:9.4.11.v20180605]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[?:?]
… 15 more
2019-09-29 10:44:14.017 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:44:14.026 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:44:14.037 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’
2019-09-29 10:44:14.044 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘-’ with the file ‘my.map’ : Target value not found in map for ‘-’

I have seen a suggestion that editing log files is a root cause of the problem

Well there’s a tiny problem you could fix.

I repaired the transform before I posted the message. I wasn’t generating the “-”. It was created by something in lieu of not having a report from a door sensor.

As for editing the log files, mine had all the nulls before I even knew about them so it wasn’t my editing. I found that very link last night. They were using openhanian 2.2.0-1. I’m up to 2.4.0-1 and I did another update just after my post. Now the events.log gets 828,400B of the 0x00. Before it was around 700KB.

With the “-” problem repaired, openhab.log isn’t written to so it remains at 4 bytes. But if I back out the repair so that there is a log entry, it is proceeded by 2,681,737B of 0x00.

I will return to my original problem of “sitemap not found”. A search shows a whole bunch of these.

Have a look in openhab.log for messages for each of your sitemaps, like

2019-08-06 13:34:16.747 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'engineer.sitemap'
2019-08-06 13:34:16.844 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'

I do not think your log problem is mended. There have been other posts about logs with lots of @@@@@@@@@@@@@@ (depends on viewer used) which I cannot find now.

I agree, NOT MENDED. But my openhab.log does not get [INFO] just errors.

Also, I got to thinking (always dangerous). Both classicUI and basicUI can find home.sitemap but not notifications.sitemap. Maybe it isn’t using /etc/openhab2/sitemaps but some other folder that doesn’t have notifications.sitemap. I did a search for home.sitemap and darn if there isn’t a mirror image of everything in /etc/openhab2/ over in /srv/openhab2-conf. Every file and with the same properties. So I edited the file home.sitemap in the /etc folder and darn if the edits didn’t propagate to the /srv version.
“Ain’t science amazing”?
But since an exact copy of notifications was in both folders my theory of using different folders doesn’t pan out.

I think that’s a way of saying that you cannot see any INFO logs Loading model 'notifications.sitemap' , so it isn’t going to work.
The next step would be to see what sitemap error messages you get at load time instead. Requires working logging, of course.

I think you’re focusing on the wrong thing at the moment.

I’m not sure what you mean. If I just use home.sitemap I don’t get anything in openhab.log. Should I? If I change by ?sitemap=notifications I get that 24k dump starting with the “javax.servlet…” placed in the openhab.log

If you edit and save home.sitemap, say add a space somewhere, you will get a short message in openhab.log when the system parses your sitemap. (This normally takes place at system boot time, but there is a file watcher for in-flight changes too)

Now repeat the exercise with your notifications.sitemap

Here is one and there is a link to another thread in this thread


In my case, I was editing the configuration multiple times and obviously something went wrong

1 Like

YOU NAILED IT!!!
I edited the home.sitemap and it logged:
2019-09-29 14:54:44.075 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘home.sitemap’
Proceeded by >2MB of 0x00 which I deleted.
Then I edited notifications.sitemap and it logged (preceded by >2MB of 0x00):
2019-09-29 14:58:23.797 [WARN ] [el.core.internal.ModelRepositoryImpl]

  • Configuration model ‘notifications.sitemap’ has errors, therefore ignoring it: [1,1]: extraneous input ‘’ expecting ‘sitemap’

It looked like the problem was column 1, row 1 but the editor showed “sitemap” as the first characters.
I opened the file in a hex editor and darn if 3 characters:
0xEF 0xBB 0xBF
weren’t stuck ahead of the 0x73 (=s).
I learned a lot from this. In addition to rossko57’s instructions which actually solved my problem I also learned, “Don’t copy and paste someone’s sitemap file. You can get garbage characters”.
The copy and paste also used the wrong symbol for a quote so again the edit was rejected. I replaced the quotes and now notifications is fine.

A masterful job Mr. rossko57 masterful! Thanks so much!
Pete

I don’t thinkk there was a solution to the 0x00 problem was there?
I’m going to leave the 0x00 problem for another day.