Home » Eclipse Projects » Remote Application Platform (RAP) » Not Well-Formed HttpServletResponse with custom widget
| | |
Re: Not Well-Formed HttpServletResponse with custom widget [message #117695 is a reply to message #117566] |
Tue, 06 January 2009 21:07 |
Tim Whittington Messages: 5 Registered: July 2009 |
Junior Member |
|
|
I've seen the same error in Firefox 3.x on Mac OS X - it occurs when any
control is using UICallBack, and it's only on the response from
UICallBackServiceHandler.
Having a snoop at the HTTP traffic, there's no Content-Type set on the
response from UICallBackServiceHandler, which could be the cause of the
error message.
There's also no Content-Length either, as there is in the standard event
loop responses, so it looks like it's using a different code path to serve
the JS.
A fix is probably as simple as adding in a Content-Type header (the lack of
Content-Length isn't a big issue, as Tomcat etc. will just chunk encode the
response).
cheers
tim
On 6/01/09 9:07 PM, in article
9ca13e2fc7edb1c6ffdc4897d7cf0241$1@www.eclipse.org, "marcus"
<marcus.lehmann@tolina.de> wrote:
> Rüdiger Herrmann wrote:
>
>> marcus wrote:
>>> Hi
>>>
>>> We wrote a custom widget.
>>>
> ( http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/ help/html/advance
> d/custom-widget.html)
>>>
>>>
>>> But if the widget is active the web developer plugin for Firefox show
>>> the following JavaScript error. I don't thing that this is an error of
>>> the custom widget.
>> You activate it - it fails? My guess is that it's the custom widget.
>
>> Did you try without the web developer plugin? Or with another browser?
>
> I have noticed that the error console is part of Firefox (Tools -> Error
> Console). Nevertheless, I turned off all the plugins in Firefox.
>
> The Error appears only in the error console of Firefox .
>
> I tried it with IE 7 and Opera 9.6. The error console (Tools -> Advanced
> -> Error Console) of Opera does not show this error and IE has no
> javascript console.
>
> Maybe it is a Firefox bug.
>
>
>
>>>
>>>
>>> Error: not well-formed
>>> Source File:
>>>
> http://localhost:8080/myproject/start?nocache=1230626390820& amp;custom_service_han
> dler=org.eclipse.rwt.internal.lifecycle.UICallBackServiceHan dler
>>>
>>> Line: 1, Column: 36
>>> Source Code:
>>>
> org.eclipse.swt.Request.getInstance().send();org.eclipse.swt .Request.getInstan
> ce().enableUICallBack(
>>>
> "start","custom_service_handler","org.eclipse.rwt.internal.lifecycle.UICallBac
> kServiceHandler"
>>> );
>>>
>>>
>>> org.eclipse.rap.rwt_1.1.1.20080917-1625.jar
>>>
>>> The servletresponse is build in
>>> UICallBackServiceHandler.jsUICallBack()
>>>
>>>
>>>
>>> Thanks for your help.
>>>
>>> Regards, Marcus
>>>
>
>
|
|
|
Re: Not Well-Formed HttpServletResponse with custom widget [message #117719 is a reply to message #117695] |
Tue, 06 January 2009 21:43 |
Rüdiger Herrmann Messages: 581 Registered: July 2009 |
Senior Member |
|
|
Tim,
thanks for the hint. A quick glance at the code seems to affirm your
assumption about the different code paths. You could file a bugzilla
to keep track of it.
Cheers,
Rüdiger
Tim Whittington wrote:
> I've seen the same error in Firefox 3.x on Mac OS X - it occurs when any
> control is using UICallBack, and it's only on the response from
> UICallBackServiceHandler.
>
> Having a snoop at the HTTP traffic, there's no Content-Type set on the
> response from UICallBackServiceHandler, which could be the cause of the
> error message.
> There's also no Content-Length either, as there is in the standard event
> loop responses, so it looks like it's using a different code path to serve
> the JS.
>
> A fix is probably as simple as adding in a Content-Type header (the lack of
> Content-Length isn't a big issue, as Tomcat etc. will just chunk encode the
> response).
>
> cheers
> tim
>
>
> On 6/01/09 9:07 PM, in article
> 9ca13e2fc7edb1c6ffdc4897d7cf0241$1@www.eclipse.org, "marcus"
> <marcus.lehmann@tolina.de> wrote:
>
>> Rüdiger Herrmann wrote:
>>
>>> marcus wrote:
>>>> Hi
>>>>
>>>> We wrote a custom widget.
>>>>
>> ( http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/ help/html/advance
>> d/custom-widget.html)
>>>>
>>>> But if the widget is active the web developer plugin for Firefox show
>>>> the following JavaScript error. I don't thing that this is an error of
>>>> the custom widget.
>>> You activate it - it fails? My guess is that it's the custom widget.
>>> Did you try without the web developer plugin? Or with another browser?
>> I have noticed that the error console is part of Firefox (Tools -> Error
>> Console). Nevertheless, I turned off all the plugins in Firefox.
>>
>> The Error appears only in the error console of Firefox .
>>
>> I tried it with IE 7 and Opera 9.6. The error console (Tools -> Advanced
>> -> Error Console) of Opera does not show this error and IE has no
>> javascript console.
>>
>> Maybe it is a Firefox bug.
>>
>>
>>
>>>>
>>>> Error: not well-formed
>>>> Source File:
>>>>
>> http://localhost:8080/myproject/start?nocache=1230626390820& amp;custom_service_han
>> dler=org.eclipse.rwt.internal.lifecycle.UICallBackServiceHan dler
>>>> Line: 1, Column: 36
>>>> Source Code:
>>>>
>> org.eclipse.swt.Request.getInstance().send();org.eclipse.swt .Request.getInstan
>> ce().enableUICallBack(
>> "start","custom_service_handler","org.eclipse.rwt.internal.lifecycle.UICallBac
>> kServiceHandler"
>>>> );
>>>>
>>>>
>>>> org.eclipse.rap.rwt_1.1.1.20080917-1625.jar
>>>>
>>>> The servletresponse is build in
>>>> UICallBackServiceHandler.jsUICallBack()
>>>>
>>>>
>>>>
>>>> Thanks for your help.
>>>>
>>>> Regards, Marcus
>>>>
>>
>
>
|
|
| |
Goto Forum:
Current Time: Thu Apr 25 07:06:55 GMT 2024
Powered by FUDForum. Page generated in 0.03392 seconds
|