Couldn't able to receive large file from webservice
-
Hi, I have a java web service and I'm trying to download a file of 250 MB from the webmethod. I'm getting "Java heap space-ERROR". I kept the value for maxReceivedMessageSize="2147483647" and changed all config values to the maximum values. Still facing the same error. Any ideas to solve this issue. Thanks in advance.
-
Hi, I have a java web service and I'm trying to download a file of 250 MB from the webmethod. I'm getting "Java heap space-ERROR". I kept the value for maxReceivedMessageSize="2147483647" and changed all config values to the maximum values. Still facing the same error. Any ideas to solve this issue. Thanks in advance.
NarVish wrote:
I'm getting "Java heap space-ERROR".
And this has what to do with C#?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
-
Hi, I have a java web service and I'm trying to download a file of 250 MB from the webmethod. I'm getting "Java heap space-ERROR". I kept the value for maxReceivedMessageSize="2147483647" and changed all config values to the maximum values. Still facing the same error. Any ideas to solve this issue. Thanks in advance.
-
NarVish wrote:
I'm getting "Java heap space-ERROR".
And this has what to do with C#?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
They both have curly brackets? :laugh:
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
-
You have no mentions of C# in your original question, and the only error you show is a Java error. Thus your question has nothing to do with C#.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
-
You have no mentions of C# in your original question, and the only error you show is a Java error. Thus your question has nothing to do with C#.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
As this is C# forum, I didn't mention specifically about my project platform. Because it is by default C# platform. Anyways, for your understanding, I'm writting my problem again. I'm working on C# project which is accessing Java webservice. I'm calling a webmethod which sends a file of 250MB size in response. I changed the config section as mentioned in my original message. Exception called "Java Heap Space" thrown.
-
As this is C# forum, I didn't mention specifically about my project platform. Because it is by default C# platform. Anyways, for your understanding, I'm writting my problem again. I'm working on C# project which is accessing Java webservice. I'm calling a webmethod which sends a file of 250MB size in response. I changed the config section as mentioned in my original message. Exception called "Java Heap Space" thrown.
NarVish wrote:
Exception called "Java Heap Space" thrown.
Where in C# does this exception occur?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
-
NarVish wrote:
Exception called "Java Heap Space" thrown.
Where in C# does this exception occur?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
-
You are missing the point. The exception you are getting is thrown from the Java side. I'd have thought the fact it said Java in the exception would have been a big clue that the problem was at the Java side, but that's just me; picking up on these subtle clues. Bottom line - you can tweak your client side config all you like, but if the problem is at the server end, you ain't going to solve squat.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
Hi, I have a java web service and I'm trying to download a file of 250 MB from the webmethod. I'm getting "Java heap space-ERROR". I kept the value for maxReceivedMessageSize="2147483647" and changed all config values to the maximum values. Still facing the same error. Any ideas to solve this issue. Thanks in advance.
Just to clarfy, if you are seeing this error at the client:
- It is being sent by the web service to the client.
- The error is happening at the service.
- Changing the client config will have no effect in this case
Finally, as this is a Java service error you will be better off asking for help in a Java forum. Possibly, the whole file is being loaded into memory and this is causing the heap to fill, the service needs to stream or chunk it. As a non-Java dev I couldn't be certain though.
Sort of a cross between Lawrence of Arabia and Dilbert.[^]
-Or-
A Dead ringer for Kate Winslett[^] -
You are missing the point. The exception you are getting is thrown from the Java side. I'd have thought the fact it said Java in the exception would have been a big clue that the problem was at the Java side, but that's just me; picking up on these subtle clues. Bottom line - you can tweak your client side config all you like, but if the problem is at the server end, you ain't going to solve squat.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
Hi, I have a java web service and I'm trying to download a file of 250 MB from the webmethod. I'm getting "Java heap space-ERROR". I kept the value for maxReceivedMessageSize="2147483647" and changed all config values to the maximum values. Still facing the same error. Any ideas to solve this issue. Thanks in advance.
Whoever set the web server up needs to read this[^].
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier