Hitachi Vantara Pentaho Community Forums
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: CDE embedding issues

  1. #1
    Join Date
    May 2017
    Posts
    4

    Question CDE embedding issues

    Hello everybody!

    Could somebody help me with an embedding of CDE dashboard? I have tried this https://help.pentaho.com/Documentati...nced_Solutions for Pentaho CE 7.0 and Pentaho CE 7.1 with following results:

    Pentaho 7.0
    1. Everything works fine if my web application is on the same domain.
    2. If my web app is placed on another domain it doesn’t work and I have the following in my browser’s consol:
    - Many CORS errors for underscore.js, backbone.js, …, i18n.properties, jquery.ui.js (no CORS «Access-Control-Allow-Origin» headers). Please note that <allow-cross-domain-resources>true</allow-cross-domain-resources> for my server/pentaho-server/pentaho-solutions/system/pentaho-cdf/settings.xml and server/pentaho-server/pentaho-solutions/system/pentaho-cdf-dd/settings.xml
    - In addition I have two errors:
    Code:
    > ReferenceError: _ is not defined (in  require.js%20line%2036%20%3E%20eval:4:3)
    > ReferenceError: Xmla is not defined (in require.js%20line%2036%20%3E%20eval:4:3)
    > TypeError: n.i18n is undefined (in cdf.jquery.i18n.js)
    - And finally
    Code:
     Error: Load timeout for modules: dash!/public/test/demoDashboard.wcdf_unnormalized2,dash!/public/test/demoDashboard.wcdf,amd!cdf/lib/underscore_unnormalized3,amd!cdf/lib/underscore_unnormalized5,amd!cdf/lib/backbone_unnormalized6,amd!cdf/lib/backbone_unnormalized8,amd!cdf/lib/underscore_unnormalized10,amd!cdf/lib/underscore_unnormalized11,amd!cdf/lib/underscore_unnormalized14,amd!cdf/lib/backbone_unnormalized17,amd!cdf/lib/underscore_unnormalized18,amd!cdf/lib/underscore_unnormalized19,amd!cdf/lib/underscore_unnormalized20,amd!cdf/lib/underscore_unnormalized21,amd!cdf/lib/underscore_unnormalized22,amd!cdf/lib/underscore_unnormalized23,amd!cdf/lib/xmla_unnormalized24,amd!cdf/lib/underscore_unnormalized25,amd!cdf/lib/underscore_unnormalized30,amd!cdf/lib/underscore_unnormalized32,amd!cdf/lib/underscore_unnormalized37,amd!cdf/lib/underscore_unnormalized38,amd!cdf/lib/backbone_unnormalized39,amd!cdf/lib/underscore,amd!cdf/lib/backbone,amd!cdf/lib/xmla
    http://requirejs.org/docs/errors.html#timeout in the require.js:8:252
    Pentaho 7.1
    1. If my web app is hosted on the same domain as a Pentaho server I get
    Code:
    Error: /pentaho/i18n?plugin=http:&name=/<mydonainname>:7080/pentaho/content/common-ui/resources/web/pentaho/type/i18n/types HTTP status: 500 in the text.js:294:31
    and finally
    Code:
    Error: Load timeout for modules: pentaho/i18n!types_unnormalized39,pentaho/i18n!types_unnormalized41,pentaho/i18n!types_unnormalized42,pentaho/i18n!types_unnormalized43,pentaho/i18n!types_unnormalized44,pentaho/i18n!types_unnormalized45,pentaho/i18n!types_unnormalized46,pentaho/i18n!types_unnormalized47,pentaho/i18n!types_unnormalized48,pentaho/i18n!types_unnormalized49,pentaho/i18n!types_unnormalized50,pentaho/i18n!types_unnormalized51,pentaho/i18n!types_unnormalized52,pentaho/i18n!types_unnormalized53,pentaho/i18n!types_unnormalized54,pentaho/i18n!types_unnormalized55,pentaho/i18n!types_unnormalized56,pentaho/i18n!pentaho/type/i18n/types
    http://requirejs.org/docs/errors.html#timeout in the require.js:8:252
    2. If my web app is placed on another domain it doesn’t work too:
    - Many CORS errors as for the Pentaho 7.0
    - Reference and type errors as for the Pentaho 7.0
    - Some additional error:
    Code:
    Error: /pentaho/i18n?plugin=http:&name=/<domain name>/pentaho/content/common-ui/resources/web/pentaho/type/i18n/types HTTP status: 404 in text.js:294:31
    And finally:
    Code:
    Error: Load timeout for modules: dash!/public/test/demoDashboard.wcdf_unnormalized2,dash!/public/test/demoDashboard.wcdf,amd!cdf/lib/underscore_unnormalized3,amd!cdf/lib/underscore_unnormalized5,amd!cdf/lib/underscore_unnormalized7,amd!cdf/lib/backbone_unnormalized8,amd!cdf/lib/backbone_unnormalized10,amd!cdf/lib/underscore_unnormalized12,amd!cdf/lib/underscore_unnormalized13,amd!cdf/lib/underscore_unnormalized16,amd!cdf/lib/backbone_unnormalized19,amd!cdf/lib/underscore_unnormalized20,amd!cdf/lib/underscore_unnormalized21,amd!cdf/lib/underscore_unnormalized22,amd!cdf/lib/underscore_unnormalized23,amd!cdf/lib/underscore_unnormalized24,amd!cdf/lib/underscore_unnormalized25,amd!cdf/lib/xmla_unnormalized26,amd!cdf/lib/underscore_unnormalized27,amd!cdf/lib/underscore_unnormalized32,amd!cdf/lib/underscore_unnormalized35,amd!cdf/lib/underscore_unnormalized37,amd!cdf/lib/underscore,amd!cdf/lib/backbone,amd!cdf/lib/xmla,pentaho/i18n!types_unnormalized38,pentaho/i18n!types_unnormalized40,pentaho/i18n!types_unnormalized41,pentaho/i18n!types_unnormalized42,pentaho/i18n!types_unnormalized43,pentaho/i18n!types_unnormalized44,pentaho/i18n!types_unnormalized45,pentaho/i18n!types_unnormalized46,pentaho/i18n!types_unnormalized47,pentaho/i18n!types_unnormalized48,pentaho/i18n!types_unnormalized49,pentaho/i18n!types_unnormalized50,pentaho/i18n!types_unnormalized51,pentaho/i18n!types_unnormalized52,pentaho/i18n!types_unnormalized53,pentaho/i18n!types_unnormalized54,pentaho/i18n!types_unnormalized55,pentaho/i18n!pentaho/type/i18n/types
    http://requirejs.org/docs/errors.html#timeout
    Could somebody help with this?

  2. #2
    Join Date
    Aug 2006
    Posts
    287

    Default

    Hi there
    I reproduced the issue when embedding on Pentaho Server
    http://jira.pentaho.com/browse/CDE-912 - Uncaught Error: Load timeout for modules when embedding dashboard within Pentaho Server

  3. #3
    Join Date
    Apr 2017
    Posts
    11

    Default

    I get similar. I have setup a clean install of Pentaho 7.1 and restored from 7.0. Have set both settings.xml to <allow-cross-domain-resources>true</allow-cross-domain-resources>, and have played with various whitelist options (this is new in 7.1?). No matter what I get scripts all failing to load due to lack of headers.

    I'm going to have to revert to 7.0.

  4. #4
    Join Date
    Apr 2017
    Posts
    11

    Default

    And having now worked around CORS with adding a filter to web.xml, I get the same i18n 404 as the original poster... What is with this version?

  5. #5
    Join Date
    Jun 2017
    Posts
    3

    Default

    For me, the same CORS issues above were being caused by not clearing my Chrome browser cache. I needed to drop that cache for the correct headers to show up, and then it started playing nicely. Perhaps this will help resolve that first set of issues.

    However, I am also seeing that i18n issue when embedding outside of the Pentaho server, and haven't figured out a workaround. I realize the code fix is being done for the 'inside Pentaho' scenario, but not sure if they are also tracking issues with this outside of Pentaho's tomcat server.

    For me, once I resolved the CORS issues, I started running into problems whenever a chart visualization was used in the required dashboard. When using dash with charts included, there wouldn't be a console logged error*, and the dashboard wouldn't be rendered. By not rendered, I mean none of the additional divs or DOM content is being loaded into the target element in my parent page. By no "console logged errors" I mean outside of the il8n errors. I am not sure if this issue (the module timeout shown above) is the problem with dashboards using CCC visualizations, and they will start working once the i18n is resolved.

    So thats how I got around the CORS issues, but only a little bit further before the il8n started bombing my dashboards w charts.

  6. #6
    Join Date
    Jul 2017
    Posts
    3

    Default

    Hello,


    I have exactly the same problem. Anyone know the solution?


    Thank you

  7. #7
    Join Date
    Dec 2012
    Posts
    7

    Default

    I ran into same issue on 7.1, 7.1.0.0-12 to be more specifc. You may try the ugly workaround below if you need a quick fix:
    # cd <pentaho-server-home>
    # sed -i -e 's|\( var xhr = text.createXhr(), header;\)| url = url.replace(/https:\&name=\\/.*\\/pentaho\\/content\\/([a-zA-Z0-9\\-_]+)\\//mg, "\\$1\&name=");\n\1|' pentaho-solutions/system/common-ui/resources/web/util/require-text/text.js

  8. #8
    Join Date
    Aug 2013
    Posts
    100

    Default

    @zhicwu: same problem after running the below command?
    Have any one able to find out any solution for this?
    Quote Originally Posted by zhicwu View Post
    I ran into same issue on 7.1, 7.1.0.0-12 to be more specifc. You may try the ugly workaround below if you need a quick fix:

  9. #9

    Default

    Same issue for me on Pentaho 7.1 for the following project using Angular4 + Pentaho 7.1 (different domains: localhost both but different ports).
    https://github.com/fcorti/angular-cli-adf-app
    The suggested workaround using the regex doesn't work for me too (thank you for sharing, in every case).

    The wrong call in my case is the following one:
    http://localhost:8080/pentaho/i18n?p...ype/i18n/types
    (the name parameter is clearly in the wrong place and the plugin url is broken)

    Anyone knows which the right call should be?

    I saw the following resource exists:
    http://localhost:8080/pentaho/conten...pes.properties

    But running the following url, I get the "LocalizationServlet.ERROR_0001 - Invalid plugin id" error in the catalina.out.
    http://localhost:8080/pentaho/i18n?p...8n/types&name=

    Any suggestion?
    Last edited by fcorti; 09-17-2017 at 03:19 AM.

  10. #10
    Join Date
    Apr 2016
    Posts
    9

    Default

    Is this the same issue you are running into? If so looks like it's been fixed, but not included in any service pack yet

    http://jira.pentaho.com/browse/CDE-912

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2017 Pentaho Corporation. All Rights Reserved.