JSONObject["sitemap"] not a string

Because I can’t get any help in other topic, can somebody help to resolve this errors?

I am using Openhab 1.8.3 and org.openhab.io.openhabcloud_1.9.0.201612192331.jar

openhab.log shows some errors like this:

[ERROR] [o.o.i.o.internal.CloudClient  ] - JSONObject["sitemap"] not a string.

How this can be fixed?

Maybe you defined your exposed items the wrong way?

openhabcloud:expose=item1,item2
not
openhabcloud:expose="item1","item2"

Thanks, but I do not have any item defined in openhabcloud:expose - it’s empty.

So does your openhabcloud work at all?
When you login to https://myopenhab.org/login, does it show the online status?
When you got to “Account”, “Devices”, does it show your devices?

Edit: do you have the latest java version installed? Should be 101 or newer.

Yes, openhabcloud is working and shows “online” status.
Yes, I can see my two IOS devices. And openhab on my iPhone is working fine thru openhabcloud.
Here is output from java -version:
java version "1.8.0_101"
Java™ SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot™ Client VM (build 25.101-b13, mixed mode)
Openhab installed on RPi 3.

Just tested one more time and found that errors coming only when I use Firefox or Chrome on PC. While using OpenHab app on iphone errors are not created.

Great!

How do you call your sitemap?

Through the dashboard via http://your_ip:8080/basicui/app or
http://your_ip:8080/classicui/app ?

Or do you call your sitemap directly, f.e.
http://your_ip:8080/classicui/app?sitemap=your_sitenmap_name or
http://your_ip:8080/basicui/app?sitemap=your_sitenmap_name ?

Edit: Also, check if you have a valid first line in your sitemap:

sitemap sitemapname label="Your Label"

Sitemap file is correct.
Errors generated only when I calling

https://myopenhab.org/openhab.app?sitemap=dolphin#

and each time when I browsing inside any frame and returning to home page.

What is that sign (#) for at the end of your sitemap name? Should not be there …

It appear after I browsing to any subframe and returning back on the main page. I do not put it manually…

I cannot test that because I have no openHAB1 version running anymore.
I tested it though with openHAB2 (url looks a little bit different):
https://myopenhab.org/classicui/app?sitemap=test#_030002
So the # sign appears too and the number behind that represents the different pages and subpages.
So my only guess is (again): you have a wrong sitemap definition.
Check again and again and use the Designer if any errors are in there.
Sitemap definition:

Designer:

http://www.openhab.org/getting-started/

Installing the openHAB designer (optional)

You may want to download a tool to configure the items, sitemap and so on. If so, download openHAB Designer for your specific platform. This will give you syntax validation, content-assist and more on your configuration files.

The openHAB designer comes as a platform-dependent zip, so choose the right one for your platform. To install it, follow these simple steps:

Unzip the distribution-<version>-designer-<platform>.zip to some directory, e.g. C:\openhab-designer on Windows, or /opt/openhab-designer on other systems (Linux, etc)
Launch it by the executable openHAB-Designer.exe (or openHAB-Designer if you are on a Mac or Linux)
Select the “configurations” folder of your runtime installation in the folder dialog that is shown when selecting the “open folder” toolbar icon.
When you’ve made a change to a file, you can use the keyboard shortcut Ctrl-S to save it.

Okay, hold it.

Looks like an old bug:

Could you add a debug log to that github issue?

Thanks sihul for research of this issue! I added a debug on github.
Happy New Year!

Great, but what the dev needs to have is a debug log. Starting your openhab in debug mode and posting the log into that issue would be perfect …