AW: java.lang.NullPointerException......Plz Help Me

2001-05-17 Thread Ralph Einfeldt

Have a look at line 123 in the generated source file
_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
to see which statement causes the exception.

If you found the region and can't see the error, try to
reduce the page to the bare minimum that reproduces the
error and post the source for that.

 -Ursprüngliche Nachricht-
 Von: Naeem Malik [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 17. Mai 2001 09:10
 An: [EMAIL PROTECTED]
 Betreff: java.lang.NullPointerException..Plz Help Me
snip/
 Error: 500
 Location: /examples/jsp/New/dyeing.jsp
 Internal Servlet Error:
 
 java.lang.NullPointerException
   at
 jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._j
 spService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.
 java:123)



Re: AW: java.lang.NullPointerException......Plz Help Me

2001-05-17 Thread Antony Bowesman

Ralph Einfeldt wrote:
 
 Have a look at line 123 in the generated source file
 _0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
 to see which statement causes the exception.
 
 If you found the region and can't see the error, try to
 reduce the page to the bare minimum that reproduces the
 error and post the source for that.

I have seen a similar problem which I posted to tomcat dev.  The
generated source code is

...
} finally {
if (out != null) out.flush();
if (_jspxFactory != null) 
_jspxFactory.releasePageContext(pageContext);
}
...

and the error came from the releasePageContext method which tried to do
something with pageContext.  It seems quite repeatable if tomcat is run
with security.  e.g. standard 3.2 examples/numguess.  My case is when I
have access controls turned on and am doing authentication.  No answer
in the dev list.  This always occurs if you have no permissions when
compiling the login page which is the result of a redirection from the
protected resource.  This is in 3.2.2b4

Seems to be a general problem when run with security.

 
  -Ursprüngliche Nachricht-
  Von: Naeem Malik [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 17. Mai 2001 09:10
  An: [EMAIL PROTECTED]
  Betreff: java.lang.NullPointerException..Plz Help Me
 snip/
  Error: 500
  Location: /examples/jsp/New/dyeing.jsp
  Internal Servlet Error:
 
  java.lang.NullPointerException
at
  jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._j
  spService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.
  java:123)



Re: AW: java.lang.NullPointerException......Plz Help Me

2001-05-17 Thread Naeem Malik

on line 123 in
_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.jav
there is the following code:

} catch (Exception ex) {
if (out.getBufferSize() != 0)
out.clearBuffer();
pageContext.handlePageException(ex);
} finally {
out.flush();
  
_jspxFactory.releasePageContextpageContext);
}

--- Ralph Einfeldt [EMAIL PROTECTED]
wrote:
 Have a look at line 123 in the generated source file

_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.java
 to see which statement causes the exception.
 
 If you found the region and can't see the error, try
 to
 reduce the page to the bare minimum that reproduces
 the
 error and post the source for that.
 
  -Ursprüngliche Nachricht-
  Von: Naeem Malik [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 17. Mai 2001 09:10
  An: [EMAIL PROTECTED]
  Betreff: java.lang.NullPointerException..Plz
 Help Me
 snip/
  Error: 500
  Location: /examples/jsp/New/dyeing.jsp
  Internal Servlet Error:
  
  java.lang.NullPointerException
  at
 

jsp.New._0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0._j
 

spService(_0002fjsp_0002fNew_0002fdyeing_0002ejspdyeing_jsp_0.
  java:123)


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/