This page last changed on Mar 15, 2011 by ebariaux.

I have started work on integrating a web view in panel.xml so it can be used on OR consoles.
At this stage, the idea is not to integrate a full web browser but to point it at a given page to display information like a video feed, a dynamic image (e.g. consumption data updated from a server), ...
Currently the element looks like this in the panel.xml
<absolute left="80" top="58" width="640" height="240">
<web id="6" src="http://192.168.1.117/control/faststream.jpg?stream=full&fps=8.0" username="admin" password="meinsm"/>
</absolute>

A web tag, embedded in a positioning element. Attributes are the URL and potentially a username/password if content is protected with basic authentication.

Any comments, requirements, ideas are welcomed.


kenta account.png (image/png)
webpanel_widget.JPG (image/jpeg)
Capture.PNG (image/png)

Hi Eric

I read your post some time and had the following question.

There are several applications which use a web interface which I would like to use with Openremote.

I currently use squeezebox as my music server. This is an open source music server which can use PC's or Logitech hardware to

play the music. There is an iPhone application called iPeng which acts as a remote for Squeezebox server.

it has a web interface and can be accessed by

1) Install the iPeng Plugin on your Squeezebox Server
2) Create an url object with http://<yourserver>:9000/iPeng

You can then controll the music server using this web page.

Would it be possable to switch from Openremote to this web page and back again.

This would allow you to access this controller direct from Openremote

Posted by pjmm at Apr 18, 2011 21:08

There is even no need to switch, the web page is embedded as part of the screen, so you can have both a web view and other controls on the same screen.
So all sites working with Safari on the iPhone/iPad should work fine in this web view.
The only thing is that it does not have navigation buttons or the URL bar. URL is fixed in the configuration (panel.xml) and all navigation must occur using the links in the page.
Navigation and control of URL could be added later I believe but this would mean a bit more thought is required on "scripting/action" on the client side.

Posted by ebariaux at Apr 19, 2011 08:08

Hi Eric

Is this available now to test?

Pierce

Posted by pjmm at Apr 19, 2011 19:53

The iOS console that supports this is available in this branch : https://openremote.svn.sourceforge.net/svnroot/openremote/workspace/ebariaux/iPad_Console_2_0_0_Betas_Linphone

There is no integration at this point in the designer, so you need to manually edit the panel.xml, repackage as a zip file and upload to controller to test.

Eric

Posted by ebariaux at Apr 20, 2011 13:11

Looks good to me, I like the <web> element.

Have pinged Andrew Ball for his attention to this development to keep Android in sync (after a few other tasks first) – please keep us updated here on development and if there's anything at a solution level (obviously not code) that might be useful for knowledge-transfer from iOS to Android.

Posted by juha at Apr 21, 2011 22:24

Hi Eric

do you have an example on how the panel.xml should be edite to.

If you could supply this It would help

Pierce

Posted by pjmm at Apr 22, 2011 15:07

The web tag takes the following format:

<web id="xxx" src="your url" username="optional user name" password="optional password"/>

You would only include the username/password if the URL you're trying to reach requires basic authentication.
The web tag can appear anywhere a button, image, switch ... or other widget appear.

Eric

Posted by ebariaux at Apr 22, 2011 15:11

Hi Eric

do you have an example on how the panel.xml should be edite to.

If you could supply this It would help

Pierce

Posted by pjmm at Apr 22, 2011 15:16

Hi Eric

Can you give me some help on setting this up.
I download from https://openremote.svn.sourceforge.net/svnroot/openremote/workspace/ebariaux/iPad_Console_2_0_0_Betas_Linphone/

where should I put this once downloaded?

Do I need to re build the controler?

If I want to have a button linked to a web page how should it be coded in the XML.

If you can help on the above it would help

Regards

Pierce

Posted by pjmm at Apr 25, 2011 20:28

Hello Pierce,

The code I linked to is the console code for iOS. You need to compile that project and install on your device (iPad/iPhone).
For this, you need a Mac with the iOS dev tools and be a registered developer.
If this is not your case, then the easiest thing is to send me your UDID (eric at openremote dot org) and I can create a specific build for you.

Do I need to re build the controler?

For the controller, you can use the "standard" one, there is nothing specific for this feature.

If I want to have a button linked to a web page how should it be coded in the XML.

There is no interaction at this time with the <web> element on the console. So if you want a button to navigate to this web page, put the <web> element on a screen and use the normal navigation mechanism from OR to navigate to that page. You'll also want a "normal" OR button to navigate away from that page.

Eric

Posted by ebariaux at Apr 26, 2011 09:30

What sort of behavior do we want if the web server involved has an invalid SSL certificate? The default for the Android WebView widget is to cancel the request, although I believe I can also ignore the SSL error on Android 2.2 and above at least.

Posted by cortextual at May 05, 2011 22:12

I've been working on this for the Android console in the following branch in Subversion: https://openremote.svn.sourceforge.net/svnroot/openremote/workspace/andrewball/Android_Console_2_0_0_Betas_web_element (build instructions at http://openremote.org/display/docs/Building+OpenRemote+Android+2.0+Console )

My implementation should be fairly functional at this point.

Here's the panel.xml I've been using:

<?xml version="1.0" encoding="UTF-8"?>
<openremote xmlns="http://www.openremote.org" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="http://www.openremote.org 
  http://www.openremote.org/schemas/panel.xsd">
  <panels>
    <panel id="73" name="Web Demonstration">
      <include type="group" ref="74" />
    </panel>
  </panels>
  <screens>
    <screen id="75" name="Starting Screen">
      <absolute left="20" top="20" width="400" height="500">
        <web id="76" src="http://192.168.42.101/~aball/authenticated/" username="user" password="password" />
        <!-- <web id="76" src="http://192.168.42.101/~aball/" /> -->
        <!-- produces an error page -->
        <!-- <web id="76" src="invalid!" username="user" password="password" />  -->
        <!-- produces an error page, id different on purpose to distinguish this error (missing URL) from an invalid URL when testing -->
        <!-- <web id="77" username="user" password="password" /> -->
      </absolute>
    </screen>
  </screens>
  <groups>
    <group id="74" name="Default Group">
      <include type="screen" ref="75" />
    </group>
  </groups>
</openremote>
Posted by cortextual at May 06, 2011 00:15

Let's use the default behavior if we can indicate with the UI widget somehow why the content is not being presented (visually indicate error condition, the actual description of the error may need to show up elsewhere).

IgnoreSSLError could also be a valid attribute to the <web> element which at least puts the responsibility to the user to ignore security related errors. Not sure if it applies to iOS panels the same but at least it would be valid on Android.

Posted by juha at May 10, 2011 17:29

I did add one feature to this yesterday, I made the web element a "sensory" one, meaning a sensor can be linked to it. When it is, the value of the sensor is used to update the URL.
At this stage, the username/password can't be updated, so the ones provided in the XML are always applied to any further request.

Posted by ebariaux at May 19, 2011 09:38

Eric, would you give an example panel.xml for linking the URL to a sensor value? Perhaps relevant bits of controller.xml as well?

Thanks,
Andrew

Posted by cortextual at May 23, 2011 23:04

On the panel.xml side, the web element just references the sensor, like this

<web id="2501" src="http://192.168.11.100:8080/beehive/rest/user/demo/graph/temp1?period=2011&amp;width=580&amp;height=360" username="demo" password="openremote">
  <link type="sensor" ref="10011"/>
</web>

On the controller.xml side, this can be any custom sensor, so something along those lines would do

  <sensors>
    <sensor id = "10011" name = "temperature" type = "custom">
      <include type="command" ref="9999"/>
    </sensor>
  </sensors>

The string returned by the sensor is used "as is" as the URL to load.
In the iOS code, I keep track of the last value and only reload if the sensor value is really different.
This is because, on iOS at least, a change notification is posted each time a sensor returns from its polling (even if the value did not change), and the polling can happen at high frequency.

Posted by ebariaux at May 25, 2011 16:33

So Andrew is voting for "IgnoreSSLError" optional attribute in the schema, I'm fine with it too.

Eric, any comments?

Posted by juha at May 26, 2011 23:36

I'm fine with adding this as an optional attribute to the schema.
I'm not sure I'll be able to honor it on iOS though, as I don't know the behaviour of the web view in case of invalid certificate, I would need to test.

Posted by ebariaux at May 27, 2011 09:23

Alright, we could document it as "Android-only" in the schema until and unless confirmed on iOS.

Posted by juha at May 27, 2011 09:33

