Connecting Tech Pros Worldwide Help | Site Map

system error -1072896748

  #1  
Old August 7th, 2006, 03:52 AM
Newbie
 
Join Date: Aug 2006
Posts: 1
Hi,

I am new to AJAX. This is my first project with AJAX and I am getting error "system error -1072896748" when I try to get the xmlhttp.responsetext

my html page:

<body onLoad="sendReq(url, stateChanged);">
<div id="txtOut">This will be replaced by xmlhttp.responsetext </div>

my .js:

var xmlHttp = createRequestObject();

function sendReq(url, handlerFunction) {
xmlHttp.onreadystatechange = handlerFunction;
xmlHttp.open('get', url, true);
xmlHttp.send(null);
}


function stateChanged() {
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") {
document.getElementById("txtOut").innerHTML = xmlHttp.responseText ;
}
}


the url in the xmlHttp.open is a call to a jsp page which is calling a method ProcessRequest in java to process the request.

The method in java to process the request is using the ServletOutputStream, something like this:

ServletOutputStream outputStream = response.getOutputStream();
lBytesRead = inputStream.read(bBuffer);
outputStream.write(bBuffer, 0, lBytesRead);
outputStream.flush();
outputStream.close();

PLEASE HELP

thanks,
Thuy
  #2  
Old September 1st, 2006, 08:57 AM
Newbie
 
Join Date: Sep 2006
Posts: 1

re: system error -1072896748


Hi,

I had the same problem. Got it working by replacing the following line in "CreateRequestObject"

xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
replaced by
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP.5.0");

(Off course to be compatible with other IE versions you should make it a bit more general. E.g. http://www.multidesk.be/artikels/artikel/160/ section 4.1. Comment are in Dutch, but it should be easy to understand)

bye,
Tijskex
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
BC32400: Class 'CLSID_CorSymWriter' could not be created: System Error &H8004015 DM answers 1 November 22nd, 2005 02:06 AM
BC32400: Class 'CLSID_CorSymWriter' could not be created: System Error &H8004015 DM answers 0 November 22nd, 2005 01:49 AM
Getting system Error all the time. Manuel Canas answers 1 November 20th, 2005 08:50 PM
CLI connection failed. SQL0902C. A system error (reason code="6029321") occurred. mike_li answers 2 November 12th, 2005 11:58 AM
BC32400: Class 'CLSID_CorSymWriter' could not be created: System Error &H8004015 DM answers 1 July 19th, 2005 04:41 AM