• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to fix an error "Incompatible object argument for function call"

 
Xiaotian He
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My source code runs fine in IBM RAD. When I tried to run it in JBuilder, I encountered an error "Incompatible object argument for function call" while running a JSP file. Any idea how to handle it? See details below:

012-06-16 10:20:48 - Ctx( ): Exception in: R( + /FileUploadAction.jsp + null) - javax.servlet.ServletException: (class: whoznextdoor/CommonsFileUploadServlet, method: UploadFile signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible object argument for function call
.........

Root cause:

java.lang.VerifyError: (class: whoznextdoor/CommonsFileUploadServlet, method: UploadFile signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Incompatible object argument for function call
........
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64962
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you notice that java.lang.VerifyError is underlined? That means it's a link that explains the conditions under which the exception can occur.
 
Xiaotian He
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this link points to following page:

http://docs.oracle.com/javase/7/docs/api/java/lang/VerifyError.html
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64962
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now read it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic