Content length mismatch

Hi all
I'm getting these type of errors when accessing content on my web server
Dows anyone know why this could happen???
[23/Nov/2004:21:17:35] warning ( 2167):      for host 192.168.107.20 trying to GET /RCU/css/ing_exchange.css, finish-response reports: HTTP2228: Response content length mismatch (2697 bytes with a content length of 5245)
[23/Nov/2004:21:17:35] warning ( 2167):      for host 192.168.107.23 trying to GET /RCU/css/common.js, finish-response reports: HTTP2228: Response content length mismatch (2697 bytes with a content length of 5245)
thanks a lot !

yep, those files are served by a backend App Serv, actually, the web server load balances 3 Application Servers.
I have no network connection problems, but somehow the files between Web and App servers are not completely sent.
I also have these 2 errors, i dont know if they're related
[24/Nov/2004:11:13:53] warning ( 3510):      reports: lb.runtime: ROUT1014: Non-idempotent request /RCU/css/ing_exchange.css cannot be retried.
[24/Nov/2004:11:13:53] info ( 3510):      reports: lb.runtime: RNTM3003 : Error servicing the request : selected server could not service     
thanx

Similar Messages

  • Response content length Mismatch

    Hi All,
    I have this problem. When ever i run the application,i get the error "Response content length mismatch" for image,css,.png files.. AM using iPLanet 7.0 ..In my obj.conf file, there is no "Output fn" and <Client> tag..KIndly help me out in this as its really urgent
    REgards

    Hi All,
    I have this problem. When ever i run the application,i get the error "Response content length mismatch" for image,css,.png files.. AM using iPLanet 7.0 ..In my obj.conf file, there is no "Output fn" and <Client> tag..KIndly help me out in this as its really urgent
    REgards

  • HTTP Compression causes HTTP2228: Response content length mismatch

    Dear All,
    My application use iPlanet 6.1, recently we have enabled HTTP compression for the webserver.
    Which inturn does not picking up style sheet and results with bad look and feel on front end.
    On the back iPlanet logs we see some errors like
    warning (23569): for host xxx.xxx.xxx.xxtrying to GET /zbank2/css/zbank.css, finish-response reports: HTTP2228: Response content length mismatch (315 bytes with a content length of 945)
    Could you please help to resolve this problem
    Thanks,
    Jude

    Can you send your css file? I tried it on Web Server 7.0 update 3 seems to be working fine.
    I made a css file from [http://www.w3.org/Style/Examples/011/firstcss|http://www.w3.org/Style/Examples/011/firstcss]
    $cat mystyle.css
    body {
      padding-left: 11em;
      font-family: Georgia, "Times New Roman",
            Times, serif;
      color: purple;
      background-color: #d8da3d }
    ul.navbar {
      list-style-type: none;
      padding: 0;
      margin: 0;
      position: absolute;
      top: 2em;
      left: 1em;
      width: 9em }
    h1 {
      font-family: Helvetica, Geneva, Arial,
            SunSans-Regular, sans-serif }
    ul.navbar li {
      background: white;
      margin: 0.5em 0;
      padding: 0.3em;
      border-right: 1em solid black }
    ul.navbar a {
      text-decoration: none }
    a:link {
      color: blue }
    a:visited {
      color: purple }
    address {
      margin-top: 1em;
      padding-top: 1em;
      border-top: thin dotted }
    $cat myhtml.html
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
    <html>
    <head>
      <title>My first styled page</title>
      <link rel="stylesheet" href="mystyle.css">
    </head>
    <body>
    This is style.html
    </body>
    </html>$cat obj.conf
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/export1/wsNov4/iplanet/ias/server/work/B1/SunOS5.8_DBG.OBJ/lib/icons" name="es-internal"
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Output fn="insert-filter" filter="http-compression" type="text/*" vary="on" fragment-size="8096" compression-level="6"
    Error fn="error-j2ee"
    AddLog fn="flex-log"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>Sent a request, but I didn't see any errors
    [07/Nov/2008:12:58:53] finest (22021):  GET /mystyle.css, func_exec reports: executing method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file" Directive="Service"
    [07/Nov/2008:12:58:53] finest (22021):  GET /mystyle.css, func_exec reports: executing fn="insert-filter" filter="http-compression" type="text/*" vary="on" fragment-size="8096" compression-level="6" Directive="Output" magnus-internal=""
    [07/Nov/2008:12:58:53] fine (22021): inserted filter http-compression
    [07/Nov/2008:12:58:53] finest (22021):  GET /mystyle.css, func_exec reports: fn="insert-filter" filter="http-compression" type="text/*" vary="on" fragment-size="8096" compression-level="6" Directive="Output" magnus-internal="" returned 0 (REQ_PROCEED)
    [07/Nov/2008:12:58:53] finest (22021):  GET /mystyle.css, func_exec reports: method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file" Directive="Service" returned 0 (REQ_PROCEED)...ssltap shows the response was encoded :
    --> [
    GET /mystyle.css HTTP/1.1^M
    Host: ....
    User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.1.2) Gecko/20070225
    Firefox/2.0.0.2^M
    Accept: text/css,*/*;q=0.1^M
    Accept-Language: en-us,en;q=0.5^M
    Accept-Encoding: gzip,deflate^M
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7^M
    Keep-Alive: 300^M
    Connection: keep-alive^M
    Referer: http://.../myhtml.html^M
    Cookie: SUN_ID=129.147.37.51:287861225347735; s_vi=[CS]v1|48F6E7BF00000316-A02082200000556[CE]; nfTimeStamps=19700101000000%7C19700101000000%7C19700101000000; nfSettings=112101110%7C%7Cen_US%7C%7C0%7C60%7C-1%7C%7Cweek%7C-1%7C; location=US;
    s_cc=true; s_sq=%5B%5BB%5D%5D; AMAuthCookie=AQIC5wM2LY4SfczkxcjsoIVQbGnnqbFrqk8lWxYT1xzFVlE%3D%40AAJTSQACMDI%3D%23^M
    ^M
    <-- [
    HTTP/1.1 200 OK^M
    Server: Sun-Java-System-Web-Server/7.0^M
    Date: Fri, 07 Nov 2008 07:28:53 GMT^M
    Content-type: text/css^M
    Last-modified: Fri, 07 Nov 2008 07:20:29 GMT^M
    Etag: W/"277-4913ec3d"^M
    Content-encoding: gzip^M
    Vary: accept-encoding^M
    Transfer-encoding: chunked^M
    ^M
    165^M
    ^_\213^H^CU\222\301N\3030^L\206\357{
    ^K\256\313\2641!A8q^Z'^N^[/\3406nk-M\252$\355\250\320\336\2354)l\315\245\262^?\307\376?\247\205U#\374\254:T\212M-4UA\302nG\355[\314V\326^DQa\313z\224p \353j\3065<|qK^^>\351^BG\333\242yX\307\322|\222\262^FO\216\253\251Ai\265u^R\272\336u\232\246D\201\345\271v\2667J\314\332\243zQ\270Wp]\365zcp(\320%G\232}^P>\214\232D^X;\222`\254I-f\253^R\266S\324b4e\346\240\263\236^C\333^Xb\341\255\356C\272^Pl'\341)^S\315|9\270\260
    \215\204Wj\343\364f\227\306.\220?H^O^T\270\214\320^G24\304\357\273c\3247\340SoNh\2748R\335kt^Q}\212^R\377\202Hs\352~\303\227pi8\373\373G\330<G'\333%\343f\237\275^V\326)r\302q\335d\210\200\254\240\320\261\345b^T\246I\201\276\203PTZ\207y#\323\372b^]J\315\346\234J\346^G(t\237\205\201\343\366H\335k\371\341&U)G\336'-\373^Ui\255\363&\377~\237\373\334\3548\245B\303^F\224^MS\373\353j\365^K O\2450w^B^M
    0^M
    ^M
    ]

  • Html filtering content length issue

    I am using the Filter type="filter-hhtml" to tets stripping out EMBED and OBJECT tags from html pages. It is working fine but when the resulting page is loaded the browser (konquorer in this instance) reports a content length mismatch and shows an error message. The new page is shown. When I try and view the html source I get the same error and never get to see the source. When I try under Firefox and IE it works fine. I was just wondering if it was possible (or even necessary) to change the content-length to accurately depict the resulting size of the page after filtering?

    Checkout send-error.So I can place a drective like this (assuming I have a 403.html file in that location):
    Error fn=send-error code=403 path=/opt/sun/webproxyserver/html/errors/403.html
    I assume I place this inside my Object definition for my template ... is that correct? I plan on placing it at the bottom of my template. Does its location in the Object definition matter? I am sorry but the docs are not real clear (at least to me) on hard details so forgive my questions.
    just for clarity is this a proper template definition(I have 3)?NameTrans fn="assign-name" name="BlackList" from="http://.*yahoo.*"
    NameTrans fn="assign-name" name="WhiteList-level1" from=".*://64\.215\.169\.*/.*|.*://.*gblx.net/.*"
    NameTrans fn="assign-name" name="WhiteList-default" from=".*://.*/.*"
    The one named BlackList is just for testing purposes (which I can't seem to get to work either.
    Isn't the following legal? When I have a template match it should go to this object and execute directives right? It should see and execute the deny-service right? Why is it not?
    <Object name="BlackList">
    Service fn="deny-service"
    Error fn=send-error code=403 path=/opt/sun/webproxyserver/html/errors/403.html
    </Object>
    thanks again
    Doug

  • Missing Content-Length in HTTP response

    Hi All,
    I am experimenting with developing websevices using Sun Java Application Server. I have a working webservice using BEA Weblogic and I would like to have it ported to SUN. The application works like this: A client (Tuxedo application program) sends an XML document to the webservice, in response the websevice parse this document and based on certain fields it send back another document.
    The problem is that the SUN application does not return the content-length in its response and hence the requesting client rejects the message. Can anyone help?? Below is the response from both SUN and Weblogic:
    Weblogic
    HTTP/1.1 200 OK
    Date: Sat, 22 Oct 2005 11:42:53 GMT
    Pragma: no-cache
    Server: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 with CR174524
    Content-Length: 2025
    Content-Type: text/xml; charset=UTF-8
    Expires: Thur, 01 Jan 1970 00:00:00 GMT
    Cache-Control: no-cache
    Connection: Close
    <?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENV:Envelope
    SUN
    HTTP /1.1 200 OK
    X-Powered-By: Servlet/2.4
    SOAPAction: ""
    Content-Type: text/xml;charset=utf-8
    Date: Sat, 22 Oct 2005 11:42:53 GMT
    Server: Sun-Java-System/Application-Server
    Connection: close
    <?xml version="1.0" encoding="UTF-8"?>
    env:Envalope xmls:env="http://schemas.xmlsoap.org/soap/envelope/"
    As can be seen the Content-Length is missing.
    Thanks for your help.
    Ransford

    Is there an option in Sun Java Application Server to include Content-Length in response to a client request? If not is it possible to generate this information from the service code?
    Thanks.

  • ImageLoader,no  Content-Length not loading in ie, chrome

    Im currently working with the PosterFrameElement, the url to the jpeg is like this http://mydomain.dk/image/1234/
    serialElement.addChild(new PosterFrameElement(new URLResource(url)));
    to get pass the ImageLoader canHandleResource I tryed inserting .jpg which then return true..(also override the canHandleResourceto true)
    However my problem seems to have something with the browser and  images content header, the images im trying to load has no Content-Length and is chunked..file size around 46 k (and I have no chance to change this).
    In firefox all work fine,
    BUT  when I view in chrome, ie or safari the picture is not loading. I trace LoadEvent bytes to 0
    It seems like a BUG in the Loader!! is their a workaround or suggestions on how to move on?
    Thanks in advance

    Hi Peter,
    Have you tried loading the images directly in the problem browsers (Chrome, IE, Safari) and see if the loading works any better? If something loads differently based on the browser, that's unusual with Flash Player. I'd see if the browsers themselves are having trouble with the chunked files before tackling anything inside OSMF. I know that certain browsers send different HTTP statuses than others. It is possible that a chunked file is sending a status before the entire file is loaded, tricking the Loader into thinking the file is complete. Adobe notes that the following browsers don't send statuses to the Flash Player: Netscape, Mozilla, Safari, Opera, and Internet Explorer for the Macintosh. That doesn't line up exactly with your list, so that may be a red herring.
    Also, on the matter of getting around the image loader, you could use your own media factory to pick the loader and element type through a custom MediaFactoryItem. If you specify an ID other than the standard OSMF ID for MediaFactoryItems (org.osmf), it will get used before the standard MediaFactoryItem for that media element type. Check out the MediaFactory's resolveItems() method for how that works.
    Nils

  • I am getting a "java.lang.RuntimeException: Error loading file:....NULL content-length." message when attempting to load a jnlp file

    I am the applications administrator for an instance of Galaxy server. In Galaxy there is an option / plugin to opne a BAM file via the Integrative Genomics Viewer (IGV) created at the Broad Institute. When invoked it downloads a jnlp file and launches IGV and then is supposed to open the BAM file in the viewer. However, when it attempts to open the BAM file I get the following error:
    "An Error occurred while loading: http://galaxy/display_application/52cef830ad5766ca/igv_bam/web/29212308ff643a94/data/galaxy_52cef830ad5766ca.bam
    java.lang.RuntimeException: Error loading file: http://galaxy/display_application/52cef830ad5766ca/igv_bam/web/29212308ff643a94/data/galaxy_52cef830ad5766ca.bam NULL content-length."

    UPDATE
    Compiling from command line I found out that the class definition for oracle.oats.scripting.modules.basic.api.IteratingVUserScript is missing. Do you know what .jar file contains this class?
    Thanks.
    Fede.

  • Maximum size for an HttpRequest? Set Content-Length?

    Hi, I'm managing to get small strings sent from my applet to my servlet, but when I try anything bigger, I get problems. Oddly enough, the larger object can get sent to my applet from my servlet without any issues.
    Can anyone tell me if there is a maximum size for sending responses?
    Or, if I have to set the content-length property in my applet before I send my data, how do I get the size of my object so I can set it?
    thanks for any advice any of you might have

    Thanks for the pointers.
    BalusC, at first I was trying to write my object without sending it through a byteStream first (hence the q) :), tried it that way too and wouldn't work.
    I finally figured out that it wasn't the code that was the problem, but it was an upload issue (server specific). Have changed the code to sending one line of data at a time since I was converting my object to an output file in the servlet anyway. Not the best solution but it works :)
    Thanks again

  • Content-Length Header being stripped out of Gatewayed pages

    I am working to integrate the GPL'ed Moodle e-learning web application with Plumtree.  However, I'm hitting a snag.  For certain POST events, Moodle expects to receive a content-length header.
    When I use the application outside the portal, it works fine, and the Content-Length header is sent.  However, when I have the application gatewayed through the portal, the Content-Length header seems to get stripped out of the HTTP request and I get HTTP error 411 (Content Length Required).
    Is there a way I can convince the portal to not strip out the Content Length HTTP header?

    I'm working with .NET portal.
    For the particular file that caused the error as reported in the tcptrace log, I opened IIS manager, found the virtual directory, right clicked to open the properties dialog and checked directory security.
    Select edit anonymous access to check the account used for anonymous access, supply the user account needed and allow IIS to manage password. If in doubt check the settings on pages containing http post that are functioning properly.
    Check Integrated Widows Authentication
    I found this virutal directory had no user in the anonymous account, not sure how this happened. This resulted in pages that contained post/postbacks giving the "length required" error when I hit a button to perform the post/postback. Pages that did not contain Posts/Postback work correctly.

  • How to solve "Bad Content-Length value" Error that show in ADF Mobile

    I was develop application that using web service from mine original ADF project and I can't fetch via AMX Page as pop-up error "Bad Content-Length value" How to solve this problem ?
    My Web-service configuration
    - "Find" is only basic operation that in view instance
    - None of View criteria
    As only find is basic operation, that seems required "findCriteria" and "findControl" parameter(as seen in "Panel From layout" generated in AMX Page)
    After drag generate form view in AMX Page and after to deploy to simulator, I was found pop-up error was said Bad Content-Length value as shown below.
    I am also using HTTP Analyzer and didn't found any request from ADF Mobile Application
    http://img844.imageshack.us/img844/7720/screenshot20130305at163.png

    Hi,
    I'm also got a problem with this tutorial too, after touch at "Salary Upgrade" button and got same error too
    http://docs.oracle.com/cd/E18941_01/tutorials/BuildingMobileApps/ADFMobileTutorial_2.html
    I have some conclusion with develop ADF Mobile in OSX will related with this problem as tutorial are properly working and nobody was said about this problem.
    My current development machine is OSX 10.8.2 with jDeveloper 11.1.2.3.0
    Edited by: meddlesome on Mar 7, 2013 2:49 AM

  • Content-length and chunked-encoding

    Hi,
    Need to include content-length and chunked-encoding headers with response, I am using Sun One Webserver SP 6.5.
    Thanks in anticipation,
    Adnan

    upgrade to apache 2.x and you'll be good (i've dealt with this issue, it sucks.)

  • Content-Length header not changed after url-rewrite... yields cut page.

    We use iPlanet6 ,service pack 4. The pages that return from the servlets are
    changed by the Application Server. The Application Server adds
    GXHC_GX_jst=901a10a6662d6164& to the all the URLs (which increase the
    page's size). The problem is that Application Server does not change the
    Content-Length header in the servlet response. This yields cut pages in the
    browser (IExplorer5).
    If we don't add the Content-Length header it works fine. (I.e., The pages
    are not cut.) Our problem is that we work with mobile devices that must have
    the Content-Length header to work properly.
    Q: Do you know if there is a patch that fix the problem?
    Q: Is it possible to configure the Application Server to prevent this
    url-rewrite?
    Regards,
              Aviram

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • Content-length error in jsp

              hi all,
              i am running a jsp on weblogic that just displays an index page.
              there is no problem in displaying the page but,on the console i get this error.
              how to solve this error.
              Thanks in advance.
              Parag B.Bhagwat
              java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '4096' bytes instead of stated: '12063' bytes.
                   at weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutputStreamImpl.java:372)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:249)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              Wed Jan 19 22:55:10 GMT+05:30 2000:<E> <ServletContext-General> Servlet failed with Exception
              java.net.SocketException: socket write error (code=10053)
                   at java.net.SocketOutputStream.socketWrite(Native Method)
                   at java.net.SocketOutputStream.write(SocketOutputStream.java, Compiled Code)
                   at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java, Compiled Code)
                   at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java, Compiled Code)
                   at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputStreamImpl.java, Compiled Code)
                   at weblogic.servlet.FileServlet.sendFile(FileServlet.java:199)
                   at weblogic.servlet.FileServlet.service(FileServlet.java:56)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
                   at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
                   at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
                   at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
                   at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              

    Hello,
              I am facing the same problem of content length... Did you find a solution for it?
              Thanks
              Parag Bhagwat wrote:
              > hi all,
              >
              > i am running a jsp on weblogic that just displays an index page.
              > there is no problem in displaying the page but,on the console i get this error.
              > how to solve this error.
              > Thanks in advance.
              > Parag B.Bhagwat
              > ---------------------------------------------------------------
              > java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '4096' bytes instead of stated: '12063' bytes.
              > at weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutputStreamImpl.java:372)
              > at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:249)
              > at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              >
              > Wed Jan 19 22:55:10 GMT+05:30 2000:<E> <ServletContext-General> Servlet failed with Exception
              > java.net.SocketException: socket write error (code=10053)
              > at java.net.SocketOutputStream.socketWrite(Native Method)
              > at java.net.SocketOutputStream.write(SocketOutputStream.java, Compiled Code)
              > at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java, Compiled Code)
              > at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java, Compiled Code)
              > at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputStreamImpl.java, Compiled Code)
              > at weblogic.servlet.FileServlet.sendFile(FileServlet.java:199)
              > at weblogic.servlet.FileServlet.service(FileServlet.java:56)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
              > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
              > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
              > at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
              > at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              Walid El Daccache
              Net SNA Team
              SoftSolutions, Lebanon
              

  • HTTP PUT Request for File Uploads is returning a response header with content-length = 0

    After upgrading from CF9 to Coldfusion 10, I'm running into an odd issue, with `cURL` calls to a webservice that used to work.
    We are using an HTTP PUT Request with multipart="no" so that the request header content is the file itself, now the data is being sent properly in the content but it has a ~8k limit. This is fine for smaller files but some files are 60kb etc.
    Errors are odd too, near the 8KB limit we get a bad gateway error 502, and above that the webpage errors with a connection reset.
    It works fine with multipart="yes", but in a PUT request the file's data isn't even sent since it's looking for `httpparam formField` , the content-length from the target page's Headers show a content-length of 0 which causes `cURL` to fail with an error (56): http://curl.haxx.se/docs/manpage.html
    Here's example code to reproduce:
    <cfset sFilename = "C:\999\test4.txt">
    <cffile action="readBinary" file="#sFilename#" variable="fileRead">
    <cfset oFileInfo = GetFileInfo("#sFilename#")>
    <cfhttp           url="localhost/Clarence/diff_elt_test_output.cfm"
                                  method="PUT"
                                  username="******"
                                  password="******"
                                  multipart="yes"
                                  result="oHttp">
              <cfhttpparam type="header" name="Content-Type" value="text/plain" />
              <cfhttpparam type="header" name="Content-Length" value="#oFileInfo.Size#" />
              <cfhttpparam type="body" value="#fileRead#"/>
    </cfhttp>
    <cfdump var="#oHttp#">
    Dumping the response via GetHttpRequestData() shows that the header's content-length = 0 and content is blank.
    Whereas POST requests work fine, cURL has a -F form option which is our fallback but a solution to this would be great.
    Here's what I've tried:
    1. Changing CF post request limit sizes (64MB+)
    2. Changing IIS config web/webserver http runtime and security.request filtering request limits to much higher values
    3. AJP Connector between IIS and Tomcat has a default 8KB header limit, I changed that to 64k on both sides, still nothing
    Also am I missing something fundamental here? I thought at the network layer a packet is split up and rejoined, so large content in a http request body should work, what's wrong with Coldfusion 10?

    I am familiar with java.net package and know how to
    Read and Write Streams.
    However, what I do not know is what string
    represntation of PUT or POST resquests is?It's HttpURLConnection.setRequestMethod("PUT") or ("POST").
    Also you have to setDoOutput(true).
    Then you set the content type, possibly encode the input, set the content length, and write the file data to the stream.
    Using a Jakarta package may be easier, however.

  • Content-Length missing in SOAP request

    In Oracle Application Server, a SOAP request like :
    POST /eai_esn/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&WSSoap=1 HTTP/1.1
    SOAPAction: "document/http://siebel.com/marketing/import:MktgImportServiceInvokeImportJob"
    User-Agent: Axis2
    Host: 192.168.49.66:8093
    Transfer-Encoding: chunked
    Content-Type: text/xml; charset=UTF-8
    a28
    <?xml version='1.0' encoding='UTF-8'?>. . . . </soapenv:Envelope>
    0
    is rejected with an error like : "Missing body length ..."
    However , a SOAP request like :
    Content-Type: text/xml;charset=UTF-8
    SOAPAction: "document/http://siebel.com/marketing/import:MktgImportServiceInvokeImportJob"
    User-Agent: Jakarta Commons-HttpClient/3.1
    Host: 192.168.49.58:8093
    Content-Length: 2602
    <?xml ...... >
    is accepted with no error .
    Using Microsoft IIS, the first SOAP request without the 'Content-Length' is accepted just fine.
    It looks like OAS requires SOAP header to have a "Content-Length" . Is this correct ? Is there a way to change this behavior ?
    Thank you
    Gabriel Gonzalez

    Hi,
    The web service we are trying to communicate with is a third-party service that we have no control over. This service requires the name of the attribute to be in the content id field.
    See section 3.8 of the following link
    http://www.ws-i.org/Profiles/AttachmentsProfile-1.0-2004-08-24.html
    I seem to be able to set the name, description, contentType in the SOAP adapter module I have written - but I cannot set the content-Id.
    Regards,
    Bryan

Maybe you are looking for