Skip to Content
0
Apr 09, 2008 at 06:34 AM

the type AbstractStringBuilder is not visible ----- Please Help

102 Views

Hi Experts,

below is the code i wrote inside a view in webdynpro(java).

public void onActionSave(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionSave(ServerEvent)

//this.CreateXML();

StringBuffer strb=new StringBuffer("testStringBuffer");

strb.append("123");

strb.append(0);

wdComponentAPI.getMessageManager().reportSuccess(strb.toString());

//@@end

}

when i run this application i am getting an exception as given below.

java.lang.NoSuchMethodError: java/lang/StringBuffer.append(D)Ljava/lang/AbstractStringBuilder

and when i do

strb.append("123").append(0);

i am getting an exception stating that

"the type AbstractStringBuilder is not visible".

Please help me.

Thanks,

Srinivas