File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes error in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "error in servlet" Watch "error in servlet" New topic

error in servlet

Divyajot Ahluwalia
Ranch Hand

Joined: Nov 03, 2000
Posts: 46
hi im geting the following error from a servlet i had written
Error: 500
Location: /servlets/referthis.Visitor
Internal Servlet Error:
java.lang.VerifyError: (class: referthis/Visitor, method: makeDate signature: ()V) Expecting to find integer on stack
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(
at org.apache.tomcat.core.ServletWrapper.initServlet(
at org.apache.tomcat.core.ServletWrapper.handleRequest(
at org.apache.tomcat.core.ServletWrapper.handleRequest(
at org.apache.tomcat.servlets.InvokerServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.tomcat.core.ServletWrapper.handleRequest(
at org.apache.tomcat.core.ContextManager.service(
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(

could you please tell me whats wrong??
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

Most likely a defect in the Java classlib you're using. Other possibilities include a buggy JNI component or (less likely) someone trying to hack their way past the sandbox. This is Java's security mechanism telling you that you have data of the wrong type for the code expecting to manipulate it.

An IDE is no substitute for an Intelligent Developer.
Divyajot Ahluwalia
Ranch Hand

Joined: Nov 03, 2000
Posts: 46
thanks for your reply.
i am using 2-3 other servlets in the same context and they are working.
the method the error talks of is used to get the system date and store it in a certain format.
do you think that could be the problem.
I agree. Here's the link:
subject: error in servlet
jQuery in Action, 3rd edition