This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes How to fix an error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "How to fix an error "Incompatible object argument for function call"" Watch "How to fix an error "Incompatible object argument for function call"" New topic
Author

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

Xiaotian He
Greenhorn

Joined: Jun 19, 2012
Posts: 9
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

Joined: Jan 10, 2002
Posts: 56185
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Xiaotian He
Greenhorn

Joined: Jun 19, 2012
Posts: 9
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

Joined: Jan 10, 2002
Posts: 56185
    
  13

Now read it.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to fix an error "Incompatible object argument for function call"
 
Similar Threads
java.lang.verifyerror in weblogic 7.0.5
problems running jsp1.2 ...
problems after the move to tomcat 4.0/jsp1.2
Problem using taglib with Tomcat4.0...
Incompatible object argument for function call