This is working on Android? Can you explain in detail how I can do it? I would like to show on Openremote 4 IP cameras. I think the only way is with web panel, right? Anyone is implementing another way?

Posted by aerodolphin at Nov 02, 2011 17:52

This is working on Android? Can you explain in detail how I can do it? I would like to show on Openremote 4 IP cameras. I think the only way is with web panel, right? Anyone is implementing another way?

Posted by aerodolphin at Nov 02, 2011 17:52

I tried in controller.xml

<sensor id="833" name="test" type="custom">
<include type="command" ref="892" />
</sensor>

an on panel side the following

<web id="825" src="http://www.google.com?width=580&height=360">
<link type="sensor" ref="833" />
</web>

There is only a wite page.

Any ideas?

Posted by mariom at Dec 01, 2011 22:58

Works! For Testing I always use the webconsole. After reading in Jira I checked, that it is not supported yet. In my Android Emulator everything works fine. Thanks for the awesome feature.

Posted by mariom at Dec 07, 2011 23:07

Good news. I will try it.

Posted by aerodolphin at Dec 22, 2011 16:58

Does anyone know if the web element is supported under the current version of the webconsole?

Thanks and good evening

Posted by aschwith at Feb 29, 2012 20:56

No, not yet.

Posted by juha at Mar 04, 2012 23:27

Hello Eric

Any news of the implementation of a web panel in the Designer ?
At first we just need to have to possibility to set position, size and a link. This would be a very great news because today this is a big lack.

Thnks

Posted by milimilo at Jul 30, 2012 17:12

It'll be included in the next version (2.14).
The branch where this feature should have no (the less) issue is workspace/ebariaux/Designer_2_14_0_Markab_MODELER-271

Will keep you posted on when 2.14 will be pushed on-line, still have a few things to iron out before that, but should be a matter of a few weeks.

Posted by ebariaux at Jul 30, 2012 17:25

Great !

Posted by milimilo at Jul 31, 2012 11:05

Thank you very much. I hope it is going to be released soon

Posted by milimilo at Jul 31, 2012 11:05

Any News about that?
Juha, what's the release plan?

Posted by yannph at Sep 14, 2012 14:52

I'll deploy a 2.14 preview version online as soon as I get the last patches to 2.13.x verified and released.

Posted by juha at Sep 15, 2012 16:33

You can now test a developer preview at http://composer.openremote.org/preview.

Posted by juha at Sep 21, 2012 09:45

Hi.

I tried the new preview version. Everything worked fine, but next time I logged in (in UI Designer) most of my sensors had been replaced with someone else's sensors.

Do you have the possibility to restore my sensors?

My account name is "kenta"

Posted by kenta at Sep 24, 2012 06:52

Do you have more specifics which sensors need to be restored?

I logged into your account, and most sensors there have names in swedish so I assume they're yours?

Posted by admin at Sep 24, 2012 09:13

Excuse the lack of explanation.

Yes, in the building modeler everything looks fine (there can I find all my sensors). The problem is in the UI Desigener. There are all my Labels linked to someone else's sensors.

Posted by kenta at Sep 24, 2012 09:46

Hey sorry for the delay, I got distracted by other things and then forgot I was working on this.

I've restored a previously saved panels on your account – this one looks like the UI is bound to the correct sensors.

I had some issues with restoring the backup from 22nd, so you've been restored to the copy made on 16th. Hope this works – I can try to troubleshoot the 22nd backup if necessary, not sure what the issue there was.

BTW, I like your panel designs – would it be ok to use them as screenshots to promote OpenRemote?

Posted by juha at Sep 25, 2012 02:31

Thanks, Juha!

Now everything works fine again. My problem occurred before the 22nd so the copy from the 16th was certainly the right choice.

