Clarity PPM

Expand all | Collapse all

Jaspersoft : PhantomJS Force webdriver Port

  • 1.  Jaspersoft : PhantomJS Force webdriver Port

    Posted 05-28-2018 05:09 AM

    Hi all,

     

    Is there a way to force listening port on PhantomJS feature of Jaspersoft ?

     

    My problem is that the server where Jaspersoft is installed has strict rules regarding port listening and network. I get the error when trying to export a dashboard : "Dashboard renderer not found or failed to start".

     

    Steps to Reproduce :
    - Go to Jaspersoft Reportservice
    - Title Dashboards, Click "View List"
    - Select a Dashboard
    - Mouse over "Export Dashboard", Click "PDF" for instance
    - The popup "Loading... Please Wait" appears
    - The error "Dashboard renderer not found or failed to start" appears

     

    The problems seems to come from listening ports.

     

    In log $CATALINA_HOME/logs/catalina.out, I get the following :

    > more catalina.out | grep "/status] to be available after 20000 ms"
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:12105/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:6499/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:12392/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:32160/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:14184/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:26883/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:11766/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:22394/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:25245/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:11088/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:31981/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:15744/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:25694/status] to be available after 20000 ms
    Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:12629/status] to be available after 20000 ms

     

    The port of PhantomJS seems to be random.

     

    -----
    For information, I tried to edit configuration file :
    $CATALINA_HOME/webapps/reportservice/WEB-INF/js.config.properties

     

    And to add parameter --webdriver=8081 on PhantomJS executable path :
    phantomjs.binary=$CATALINA_HOME/webapps/reportservice/phantomjs/linux/phantomjs --webdriver=8081

     

    After the service restart, I get the following error :
    2018-05-28 10:39:16,389 ERROR GenericExceptionMapper,http-bio-8080-exec-4:47 [root|superuser] - Unexpected error occurs
    java.lang.IllegalStateException: The driver executable does not exist: /opt/application/kodjsp/products/apache-tomcat-7.0.55/webapps/reportservice/phantomjs/linux/phantomjs --webdriver=8081

     

    Worth the try I guess
    -----

    Thx for ur help.

     

    Regards,
    David



  • 2.  Re: Jaspersoft : PhantomJS Force webdriver Port

    Posted 07-03-2018 05:49 AM

    Hi All,

     

    Another issue regarding dashboard export on Jaspersoft, i had the following error in catalina.out :

    $CATALINA_HOME/webapps/reportservice/phantomjs/linux/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

    You need to install the library fontconfig to make it work.

     

    Try the yum command as root :

    yum install fontconfig fontconfig-devel

    A restart of the service reportservice should make the error disappear.

     

    Regards,

    David