[Viewer 6.7 & 6.8] Rendering errors

Post Reply
User avatar
tkinte
Posts: 146
Joined: 18 Nov 2014, 08:24
Location: https://www.linkedin.com/in/tshitshi-kia-ntoni
Contact:

Hi

View: Technology Reference Model

Code: Select all

Uncaught SyntaxError: Unexpected identifier

...
{debug:"test",
		id: "KB_154733_Class10",
		name: "Interactieve digitale Printingservice "Scriptura Interactive"   -   Services d’impression digitale interactive "Scriptura Interactive"",
		link: "<a href = \"?XML=reportXML.xml&PMA=KB_154733_Class10&cl=en-gb\" class = \" context-menu-techCompGenMenu\" id =\"KB_154733_Class10Link\" >Interactieve digitale Printingservice \"Scriptura Interactive\"   -   Services d’impression digitale interactive \"Scriptura Interactive\"</a>",
		description: "NL:  De interactieve digitale printingservice “Scriptura interactive” biedt: * businesstoepassingen de mogelijkheid om op interactieve wijze documenten aan te maken * deze te groeperen in een XML batch-bestand * ze te printen * ze te verzenden                      -                   FR:  Le service d’impression digitale interactive \"Scriptura Interactive\" est : * la possibilité, pour des applications-métier, de créer des documents interactivement * de les regrouper dans un fichier XML batch * de les imprimer * de les expédier",
	
	
        techProdRoles:[  "KB_174338_Class167", "KB_174338_Class168", "KB_174338_Class181", "KB_174338_Class239", "KB_180413_Class5", "KB_180413_Class8"]  
		},
		
		...
View: IT Asset Dashboard

Code: Select all

Uncaught SyntaxError: Unexpected identifier

Code: Select all

Uncaught ReferenceError: redrawView is not defined
    at HTMLDocument.<anonymous> (report?XML=reportXML.xml&XSL=enterprise/core_el_it_asset_dashboard.xsl&LABEL=IT Asset Dashboard&cl=en-gb:176354)
    at e (jquery-3.4.1.min.js:2)
    at t (jquery-3.4.1.min.js:2)
View: Application Dependency Network

Code: Select all

