Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Not Well-Formed HttpServletResponse with custom widget
Not Well-Formed HttpServletResponse with custom widget [message #117276] Tue, 30 December 2008 10:47 Go to next message
Marcus Lehmann is currently offline Marcus LehmannFriend
Messages: 3
Registered: July 2009
Junior Member
Hi

We wrote a custom widget.
( http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/ help/html/advanced/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.


Error: not well-formed
Source File:
http://localhost:8080/myprojekt/start?nocache=1230626390820& amp;custom_service_handler=org.eclipse.rwt.internal.lifecycl e.UICallBackServiceHandler
Line: 1, Column: 36
Source Code:
org.eclipse.swt.Request.getInstance().send();org.eclipse.swt .Request.getInstance().enableUICallBack(
"start","custom_service_handler","org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler "
);


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 #117415 is a reply to message #117276] Mon, 05 January 2009 12:06 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
marcus wrote:
> Hi
>
> We wrote a custom widget.
> ( http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/ help/html/advanced/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?

>
>
> Error: not well-formed
> Source File:
> http://localhost:8080/myprojekt/start?nocache=1230626390820& amp;custom_service_handler=org.eclipse.rwt.internal.lifecycl e.UICallBackServiceHandler
>
> Line: 1, Column: 36
> Source Code:
> org.eclipse.swt.Request.getInstance().send();org.eclipse.swt .Request.getInstance().enableUICallBack(
> "start","custom_service_handler","org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler "
> );
>
>
> 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 #117566 is a reply to message #117415] Tue, 06 January 2009 08:07 Go to previous messageGo to next message
Marcus Lehmann is currently offline Marcus LehmannFriend
Messages: 3
Registered: July 2009
Junior Member
Rüdiger Herrmann wrote:

> marcus wrote:
>> Hi
>>
>> We wrote a custom widget.
>>
( http://help.eclipse.org/ganymede/topic/org.eclipse.rap.help/ help/html/advanced/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_handler=org.eclipse.rwt.internal.lifecycl e.UICallBackServiceHandler
>>
>> Line: 1, Column: 36
>> Source Code:
>>
org.eclipse.swt.Request.getInstance().send();org.eclipse.swt .Request.getInstance().enableUICallBack(
>>
"start","custom_service_handler","org.eclipse.rwt.internal.lifecycle.UICallBackServiceHandler "
>> );
>>
>>
>> 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 #117695 is a reply to message #117566] Tue, 06 January 2009 21:07 Go to previous messageGo to next message
Tim Whittington is currently offline Tim WhittingtonFriend
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 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
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
>>>>
>>
>
>
Re: Not Well-Formed HttpServletResponse with custom widget [message #117731 is a reply to message #117719] Tue, 06 January 2009 22:43 Go to previous message
Tim Whittington is currently offline Tim WhittingtonFriend
Messages: 5
Registered: July 2009
Junior Member
On 7/01/09 10:43 AM, in article gk0ja5$q8o$1@build.eclipse.org, "Rüdiger
Herrmann" <rherrmann@eclipsesource.com> wrote:

> 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
>

https://bugs.eclipse.org/bugs/show_bug.cgi?id=260116

(and https://bugs.eclipse.org/bugs/show_bug.cgi?id=260117 for good measure).

tim
Previous Topic:Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme'
Next Topic:Typo in ActivityMessages class
Goto Forum:
  


Current Time: Wed Feb 01 15:27:57 GMT 2023

Powered by FUDForum. Page generated in 0.04067 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top