You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by B J Hellstrom <bj...@hotmail.com> on 2000/06/28 17:58:05 UTC

mod_jserv/6252: AbstractMethodError

>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("<HTML><HEAD><TITLE>Test</TITLE></HEAD>");
    w.write("<BODY><H1>Test Succeded!</H1></BODY></HTML>");
    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 <ap...@Apache.Org> 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!     ]