cancel
Showing results for 
Search instead for 
Did you mean: 

In GP i am getting Nullpointer Exception

Former Member
0 Kudos

i created on develpment component in web dynpro.

In that one comp is created.


//@@begin others
  private IGPExecutionContext executionContext;
  //@@end

In that execute is not running.


public void execute( com.sap.caf.eu.gp.co.api.IGPExecutionContext executionContext )
  {
    //@@begin execute()
	this.executionContext = executionContext;
	IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
	GPWebDynproResourceAccessor resourceAccesor =new GPWebDynproResourceAccessor(textAccessor);
	try{
		//wdComponentAPI.getMessageManager().reportSuccess("Execute");
	}
	catch(Exception er){}
    //@@end
  }

if call complete


 public void complete( )
  {
    //@@begin complete()
	wdComponentAPI.getMessageManager().reportSuccess("Enter");
	
	try{ 
		<b>IGPStructure output = executionContext.getOutputStructure();</b>
}
	catch(Exception ex1){
		wdComponentAPI.getMessageManager().reportSuccess("exce in complete:"+ex1);
	}	

in that bolded line i am getting nullpointer exception.

Please slove the probelm

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Satya,

a) you are in the wrong forum

b) you forgot to "bold" the relevant errornous line

Regards Mario

Former Member
0 Kudos

in complete

IGPStructure output = executionContext.getOutputStructure();