<div dir="ltr">Hi Livia,<div><br></div><div>The error seems related to the following issue:</div><div><br></div><div><a href="http://localhost:9442/ws" target="_blank" style="font-family:'Courier New';font-size:13px">http://localhost:9442/ws</a><span style="font-family:'Courier New';font-size:13px"> [HTTP/1.1 400 This server only speaks WebSocket subprotocols wamp.2.json.batched, wamp.2.json 10ms]</span><br style="font-family:'Courier New';font-size:13px"><span style="font-family:'Courier New';font-size:13px">Connection could not be established. embed.html:134:25</span><br></div><div><span style="font-family:'Courier New';font-size:13px"><br></span></div><div>I'm not sure to understand why that could be, but I was wondering if you could try to run the WebVisualizer to see if that works as it's the part that get actively developed while the rest are just sample code base that's meant to help the community to build their own code base.</div><div><span style="font-family:'Courier New';font-size:13px"><br></span></div><div>Moreover, if you could share your launcher configuration, that could be useful.<br></div><div><br></div><div>Thanks,</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 5, 2015 at 10:47 AM,  <span dir="ltr"><<a href="mailto:livia.barazzetti@istb.unibe.ch" target="_blank">livia.barazzetti@istb.unibe.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
Hi, <br>
I am following the paraview web guide and testing the provided web application in version 4.4.0 .<br>
I modified the script in <br>
<a href="http://www.paraview.org/gitweb?p=ParaViewSuperbuild.git;a=blob_plain;f=Scripts/pvw-setup.py;hb=HEAD" target="_blank">http://www.paraview.org/gitweb?p=ParaViewSuperbuild.git;a=blob_plain;f=Scripts/pvw-setup.py;hb=HEAD</a> 
<br>
in order to download Paraview4.4 for linux 64 (I am running Ubuntu 15 desktop in a virtual machine), change the ports . I am following the documentation in
<a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#" target="_blank">
http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#</a> , and for a start I am trying the Python launcher.
<br>
<br>
Using the script bin/start.sh I am able to load the webpage at <a href="http://localhost:4400/apps/LiveArticles/" target="_blank">http://localhost:4400/apps/LiveArticles/</a> , but when I click to embedded visualization , I see that the "server" process is starting a vtk render window but without data . After a moment the visualization
 on the web page closes. <br>
<br>
Here are the relevant part of the logs :<br>
<br>
<b>In Firefox Developer console</b>:<br>
<br>
<font face="Courier New">The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. embed.html<br>
The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. embed.html<br>
Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery-1.8.3.min.js:2:0<br>
GET <br>
<a href="http://localhost:9442/ws" target="_blank">http://localhost:9442/ws</a> [HTTP/1.1 400 This server only speaks WebSocket subprotocols wamp.2.json.batched, wamp.2.json 10ms]<br>
Connection could not be established. embed.html:134:25<br>
Firefox can't establish a connection to the server at ws://localhost:9442/ws.<br>
<br>
</font><b><br>
In LauncherLog.log:</b><br>
<br>
<font face="Courier New">2015-10-05 18:15:24,525:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 +0000] "GET /ext/core/jquery.hammer.min.js HTTP/1.1" 304 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>" "Mozilla/5.0 (X11; Ubuntu;
 Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0"<br>
2015-10-05 18:15:24,529:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 +0000] "GET /ext/core/vgl.min.js HTTP/1.1" 304 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101
 Firefox/41.0"<br>
2015-10-05 18:15:24,532:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 +0000] "GET /ext/jquery-ui/jquery-ui-1.10.0.css HTTP/1.1" 304 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0)
 Gecko/20100101 Firefox/41.0"<br>
2015-10-05 18:15:24,534:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 +0000] "GET /ext/jquery-ui/jquery-ui-1.10.0.min.js HTTP/1.1" 304 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64;
 rv:41.0) Gecko/20100101 Firefox/41.0"<br>
2015-10-05 18:15:24,537:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:24 +0000] "GET /lib/core/vtkweb-all.min.js HTTP/1.1" 304 - "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=disk_out_ref.ex2</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101
 Firefox/41.0"<br>
2015-10-05 18:15:41,492:INFO:twisted:"127.0.0.1" - - [05/Oct/2015:16:15:41 +0000] "POST /paraview HTTP/1.1" 200 194 "<a href="http://localhost:4400/apps/LiveArticles/embed.html?data=can.ex2" target="_blank">http://localhost:4400/apps/LiveArticles/embed.html?data=can.ex2</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0"</font><br>
<br>
<b><br>
in the process log:<br>
<font face="Courier New"><br>
</font></b><font face="Courier New">2015-10-05 18:15:39+0200 [-] Log opened.<br>
2015-10-05 18:15:41+0200 [-] Site starting on 9442<br>
2015-10-05 18:15:41+0200 [-] Starting factory <twisted.web.server.Site instance at 0x4a0f488><br>
2015-10-05 18:15:41+0200 [-] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
2015-10-05 18:15:41+0200 [-] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
<br>
2015-10-05 18:15:41+0200 [-] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
2015-10-05 18:15:41+0200 [-] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] Client has reconnected, cancelling reaper<br>
2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] on_connect: connection count = 1<br>
2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] connection_lost: connection count = 0<br>
2015-10-05 18:15:41+0200 [HTTPChannel,0,127.0.0.1] Starting timer, process will terminate in: 300sec<br>
2015-10-05 18:20:41+0200 [twisted.web.server.Site] (TCP Port 9442 Closed)<br>
2015-10-05 18:20:41+0200 [twisted.web.server.Site] Stopping factory <twisted.web.server.Site instance at 0x4a0f488><br>
2015-10-05 18:20:41+0200 [-] Main loop terminated.<br>
</font><br>
Interestingly I've seen that the process that is called by the PythonLauncher is <br>
<font face="Courier New">/data/pvweb/ParaView-4.4.0-Qt4-Linux-64bit/lib/paraview-4.4/pvpython /data/pvweb/ParaView-4.4.0-Qt4-Linux-64bit/lib/paraview-4.4/site-packages//paraview/web/pv_web_file_loader.py --port 9442 --data-dir /data/pvweb/data -f</font><br>
<br>
I've already tried to modify the javascript in the embed.html code in order to "force"  the data file in the command that the server uses to launch the script, but the problem of the render window immediately closing remains.<br>
I don't think it's a problem of the configuration, because I am able to use the visualization app and load some data.
<br>
<br>
Any suggestion about this problem? I don't know how to debug further to understand if the problem in on the javascript or python side<br>
<br>
Best regards<br>
Livia <br>
<br>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>