my dog learned polymorphism*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "error in servlet" Watch "error in servlet" New topic
Author

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(Class.java:237)
at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:298)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484)

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

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Divyajot Ahluwalia
Ranch Hand

Joined: Nov 03, 2000
Posts: 46
hi
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.
thanks
da
 
 
subject: error in servlet