|
Hi ,
This is a production issue . The users are sporadically getting the System error 2146697208 form IE while invoking a DWR AJAX call. They are using IE8 verison. Please help us on this AJAX Code snippet --------------- $("#nowDate").click(function() { var nowDateStr = '' CriteriaDWR.getServiceDateTime({ async:false, callback: function(result) { nowDateStr = result; }, timeout: GLOBAL_TIME_OUT, errorHandler:GLOBAL_ERROR_HANDLER }); var serviceDateTime = new Date(nowDateStr); The DWR Java code snippet ------------------------------ public String getServiceDateTime(HttpSession session) throws Exception { Calendar calCentralTimeZone = Calendar.getInstance(TimeZone.getTimeZone("America/Chicago")); int hour = calCentralTimeZone.get(Calendar.HOUR_OF_DAY); int min = calCentralTimeZone.get(Calendar.MINUTE); int sec = calCentralTimeZone.get(Calendar.SECOND); int day = calCentralTimeZone.get(Calendar.DAY_OF_MONTH); int month = calCentralTimeZone.get(Calendar.MONTH); int year = calCentralTimeZone.get(Calendar.YEAR); String centralZoneDateTime = Integer.toString(month + 1) + "/" + Integer.toString(day) + "/" + Integer.toString(year) + " " + Integer.toString(hour) + ":" + Integer.toString(min) + ":" + Integer.toString(sec); return DateTimeUtils.dateAndTimeAsString(centralZoneDateTime); } |
|
I suggest searching the internet for this error. I doubt it has
anything to do with DWR. On 01/13/2012 10:32 AM, sanoj_mathew wrote: > Hi , > > This is a production issue . The users are sporadically getting the System > error 2146697208 form IE while invoking a DWR AJAX call. They are using IE8 > verison. Please help us on this > > AJAX Code snippet > --------------- > $("#nowDate").click(function() { > > var nowDateStr = '' > CriteriaDWR.getServiceDateTime({ > async:false, > callback: function(result) { > nowDateStr = result; > }, > timeout: GLOBAL_TIME_OUT, > errorHandler:GLOBAL_ERROR_HANDLER > }); > > var serviceDateTime = new Date(nowDateStr); > > > > The DWR Java code snippet > ------------------------------ > > public String getServiceDateTime(HttpSession session) throws Exception > { > Calendar calCentralTimeZone = > Calendar.getInstance(TimeZone.getTimeZone("America/Chicago")); > int hour = calCentralTimeZone.get(Calendar.HOUR_OF_DAY); > int min = calCentralTimeZone.get(Calendar.MINUTE); > int sec = calCentralTimeZone.get(Calendar.SECOND); > int day = calCentralTimeZone.get(Calendar.DAY_OF_MONTH); > int month = calCentralTimeZone.get(Calendar.MONTH); > int year = calCentralTimeZone.get(Calendar.YEAR); > String centralZoneDateTime = Integer.toString(month + 1) + "/" + > Integer.toString(day) + "/" + Integer.toString(year) + " " + > Integer.toString(hour) + ":" + Integer.toString(min) + ":" + > Integer.toString(sec); > return DateTimeUtils.dateAndTimeAsString(centralZoneDateTime); > } > > > -- > View this message in context: http://dwr.2114559.n2.nabble.com/Getting-System-error-2146697208-tp7184789p7184789.html > Sent from the DWR - Users mailing list archive at Nabble.com. > |
|
Administrator
|
Yes, a quick search reveals that users are getting this error
during ajax comm in a wide variety of (non-DWR) setups and environments. More than a few seem to hint at inconsistent dll versions in Windows 7 (is this the os you are seeing the problem on?), possibly caused by upgrading from Vista and not installing from scratch. Best regards Mike Wilson David Marginian wrote: > I suggest searching the internet for this error. I doubt it has > anything to do with DWR. > > On 01/13/2012 10:32 AM, sanoj_mathew wrote: > > Hi , > > > > This is a production issue . The users are sporadically > getting the System > > error 2146697208 form IE while invoking a DWR AJAX call. > They are using IE8 > > verison. Please help us on this > > > > AJAX Code snippet > > --------------- > > $("#nowDate").click(function() { > > > > var nowDateStr = '' > > CriteriaDWR.getServiceDateTime({ > > async:false, > > callback: function(result) { > > nowDateStr = result; > > }, > > timeout: GLOBAL_TIME_OUT, > > > errorHandler:GLOBAL_ERROR_HANDLER > > }); > > > > var serviceDateTime = new Date(nowDateStr); > > > > > > > > The DWR Java code snippet > > ------------------------------ > > > > public String getServiceDateTime(HttpSession session) > throws Exception > > { > > Calendar calCentralTimeZone = > > Calendar.getInstance(TimeZone.getTimeZone("America/Chicago")); > > int hour = calCentralTimeZone.get(Calendar.HOUR_OF_DAY); > > int min = calCentralTimeZone.get(Calendar.MINUTE); > > int sec = calCentralTimeZone.get(Calendar.SECOND); > > int day = calCentralTimeZone.get(Calendar.DAY_OF_MONTH); > > int month = calCentralTimeZone.get(Calendar.MONTH); > > int year = calCentralTimeZone.get(Calendar.YEAR); > > String centralZoneDateTime = > Integer.toString(month + 1) + "/" + > > Integer.toString(day) + "/" + Integer.toString(year) + " " + > > Integer.toString(hour) + ":" + Integer.toString(min) + ":" + > > Integer.toString(sec); > > return > DateTimeUtils.dateAndTimeAsString(centralZoneDateTime); > > } > > > > > > -- > > View this message in context: > http://dwr.2114559.n2.nabble.com/Getting-System-error-21466972 > 08-tp7184789p7184789.html > > Sent from the DWR - Users mailing list archive at Nabble.com. > > > |
| Powered by Nabble | See how NAML generates this page |
