On 3/31/2014 2:17 PM, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Mark,
On 3/31/14, 11:33 AM, Mark Eggers wrote:
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.
Actually, the compiler will throw an error for uninitialized local
variable references, primitives included. Class members silently
default to whatever "zero" means for that type (false for booleans,
null for references).
- -chris
Ah yep . . . Guess I've not written code and attempted to use
uninitialized primitives. Just wrote a quick one, and sure enough the
compiler complained.
I need to make more mistakes . . .
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org