locked
AviCode Throwing JavaScript Errors RRS feed

  • Question

  • Hi,

    I am using AviCode in IE8. 

    I am getting the javascript errors when working with AviCode.  As a result, I am not seeing the stack trace or info about error details.

    The error chain is listed below:

     

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E; AskTbTRL2/5.7.0.231)
    Timestamp: Tue, 12 Jul 2011 13:49:03 UTC


    Message: Syntax error
    Line: 1
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/HandlerData/CLRXMonitorLog/4_1/jsclientscript.aspx


    Message: 'OV' is undefined
    Line: 136
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 139
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 201
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 251
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 280
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 306
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 332
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 358
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 387
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 420
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 446
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 475
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 501
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 527
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 556
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 585
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 611
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 637
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 663
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 689
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 718
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 747
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 773
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 802
    Char: 13
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 846
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 847
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 848
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 849
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 884
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 217
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 221
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 225
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 225
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 225
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 221
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Message: Object expected
    Line: 217
    Char: 1
    Code: 0
    URI: http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C


    Tuesday, July 12, 2011 1:51 PM

Answers

  • Hi, As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as "Answered". Either the previous steps should be helpful for many similar scenarios and will be marked as answer, or this post will be marked as answer in order to close the thread. Feel free to re-open the thread if you have additional information about this specific case or to open a new thread for a new case. In addition, we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks,


    Bob Cornelissen - BICTT (My Blog about SCOM) - MVP 2012 + 2013 and Microsoft Community Contributor 2011 + 2012 Recipient

    Tuesday, March 19, 2013 3:56 PM
    Moderator

All replies

  • Hi Mark,

    what AVIcode version do you use?


    Thanks, Stas
    Tuesday, July 12, 2011 4:15 PM
  • Stas,

    We are using 5.7.491.0

    Thanks,

    Mark

    Tuesday, July 12, 2011 8:37 PM
  • Mark, I think it is a bug of how do we process stack information. It can be encoding missing issue, so we create bad script syntax inside of the Event Details page, and eventualy we get the script block not recognized and variables missing in DOM. That is the reason that you have such kind of messages "Object expected", "'OV' is undefined" on the page http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C.

    Can you look into source code of this page, naviagate to lines range ~130-150 and see how do we fill values of t# variables or OV array elements? What can happen is one of the t# values is a generic type name that can have ' char as a part of string. Being missed from a proper encoding this is causing such problem...

    This is just an idea off the top of my head..., please update me once you look on the page markup.

     

     


    Thanks, Stas
    Tuesday, July 12, 2011 9:00 PM
  • Stas,

     

    I'm not sure what t# values are. I could not find this in the javascript in lines 130-150.  I sent the entire page source to this forum, but it appears to have been removed.  I will now attempt to send just the javascript from these lines:

     

     <script>if (typeof CheckListBox_CheckedNamesArray != 'undefined') CheckListBox_CheckedNamesArray['ctl13_AppCheckListBox_DivHidden'] = ['All','BCO','Brylanehome','CatalogService US','Chadwicks','Chameleon Content Service','KSD','OneStopPlus','Redcats.CatalogManager','Roamans','US Mobile','WomanWithin'];</script>
    </div>
    </div></td>
    	</tr>
    </table>
    </div>
    						</td>
    					</tr>
    					<tr class="FullHeight">
    						<td>
    <script language='JScript'> 
    <!--
    var currentManagerItem = null;
    function managerShow (sender, panelName)
    {
    	if (currentManagerItem != null)
    	{
    		//HideControl(document.all[currentManagerItem.panel]);
    		document.all[currentManagerItem.id].className = 'ManagerHead';    
    	}
     
    	currentManagerItem = sender;
    	//ShowControl(document.all[sender.panel]);
     
    	document.all[currentManagerItem.id].className = 'ManagerHeadSelected';
    	document.all['managerItemCurrent'].innerText = sender.innerText;
    //  ctr = document.all(currentManagerItem.id + '_onactivate');
      if (panelName) 
      {
        __doPostBack (currentManagerItem.id, panelName);
      }
    }
    -->
    </script>
    


     

    Wednesday, July 13, 2011 11:55 AM
  • Mark, I mean source of this page in SEViewer:

    http://usavicode.ind.redcatsusa.ecom/Pages/EventView/EventView.aspx?EventID=36688203&EventGroupID=342905&EventGroup=1&sim=1&_c=e&_pg=9e434880-30eb-45a0-9aa2-99e126429658&_s=46228B4C

    There should be code like this in lines ~130-150

    <Script Language='JavaScript'><!-- 
    var pluginPath = '.../VSPlugIn.msi';
    var plugin64Path = '.../VSPlugIn64.msi';
    var pdbUploadUrl = "";
    var professionalLicenseLimitation = false;
    var professionalLicenseLimitationTemplate = "";
    var t0 = 'STRING';
    var t1 = 'ARRAY';
    var t2 = 'System.Collections.ArrayList';
    var t3 = 'System.Collections.Hashtable';
    var t4 = 'System.Web.HttpException';
    var t5 = 'System.Int32';
    var t6 = 'System.String';
    var n0 = 'Empty Object';
    var isRestrictedMode = false;
    var isAdmin = false;
    --></Script>
    
    <Script Language='JavaScript' src='/SEViewer/HandlerData/CLRXMonitorLog/4_1/jsclientscript.aspx'></Script>
    
    <Script Language='JavaScript'><!-- 
    var emp = new OV([],[]);
    
    function FillObjects(){
    OD('', '');
    OD(t0, 'No member variables are collected due to the detail level setting.');
    OD(t0, 'The object has no member variables.');
    OD(t0, 'The object members can not be retrieved due to the .NET runtime optimization.');
    OD(t0, 'Invalid member variable definition.');
    OD(t0, 'The class has no member variables.');
    OD(t0, 'All member variables have a NULL value.');
    OD(t0, 'The object members can not be retrieved.');
    OD(t4,new OV([9,10,11,12],['_httpCode','_webEventCode','_message','_HResult']));
    OD(t5,'404');
    OD(t5,'0');
    OD(t6,'The file &#39;/../../../test.aspx&#39; does not exist.');
    OD(t5,'-2147467259');}
    --></Script>
    
    

    You can export this SEViewer event with id= 36688203 to MHTML or .dat file using menu of the EventDetails window. I would look on it, so you can send it to me at Stas.Kuvshinov@microsoft.com if it is unable to put the exported event data in the forum.


    Thank you, Stas
    Wednesday, July 13, 2011 4:24 PM
  • I just emailed the javascript and the entire page viewsource as txt files. 

    The menu is also not working form me.

    Thank you very much,

    Mark Phillips

    Wednesday, July 13, 2011 5:35 PM
  • Hi, As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as "Answered". Either the previous steps should be helpful for many similar scenarios and will be marked as answer, or this post will be marked as answer in order to close the thread. Feel free to re-open the thread if you have additional information about this specific case or to open a new thread for a new case. In addition, we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks,


    Bob Cornelissen - BICTT (My Blog about SCOM) - MVP 2012 + 2013 and Microsoft Community Contributor 2011 + 2012 Recipient

    Tuesday, March 19, 2013 3:56 PM
    Moderator