Hi,

The code I'm referring to is auto generated.  Please note the jsp file that
fails contains *no* code at all - it's pure html.  The line referenced is
the end of the file.  There must be a configuration error in system
somewhere.  Is there a knowledge base that would indicate the problem?

Line 66 is marked below:
>From this I presume one of pageContext, or _jspxFactory is knackered.  But
why- this is autogenerated code.  What could be wrong with the tomcat config
to cause this problem.  Also please note, this is an autoinstall of Sun's
Cobalt JDK on a Cobalt RaQ4.

package jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
import java.util.Vector;
import org.apache.jasper.runtime.*;
import java.beans.*;
import org.apache.jasper.JasperException;


public class _0002fjsp_0002ftest_0002ejsptest_jsp_1 extends HttpJspBase {


    static {
    }
    public _0002fjsp_0002ftest_0002ejsptest_jsp_1( ) {
    }
    private static boolean _jspx_inited = false;

    public final void _jspx_init() throws JasperException {
    }

    public void _jspService(HttpServletRequest request, HttpServletResponse
response)
        throws IOException, ServletException {

        JspFactory _jspxFactory = null;
        PageContext pageContext = null;
        HttpSession session = null;
        ServletContext application = null;
        ServletConfig config = null;
        JspWriter out = null;
        Object page = this;
        String  _value = null;
        try {

            if (_jspx_inited == false) {
                _jspx_init();
                _jspx_inited = true;
            }
            _jspxFactory = JspFactory.getDefaultFactory();
            response.setContentType("text/html;charset=8859_1");
            pageContext = _jspxFactory.getPageContext(this, request,
response,"", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

            // HTML // begin
[file="/usr/java/jakarta-tomcat-3.2.1/webapps/examples/jsp/test.jsp";from=(0
,0);to=(5,0)]
                out.write("<html>\r\n<body>\r\n</body>\r\n</html>\r\n\r\n");
            // end
        } catch (Exception ex) {
            if (out.getBufferSize() != 0)
                out.clearBuffer();
            pageContext.handlePageException(ex);
        } finally {
>>>         out.flush();
            _jspxFactory.releasePageContext(pageContext);
        }
    }
}


Thanks
Martin

-----Original Message-----
From: O-S Inc. Support
To: [EMAIL PROTECTED]
Sent: 01/09/2001 17:55
Subject: Re: [cobalt-developers] NullPointerException running JSP samples in
Cobalt RaQ4 tomcat in

Martin,
        Your problem is right in front of you, you have a null pointer
on line 
66.  Go and look at your code, becuase there is something that is 
supposed to have/return a value but instead is returning a null pointer.

Check out your code again.

Good luck.

Martin Alley wrote:

> Hi,
> 
> I'm pulling my hair out over this...
> 
> 
> Set up is
> Cobalt RaQ4
> Sun Cobalt Developer Kit for Java (jdk 1.3.1 tomcat 3.2.1)
> 
> I have two tests that fail:
> All samples in webapps/examples
> An html file call test.jsp in webapps/examples/jsp/ (file contains
just
> html)
> 
> The jsp seems to compile find, but fails like this:
> java.lang.NullPointerException
>       at
>
jsp._0002fjsp_0002ftest_0002ejsptest_jsp_1._jspService(_0002fjsp_0002fte
> st_0002ejsptest_jsp_1.java:66)
>       at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>       at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
> t.java:177)
>       at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
>       at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>       at
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>       at org.apache.tomcat.core.Handler.service(Handler.java:286)
>       at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>       at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
> a:797)
>       at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>       at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnec
> tion(Ajp12ConnectionHandler.java:166)
>       at
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
> )
>       at
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
> 8)
>       at java.lang.Thread.run(Thread.java:484)
> 
> 
> The only config mods we have made following standard installation of
the
> package is in 
> workers.properties - set java_home tomcat_home and ps
> 
> Turning on full debug info, the test.jsp gets compiled like this:
> 2001-09-01 09:03:56 - Compiling with: -encoding UTF8 -classpath
>  /usr/java/jakarta-tomcat/lib/ant.jar:
> /usr/java/jakarta-tomcat/lib/jasper.jar:
> /usr/java/jakarta-tomcat/lib/jaxp.jar:
> /usr/java/jakarta-tomcat/lib/parser.jar:
> /usr/java/jakarta-tomcat/lib/servlet.jar:
> /usr/java/jakarta-tomcat/lib/test:
> /usr/java/jakarta-tomcat/lib/webserver.jar:
> /usr/java/jdk/lib/tools.jar:
> :
> ..:
> /usr/java/jakarta-tomcat/lib/servlet.jar:
> /usr/interclient/interclient.jar:
> /usr/java/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes:
> null:
> /usr/java/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples
> 
> 
> 
> Any help much appreciated
> Thanks
> Martin
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> Imerge Limited                          Tel :- +44 (0)1954 783600 
> Unit 6 Bar Hill Business Park           Fax :- +44 (0)1954 783601 
> Saxon Way                               Web :- http://www.imerge.co.uk

> Bar Hill 
> Cambridge 
> CB3 8SL 
> United Kingdom 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> 
> 
> _______________________________________________
> cobalt-developers mailing list
> [EMAIL PROTECTED]
> http://list.cobalt.com/mailman/listinfo/cobalt-developers


-- 
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios Inc.
439 Amber Way
Petaluma, Ca. 94952
Phone/fax 707.766.9509
http://www.obsidian-studios.com

_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Imerge Limited                          Tel :- +44 (0)1954 783600 
Unit 6 Bar Hill Business Park           Fax :- +44 (0)1954 783601 
Saxon Way                               Web :- http://www.imerge.co.uk 
Bar Hill 
Cambridge 
CB3 8SL 
United Kingdom 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 


_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers

Reply via email to