Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error in servlet

 
Divyajot Ahluwalia
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Divyajot Ahluwalia
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic