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
mindus
Posts: 128
Registered: ‎11-05-2009
My Device: 9700
My Carrier: 9700

BrowserContent is null (The rendering application must be not-null).

Hi

 

   I developed the application with JDE 4.3 and run the application on 4.3/4.7 and 6.0 version simulators.

 

In the application i have the browser content for rendering the html content. I used the following code in my application.

 

connection = {get the connection - sepearate code}

String url = null;

RenderingSession rs = RenderingSession.getNewInstance();

BrowserContent bc = null;       
       
        try
        {
            bc = renderingSession.getBrowserContent(connection, url, null, 0);
            
            Field f= browserContent.getDisplayableContent();
            
            if (f!= null)
            {
                                 browserContentManager.add(f);
             }
            bc.finishLoading();
        }
        catch (RenderingException e)
        {
            System.out.println(e);
        }

 

 

The above code is working fine on both 4.3 and 4.7 version simulators and devices. And i tested the application with blackberry JDE 6.0 version and i got an exception. The html content is not displaying on both simulator/device. I debuging the application from that i am getting null in bc (bc = renderingSession.getBrowserContent(connection, url, null, 0):smileywink: . I have the connection but the browser content returns null, and the  exception  is net.rim.device.api.browser.field.RenderingException (The rendering application must be not-null).

 

 

But the same application was worked  on jde 4.3 and 4.7 versions simualtor/devices.

 

Anybody know why it is not working in jde 6.0 and how to make it work in v6.0.

 

Thanks

mindus

Please use plain text.
Developer
mindus
Posts: 128
Registered: ‎11-05-2009
My Device: 9700
My Carrier: 9700

Re: BrowserContent is null (The rendering application must be not-null).

Anybody know the answer ????

 

 

Thanks

mindus

Please use plain text.
Administrator
MSohm
Posts: 14,314
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: BrowserContent is null (The rendering application must be not-null).

Can you share the URL you were trying to open?  Does the same URL work in the BlackBerry Browser?  Please try this URL in the browserfielddemo included in the BlackBerry Java SDK and BlackBerry JDE and post the results.

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
Please use plain text.
New Contributor
Leo2705
Posts: 2
Registered: ‎12-02-2010
My Device: Not Specified

Re: BrowserContent is null (The rendering application must be not-null).

Hi, I have the same problem.

I'm using a custom HTTPConnection published in this post; is an implementation to retrieve locally stored HTML code.

BrowserFieldDemo doesn't work on 6.0 (Blackberry 9800 simulator); it shows a blank screen.

Please use plain text.
New Contributor
Leo2705
Posts: 2
Registered: ‎12-02-2010
My Device: Not Specified

Re: BrowserContent is null (The rendering application must be not-null).

Is any solution to solve this problem?

 

Thanks

Please use plain text.
New Contributor
salu088
Posts: 8
Registered: ‎04-06-2011
My Device: 9330
My Carrier: spring

Re: BrowserContent is null (The rendering application must be not-null).

Am also facing the same problem.can anyone suggest a solution to solve this problem?

Please use plain text.