# Error loading java.io.IOException: ... Attempted read from closed stream

**URL:** <https://community.smartbear.com/t/error-loading-java-io-ioexception-attempted-read-from-closed-stream/172>\
**Category:** SoapUI OS\
**Tags:** api, soapui, migrated\
**Created:** [July 4, 2018, 6:28pm UTC](https://community.smartbear.com/t/error-loading-java-io-ioexception-attempted-read-from-closed-stream/172 "2018-07-04T18:28:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [July 4, 2018, 6:28pm UTC](https://community.smartbear.com/t/error-loading-java-io-ioexception-attempted-read-from-closed-stream/172/1 "2018-07-04T18:28:22Z")

</div>

> Originally posted by **elsaadj** on July 04, 2018

SoupUI 5.2.0

Error loading [[https://wlstapapp4.wadoldc.com:8755/TAS/WebServices/MFET/?wsdl](https://wlstapapp4.wadoldc.com:8755/TAS/WebServices/MFET/?wsdl)]: java.io.IOException: Attempted read from closed stream

We get this error when trying to load WSDL file, can’t figure out what is causing this error. Any help will be appreciated

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [July 5, 2018, 11:22am UTC](https://community.smartbear.com/t/error-loading-java-io-ioexception-attempted-read-from-closed-stream/172/2 "2018-07-05T11:22:08Z")

</div>

> Originally posted by **Lucian** on July 05, 2018

Moved to the SoapUI Open Source forum.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [July 5, 2018, 5:28pm UTC](https://community.smartbear.com/t/error-loading-java-io-ioexception-attempted-read-from-closed-stream/172/3 "2018-07-05T17:28:00Z")

</div>

> Originally posted by **HimanshuTayal** on July 05, 2018

Hi elsaadj

I think you need to get your WSDL check with the developer, there might be a issue with WSDL file, it you are trying learning SOAPui then please go for another WSDL file.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [July 7, 2018, 12:26pm UTC](https://community.smartbear.com/t/error-loading-java-io-ioexception-attempted-read-from-closed-stream/172/4 "2018-07-07T12:26:53Z")

</div>

> Originally posted by **elsaadj** on July 07, 2018

The WSDL file is ok, it works with C# client. Also you can view it in the browser. We use SoapUI for other WSDL and it works fine.

So, we know how to use SoapUI and we know the WSDL file is good. It is just we can’t figure out the SoapUI settings that will get ready of this error. Looking for help figuring that out.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [August 7, 2018, 4:30pm UTC](https://community.smartbear.com/t/error-loading-java-io-ioexception-attempted-read-from-closed-stream/172/5 "2018-08-07T16:30:40Z")

</div>

> Originally posted by **JLTook11** on August 07, 2018

Guesing that you have the same issue I did – the WSDL is referencing **localhost** as the service url.

- open the WSDL in a browser and save to a file
- edit the WSDL – replace localhost with the server url
- reference this local file via browse to create the project in SoapUI

…Bazinga!

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [August 7, 2018, 4:53pm UTC](https://community.smartbear.com/t/error-loading-java-io-ioexception-attempted-read-from-closed-stream/172/6 "2018-08-07T16:53:18Z")

</div>

> Originally posted by **elsaadj** on August 07, 2018

The file has the correct URLs, there is no localhost. [https://wadol.gentax.com/WLS/WebServices/MFET/](https://wadol.gentax.com/WLS/WebServices/MFET/)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 22, 2018, 3:30pm UTC](https://community.smartbear.com/t/error-loading-java-io-ioexception-attempted-read-from-closed-stream/172/7 "2018-10-22T15:30:32Z")

</div>

> Originally posted by **sbjustin** on October 22, 2018

JLTook11 - I signed up just to give you kudos and tell you that you’re the man!

Alternatively, I just updated my hostfile to point to same IP but with the URL in the WSDL.
