I keep on asking this question but noone helps. Is it
a bug in TC?
Why do I get NullPointerException? If I press refresh
a couple of times I would go through.
2002-08-19 00:53:32 StandardWrapperValve[jsp]:
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
Have you tried commenting out different parts of your code to see what part is causing
this problem?
-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 11:14 AM
To: Tomcat Users List
Subject: It would be great IF somebody answered me, ONCE,
Common sense should tell you that posting snotty subject-lines will
not help persuade list users to answer you. You seem to think that
someone has an *obligation* to jump and answer you as soon as
possible, but this is not the case. Be patient and polite and I'll bet
someone responds.
Paul Caton
Well, it is a big application. And it was working fine
with tc3.x. I have never had such a problem. I noticed
that I had to do lots of modifications to my code to
get TC4.0.4 work. What is different?
--- Campano, Troy [EMAIL PROTECTED]
wrote:
Have you tried commenting out different parts of
Probably quite a lot then. ;o)
-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]]
Sent: 19 August 2002 16:22
To: Tomcat Users List
Subject: RE: It would be great IF somebody answered me, ONCE, for change
:(
Well, it is a big application. And it was working fine
with
On Mon, 19 Aug 2002, Luminous Heart wrote:
Date: Mon, 19 Aug 2002 08:14:08 -0700 (PDT)
From: Luminous Heart [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: It would be great IF somebody answered me, ONCE, for change :(
I
I don't know, but if you want to find out what is making your app break you need to
find the cause first.
By finding out what is pointing to a null value, it could help.
-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 11:22 AM
To:
I bet you are the Snot, not just Snotty. How was I
being snotty by asking for someone to help. Yes we are
all obligated towards each other. That is the basic
concept of OpenSource, if you have not noticed. We are
a community of highly involved professionals and we
think that we have to be there
Sorry, but you haven't included enough information for anyone to formulate an
answer. Based on the information all I can say is that you have a null
pointer exception. If you want a proper response, please include the code
segment that is going wrong, and config info from server.xml and
Hi Graig,
Here is my jsp file. I am not sure what might be
wrong. Although the same error happens in a bigger
application in a tc cluster of 3 tomcats. Two of these
tcs fail while one does not get any forwards after
that.
Please take a look at my code, if you do not mind.
Best regards.
You might want to close your database connection, or at least return it to
the pool (I don't see you doing that, it ought to be after you close the
prepared statement).
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]]
Actually now that I think about it more that might be the cause of the null
pointer (but
probably not). In your poolman.xml file have you set the connection limit
to be a hard
limit? If you timeout on connections (user timeout) is fairly high you
could run out of
connections, and it might
Mike,
Yes I am returning the connection to the pool after
closing the ps. As you can see in the jsp code that I
have attached earlier to Craig, I am closing the
preparedstatement then returning the instance. Here
again the snippet.
%
/table
/body
/html
%}
ps.close();
I am sorry, but I did not get what you mean with
connection limit to be a hard limit, which one is
that?
I am including a copy of my pool.xml if you care do
point out what should be changed.
Thank you in advance.
Pool.xml =
?xml version=1.0
Add the following and the limit will be a soft limit (it can go above as
needed)
maximumSofttrue/maximumSoft
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Luminous Heart [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 8:50 AM
To: Tomcat Users
You are getting a null pointer exception because one of your variables
referencing an object has not been instantiated and has a null value. That
is the answer to your question.
At 08:14 AM 8/19/2002 -0700, you wrote:
I keep on asking this question but noone helps. Is it
a bug in TC?
Why do
If you have a debugger, all you have to do is to follow the bouncing ball
and find the null reference. That will be the fastest way to find this
problem. It should not take long. If you don't have a debugger, I will
send you one I made to use, and I like better than the standard debuggers.
Thank you Mike,
I will test with this, although I tried to
troubleshoot the problem by going back to an older
version of poolman. It worked. Now I will try your
solution, that might help. But would the softlimiting
of the pool run my server out of sockets in case of
heavy access?
--- Mike
It is always nice to have an extra debugger handy :) I
am testing JTest but am not sure it is really what I
need. I would appreciate your help if you can send me
yours.
Thank you in advance.
--- micael [EMAIL PROTECTED] wrote:
If you have a debugger, all you have to do is to
follow the
Thank you Paul. I know we are NOT paid to help
eachother, but hey, maybe someday I would be able to
lend a hand. This is how a great software like Apache
is putting a wide smile on all our faces.
Regards.
--- Paul McGovern [EMAIL PROTECTED] wrote:
Sorry, but you haven't included enough
It can, and then you'd have other problems. I use oracle here and
even though I'm licensed for x connections the database hasn't
yet failed to give me a connection at high load times. I've got
my scavenge count fairly high with only a 2 minute timeout on the
connections in the pool (user
hey, can i get a copy of the debugger? or do others have
any debugger suggestions?
tomcat error messages are pretty cryptic to me still, though
for the simple JSP work i do i get around it most of the time.
but perhaps a debugger will save me some hair pulling.
--
carrie s.
On Mon, Aug 19,
Here you go, as per request. You will have to fiddle a bit to get what is
going on, but not much. The methods return the object so you can debug as
follows: new Debugger().add(blah1).add(blah2).add(blah3).log(Testing the
Back Forty, true); which will do what is specified. Set up the paths
23 matches
Mail list logo