Received: (qmail 98177 invoked by uid 501); 28 Jun 2000 15:58:05 -0000 Message-Id: <20000628155805.98175.qmail@locus.apache.org> Date: 28 Jun 2000 15:58:05 -0000 From: B J Hellstrom Reply-To: bjhellstrom@hotmail.com To: submit@bugz.apache.org Subject: AbstractMethodError X-Send-Pr-Version: 3.110 >Number: 6252 >Category: mod_jserv >Synopsis: AbstractMethodError >Confidential: no >Severity: serious >Priority: medium >Responsible: jserv >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Jun 28 09:00:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: bjhellstrom@hotmail.com >Release: 1.3.12 >Organization: apache >Environment: WinNT4 sp6 Jdk1.3 (also fails with 1.2.2) JServ 1.2.2 >Description: [28/06/2000 11:52:32:124 EDT] ECHservlets.Test2: init [28/06/2000 11:52:32:184 EDT] java.lang.AbstractMethodError at org.apache.jserv.JServConnection.processRequest(JServConnection.java:323) at org.apache.jserv.JServConnection.run(JServConnection.java:188) at java.lang.Thread.run(Thread.java:479) >How-To-Repeat: package ECHservlets; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Test2 extends HttpServlet { public void doGet( HttpServletRequest req, HttpServletResponse res ) throws IOException, ServletException { getServletConfig(); System.out.println( "getServletConfig" ); getServletConfig().getServletContext(); System.out.println( "getServletContext" ); getServletConfig().getServletContext().setAttribute( "Test", this ); System.out.println( "setAttribute" ); Writer w = res.getWriter(); res.setContentType("text/html"); w.write("Test"); w.write("

Test Succeded!

"); w.close(); } } >Fix: Tried to rebuild JServ, src distribution is missing "SimpleFileFilter". Pulled it out of the jar file. Got many compilation errors - JServ.java:171: class org.apache.jserv.JServConnection is an abstract class. It can't be instantiated. JServConnection connection = new JServConnection(); >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]