Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 23
Registered: ‎12-01-2009
My Device: Not Specified

Trouble opening certain attachments via the browser

I'm having trouble opening certain attachments/links through the browser.

 

works = opens in correct app.

 

5.0-9700

PDF-works

TXT-works

HTML-works

DOC-works

JPG-works

RTF-fails (goes to save)

DOCX-fails (500 server error)

 

6.0-9800

PDF-works

TXT-works

HTML-works

DOC-fails (goes to save)

JPG-works

RTF-fails (goes to save)

DOCX-fails (goes to save)

 

I'm opening these attachments through the browser via the following code:

 

 

BrowserSession bSession = Browser.getDefaultSession();
bSession.displayPage(urlForAttachment);
Both of these devices are connected to a BES.
Does anyone know how to resolve this issue so that all of the attachments/links open correctly through the browser?
Thanks!

 

Developer
Posts: 23
Registered: ‎12-01-2009
My Device: Not Specified

Re: Trouble opening certain attachments via the browser

So in 5.0 it was an MIME settings issue.  In 6.0 it seems to be a browser issue.  When we upgraded to a new build of 6.0, here is the error we got:

 

The requested URL could not be retrieved

 

Sorry, we can't open the web page that you requested because access was denied. If you should have access to this web page, contact your wireless service provider.

 

Error Code: 10001

 

Any ideas?

 

Note: the server doesn't even log an attempt to communicate.

 

Thanks!

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Trouble opening certain attachments via the browser

Do you see the same behaviour when manually accessing the URL in the browser or does the issue only appear when the browser is launched from your application?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Contributor
Posts: 5
Registered: ‎01-04-2011
My Device: BB 9800

Re: Trouble opening certain attachments via the browser

I have a similar problem (i.e. "The requested URL could not be retrieved" error  code 10001). I am trying to log into my security system which I access through a DNS service. I typically do not have problems getting into the system using IE or Firefox. However, on occasion the security system's login page will not be displayed (i.e. blank page). If I reload the page while holding down the ctrl key it will work. I have posted my problem before (see below link) and the only response I got was "You may want to try changing to a different build of the OS".

 

Not the solution I was looking for. Any thoughts?

 

 

http://supportforums.blackberry.com/t5/BlackBerry-Torch-9800-smartphone/Error-The-requested-URL-coul...