473,671 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTTPRequest Freezes For 5 Minutes Intermittently And Throws "Unknown name" Javascript Exception

I am using the Microsoft.XMLHT TP object to make server requests ie;
ajax. This is working 99% of the time but occasionally it will freeze
at the server for 5 minutes and then raise a javascript exception
"Unknown name".

After the exception I can run the same request ok, and keep doing so
until the next time it freezes for 5 minutes.

What does the "Unknown name" javascript exception mean?

Why does it freeze for 5 minutes?

I can't replicate this on my dev pc, it's only happening in a live
environment with IE6 and 2 load balanced IIS6 servers.

Dec 4 '06 #1
2 4817

oo******@yahoo. co.uk wrote:
I am using the Microsoft.XMLHT TP object to make server requests ie;
ajax. This is working 99% of the time but occasionally it will freeze
at the server for 5 minutes and then raise a javascript exception
"Unknown name".

After the exception I can run the same request ok, and keep doing so
until the next time it freezes for 5 minutes.

What does the "Unknown name" javascript exception mean?

Why does it freeze for 5 minutes?

I can't replicate this on my dev pc, it's only happening in a live
environment with IE6 and 2 load balanced IIS6 servers.
Are you using "synchronou s" or "asynchrono us" XMLHttp? Turn on the
Asynchronous option and your script won't hang. Otherwise, this is not
a JavaScript issue but an HTTP issue and the problem lies between your
server and your connection. I take it you have some sort of session
timeout and the connection keeps getting reset. Without seeing any of
your code to know what's going on here, I'd take a stab at it and say
"Unknown name" is probably an HTTP error that you're running into when
the request times out.

Dec 4 '06 #2
Are you using "synchronou s" or "asynchrono us" XMLHttp? Turn on the
Asynchronous option and your script won't hang. Otherwise, this is not
a JavaScript issue but an HTTP issue and the problem lies between your
server and your connection. I take it you have some sort of session
timeout and the connection keeps getting reset. Without seeing any of
your code to know what's going on here, I'd take a stab at it and say
"Unknown name" is probably an HTTP error that you're running into when
the request times out.
I'm using a synchronous http request, I've attached my function below.
I can't use asynchronous because the flow needs to be strictly
controlled due to the nature of the application. The catch() block is
triggered after the 5 minute freeze. The http request completes
successfully after 5 minutes.

This problem hasn't occured since iisreset was run last night. If this
problem comes back I will update this thread.

Thanks

CallServer : function( sAction, sSendMethod)
{
var sReturn = "";
var oEngine;// = this.Request.En gine;
var sParameterStrin g = "";
var sPostString = null;

try
{
oEngine = new ActiveXObject(" Microsoft.XMLHT TP");//ELMS TEST
if( oEngine != null)
{
if( oEngine.readySt ate == 4 || oEngine.readySt ate == 0)
{
var sUrl = "ServerInteract .aspx?token=" + Page.Token + "&dothis=" +
sAction;

if( arguments != null)
{
for( nParameterIndex = 2; nParameterIndex < arguments.lengt h;
nParameterIndex ++)
{
sParameterStrin g += arguments[nParameterIndex];
if( nParameterIndex < arguments.lengt h - 1)
{
sParameterStrin g += "&";
}
}
}

if( sSendMethod.toL owerCase() == "post")
{
sPostString = sParameterStrin g;
}
else
{
sUrl += "&" + sParameterStrin g;
}

sUrl += "&millis=" + new Date().getTime( );

oEngine.open( sSendMethod, sUrl, false);
oEngine.setRequ estHeader( 'Content-Type',
'application/x-www-form-urlencoded');

System.Log( "ServerInteract .CallServer() : Sending '" + sPostString
+ "' with action '" + sAction + "' to " + sUrl);

oEngine.send( sPostString);

sReturn = oEngine.Respons eText;

System.Log( "ServerInteract .CallServer() : Done : \r\n" + sReturn);

if( sReturn.indexOf ( "exception: ") == 0)
{
PageRendering.H andleError( sReturn);
sReturn = "";
}
}
else
{
System.Log( "ServerInteract .CallServer() : Cannot Send() because
oEngine.readySt ate = " = oEngine.readySt ate);
}
}
else
{
System.Log( "ServerInteract .CallServer() : Cannot Send() because
oEngine is null");
sReturn = "";
PageRendering.H andleError( "XmlHttpReq uest Fail 1");
}
}
catch( e)
{
sReturn = "";
System.Log( "ServerInteract .CallServer() : Cannot Send() because of
exception '" + e.message + "");
PageRendering.H andleError( "XmlHttpReq uest Fail 2: " + e.message);
}

return sReturn;
},

Dec 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
346
by: jon morgan | last post by:
Hi, Just how do you track down the location of an exception when all you get is a message saying "NullReferenceException occured in Unknown Module" ? It seems like the proverbial needle in a haystack when the debugger doesn't show you the line in your program that triggered the external error. Thanks for any help
8
2029
by: Calan | last post by:
I have a server-side ASP script that dynamically creates an input form from a database table. The table contains a field name, the table where values are stored, type of input control, value for a label, etc. What I need to do is create a JS validation routine that will check each control for valid input, regardless of what the control name is. If it is a "select", it needs to verify the index is > 1. If it is an "input", it needs to...
0
1516
by: David Mediavilla | last post by:
I am trying to check a SOAP signature with WSE 1.0 SP1, but with a certain transform I only get an "Unknown tranform" exception. The SOAP signature is like this: <ds:Signature> <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/> <ds:SignatureMethod
0
1112
by: hantheman | last post by:
Hi, I have a few __hook calls to handle COM events in an event_receiver. However, the call to __hook throws an unknown exception. I can query the connection point just fine, but the hooking crashes... Any ideas? If not, any ideas how to debug? What kind of exceptions do __hook throw?
0
2158
by: Shaun | last post by:
Hi all, I'm trying to implement a custom session handler that writes session data to a MySQL database. It works fine about 99% of the time. Trouble is, at random intervals, I get entries like the following in my php-error.log: PHP Warning: Unknown: A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0
9
10721
by: Klaus Johannes Rusch | last post by:
IE7 returns "unknown" instead of "undefined" when querying the type of an unknown property of an object, for example document.write(typeof window.missingproperty); Has "unknown" been defined as a valid return value for the typeof operator in a later version of ECMAScript or is this a JScript "feature"? -- Klaus Johannes Rusch
7
38005
by: John | last post by:
Hi Everyone, I'm having this extremely annoying problem with Internet Explorer 6, giving me an error message saying "unknown runtime error" whenever I try to alter the contents of a <divelement using innerHTML. Now, I've researched this problem on the web, and found many references to it, but none of them quite addressed my specific situation, and since my experience with JavaScript is limited, I was not able to adapt the solutions I...
0
4171
by: Peter Nofelt | last post by:
Hi all, ISSUE: ==================== In SQL 2005 (sp2) I get the following error when preforming a bulk insert with an associated xml format file: "Could not bulk insert. Unknown version of format file" Question:
9
8601
by: Adem | last post by:
Is it possible to get some info about an unknown exception, ie. the "catch (...)" case below: catch (const blah1 &ex) { cout << "blah1 exception." << endl; } catch (const blah2 &ex) {
0
8472
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8909
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4221
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.