Uncaught SyntaxError: missing ) after argument list
...

		var newAppRect = new Shape({ id: 'compApp19', codebase: ['lightgray', '#333333'], deliveryModel: ['lightgray', '#333333'], attrs: {class: 'class1compApp19', image: { 'xlink:href': '' } } }).setText('Accijnsinrichtingen-Etablissements d'accises_Prod');
		elements.push(newAppRect);
		
...
Additional Errors (2020/01/24)

View: Application Data Dependency Model

Code: Select all

Etat HTTP 500 - java.io.FileNotFoundException: C:\Program Files\EA_HOME\Apache Software Foundation\8080_Viewer_Tomcat9\webapps\essential_viewer_68\graph_images\uml\642121385.png (Le chemin d’accès spécifié est introuvable)
View: Data Catalogue by Name

Code: Select all

jquery-3.4.1.min.js:2 Uncaught Error: Syntax error, unrecognized expression: a[href=#top]
    at Function.se.error (jquery-3.4.1.min.js:2)
    at se.tokenize (jquery-3.4.1.min.js:2)
    at se.select (jquery-3.4.1.min.js:2)
    at Function.se [as find] (jquery-3.4.1.min.js:2)
    at k.fn.init.find (jquery-3.4.1.min.js:2)
    at new k.fn.init (jquery-3.4.1.min.js:2)
    at k (jquery-3.4.1.min.js:2)
    at HTMLDocument.<anonymous> (report?XML=reportXML.xml&XSL=information/core_il_data_object_list_by_name.xsl&LABEL=Data Object Catalogue by Name&&targetReportId=essential_baseline_v3.0.4_Class100&cl=en-gb:39)
    at e (jquery-3.4.1.min.js:2)
    at t (jquery-3.4.1.min.js:2)
View: Application Technology Strategy Alignment

Code: Select all

Essential Viewer Error
Oops!  Essential Viewer encountered an error while generating the requested View

An empty sequence is not allowed as the second argument of index-of(); SystemID: file:/C:/Program%20Files/Apache%20Software%20Foundation/8080_Tomcat9/webapps/minfinea_prod/technology/core_tl_app_tech_alignment.xsl; Line#: 526; Column#: -1

Fatal Error: An empty sequence is not allowed as the second argument of index-of(); SystemID: file:/C:/Program%20Files/Apache%20Software%20Foundation/8080_Tomcat9/webapps/minfinea_prod/technology/core_tl_app_tech_alignment.xsl; Line#: 526; Column#: -1

Enable the Detailed Error Message filter to view more information about this error.
For more information about how to resolve this error, visit  Essential Viewer Error Messages articles.
View: Application Technology Plateform Model

Code: Select all

:8080/essential_viewer_68/uml_model.jsp?XML=reportXML.xml&PAGEXSL=technology/core_tl_app_tech_alignment.xsl&PMA=KB_958736_Class1&XSL=technology/core_tl_app_tech_alignment.xsl&LABEL=Application%20Technology%20Platform%20Model%20-%20180B%20AUT_PROD&cl=en-gb:1 GET http://localhost:8080/essential_viewer_68/uml_model.jsp?XML=reportXML.xml&PAGEXSL=technology/core_tl_app_tech_alignment.xsl&PMA=KB_958736_Class1&XSL=technology/core_tl_app_tech_alignment.xsl&LABEL=Application%20Technology%20Platform%20Model%20-%20180B%20AUT_PROD&cl=en-gb net::ERR_INCOMPLETE_CHUNKED_ENCODING 200
View: Information Store Catalogue

Code: Select all

jquery-3.4.1.min.js:2 Uncaught TypeError: Cannot read property 'mData' of undefined
    at HTMLTableCellElement.<anonymous> (VM1901 jquery.dataTables.min.js:90)
    at Function.each (jquery-3.4.1.min.js:2)
    at k.fn.init.each (jquery-3.4.1.min.js:2)
    at HTMLTableElement.<anonymous> (VM1901 jquery.dataTables.min.js:90)
    at Function.each (jquery-3.4.1.min.js:2)
    at k.fn.init.each (jquery-3.4.1.min.js:2)
    at k.fn.init.n [as dataTable] (VM1901 jquery.dataTables.min.js:83)
    at k.fn.init.h.fn.DataTable (VM1901 jquery.dataTables.min.js:165)
    at HTMLDocument.<anonymous> (report?XML=reportXML.xml&PAGEXSL=&PMA=&XSL=information/core_il_info_store_catalogue_as_table.xsl&LABEL=Information Store Catalogue&&targetReportId=&targetMenuShortName=&cl=en-gb:264)
    at e (jquery-3.4.1.min.js:2)
View: Technology Product Catalogue by Component
View: Technology Product Catalogue as Table

Code: Select all

Uncaught SyntaxError: Unexpected identifier
...
{
		
		
		
		"id": "KB_684596_Class282",
		"name": "HP  Autonomy Connected Backup PC versie  8.6",
		"link": "<a href = \"?XML=reportXML.xml&PMA=KB_684596_Class282&cl=en-gb\" class = \" context-menu-techProdGenMenu\" id =\"KB_684596_Class282Link\" >HP  Autonomy Connected Backup PC versie  8.6</a>",
		"description": "TL.PRD.ABB 4.8.2  -  Autonomy Connected Backup PC versie: 8.6 / version: 8.6<br/>NL : <br/>ICT Client stelt aan alle desktops en laptops van het domein Finbel.intra een gecentraliseerd systeem voor backups ter beschikking. Alle gegevens (behalve mp3,.mpeg, enz) van de dossiers C:\data, D:\data en \Documents and Settings\“user name”\Mijn documenten worden dagelijks opgeslagen via het programma Agent Connected. <br/>FR : <br/>ICT Clients met à la disposition de tous les desktops et laptops du domaine Finbel.intra un système de backup centralisé. Toutes les données (hormis les .mp3,.mpeg, etc.) des dossiers C:\Data, D:\Data et..\Documents and Settings\\" user name\" \Mes documents sont quotidiennement sauvegardés via le programme Agent Connected",
		"menu": "context-menu-techProdGenMenu",
		"roadmap": {
			"roadmapStatus": "Unchanged",
			"isVisible": true,
			"plansForPeriod": [],
			"archStatesForPeriod": [],
			"objectivesForPeriod": [],
			"rmStyle": 
		{
			"elementId": "KB_984364_Class39",
			"styleClass": "text-secondary",
			"styleBgColour": "#c3193c",
			"styleIcon": "",
			"styleTextColour": "#c3193c"
		}
	, 
	....
View: Programme Plan for ...

Code: Select all

Uncaught TypeError: Cannot set property 'onchange' of null
    at report?XML=reportXML.xml&PMA=KB_712195_Class0&cl=en-gb&XSL=enterprise/core_el_programme_plan.xsl&PAGEXSL=&LABEL=Programme Plan -CRM en dienstverlening:587
    ...
    
		startDateFilter.onchange = filterFunction;
		endDateFilter.onchange = filterFunction;
		stratPlanFilter.onchange = filterFunction;
		projectFilter.onchange = filterFunction;
		
		$(window).bind("pageshow", filterFunction);
		...
	
NOTA : the syntax error does not impact the following views :
  • Search results for: ...
  • View: All Instances by Class
  • View: Class Browser=instance overview by id



Best regards.

Tshitshi
Last edited by tkinte on 24 Jan 2020, 10:39, edited 9 times in total.
colinfrewen
Posts: 67
Joined: 10 Dec 2013, 01:22
Location: Australia

Hi,

Just a suggestion. There were some % in some of the descriptions which the viewer took exception. Do a string search for %, &, #, which we never use and always remove unless the # is used in the color schemes.

Regards
Colin
User avatar
tkinte
Posts: 146
Joined: 18 Nov 2014, 08:24
Location: https://www.linkedin.com/in/tshitshi-kia-ntoni
Contact:

Hi Colin.

Many thanks for the suggestion.

Fortunately, other views are not impacted by the syntax error.

As shown by the last update of the initial post.

Best regards.

Tshitshi
JohnM
Posts: 517
Joined: 17 Feb 2009, 20:19

Tshitshi,

We can see that you have some characters that Essential won't like that will cause some, if not all of these issues. As we move to JSON base views it is a bit more sensitive to the data, so using " in names and descriptions can cause issues unless it is escaped. Speaking to the developer, then names generally aren't escaped as the assumption was you wouldn't have quotes in a name, we'll look to fix that in the next release. A workaround is to use single quotes.

So: Interactieve digitale Printingservice "Scriptura Interactive" - Services d’impression digitale interactive "Scriptura Interactive" should use single quotes.

Interactieve digitale Printingservice 'Scriptura Interactive' - Services d’impression digitale interactive 'Scriptura Interactive'

Regarding the descriptions, we can see that you have tried to escape the quotes, you shouldn't need to this as the descriptions should be escaped already, e.g. tech ref model is. If we've missed one then let us know. the workaround again is to remove the backslash.

If you want to fix the views yourself earlier then you need to add eas:renderJSText() around names and descriptions in the view, e.g <xsl:value-of select="eas:renderJSText($techCompDescription)"/> Please do share back the changes if you do. If we get them done earlier, we'll post them here.

We're hoping to move to XSL3 soon which will simplify this a lot.

Apologies for this

John
Post Reply