File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Error with saaj Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error with saaj" Watch "Error with saaj" New topic
Author

Error with saaj

saravana kumar
Ranch Hand

Joined: Jun 25, 2002
Posts: 72
Hi All,

I am getting the follwoing error when i generate a SOAP request using saaj.
Please help me how to solve this problem.

java.lang.NoSuchMethodError: java.util.Collections.emptyList()Ljava/util/List;
com.sun.xml.messaging.saaj.soap.MessageImpl.<clinit>(MessageImpl.java:736)
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:28)
poc.service.AddressResponseController.handleRequest(AddressResponseController.java:57)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


is there any alternative way to create a SOAP request dynamically ?

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
The method you're missing got added to the JAva API in JDK 5.0. What version does the JVM have that you're running this on?


Ping & DNS - my free Android networking tools app
saravana kumar
Ranch Hand

Joined: Jun 25, 2002
Posts: 72
Hi

I have jdk 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error with saaj