Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GetResponse() Error reading from source  RSS feed

 
nicola grasso
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to all,
I have a problem with a client created, starting from a WSDL file using Axis2.

place part of the WSDL file (the feature that gives me problems):



when unloading files that exceed the size of 4 KB, I receive the error:

Exception : org.apache.axiom.om.OMException: org.apache.axiom.ext.io.StreamCopyException: Error reading from source



I also played with the settings on the client:


but nothing....

anybody knows help me?
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
welcome to javaranch !!
sorry for posting late.

Can you post full stack trace of Exception here ? may be root cause mentioned in the exception stacktrace can help us out.

for first try - search for line "_messageContext.getTransportOut().getSender().cleanup(_messageContext);" (or similar) and comment this line in Stub.
Then run your code again. may be this shall be helpful for you.

Thanks!



 
nicola grasso
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the welcome.
I commented out the line you told me and has downloaded 2 files from 19KB (which was not before), but I can not replicate tests when I opened the post, since the product is in operation and the server deletes every 15 days files ....

so I can not post the stack trace of the exception ... you tell me what was the commented line?

Thank you!
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nicola

I have never used Axis.
I just searched your error on coderanch. I found this post http://www.coderanch.com/t/609336/Web-Services/java/AXIS-MTOM-issues-assistance-appreciated
In this post, solution was mentioned as to comment _messageContext.getTransportOut().getSender().cleanup(_messageContext); line.
So I suggested you the same.

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!