• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

com.sun.xml.ws.Closeable: Exception while closing Resource Port

 
Ranch Hand
Posts: 64
Oracle Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody, I've been racking my brain working with a WebService and a client I implemented, the application runs and accomplish the flow successfully. But when every 2 webservice call, it shows an Exception, I think it's because the PORT (It's a Resource type generated from WSDL and XML), I forgot to close it. Nevertheless, the application was originally with METRO, now I'm using AXIS 2 and JAXWS and in my libraries I can't find the following library

com.sun.xml.ws.Closeable which is an interface that let me close the port:

((com.sun.xml.ws.Closeable)port).close();

I tried to cast using the general java.io.Closeable, but I couldn't get it to work, I'm trying to implement a method to close the port, but I don't know how to start. If somebody could help me with a link or some information I will be very grateful since I'm about to get mad

Thanks in advance.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic