manikandan vasudevan

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

Recent posts by manikandan vasudevan

Hi,
I have closed the connections properly. The application worked fine for last two months, and now suddenly this problem has appeared. I am using websphere Advanced single server edition(ASSE) version 4.0. Is there any resource analyzer for ASSE also? If so then where will it be in admin console?
Manikandan.
22 years ago
I am using DB2 version 7.1 and websphere appserver is advanced single server edition version 4.0 ( i am not using advanced edition).
22 years ago
[02.04.08 17:43:59:092 GMT+05:30] 2b3f7582 WebAppInvoker X SRVE0063E: An internal engine error occurred while sending error to client: /ahd/viscard/VisCardData
[02.04.08 17:43:59:182 GMT+05:30] 2b3f7582 SRTServletRes X Servlet.Exception:.Error.while.finishing.response
[02.04.08 17:43:59:293 GMT+05:30] 2b3f7582 WebGroup X Servlet Error (Root + 1): Error while finishing the connection
[02.04.08 17:43:59:333 GMT+05:30] 2b3f7582 WebGroup X SRVE0030E: Root Cause java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:95)
at com.ibm.ws.io.WriteStream.write(WriteStream.java(Compiled Code))
at com.ibm.ws.io.WriteStream.write(WriteStream.java(Compiled Code))
at com.ibm.ws.http.ResponseStream.writeChunk(ResponseStream.java:305)
at com.ibm.ws.http.ResponseStream.write(ResponseStream.java:143)
at com.ibm.ws.io.WriteStream.write(WriteStream.java(Compiled Code))
at com.ibm.servlet.engine.http11.HttpConnection.write(HttpConnection.java:308)
at com.ibm.servlet.engine.srp.SRPConnection.write(SRPConnection.java:190)
at com.ibm.servlet.engine.srt.SRTOutputStream.write(SRTOutputStream.java:85)
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java(Compiled Code))
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:250)
at com.ibm.servlet.engine.srt.BufferedWriter.flushChars(BufferedWriter.java:364)
at com.ibm.servlet.engine.srt.BufferedWriter.flush(BufferedWriter.java:342)
at com.ibm.servlet.engine.srt.BufferedWriter.flushBuffer(BufferedWriter.java:471)
at com.ibm.servlet.engine.srt.SRTServletResponse.flushBuffer(SRTServletResponse.java:632)
at com.ibm.servlet.engine.srt.SRTServletResponse.finish(SRTServletResponse.java:255)
at com.ibm.servlet.engine.srt.SRTConnectionContext.finishConnection(SRTConnectionContext.java:96)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:78)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:132)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:271)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:49)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:303)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:232)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
[02.04.08 17:44:00:214 GMT+05:30] 1f19b592 WebGroup I SRVE0091I: [Servlet LOG]: viscard.SubmitRequest: init
[02.04.08 17:44:06:573 GMT+05:30] 1f19b592 ConnectionPoo X CONM6009E: Failed to get connection to the database from datasource.
[02.04.08 17:44:06:583 GMT+05:30] 1f19b592 ConnectionPoo W Failed to expand connection pool; waiting for a free connection instead.
The above is the error which i get in the logs file, and the application keeps trying to go to the next page. But browser keeps trying and not stopping at all.
So i have set the connection time out as 3 minutes, so the application tries for some free connection for the three minutes,if it couldn't find the free connection within that time, then it gives the following error :

[02.04.08 17:44:00:214 GMT+05:30] 1f19b592 WebGroup I SRVE0091I: [Servlet LOG]: viscard.SubmitRequest: init
[02.04.08 17:44:06:573 GMT+05:30] 1f19b592 ConnectionPoo X CONM6009E: Failed to get connection to the database from datasource.[02.04.08 17:44:06:583 GMT+05:30] 1f19b592 ConnectionPoo W Failed to expand connection pool; waiting for a free connection instead.
Kindly give some solution for this.
regards,
Manikandan.
22 years ago
Then how can i find the connections created, released and destroyed in advanced single server edition.Is there any solution to find these parameters in ASSE?If so then how?
regards,
Manikandan.
22 years ago
Hi,
Is there any resource analyser available for WAS V4.0 Advanced single server edition? If so then does it comes along with the installatiuon or a separate package?
I have installed WAS v4.0 ASSE, but couldn't locate the position of resource analyzer.Need some help n this.
regards,
Manikandan.
22 years ago
Hi,
We have developed an application in WAS v4.0 with db2 database and jbdc driver. I could log on into that application and keep working for 10 minutes only. After that it gives connection pool destroyed error. I have closed the connection wherever i open it for database access. Also, in the admin console i have even tried by setting the datasource configurations, the maximum pool size as 1000, though it is not necessary. but even then it gives same error. Kindly suggest me some solutions for the following:
1.Is there any way to find the no. of connections that particular application holds at any instance in the application server?
2. Is there any way to close the connections that has been created? I have a temporary solution that is to stop the server and log off the server machine and again start the server. But it works fine only for 10 minutes. I am testing this application. So iam the only user of this application and the server also has only this application in it . Even if i increase the maximum pool size to 10000, it works fine for 10 minutes only and again gives the same problem (connection pool destroyed).
3. Is this the problem with the application server?
Please help me out to solve this problem.
Regards,
Manikandan.
22 years ago
Hi all,
I have scored 71% in my SCJP. I have taken the exam yesterday.I am a regular user of this site, though not posted many, but learnt many concepts through this site. Really many great articles were discussed in JavaRanch. This site is really very useful for people like me who wants to take certification in the short period. I thank everyone of this group who have shared their thoughts to help others. Thank you all.
BEST WISHES.
Regards,
Manikandan.
22 years ago
thanks stransky and seany.

Originally posted by Paul Salerno:
Which of the following may throw an exception?
1 if ((s !=null) | ( i =s.length()))
2 if ((s ==null) | ( i =s.length()))
3 if ((s !=null) ||( i =s.length()))
4 if ((s ==null) || ( i =s.length()))


Select all best answers?

A. 1
B. 2
C. 3
D. 4
Their answer: A,B,D
I really dont understand what this question is? Can someone throw some light?


I think the answer given is wrong.The answer should be A,B,C.
First in the RHS part of the IF condition, it should be an equality operator and not an assignment operator.If it is assingment operator then it will give the following error.
"operator | or || cannot be applied to boolean,int"
Let us take the following code using case 4:
public class abc
{
public static void main(String args[])
{
String s= null;
int i=0;
if ((s == null) || ( i == s.length()));
}
}
It will not give any exception becos of short circuit operator.
Since case 1 and 2 are not using || operator, it will throw exception when s is null.
In case 3, if s is null, it will then check the s.length(). so it will give an exception.
So A,B and C are the answers.
Am i right?
Hi,
i know the concept of short circuit operator. but i am not clear how the given example will throw exception. Can anyone explain this example in detail.