Please do not top-post.
On 3/31/2014 2:14 AM, Randhir Singh wrote:
Hi,
Thanks for your answer. There are 2 applications hosted on this Tomcat. 1 is
working fine and the other only is giving problems which we are accessing on
port 10080.
Request inputs on this so that the resolution is found.
I'll quote from the original stack trace (thanks for providing this, by
the way).
------
*exception*
java.lang.NullPointerException
com.elitecore.reports.manager.server.GetCompanyInfoServlet.doAction(Ge
tCompanyInfoServlet.java:93)
------
The line above points to exactly where the problem exists. This method
is throwing a null pointer exception, which means it's trying to access
a variable without that variable being initialized. Either a null is
being passed into this method, or you're using a variable that has been
declared but not initialized.
Modern IDEs will warn you if you've declared a non-primitive variable
and attempt to use it without initialization.
If a null is being passed into this method, you need to check that the
value being passed in is not null before using it.
The problem is either in
com.elitecore.reports.manager.server.GetCompanyInfoServlet.doAction(),
or something that is calling it and passing in a null value (which is
then not being checked for).
It is not a Tomcat problem. You would see exactly this same behavior
running on Jetty, Glassfish, JBoss, Weblogic, Websphere, or any other
application server or servlet container.
As others have said, 5.0.x (and 5.5.x) have been retired. There are
security issues that should be addressed for any Internet-facing
application. The only way to address the security issues is by upgrading.
The security issues and upgrading have nothing to do with the null
pointer exception you're asking about.
. . . just my two cents
/mde/
Regards
-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Saturday, March 29, 2014 6:22 PM
To: Tomcat Users List
Subject: Re: Problem in accessing link
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Randhir,
On 3/29/14, 8:38 AM, Randhir Singh wrote:
We are using tomcat in our production setup, the version of tomcat is
5.0.28.
It would be really good for you to investigate upgrading your version of
Tomcat. Not only has Tomcat 5.0 been retired, but Tomcat 5.5 has also been
retired. Tomcat 8 is about to be released. There are known and unknown
unpatched security problems with the Tomcat 5 versions which will never be
patched.
While accessing the link hosted on tomcat, the following error is
coming as below:
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------
*HTTP Status 500 - * ------------------------------
*type* Exception report
*message*
*description* *The server encountered an internal error () that
prevented it from fulfilling this request.*
*exception*
java.lang.NullPointerException
com.elitecore.reports.manager.server.GetCompanyInfoServlet.doAction(Ge
tCompanyInfoServlet.java:93)
This
is a problem with whatever "elitecore' is. You'll have to look there.
Request you to please advice on what steps should be taken so that
this problem is resolved.
This is not a problem with Tomcat: it's a problem with the web application
deployed on Tomcat. This is something you'll have to do yourself or engage
the original developer.
- -chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org