Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [Upload Widget] Access Denied?
[Upload Widget] Access Denied? [message #532384] Sun, 09 May 2010 13:01 Go to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Hi~~~

My clients told me that when using the Upload widget by selecting a file and clicking the "Upload" button, sometimes the RAP application UI will be directed to a page saying "Could not evaluate javascript response: Access Denied" immediately.

It is said that we can easily reproduce this problem by enable the code:uploadWidget.setData(WidgetUtil.CUSTOM_WIDGET_ID, "XXX"); but actually I just can't reproduce it no matter turning the code on on or off~~~

I googled this issue and most articles tell me that this kinda problem is mainly caused by crossing domain fied accessing.But It's really confusing cos I just can't see any probability that this kind of code would be there existing in the RAP framework.

So I wonder whether or not you have ever met this kinda error before?How can we solve or work arround it?

Thanks and Best Regards!

Tingel Christian

PS: This is what the error page says:

Could not evaluate javascript response:

Access Denied

org.eclipse.swt.EventUtil.suspendEventHandling();var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter( "37");var wm = org.eclipse.swt.Widget....BlahBlahBlah~~~

We are using RAP 1.2.0, this problem mostly occurs in IE6.

Thanks again~~~
Re: [Upload Widget] Access Denied? [message #533348 is a reply to message #532384] Thu, 13 May 2010 13:37 Go to previous messageGo to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Hi,

Could somebody please give me some suggestion?I really appreciate that~~~

Thanks and Best Regards

Tingel Christian
Re: [Upload Widget] Access Denied? [message #533478 is a reply to message #533348] Fri, 14 May 2010 07:57 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,

I don't have a IE6 running so I cannot try to reproduce this. Maybe you
can try to find out which JS call causes this problem by enabling the
debug mode and logging output.
VM-Params:
-Dorg.eclipse.rwt.clientLibraryVariant=DEBUG
-Dorg.eclipse.rwt.clientLogLevel=ALL


Regards,
Stefan.

Tingel Christian schrieb:
> Hi,
> Could somebody please give me some suggestion?I really appreciate that~~~
>
> Thanks and Best Regards
>
> Tingel Christian
Re: [Upload Widget] Access Denied? [message #533494 is a reply to message #532384] Fri, 14 May 2010 09:18 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Christian,

if you can come up with a snippet that reproduces the problem, please
file a bug. But, needless to say, without being able to reproduce, we
can't do anything.

Maybe the problem is related to your customers environment? For example,
is there a proxy? If IE-only, can you reproduce it with the same
Windows/Service Pack/IE version? ...

Regards, Ralf

Tingel Christian wrote:
> Hi~~~
>
> My clients told me that when using the Upload widget by selecting a file
> and clicking the "Upload" button, sometimes the RAP application UI will
> be directed to a page saying "Could not evaluate javascript response:
> Access Denied" immediately.
>
> It is said that we can easily reproduce this problem by enable the
> code:uploadWidget.setData(WidgetUtil.CUSTOM_WIDGET_ID, "XXX"); but
> actually I just can't reproduce it no matter turning the code on on or
> off~~~
>
> I googled this issue and most articles tell me that this kinda problem
> is mainly caused by crossing domain fied accessing.But It's really
> confusing cos I just can't see any probability that this kind of code
> would be there existing in the RAP framework.
>
> So I wonder whether or not you have ever met this kinda error before?How
> can we solve or work arround it?
>
> Thanks and Best Regards!
>
> Tingel Christian
>
> PS: This is what the error page says:
>
> Could not evaluate javascript response:
>
> Access Denied
>
> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "37");var
> wm = org.eclipse.swt.Widget....BlahBlahBlah~~~
>
> We are using RAP 1.2.0, this problem mostly occurs in IE6.
>
> Thanks again~~~
Re: [Upload Widget] Access Denied? [message #533664 is a reply to message #532384] Sat, 15 May 2010 06:45 Go to previous messageGo to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Thanks an awful lot, Stefan and Ralf.

Yes, I can totally understand that it's impossible for you to tell how this problem happens without any snippets. I just meant to see if you had met this or this kind of problem before and if you have any suggestion on how to track this kinda problem

Thanks a lot for your suggestions and I will tell them to follow your directions and collect the information required, I will update this thread as soon as I get their feedback~~~

Thank you very much! Really appreciate that!

Best Regards!

Yours: Tingel Christian
Re: [Upload Widget] Access Denied? [message #538120 is a reply to message #532384] Sat, 05 June 2010 10:32 Go to previous messageGo to next message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Hi, Stefan and Ralf:

I have retrieved the feed back.The following is what the log says:

031031 DEBUG: org.eclipse.swt.Request[20]: sending request [ w1.focusControl=w40; uiRoot=w1; requestCounter=15; ]041046 DEBUG: org.eclipse.swt.Request[20]: sending request [ w1.focusControl=w40; uiRoot=w1; requestCounter=16; ]051453 DEBUG: org.eclipse.swt.Request[20]: sending request [ w1.focusControl=w40; uiRoot=w1; requestCounter=17; ]056828 DEBUG: org.eclipse.swt.Request[20]: sending request [ org.eclipse.swt.events.controlActivated=w94; w1.focusControl=null; uiRoot=w1; requestCounter=18; ]058359 DEBUG: org.eclipse.swt.Request[20]: sending request [ w94.path=ok.xls; w1.focusControl=null; uiRoot=w1; requestCounter=19; ]061046 DEBUG: org.eclipse.swt.Request[20]: sending request [ w1.focusControl=null; uiRoot=w1; requestCounter=20; ]071093 DEBUG: org.eclipse.swt.Request[20]: sending request [ w1.focusControl=null; uiRoot=w1; requestCounter=21; ]081171 DEBUG: org.eclipse.swt.Request[20]: sending request [ w1.focusControl=null; uiRoot=w1; requestCounter=22; ]086796 DEBUG: org.eclipse.swt.Request[20]: sending request [ w38.activeControl=testButton; org.eclipse.swt.events.widgetSelected=testButton; testButton.bounds.x=955; testButton.bounds.y=27; testButton.bounds.width=30; testButton.bounds.height=30; w1.focusControl=testButton; uiRoot=w1; requestCounter=23; ]086890 ERROR: org.eclipse.swt.Request[20]: Could not execute javascript: [org.eclipse.swt.EventUtil.suspendEventHandling();var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter( "24" );var wm = org.eclipse.swt.WidgetManager.getInstance();var w = wm.findWidgetById( "w94" );w._performUpload();qx.ui.core.Widget.flushGlobalQueues();o rg.eclipse.swt.EventUtil.resumeEventHandling();]: TypeError - Access Denied. (#-2147024891)

Could you please give me some suggestion on how to use all these information to track the problem?

Thanks and Best Regards!

Tingel Christian
Re: [Upload Widget] Access Denied? [message #538315 is a reply to message #538120] Mon, 07 June 2010 10:24 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Christian,

it seems that the function _performUpload in Upload.js can lead to a
TypeError with "Access Denied" message. I'd suggest to open a bug with
this trace and include information on know how to reproduce it.

Regards, Ralf

Tingel Christian wrote:
> Hi, Stefan and Ralf:
>
> I have retrieved the feed back.The following is what the log says:
>
> 031031 DEBUG: org.eclipse.swt.Request[20]: sending request [
> w1.focusControl=w40; uiRoot=w1; requestCounter=15; ]041046 DEBUG:
> org.eclipse.swt.Request[20]: sending request [ w1.focusControl=w40;
> uiRoot=w1; requestCounter=16; ]051453 DEBUG:
> org.eclipse.swt.Request[20]: sending request [ w1.focusControl=w40;
> uiRoot=w1; requestCounter=17; ]056828 DEBUG:
> org.eclipse.swt.Request[20]: sending request [
> org.eclipse.swt.events.controlActivated=w94; w1.focusControl=null;
> uiRoot=w1; requestCounter=18; ]058359 DEBUG:
> org.eclipse.swt.Request[20]: sending request [ w94.path=ok.xls;
> w1.focusControl=null; uiRoot=w1; requestCounter=19; ]061046 DEBUG:
> org.eclipse.swt.Request[20]: sending request [ w1.focusControl=null;
> uiRoot=w1; requestCounter=20; ]071093 DEBUG:
> org.eclipse.swt.Request[20]: sending request [ w1.focusControl=null;
> uiRoot=w1; requestCounter=21; ]081171 DEBUG:
> org.eclipse.swt.Request[20]: sending request [ w1.focusControl=null;
> uiRoot=w1; requestCounter=22; ]086796 DEBUG:
> org.eclipse.swt.Request[20]: sending request [
> w38.activeControl=testButton;
> org.eclipse.swt.events.widgetSelected=testButton;
> testButton.bounds.x=955; testButton.bounds.y=27;
> testButton.bounds.width=30; testButton.bounds.height=30;
> w1.focusControl=testButton; uiRoot=w1; requestCounter=23; ]086890 ERROR:
> org.eclipse.swt.Request[20]: Could not execute javascript:
> [org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "24" );var
> wm = org.eclipse.swt.WidgetManager.getInstance();var w =
> wm.findWidgetById( "w94"
> );w._performUpload();qx.ui.core.Widget.flushGlobalQueues();o
> rg.eclipse.swt.EventUtil.resumeEventHandling();]: TypeError - Access
> Denied. (#-2147024891)
>
> Could you please give me some suggestion on how to use all these
> information to track the problem?
>
> Thanks and Best Regards!
>
> Tingel Christian
Re: [Upload Widget] Access Denied? [message #538402 is a reply to message #532384] Mon, 07 June 2010 14:51 Go to previous message
tingel christian is currently offline tingel christianFriend
Messages: 46
Registered: December 2009
Member
Thanks Ralf~

Very sadly, I have tried to find the way follow which we can reproduce this problem for a whole night, but I can not even get close to it.

I really made the problem reproduced tonight, but it came so ocassionally that I could hardly catch it...

It seems that the frequency raises when there are 2 sessions accessing 2 different servers both of which provide file upload service with the Upload widget.

Would this be helpful if I file a bug using the above information plus the traces?

Thanks a lot and Best Regards!

Yours: Tingel Christian
Previous Topic:StartupPage.getBgImage throws Null Pointer
Next Topic:Text widget with default message needs a second click (IE)
Goto Forum:
  


Current Time: Wed Dec 01 03:52:51 GMT 2021

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

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

Back to the top