Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Couldn't able to receive large file from webservice

Couldn't able to receive large file from webservice

Scheduled Pinned Locked Moved C#
helpjava
13 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N NarVish

    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.

    A Offline
    A Offline
    Abhinav S
    wrote on last edited by
    #3

    This is the wrong forum. use the Java forum.

    N 1 Reply Last reply
    0
    • L Lost User

      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

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #4

      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

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • A Abhinav S

        This is the wrong forum. use the Java forum.

        N Offline
        N Offline
        NarVish
        wrote on last edited by
        #5

        I'm working on C#, not in Java. My application is C#, which is accessing Java webservice

        L 1 Reply Last reply
        0
        • N NarVish

          I'm working on C#, not in Java. My application is C#, which is accessing Java webservice

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #6

          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

          N 1 Reply Last reply
          0
          • L Lost User

            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

            N Offline
            N Offline
            NarVish
            wrote on last edited by
            #7

            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.

            L 1 Reply Last reply
            0
            • N NarVish

              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.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #8

              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

              N 1 Reply Last reply
              0
              • L Lost User

                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

                N Offline
                N Offline
                NarVish
                wrote on last edited by
                #9

                Exception occured at the line where I called that service method.

                P 1 Reply Last reply
                0
                • N NarVish

                  Exception occured at the line where I called that service method.

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #10

                  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

                  N 1 Reply Last reply
                  0
                  • N NarVish

                    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.

                    K Offline
                    K Offline
                    Keith Barrow
                    wrote on last edited by
                    #11

                    Just to clarfy, if you are seeing this error at the client:

                    1. It is being sent by the web service to the client.
                    2. The error is happening at the service.
                    3. 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[^]

                    1 Reply Last reply
                    0
                    • P Pete OHanlon

                      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

                      N Offline
                      N Offline
                      NarVish
                      wrote on last edited by
                      #12

                      You are right. Its the problem at server side. Thank you for your reply

                      1 Reply Last reply
                      0
                      • N NarVish

                        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.

                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #13

                        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

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups