cancel
Showing results for 
Search instead for 
Did you mean: 

The type AbstractStringBuilder is not visible

Former Member
0 Kudos

Hi All,

I am currently working on the Tutorial "Exporting Table data to Excel 2003".

There is a method toExcel which uses StringBuffer class.The compiler is throwing this exception

"The type AbstractStringBuilder is not visible".

Is it because of the reason that NWDS is using JDK 1.4

Should I install JDK 1.5 to fix the bug.

Regards

Nikhil Bansal

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hai Nikhil,

If you added any public parts in your DC -- Used DCs with dependcy Deploy.

Deploy that DC also. otherwise uncheck the Deploy Dependency.

Regards,

Naga

Former Member
0 Kudos

Hi Naga Raju,

Thanks for the inputs.

Can you please let me know how to do the stuff that you have mentioned "Deploy that DC also. otherwise uncheck the Deploy Dependency."

I did not create a DC rather I created a project with the name WD_ExcelExport. After that I unzipped the contents of WD_ExcelExport.zip in the WebDyn Pro project. Is this approach correct.

Please let me know.

Regards

Nikhil Bansal

abhijeet_mukkawar
Active Contributor
0 Kudos

Nikhil,

In component TableComp, goto Used Web Dynpro Components, check here if yu can see the ExcelExport Component, double click if it is there, check what is its LifeCycle, it should be CreateOnDemand.

Come to the component controller of TableComp, double click on it and check its properties, under Required Controller you should see ExcelExportComp and TableComp, if not click on ADD and take use of both of these.

rebuild application and deploy

regards

abhijeet_mukkawar
Active Contributor
0 Kudos

Nikhil,

could you resolve your problem ?

regards

Former Member
0 Kudos

Hi Abhijeet,

Thanks for the concern.

I was not in office in the weekend.

Shall try it out today.

Regards

Nikhil Bansal

sid_sunny
Contributor
0 Kudos

Hi Nikhil,

I have done this tutorial if you want can mail you the zipped project.

Regards

Sid

Former Member
0 Kudos

Hi Siddharth,

Yes please send me the tutorial.

Regards

Nikhil Bansal

Former Member
0 Kudos

Hai nikhil,

See this <a href="https://eclipse.org/bugs/show_bug.cgi?id=51353">Bug Report</a>

Regards,

Naga

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi Nikhil,

StringBuilder is a class introduced with JDK 1.5. yeah error might be because JDK1.4. upgrade to 1.5

see this:

<b>i think you are short of some jars</b>

hope it helps

let me know if you face any problem

regards

(sorry, your reply to earlier post i saw today morning)

Message was edited by:

Abhijeet

Former Member
0 Kudos

Hi Abhijeet,

I implemented a workaround for the problem by using the String class instead of StringBuffer.

However, when I am deploying the application then I am getting the foll. error

Failed to create delegate for component com.sap.tut.wd.tutwd_table.tablecomp.TableComp. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)

Let me know what am I missing.

Regards

Nikhil Bansal

abhijeet_mukkawar
Active Contributor
0 Kudos

Nikhil,

there are 2 components in that project, so is anybody of them giving some build errors, do you see any red mark in implementation of views or component controller,

Check out the component TableComp, i think this is not built properly, remove any error if it has, and Rebuild your project, and then Deploy

hope it helps

regards

Former Member
0 Kudos

Hi Abhijeet,

There are no errors in the project. I am able to deploy the application and run it.

There seems to be some problem with the DC or usage of component. I am not aware of all these concepts.

Will have to search for it.

Regards

Nikhil Bansal