Server Management - Systems Insight Manager
1833784 Members
2387 Online
110063 Solutions
New Discussion

HP SIM 4.0 AdvancedSystemsSearch.jsp error

 
Enes Dizdarevic
Honored Contributor

HP SIM 4.0 AdvancedSystemsSearch.jsp error

I have install HP SIM 4.0 on Windows Server 2003. Everything worked OK for few days but now Advanced Search causes Error on page.
Line: 2857
Char: 107
Error: Unterminated string constant
Code: 0
URL: https://szgsim01.igh.hr:50000/mxportal/search/AdvancedSystemsSearch.jsp
I have deinstalled HPSIM installed again and got the same behavior: works for a few days and then Advanced Search error.
Any ideas?
1 REPLY 1
Enes Dizdarevic
Honored Contributor

Re: HP SIM 4.0 AdvancedSystemsSearch.jsp error

Using mozilla browser and javascript console I have found cause for this behavior but I still have no solution. Can enyone help me?
Error "Unterminated string constant" is generated in function updateValueBox(oCompSelect, bRefresh).
This function generates list of options. One part of these options is based on titles of web servers home pages discovered on my network. One title contained new line character which break javascript command into two lines, something like this:
oOption = document.createElement("OPTION");
oOption.text = "INSTITUT GRAÃ EVINARSTVA HRVATSKE, d.d. - IGH, d.d. - Zagreb, PC Split, PC Osijek,
PC Rijeka";
oOption.value = "19";
oValBox.options.add(oOption);
Because second part of string was in another row javascript generates error "Unterminated string constant".

I have corrected this title on my web server but HP SIM still tries to generate old option. I have removed problematic server from database, nothing helped.

Does anyone knows how function updateValueBox generates option list and how to clear incorrect entry?