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
pravipravi
Posts: 38
Registered: ‎06-03-2009
My Device: 9800
My Carrier: Verizone

net_rim_bb_browser_olympia_proxy exception Suspended due to NullPointerException

[ Edited ]

I am using

net.rim.device.api.browser.field2.BrowserField.BrowserField() 

 

to display some string content in browser using

void net.rim.device.api.browser.field2.BrowserField.displayContent(String html, String baseUrl)

 

One BrowserFieldListener also using to check if documentLoaded.  But In Torch 6.0(9800) simulator I am getiing following exception.

 

Thread [net_rim_bb_browser_olympia_proxy(220)id=325204992] (Suspended (exception NullPointerException))    
    OlympiaBrowserContent.getDOMDocument() line: 144    
    BrowserField$LoadContentRunnable.getDocument() line: 1145    
    BrowserField.updateContentRunnableLoadingState(Document, boolean) line: 982    
    BrowserField.signalDocumentCreated(Document, ScriptEngine) line: 890    
    RenderingApplicationImpl.eventOccurred(Event) line: 136    
    OlympiaBrowserContent$OlympiaWebPageImpl(OlympiaWebPage).notifyDocumentCreated(boolean, Document, ScriptEngine) line: 1607    
    DemuxingBridge(DOMBridge).handleDocumentCreated(DataListReader) line: 492    
    DemuxingBridge(DOMBridge).onRequestReceived(short, DataListReader) line: 358    
    DemuxingBridge(Bridge).processRequestInternal(short, DataListReader, byte) line: 590    
    DemuxingBridge.processRequest(short, DataListReader, byte) line: 349    
    DemuxingBridge.processSyncMessage(BridgeDatagram, short, DataListReader) line: 309    
    DemuxingBridge(Bridge).doRead() line: 543    
    DemuxingBridge(Bridge).recv(Channel, BridgeDatagram) line: 456    
    BridgeManager.recv(Channel, BridgeDatagram) line: 133    
    BridgeManager.readFromChannel(Channel, BridgeManager$SyncCallback) line: 211    
    BridgeManager.channelReadable(int) line: 183    
    ProcessStateEventDispatcher.dispatch(Message, Object) line: 84    
    ProcessStateEventDispatcher(EventDispatcher).dispatch(Message, Object[]) line: 72    
    EventDispatchManager.dispatch(int, Message, Object[]) line: 66    
    OlympiaProxyApplication(Application).doProcessNextMessage(Message) line: 2616    
    OlympiaProxyApplication(Application).processNextMessage(Message, boolean) line: 1841    
    OlympiaProxyApplication(Application).enterEventDispatcher() line: 1634    
    OlympiaProxyApplication.main(String[]) line: 19   

 

Could anyone please help why this is coming ?

 

 

 

 

Please use plain text.
Developer
peter_strange
Posts: 19,603
Registered: ‎07-14-2008
My Device: Not Specified

Re: net_rim_bb_browser_olympia_proxy exception Suspended due to NullPointerException

Is your html valid? 

Please use plain text.
Developer
pravipravi
Posts: 38
Registered: ‎06-03-2009
My Device: 9800
My Carrier: Verizone

Re: net_rim_bb_browser_olympia_proxy exception Suspended due to NullPointerException

Thanks. I doubt about html now... I will try url decoding...
Please use plain text.