This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Run time Exception when  access addBodyElement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Run time Exception when  access addBodyElement" Watch "Run time Exception when  access addBodyElement" New topic
Author

Run time Exception when access addBodyElement

Patricia Samuel
Ranch Hand

Joined: Sep 12, 2007
Posts: 300
Hi

Can anyone please help me to resolve this exception. Though there is nothing at compile time but at run time i get this exception.

Method "addBodyElement" with signature "(Ljavax/xml/namespace/QName;)Ljavax/xml/soap/SOAPBodyElement;" is not applicable on this object

Regards,
Patricia
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20077
    
  30

It seems like the JAR file you are compiling against is different from the one you are using to run the application.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Run time Exception when access addBodyElement
 
It's not a secret anymore!