Of course, you may use screenshots from my design if you like (even if I don't think there is much to show yet. Maybe two pages are finished the rest are under construction).

Posted by kenta at Sep 25, 2012 10:00

The idea is absolutely great! Unfortunately when I add a WebView panel and sync to the controller, the OpenRemote app on my Android tablet crashes and cannot start anymore:
Sorry! The application OpenRemote (process org.openremote.android.console) has stopped unexpectedly. Please try again.
it's an Archos Arnova 10 G2 with openremote installed from android market 3.4.4 (and android market installed trough arctools).
When I remove the WebView panel and then sync again, I can start the app.
On my iPad 1 it works perfect, but that one runs version 2.1 of the OpenRemote app while for the Android only version 2.0.0 beta 2 seems available.
Maybe I need an alternate app to use WebView on the Android tablet?

Posted by mommeke at Sep 26, 2012 08:42

I've now added web element support to the Web Console, although not officially released it is available from the link below: -

http://multimation.co.uk:8080/controller/webconsole.war

You could always give this a try.

Rich

Posted by kurrazyman at Sep 26, 2012 17:47

Hey and thank for the html panels implementation !

There is a problem when i try to display Cosm graphics. I add the url, login and password but is doesn't work. When i open the panel.xml, login = "" and password = "" have the same value, the "password" one. But no problem if no pw is needed.

Another thing : offline sync (with openremote.zip file) doesn't seem to work and configuration reload fails each time (OR is installed on my Synology NAS)

Best regards

Mili

Posted by milimilo at Sep 27, 2012 20:05

panel.xml generated for the web element is indeed wrong, that's a bug.
Thanks for catching and reporting.

Eric

Posted by ebariaux at Sep 28, 2012 09:37

You are welcome. Thanks for your work.
And thanks to cyberfilou from TLD forum for the information.

Posted by milimilo at Sep 28, 2012 10:06

Hi Juha,
thanks a lot adding the web panel to the designer. However, I would like to report some issues that I ran into. First thing is that I was able to add the web element under the "preview version". When I went back later to the the regular designer as well as the "staging" one, all my panels disappeared. The weired thing is that they are still there when I log in to the preview version? Any ideas on that?

Next thing is that my Android app (latest release from Android-Play) crashes since I added the web element. When I remove it again, the app works fine. Also, when I use the webconsole from Rich (http://multimation.co.uk:8080/controller/webconsole.war) the web element works fine. By the way, thanks Rich for doing that, great work.

Apperently Andy has experienced the samme problems (see below).I already checked the generated panel.xml but could not figure out anything suspicious. Do you have an idea what the problem might be?

Thanks in advance!
Alex

Posted by aschwith at Oct 01, 2012 09:55

thanks a lot adding the web panel to the designer. However, I would like to report some issues that I ran into. First thing is that I was able to add the web element under the "preview version". When I went back later to the the regular designer as well as the "staging" one, all my panels disappeared. The weired thing is that they are still there when I log in to the preview version? Any ideas on that?

Yes, it means the web element is not backwards compatible to older versions of the designer app. And to be safe, you don't want to be switching between the two or you'll lose those panels. The error handling between two incompatible versions is badly managed indeed but not sure if we'll find the time to do anything about it right now.

Posted by juha at Oct 01, 2012 14:33

Next thing is that my Android app (latest release from Android-Play) crashes since I added the web element. When I remove it again, the app works fine. Also, when I use the webconsole from Rich (http://multimation.co.uk:8080/controller/webconsole.war) the web element works fine. By the way, thanks Rich for doing that, great work.

Can you install the APK from here instead and see if it has the same issue? http://sourceforge.net/projects/openremote/files/For%20Developers/OpenRemote-2.0-Android_SNAPSHOT_20111012.apk/download

Have not looked at what's on the Android Play market in eons.

Posted by juha at Oct 01, 2012 14:37

Great, thanks. That did it. The Android Play market currently provides the beta2 version that crashes when using the web element. Your beta 3 version works! Thanks!

Alex

Posted by aschwith at Oct 01, 2012 17:10

Hi Juha,

I noticed that the web element on the android beta3 version always has the same screen size, no matter what has been configured in the designer. Is that a bug or a feature?

Cheers,
Alex

Posted by aschwith at Oct 03, 2012 19:03

I don't know, sounds like a bug. Are you able to provide a patch?

Posted by juha at Oct 05, 2012 21:23

Hi Juha.

Why this preview is no longer available? I was just in the middle of making my graph.

Regards,
Nejc

Posted by nejc at Oct 20, 2012 08:40

I confirm, same issue.
The preview isno more available ... Preparing a new version?

Posted by yannph at Oct 20, 2012 09:01

Need to buy more server resources.

Will be making the for-pay Designer available soon where we can afford to throw more resources on it.

Posted by admin at Oct 20, 2012 14:22

The designer 2.14-PREVIEW is again available

Thanks guys.

Regards,
Nejc

Posted by nejc at Oct 20, 2012 17:52

Hi Richard.

Few weeks ago I tested your web console and web element works fine. Then I tested new web console release, but I realized that web element is not supported. I would ask you for your version of web console (http://multimation.co.uk:8080/controller/webconsole.war - now here is new version and web element doesn't work).

Thanks.

Regards,
Nejc

Posted by nejc at Oct 26, 2012 13:43

Hi Alex,

Do you still have the web console from Rich? If you have it, I would ask you to send it to my mail(nejcafnaeuropedotcom).

Thanks in advance.

Regards,
Nejc

Posted by nejc at Oct 26, 2012 15:18

Hi Nejc,

I've just tested the web element on web console version 7001 (which is what is available at |http://multimation.co.uk:8080/controller/webconsole.war|) and the web element is working fine for me; can you please be more specific about your problem.

Rich

Posted by kurrazyman at Oct 27, 2012 08:20

Hi Rich,

I tested it and web element works but when I want to display rrd4j graph a problem occurs. Actually I realize that it works on Debian web browser Epiphany, but when I tested it on Opera, Firefox, Explorer and Chrome it didn't work. I also find one more bug. In this web browsers (on Epiphany it works) I can't type custom controller url (webconsole settings - in the input field, the cursor doesn't show).

Thanks in advance.

Regards,
Nejc

Posted by nejc at Oct 28, 2012 17:45

Does the RRD4J url require username and password?

Regarding input fields, although the cursor doesn't show you should be able to type in the fields once you click inside the box.

Rich

Posted by kurrazyman at Oct 28, 2012 17:49

No, RRD4J doesn't require username and password. I just link web view with my graph sensor (it is actually just url address like: http://192.168.1.149:8080/controller/graph?name=graf1&start=20121012-21-42&end=20121012-22-00&width=1200&height=500). If I type this url direct in browser (any) the graph shows.

Regarding input fields, even if I click inside the box the cursor doesn't show and I can't type my url.

Regards,
Nejc

Posted by nejc at Oct 28, 2012 18:07

Are you using the r7001 (does it say build: 7001 at the bottom of the slide out toolbar on the left of the screen?), if not please download this later version and see if you can type: -

http://multimation.co.uk:8080/controller/webconsole.war

Posted by kurrazyman at Oct 28, 2012 18:14

I tried this one and on my central compute where openremote (debian) runs, it works very nice. On anther commuter (windows) in my lan, input box now is working, but when I press on url address (then should my panels display)just loading (loading panel). I found these errors on may controller:

ERROR HTTP\-Thread\-1: Error in handling REST API response: null
java.lang.NullPointerException
at org.openremote.controller.rest.support.json.JSONFormatter.format(JSONFormatter.java:68)
at org.openremote.controller.rest.support.json.JSONTranslator.translate(JSONTranslator.java:124)
at org.openremote.controller.rest.support.json.JSONTranslator.translateXMLToJSON(JSONTranslator.java:68)
at org.openremote.controller.rest.support.json.JSONTranslator.translateXMLToJSON(JSONTranslator.java:58)
at org.openremote.controller.rest.support.json.JSONTranslator.translateXMLToJSON(JSONTranslator.java:53)
at org.openremote.controller.rest.RESTAPI.sendResponse(RESTAPI.java:157)
at org.openremote.controller.rest.ListPanelIDs.handleRequest(ListPanelIDs.java:87)
at org.openremote.controller.rest.RESTAPI.doPost(RESTAPI.java:125)
at org.openremote.controller.rest.RESTAPI.doGet(RESTAPI.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(JSONCallbackFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
ERROR HTTP\-Thread\-2: failed to extract panel.xml for panel : No such Panel :NAME =
org.openremote.controller.exception.NoSuchPanelException: No such Panel :NAME =
at org.openremote.controller.service.impl.ProfileServiceImpl.getProfileDocumentByPanelName(ProfileServiceImpl.java:192)
at org.openremote.controller.service.impl.ProfileServiceImpl.getProfileByPanelName(ProfileServiceImpl.java:91)
at org.openremote.controller.rest.FindPanelByID.handleRequest(FindPanelByID.java:81)
at org.openremote.controller.rest.RESTAPI.doPost(RESTAPI.java:125)
at org.openremote.controller.rest.RESTAPI.doGet(RESTAPI.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(JSONCallbackFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
ERROR HTTP\-Thread\-2: Error in handling REST API response: null
java.lang.NullPointerException
at org.openremote.controller.rest.support.json.JSONFormatter.format(JSONFormatter.java:68)
at org.openremote.controller.rest.support.json.JSONTranslator.translate(JSONTranslator.java:124)
at org.openremote.controller.rest.support.json.JSONTranslator.translateXMLToJSON(JSONTranslator.java:68)
at org.openremote.controller.rest.support.json.JSONTranslator.translateXMLToJSON(JSONTranslator.java:58)
at org.openremote.controller.rest.support.json.JSONTranslator.translateXMLToJSON(JSONTranslator.java:53)
at org.openremote.controller.rest.RESTAPI.sendResponse(RESTAPI.java:157)
at org.openremote.controller.rest.ListPanelIDs.handleRequest(ListPanelIDs.java:87)
at org.openremote.controller.rest.RESTAPI.doPost(RESTAPI.java:125)
at org.openremote.controller.rest.RESTAPI.doGet(RESTAPI.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(JSONCallbackFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Posted by nejc at Oct 28, 2012 19:25

Hi Richard.

Do you have any solution for this problem?

Thanks in advance.

Regards,
Nejc

Posted by nejc at Nov 02, 2012 13:06

Hi Nejc,

Apologies for not getting back. Lots of work on the web console again so can you try downloading the latest r7041 version using the same link as before and report back if you are still having issues.

When you load in the new version please press Ctrl+Shift+R several times when loading the page for the first time and make sure that it says "Build: 7041" along the bottom of the Settings toolbar.

Rich

Posted by kurrazyman at Nov 02, 2012 14:25

Thanks for your response. I really appreciate your effort to develop web panel great work. But I regret to report that in this version the same problems appeared. I also have one comment to slider look (in this version, slider demission is very strange - too big).

Thanks for all.

Regards,
Nejc

Posted by nejc at Nov 02, 2012 17:25

Hi Nejc,

Glad you can make use of the Web Console and thanks for the feedback.

Sliders now support the use of images and I am aware of a sizing issue when not using images in Firefox (Chrome is OK).

Can you still not type in the input fields? Because I've tried Chrome, Firefox and IE9 and I can type in all of them.

Rich

Posted by kurrazyman at Nov 02, 2012 17:30

Input box now is working, but when I press on url address (then should my panels display) just loading - I can't enter (loading controller or loading panel if i type panel name). It happens if I tried it on anther commuter (windows) in my lan, on my central compute where openremote (debian) runs, it works.

Regarding sliders: I will try with image.

Regards,
Nejc

Posted by nejc at Nov 02, 2012 17:41

It sounds like a network issue specific to your setup; ensure you can access the controller synchronisation page from the other computer in your LAN also. If you are using security you will need a patched version of the controller but without security you should be fine (provided you have no network issues).

Rich

Posted by kurrazyman at Nov 02, 2012 17:46

I can access to synchronization page and I also can sync. I don't use security (ssl). I use controller 2.0.1 and on it I can find errors which I have described in the publication 28. 10. Webconsole which is available at http://sourceforge.net/projects/openremote/files/For%20Developers/WebConsole%20%28Developer%20Releases%29/, works fine on computers in my lan.

Nejc

Posted by nejc at Nov 02, 2012 18:29

There is an issue in the controller log that you pasted that might be causing your problem; can you please email me your panel.xml and controller.xml files to richard [at] openremote [dot] org

Posted by kurrazyman at Nov 02, 2012 20:50

Is there a downloadable Version of webconsole that is supporting the Web-element? The actual Final and Alpha Releases on Sourceforge don't. The url of Rich is offline

Posted by mariom at Nov 09, 2012 18:41

Hey Mario,

My server is offline at the moment but I've uploaded a build from today to dropbox: -

https://dl.dropbox.com/s/0xghxxl2cq2twkk/webconsole.war?dl=1

Give that a try

Rich

Posted by kurrazyman at Nov 09, 2012 20:18

Hello Richard,

The error No such Panel :NAME = appears and the loading page in de webconsole is shown.

Posted by mariom at Nov 09, 2012 20:38

The Error message in the controller console window can be ignored; if the loading message is staying on the screen can you make sure to do a full refresh (press Ctrl+Shift+R a few times....once doesn't seem to always be enough). On the Settings toolbar pull out on the left of the screen it should say the build number along the bottom (Build: 7066 I believe), just check that this is the case.

If you still get the loading screen but no panel then please email me your controller zip file so I can try it.

Rich

Posted by kurrazyman at Nov 09, 2012 20:45

Still have the problem that the webview is not working. I'm currently using the OpenRemote-Controller-2.0.0_SNAPSHOT_20110611 Version, Richards webconsole Version (Thread Nov 09) and the Preview Designer for adding the Webview. In the actual configuration after selecting the panel is:
Console Error: Panel definition is not correct

This is my test panel.xml
<?xml version="1.0" encoding="UTF-8"?>
<openremote xmlns="http://www.openremote.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openremote.org http://www.openremote.org/schemas/panel.xsd">
<panels>
<panel id="87" name="panel3">
<include type="group" ref="88" />
</panel>
<panel id="99" name="panel4">
<include type="group" ref="100" />
</panel>
</panels>
<screens>
<screen id="89" name="Starting Screen">
<absolute left="7" top="2" width="303" height="416">
<web id="119" src="www.google.de" username="" password="" />
</absolute>
<absolute left="241" top="435" width="52" height="11">
<button id="115" name="Button" hasControlCommand="true" />
</absolute>
</screen>
<screen id="104" name="Uebersicht">
<background fillScreen="true">
<image src="floorplanKopie1316032919722.jpg" />
</background>
<grid left="137" top="143" width="640" height="20" rows="1" cols="5">
<cell x="0" y="0" rowspan="1" colspan="1">
<button id="106" name="Esszimmer" />
</cell>
<cell x="1" y="0" rowspan="1" colspan="1">
<button id="107" name="Kueche" />
</cell>
<cell x="2" y="0" rowspan="1" colspan="1">
<button id="108" name="Flur" />
</cell>
<cell x="3" y="0" rowspan="1" colspan="1">
<button id="109" name="Bad" />
</cell>
<cell x="4" y="0" rowspan="1" colspan="1">
<button id="110" name="Button" />
</cell>
<cell x="4" y="0" rowspan="1" colspan="1">
<button id="111" name="Buero" />
</cell>
</grid>
<absolute left="363" top="65" width="200" height="50">
<label id="105" fontSize="14" color="#FFFFFF" text="Erdgeschoss Wohnzimmer" />
</absolute>
<absolute left="375" top="228" width="150" height="50">
<web id="117" src="www.google.de" username="" password="" />
</absolute>
</screen>
</screens>
<groups>
<group id="88" name="Default Group">
<include type="screen" ref="89" />
</group>
<group id="100" name="Default Group">
<include type="screen" ref="104" />
</group>
</groups>
</openremote>

Any hints?

Posted by mariom at Jan 10, 2013 22:12

Hi Juha.

Now, something similar happened again.
My panel with my whole disign is gone and has been replaced by a test panel from another account I have (kenta2).

In the building modeler everything looks fine this time too.

Are you able to restore my panel? (I do not know exactly when this happened).
My account name is "kenta".

Posted by kenta at Mar 14, 2013 10:44

Will check.

Posted by juha at Mar 17, 2013 19:43

Have you had time to look after my missing design?

Thanks in advance.

Posted by kenta at Mar 20, 2013 06:55

The last backup seems to be dated November 9th, is that correct?

Posted by admin at Mar 20, 2013 12:47

I've really built a lot on my design since Nov. 9.

Last time I saved and synced my design was the 21 February.

Please tell me you can find a more recent backup.

Posted by kenta at Mar 20, 2013 14:45

Hmm that would be strange. Do send me an openremote.zip from your controller if you've saved it. I'll try to dig more but the usual location for backups doesn't have anything from your account since Nov 9th. There was another user who also claimed to have saved yet there were no backups left on the server. Strange.

Posted by juha at Mar 20, 2013 15:07

Ok, I see you've migrated to 2.14 preview. I do have a backup of your Feb 21st save there.

Posted by juha at Mar 20, 2013 15:12

Restore complete.

Posted by juha at Mar 20, 2013 15:39

Phew! I was a little scared for a while

Thank you very much.

Posted by kenta at Mar 21, 2013 20:37
Document generated by Confluence on Jun 05, 2016 09:29