Win a copy of Securing DevOps this week in the Security forum!

Mahesh Sivaraman

Greenhorn
+ Follow
since Jun 19, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mahesh Sivaraman

Originally posted by Jeanne Boyarsky:
Mahesh,
If it's a Chinese character, it wouldn't be Ascii. Right?



Yes its not ascii. In fact i tried using setCharacterStream and getCharacterStream methods also. The javadoc says, it reads as Unicode stream. Anyway i think i'll go with David's suggestion. If you get more info on this, please post it.

Thanx for your help

Regards
Mahesh
Hi,

I have an xml file in Oracle database's CLOB column. I am trying to fetch it, parse it using JDOM, and update one of the elements with Chinese characters which come from my web page. The database charset is AL32UTF8.

Following is the steps io follow.
1. Select data using getAsciiStream() of result set.
2. SAXBulder to build it.
3. Update one of the elements with Chinese.
4. Get the string using XMLOutputer.
5. Call getBytes of the string.
6. Update the Column using setAsciiStream of PreparedStatement.

But i always get error saying
"Invalid character encountered in: failAL32UTF8Conv"

What am i doing wrong ?
Anyhelp appreciated...

Thanx and regards
Mahesh
Hi Avi,
I tried cancelling the statement execution through a sample program. It worked. Thanx. But as i said earlier, i don't have the reference of the Statement object. Is thr any way through which i can get the references (as a collection or something) of the currently active statements in a connection. I searched in the JDBC API but cudn't find one. Any idea ?
Thanx and Regards
Mahesh
Hi Avi,
Thanx for replying. I cannot use setQueryTimeOut method because, the time taking for completing the procedure is perfectly legal. The procedure does a lot of things before it completes. And for calling the cancel method i don't have the reference of the Statement object. One thread starts the execution. Its a servlet environment. Another http request(another thread) will try to close the connection which started the procedure execution. Anyway i'll try to cancel the execution using cancel() method.
Meanwhile if u have any other ideas for immediatly terminating the connection please tell me.
Thanx for ur Co-operation
Regards
Mahesh
Hi,
I have a connection which executes an Oracle Procedure through CallableStatement. The procedure takes about 5 minutes to complete. When i call the close method of that connection from another thread, the connection hangs. It will remain in that state until the statement execution is over. I am having problems because of this since i call the connection close method from a static synchronized method. No other threads can call any of the other methods of my class until the connection.close method returns. Is thr any way by which i can immediatly terminate the connection ? I don't want to remove the synchronized property of the method. I am using Oracle thin driver.
Can anyone shed some light on it.
Thanx in Advance
Regards
Mahesh
Hi,
thanx for the reply. But that is not my problem. i'll explain. I've loaded the images (main image and the logo). I've created a BufferedImage and draw both the images on it using its graphics object. Both are Jpegs. I gave that image to the JpegEncoder to encode it. But when it encodes only the main image comes. the logo is no longer there. Will the JPegEncoder cause any prob when we give it an image (BufferedImage) which contains two JPegs?? Any probs with the Jpeg header??
Regards
Mahesh
15 years ago
Hi,
i have some images (jpegs and gifs.). In my servlet I want to put my logo on the right top of the image and sent it back to the browser as a single image. I tried with JpegEncoder and GifEncoder from Acme.
How can i do that with my servlet.
Can anyone shed some light ?
Mahesh
[ September 01, 2002: Message edited by: mahesh sr ]
15 years ago
Hi
Congratulations to All Winners!!!
I was expecting congrats from others....
Will try next time..
Mahesh
15 years ago
Hi,
You wawnt a drop down of items like the Choice in AWT ?? If yes, u can do it with the ChoiceGroup class. here is an eg.

Now append this chItems to a form and set the form as the current display of the midlet.
Hope this is what u want..
Regards
Mahesh
15 years ago
Hi all
Yes i agree with Debbie Argulkar. I am also looking for some ideas for developing realtime applications..I'll develop it and ofcourse test them in the emulators
Why don't the JavaRanch Team come up with a contest ??? For example..Contest of the Week..
Here the JavaRanch can give a topic like 'SMS '.
All guys interested can build j2me applications on the given topic and upload it..
JavaRanch Gurus can rate it and possibly give the winner a gift..That will be better..Because i haven't got a book till now from participating in the Discussion. Let the guys like me try for a gift thru contest.

Mahesh
15 years ago
Hi Michael Kroll and Stefan Haustein,
I am a beginner in J2ME development. Does your book contain stuff to help novice J2ME programmers like me ?
I hope i'll get a copy of your book.
Regards
Mahesh
15 years ago
Hi,
There is a Java HQ icon in the POSE. Go to Java HQ, Click Preferences. Enable the Networking. You can also set the HTTP Proxy there.
Mahesh
15 years ago
Hi,
Thanx, i'll try to buy one book. By the way, what is MIDP NG ? Next Generation ? What does it address ?
Mahesh
15 years ago
Hi
thanx, i'll buy a book. Can u suggest a book for me? A book which addresses allmost all the issues in UI and networking from Beginner to Adv level. By the way, i've send you a private message did u read it ?
Mahesh
15 years ago
Hi all,
I am new to J2ME. I tried to build some user interfaces in J2ME using MIDP. I tested it with Palm OS Emulator. Is there any way by which we can arrange the layout in an AWT GridLayout manner. Like, two components in One row and another 2 components in the second row ?
Regards
Mahesh
15 years ago