Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » java.lang.NullPointer
java.lang.NullPointer [message #460146] Fri, 15 December 2006 02:26 Go to next message
Eclipse UserFriend
i'm doing birt report integrating with eclipse rcp.
in the action file below:


protected Action printAction = new Action(){
{ setText("Print");
setId("print");
}

public void run() {
String frmSql = "FROM SP_PO inner join SP_PO_ITEM on
SP_PO.ID=SP_PO_ITEM.PO_ID ";
String whrSql = "WHERE SP_PO.ID='07' ";
String sql = frmSql+whrSql;
String uri =
Global.BIRT_REPORT_PATH+"Sp_Req_print.rptdesign&stmt= "+sql+"";
WebBrowser wb = new WebBrowser();
try {
wb = (WebBrowser)site.getPage().showView(WebBrowser.ID_VIEW);

wb.setUrl(uri);
} catch (PartInitException e) {
e.printStackTrace();
}


}
};



i got this error:

Unhandled event loop exception
Reason:
java.lang.NullPointerException

can anyone tell me how to solve the null pointer error??
Re: java.lang.NullPointer [message #460149 is a reply to message #460146] Fri, 15 December 2006 03:38 Go to previous message
Eclipse UserFriend
Originally posted by: remy.suen.gmail.com

yl wrote:
> i got this error:
>
> Unhandled event loop exception
> Reason:
> java.lang.NullPointerException
>
> can anyone tell me how to solve the null pointer error??

Try rerunning your application with '-consoleLog' as a "Program
Argument". It should provide you with an actual stack trace to resolve
this issue.

Regards,
Rem
Previous Topic:Switch workspace question
Next Topic:Reusing PropertySheetPage in dialogs and wizards
Goto Forum:
  


Current Time: Sat Mar 22 12:43:31 EDT 2025

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

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

Back to the top