[Paraview] Got a 404 error when test LiveArticles sample

Junyi Han demonmerlin at gmail.com
Fri Nov 15 12:14:27 EST 2013


Hi Seb,

Thanks very much for your help.
I'm trying to open a vtk file by modifying the sample code. Could you
please help me to understand following code:
pv.connection.session.call("pv:openFileFromPath",
filePath).then(function(reply){pv.viewport.render();});

1. After connecting to a session, methods such as pv:openFileFromPath and
vtk:render can be called. But I don't know where to find those methods, I
only got these two from examples.
2. Where is the session defined? I want to know how does session function
works.

Best wishes,
Junyi Han


2013/11/15 Sebastien Jourdain <sebastien.jourdain at kitware.com>

> Hi Junyi,
>
> That specific sample application expect a session manager to automatically
> start a new python process for each visualization.
>
> If you run an existing web application, you can only load its
> corresponding web page.
>
> Hope that make sense,
>
> Seb
>
> On Nov 14, 2013, at 21:07, Junyi Han <demonmerlin at gmail.com> wrote:
>
> Hi all,
>
> I start up a python http server and try to test samples as shown on the
> front page of wiki. But I got a 404 error as follow:
> 2013-11-14 22:51:30-0500 [HTTPChannel,4,127.0.0.1] 127.0.0.1 - -
> [15/Nov/2013:03:51:30 +0000] "POST */paraview* HTTP/1.1" 404 145 "
> http://localhost:8080/apps/LiveArticles/embed.html?data=can.ex2"
> "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/30.0.1599.66 Safari/537.36"
>
> I don't find a directory called *paraview* under ../../paraview-4.0/www
> but it's used as parameter of POST command. Did I don something wrong?
>
> Best wishes,
> Junyi Han
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131115/c9061ad7/attachment.htm>


More information about the ParaView mailing list