How to resolve mixed content errors when N4V components fail to display in Webi reports

Anonymised summary of support ticket #750671 (2025-04-11)

Symptom

N4V components (Mapline, HTML Filtered Table, Liquid Gauge) in Webi reports display as blank or empty frames after deployment or server configuration changes. The issue occurs when accessing reports via HTTPS while N4V components are configured to use HTTP endpoints.

Environment

SAP BusinessObjects Web Intelligence (Webi) with N4V FOR WEBI extensions. N4V CustomElements webapp deployed on Tomcat. Reports accessed via HTTPS with mixed HTTP/HTTPS content.

Resolution

  1. Identify the root cause: Mixed content errors occur when HTTPS pages load resources (N4V components) via HTTP URLs, blocked by modern browsers for security reasons.
  2. Locate the config.js file in the N4V CustomElements webapp deployment directory (e.g., Tomcat/webapps/N4VCustomElements/ce_libs/).
  3. Edit the config.js file to ensure N4V components are served over HTTPS by updating the following parameters:
  4. - Change `URLNodeJSServer` to the HTTPS-compatible URL of the Node.js server hosting N4V components.
  5. - Set `PORTTomcat` to 443 (default HTTPS port) if the Tomcat server is configured for HTTPS.
  6. Example:
  7. var URLNodeJSServer = "https://your-nodejs-server-url";
  8. var PORTTomcat = 443;
  9. Restart the Tomcat server to apply changes.
  10. Verify that the Webi report now displays N4V components correctly when accessed via HTTPS.
  11. If multiple URLs (internal/external) are required, ensure all URLs are HTTPS-compliant or configure a reverse proxy to route traffic consistently.

Other resolution

For environments requiring both internal and external access, consider using a single DNS entry accessible from both networks or configuring a reverse proxy to standardize the URL scheme. Refer to the N4V architecture guide for reverse proxy and DNS configuration best practices.