I have an annoying error that has come up that I do not know how to get
by or how to even find what the problem really is.
When I try to access oone of my serlets, I get the standard "this didn't
work" page. So, I check out the apache error log and find the following
confusing errors:
[Wed May 19 18:29:19 1999] [error] JServ: ajp11: Servlet Error:
java.lang.NoSuch
MethodError: webchem.QuizData: method getError()Ljava/lang/String; not
found:
webchem.QuizData: method getError()Ljava/lang/String; not found
[Wed May 19 18:29:19 1999] [error] JServ: an error returned handling
request via
protocol "ajpv11"
java.lang.NoSuchMethodError: webchem.QuizData: method
getError()Ljava/lang/String;
not found
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
So I played around for awhile and discovered that my servlet
(CategoryEditor) can not seem to call any of the methods in the class
QuizData. At the time of the error, CategoryEditor has instantiated an
instance of QuizData and is trying to call the method getError(), i.e:
QuizData data = new QuizData(true);
out.println(data.getError());
The funny thing is, the mehtod isError does too exist! I switched which
method from QuizData was being called first and get the same thing with
other methods:
[Wed May 19 18:18:45 1999] [error] JServ: ajp11: Servlet Error:
java.lang.NoSuch
MethodError: webchem.QuizData: method isOpen()Z not found:
webchem.QuizData:
method isOpen()Z not found
[Wed May 19 18:18:45 1999] [error] JServ: an error returned handling
request via
protocol "ajpv11"
java.lang.NoSuchMethodError: webchem.QuizData: method isOpen()Z not
found
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
Same errors. And all the methods really do exist:
public String getError() {
return error;
}
public boolean isOpen() {
return open;
}
I feel like there must be something really unrelated that I am doing
wrong -- like a classpath not set write, or something. I don't know,
but could really use the help.
Confused,
Paul J Thompson
-- --------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]