asha ganapathy

Ranch Hand
+ Follow
since Nov 03, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by asha ganapathy

Yes, i figured out the problem. After i declared the vector as static my issue was resolved.

Thanks a lot,
Asha
14 years ago
Hi All,

I have a method getPosition(String ignoreText) which is called from other methods.
I want to store the value of ignoreText at every invocation method getPosition in a vector

For e.g.: if getPosition is called this way
getPosition("Test1");
getPosition("Test2");
getPosition("Test3");

Then the vector should contain the values Test1, Test2, Test3

I have tried with the following code snippet, however the temp vector stores only the current value of ignoreText.
Please let me know how to do this.



Thanks,
Asha>
14 years ago
The stack trace is as follows

Exception occurred during event dispatching:

java.lang.StackOverflowError

at tomsawyer.editor.TSENode.setTag(Unknown Source)

at tomsawyer.editor.TSEAnnotatedUI.onTextChanged(Unknown Source)

at asha.builder.graph.CCTImageNodeUI.onTextChanged(CCTImageNodeUI.java:293)

at tomsawyer.editor.TSENode.setTag(Unknown Source)

at tomsawyer.editor.TSEAnnotatedUI.onTextChanged(Unknown Source)

at asha.builder.graph.CCTImageNodeUI.onTextChanged(CCTImageNodeUI.java:293)
.
.
.

Now the problem is to find the caller of the method onTextChanged.
Please suggest.

Thanks,
Asha
15 years ago
Hi All,

I have a code snippet(part of our product) which is throwing StackOverflowError(only at the customer's instance).
Based on the stack trace, i figured out that onTextChanged method of CCTImageNodeUI.java is called N number of times due to which this exception is caused.
To further analyze this issue, i need to check who is calling onTextChanged method.
I executed a grep command within our product to check the file which is calling this method, but could not find anything.
The comment says that, this method is called whenever the text of the owner object is changed, however i could not understand how to find the owner object.



Please let me know if there is anyway to find out who is calling onTextChanged method.

Thanks in advance,
Asha
15 years ago
Hi All,

From customer's instance there is an exception: Exception occurred during event dispatching java.lang.StackOverflowError
Anyone please let me know, what does it mean by Exception occurred during event dispatching or point me to any link/doc which explains this.

Thanks in advance,
Asha
15 years ago
The problem is to traverse through the HTML string and extract only the string, this extracted string would be later replaced by another one.
The string is entered by the user and this could be even in this way.




Please let me know if there any way to extract only the string.

Thanks in advance,
Asha


15 years ago
Hi All,

I have HTML string, for instance



There could be some more tags present and also the string could be anything.

Now i have to write a java code to replace the string(Testingfg in this case) with another string like Testing.


One way to solve this is by using pattern match and then replace. Please let me know how to write a regular expression in this case or if there is any way to do this.

Thanks in advance,
Asha


15 years ago
oh i guess it was running with an older version of .class file
Thanks a lot
Yes i think both are int(32 bytes) so the memory consumption should be the same.
Hi Dolly,

You need to drag the boxes from the bottom tray and drop them at required places.
Yes Dolly if i know the answer to your question i can surely help you out
Hi Dolly,

I got the output by executing on my machine..yes even i am using the same mock exam.Even i thought the output should have been "atto".
But after executing this code i found that
String s7 = sb.toString().substring(1, 5);
gives magically this output "rattbFoar", i wanted to know how toString() function performs.

Asha
I wrote this piece of code


Till line no.2 i understood the output, but line no.3 output i didnt understand how the output is rattbFoar.
pls someone explain me
Hi All,

I had seen a thread in one of the Forums in Javaranch where Post-Increment operator was discussed in detail with the stack diagrams by Corey, i had seen that few days back, now i dont know how to find. please reply if anyone has the link of that thread.

Thanks,
Asha
ok i got it thanks a lot