on 08-01-2009 6:41 PM
StringBuffer x = new StringBuffer();
String entriesName = dataNode.getNodeInfo().getName();
x.append("<").append(entriesName).append(">\n");
why the above code is not working why it is giving the type abstractbuilder is not visible error in the third line.????
but if i replace third line of code with the following line it si not giving error.
x.append("<");
x.append(entriesName);
x.append(">\n");
but during deployment and execution it is throwing java.lang.NoSuchMethodError: java.lang.StringBuffer.append(Ljava/lang/String;)Ljava/lang/AbstractStringBuilder; exception.
Can anyone tell how to resolve the issue..
I have problem in toexcel method in export to excel..
hi
there is java version problem , may be you are working with java 1.4 and you need java 1.5 to solve this .
i hope you are working on NWDS 7.0 , and using java 1.4 ,
so instead of using
StringBuffer x = new StringBuffer();
String entriesName = dataNode.getNodeInfo().getName();
x.append("<">\n");
you can use this , try the below your problem should be solved
String x = new String();
String entriesName = dataNode.getNodeInfo().getName();
x.concat("<">\n");
i have faced the similar problem when working on export to excel application ,
i have used the above approach. you can even use jdk 1.5 but in the later stages when you are working
on other webdynpro applications you may face problem when you are using NWDS 7.0 & EP 7.0.
THANKS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
i faced same problem for NWDS 7.0.14,
i changed my JRE version to 1.4,then that problem got resolved..
Regards
sowmya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the JDK version you are using in NWDS. It must be the same version than on the J2EE engine.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nithya,
I assume that <"> with a new line is the text you want to be appended. If you want to append a double quote in a string you need to add a escape sequence
Your method should be
x.append("<\">\n");
Check this
http://www.cerritos.edu/jwilson/cis_182/Language_Resources/Java_Escape_Sequences.htm
Regards
Srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How to resolve appen method issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.