vignesh bala

Greenhorn
+ Follow
since Aug 19, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by vignesh bala

Hi Amit,

Do you see any error/exceptions in application logs while you get this?You may get some information in there. Also try to print full stack trace using print stack trace method.

You can also want to see the server logs and see for some errors
[ August 05, 2008: Message edited by: vignesh bala ]
Hi All,
I am new to J2ME. I just started developing an application which sends a static image as MMS. But it is given that i have to encode the image as MMS before sending it.

are there any opensource APIs available for encoding? I found from web that MMSJavaLibrary will do this.. but i can't find a link from where i can download the same.

Please let me know if you have any libraries which can do this or a download link for "MMSJavaLibrary".


Thanks in advance,
vignesh
17 years ago
Hi all,
I am writing a Socket client . After finishing all the transactions, I amusing the below method to close the socket:





The problem here is: when I call socket.shutDownInput(), I am getting socket Exception with message socket is already closed. But while I am calling socket.isClosed() before calling shutDownInput, its giving false. But after calling shutDownInput, its giving response as true. But actually, I am not calling socket.close() anywhere in the middle. Please help.
Thanks in advance,
Vignesh.B
Hi,
you can use jasper reports API to generate reports with java. You can find more information about this in:http://sourceforge.net/projects/jasperreports/
17 years ago
Hi All,
I am having a doubt in network byte order. I am writing a socket client wherein I have to append the length of the message packet in four byte binary big endian format. But I have certain doubts in it. If I have a message whose length is 64 for instace, Then when I use "Integer.toBinaryString(64)" , I get 10000000, My doubts are,
1. Do I need to use 10000000 before the message as it is?
2. Do I need to use 00000000 00000000 00000000 10000000 [for 4 bytes].
Is it in big endian by default
3. How can I convert the value to 4 byte binary in big endian byte order

Can anybody give any clue regarding this?

Thanks in advance
Vignesh
18 years ago
Hi,
The issue is solved now. A bit silly though. I installed the certificate from the SSL web site itself(by putting the URL in browser). I got a certificate in a different format from what I am provided. I put this cert in addition to what I already have and the issue was solved. I think they missed to give this cert before. It has nothing to do with the JRE version.Thanks for your suggessions.
18 years ago
Hi,
yes I have re imported the certificate to the new keystore. Sorry I missed to indicate that in above post. I issue is still occuring. so please help if you have any idea
18 years ago
I have to use a certificate which uses the sha1DSA signing algorithm to contact a web service(I am coding a client). I was using J2SDK_1.4.1_02 before. I added the certificate to keystore and it was working fine. But if I upgraded my JRE to 1.4.2_13 the same code doesn't work,. I got the following exception:


But, I found that this JRE is accepting only certificate with sha1RSA signature algorithm. Please help me if anybody knows why this occurs or is this an issue which is to be addressed in server side.
18 years ago
Hi all,
I have a web application running in tomcat. I have some configuration parameters which I need to use in my application in a xml file present in WEB-INF directory. All I need is to get the absolute path of the file so that I can read it. With servlet I can easily do it with init parameters in web.xml. But I can't use a servlet in my application. Can anyone suggest whether there's any way to do this from a normal java class.Thanks in advance

Regards,
vignesh
18 years ago
Hi friends,
I am using WS security in SOAP messages. But I don't know how to convert the public key of the certificate to base64 Format. I tried using java.security.cert.Certificate to fetch the certificate from keystore but unable to figure out how to convert public key to base64 format. Please help.

Regards,
Vignesh
18 years ago
Hi all,
I am getting the below exception when I tried to call a web service:



I am using SAAJ API for calling the web service. when I tried tracing it using TCPMon I get the below response:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN"><HTML><HEAD><TITLE>Error 500--Internal Server Error</TITLE><META NAME="GENERATOR" CONTENT="WebLogic Server"></HEAD><BODY bgcolor="white"><FONT FACE=Helvetica><BR CLEAR=all><TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all><FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 500--Internal Server Error</H2></FONT></TD></TR></TABLE><TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><FONT FACE="Helvetica" SIZE="3"><H3>From RFC 2068 <i>Hypertext Transfer Protocol -- HTTP/1.1</i>:</H3></FONT><FONT FACE="Helvetica" SIZE="3"><H4>10.5.1 500 Internal Server Error</H4></FONT><P><FONT FACE="Courier New">The server encountered an unexpected condition which prevented it from fulfilling the request.</FONT></P></FONT></TD></TR></TABLE></BODY></HTML>

I dont know why this error occurs suddenly because I was able to get the response perfectly some days ago. can any one suggest any reason for this error or atleast let me know where I can find the detailed logs for the above error.
Thanks in advance,
Vignesh
18 years ago
Thanks Bill,
I'll try your advice
18 years ago
Hey sorry guys, In my previous post, I meant to say markups are coming as

<

and

>

. But they came as < and > because I used markup charecters .
18 years ago
I must write a web service client to access a web service which requires the requests in certain format(The request schema requires an xml in header).I give the sample request below:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header >
<MessageHeader MessageID="0000" MessageName="ABCD" TimeStamp="mmddyyHHMMSS"/>
</soap:Header>
<soap:Body >
<..body xml..>
</soap:Body>
</soap:Envelope>


As I already told, I used xml beans to create the message header. when I used header.appendChild(node);, I am getting the below error:



Then I tried converting xml asstring and add it to header using header.setTextNode(String). It ran withoutany exception but the markups are coming like < > etc. so due to this the web service gives fault response. I am new to soap and I am seriously doubting whether my approach is right and also is there any other way to acheive the above message format?.Thaks for all the help
18 years ago