unexpected EOF (in header)

Help
forefeat
2009-11-06
2012-09-21
  • forefeat
    forefeat
    2009-11-06

    Hi Etienne,

    Having issues using the app. When it loads I'm getting an alert message with
    the following: "unexpected EOF (in header) unable to access postURL(my URL)"

    I'm just trying to use the basic setup. No firewalls/proxies. When I upload a
    file everything seems to work as it should.

    not much in console (debugLevel set to 100), but here it is:

    basic: Added progress listener:
    sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1a2cfbc
    basic: Applet loaded. basic: Applet
    resized and added to parent container
    basic: PERF: AppletExecutionRunnable -
    applet.init() BEGIN ; jvmLaunch dt
    975011 us, pluginInit dt 10711206812
    us, TotalTime: 10712181823 us basic:
    Applet initialized basic: Removed
    progress listener:
    sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1a2cfbc
    basic: Applet made visible basic:
    Starting applet basic: completed perf
    rollup Trying to load the
    given uploadPolicy:
    DefaultUploadPolicy
    wjhk.jupload2.policies.DefaultUploadPolicy
    class found. network: Cache entry not
    found basic: Starting applet
    teardown network: Connecting
    http://client.ignite.cw03/plugins/igallery/javauploader/wjhk/jupload2/lang/
    lang_en_US.properties

    with proxy=DIRECT network: Connecting
    http://client.ignite.cw03:80/ with
    proxy=DIRECT network: Connecting
    http://client.ignite.cw03/plugins/igallery/javauploader/wjhk/jupload2/lang/
    lang_en_US.properties

    with cookie
    "2ca70da91b02080924462efccca4cf6b=ddf15fc24faeeaa88e37f327e0caa37e;
    ZendDebuggerCookie=192.168.1.3%2C127.0.0.1%3A10000%3A0||0C4|77742D65|0;
    3c306cad13f3a3c33116281ea0f20cd2=g1jkp07bg47q5q9m7ogslfufb0"
    basic: Finished applet teardown
    network: Connecting
    http://client.ignite.cw03/administrator/testjava.php
    with proxy=DIRECT network: Connecting
    http://client.ignite.cw03:80/ with
    proxy=DIRECT basic: Applet started
    basic: Told clients applet is started

    Thanks in advance!

    Jeremy

     
  • Etienne
    Etienne
    2009-11-06

    Hi,

    The output you've pasted here is taken from the Java Console, right ?

    I need the applet debug output. To get it: CTRL+right click on the applet, and
    you'll have a menu that allows you to copy its content.

    By the way, it looks like an 'old' bug. I guess you don't have the last
    release. Please try the 4.5.0 version.

    If it doesn't work, please tell me more about your system: OS, java version,
    navigator...

    Etienne

     
  • forefeat
    forefeat
    2009-11-08

    Hello

    Using version 4.5 of jupload, java version is 1.6.0_17-b04, Windows XP OS.

    00001 11:07:01.593 wjhk.jupload2.JUploadApplet JUpload juploadContext started,
    with wjhk.jupload2.policies.DefaultUploadPolicy upload policy
    00002 11:07:01.609 wjhk.jupload2.JUploadApplet Debug level set to 100
    00003 11:07:01.609 wjhk.jupload2.JUploadApplet Current debug output file:
    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\jupload_1857090102401767633_log.txt
    00004 11:07:01.609 wjhk.jupload2.JUploadApplet lang = null, taking default
    language
    00005 11:07:02.062 wjhk.jupload2.JUploadApplet nbFilesPerRequest<0 which is
    invalid. Switched to the default value (Integer.MAX_VALUE)
    00006 11:07:02.171 wjhk.jupload2.JUploadApplet Getting serverProtocol from
    HEAD request
    00007 11:07:02.171 wjhk.jupload2.JUploadApplet Checking protocol with URL: ht
    tp://client.ignite.cw03/administrator/testjava.php

    00008 11:07:02.171 wjhk.jupload2.JUploadApplet Start
    00009 11:07:02.171 wjhk.jupload2.JUploadApplet Header appended; Cookie:
    3c306cad13f3a3c33116281ea0f20cd2=85t84k73buo6jn2bsu1u9n0153;
    2ca70da91b02080924462efccca4cf6b=i6gbgbovd65kghcla376v240f3;
    ZendDebuggerCookie=127.0.0.1%3A10000%3A0||0C4|77742D65|0
    00010 11:07:02.171 wjhk.jupload2.JUploadApplet Header appended; User-Agent:
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102
    Firefox/3.5.5 (.NET CLR 3.5.30729)
    00011 11:07:02.171 wjhk.jupload2.JUploadApplet End
    00012 11:07:02.171 wjhk.jupload2.JUploadApplet
    00013 11:07:02.171 wjhk.jupload2.JUploadApplet Before sendRequest()
    00014 11:07:02.171 wjhk.jupload2.JUploadApplet Using non SSL socket, direct
    connection
    00015 11:07:02.187 wjhk.jupload2.JUploadApplet After sendRequest()
    00016 11:07:02.187 wjhk.jupload2.JUploadApplet


    00017 11:07:02.187 wjhk.jupload2.JUploadApplet ----------------- HEAD message
    sent (start) --------------------------
    00018 11:07:02.187 wjhk.jupload2.JUploadApplet


    00019 11:07:02.187 wjhk.jupload2.JUploadApplet HEAD
    /administrator/testjava.php HTTP/1.1
    00019 11:07:02.187 wjhk.jupload2.JUploadApplet Host: client.ignite.cw03
    00019 11:07:02.187 wjhk.jupload2.JUploadApplet Accept: /
    00019 11:07:02.187 wjhk.jupload2.JUploadApplet Accept-Encoding: identity
    00019 11:07:02.187 wjhk.jupload2.JUploadApplet Connection: close
    00019 11:07:02.187 wjhk.jupload2.JUploadApplet Cookie:
    3c306cad13f3a3c33116281ea0f20cd2=85t84k73buo6jn2bsu1u9n0153;
    2ca70da91b02080924462efccca4cf6b=i6gbgbovd65kghcla376v240f3;
    ZendDebuggerCookie=127.0.0.1%3A10000%3A0||0C4|77742D65|0
    00019 11:07:02.187 wjhk.jupload2.JUploadApplet User-Agent: Mozilla/5.0
    (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
    (.NET CLR 3.5.30729)
    00019 11:07:02.187 wjhk.jupload2.JUploadApplet
    00020 11:07:02.187 wjhk.jupload2.JUploadApplet


    00021 11:07:02.187 wjhk.jupload2.JUploadApplet ----------------- HEAD message
    sent (end) -----------------------------
    00022 11:07:02.187 wjhk.jupload2.JUploadApplet


    00023 11:07:02.187 wjhk.jupload2.JUploadApplet -------- Response Headers Start

    00024 11:07:02.187 wjhk.jupload2.JUploadApplet unexpected EOF (in header)
    (Unable to access to the postURL: 'http://client.ignite.cw03/administrator/te
    stjava.php
    ')
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet
    wjhk.jupload2.exception.JUploadException: unexpected EOF (in header)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at wjhk.jupload2.upload.helper.
    HTTPInputStreamReader.readHeaders(HTTPInputStreamReader.java:382)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at wjhk.jupload2.upload.helper.
    HTTPInputStreamReader.readHttpResponse(HTTPInputStreamReader.java:172)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at wjhk.jupload2.upload.helper.
    HTTPConnectionHelper.readHttpResponse(HTTPConnectionHelper.java:692)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at
    wjhk.jupload2.upload.helper.HttpConnect.getProtocol(HttpConnect.java:291)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at wjhk.jupload2.policies.Defau
    ltUploadPolicy.setServerProtocol(DefaultUploadPolicy.java:1913)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at wjhk.jupload2.policies.Defau
    ltUploadPolicy.<init>(DefaultUploadPolicy.java:525)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at
    java.lang.reflect.Constructor.newInstance(Unknown Source)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at wjhk.jupload2.policies.Uploa
    dPolicyFactory.getUploadPolicy(UploadPolicyFactory.java:124)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at wjhk.jupload2.context.Defaul
    tJUploadContext.init(DefaultJUploadContext.java:168)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at wjhk.jupload2.context.JUploa
    dContextApplet.<init>(JUploadContextApplet.java:66)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at
    wjhk.jupload2.JUploadApplet.start(JUploadApplet.java:61)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at
    sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    00025 11:07:02.187 wjhk.jupload2.JUploadApplet at java.lang.Thread.run(Unknown
    Source)
    00026 11:07:23.578 wjhk.jupload2.JUploadApplet end of constructor
    (serverProtocol has been set)
    00027 11:07:23.578 wjhk.jupload2.JUploadApplet uploadPolicy parameter =
    DefaultUploadPolicy
    00028 11:07:23.578 wjhk.jupload2.JUploadApplet uploadPolicy =
    wjhk.jupload2.policies.DefaultUploadPolicy
    00029 11:07:23.578 wjhk.jupload2.JUploadApplet
    =======================================================================
    00030 11:07:23.578 wjhk.jupload2.JUploadApplet ======= Parameters managed by
    DefaultUploadPolicy
    00031 11:07:23.578 wjhk.jupload2.JUploadApplet JUpload applet, version 4.5.0
    build 223 on 10/13/2009 06:37 PM (compiled: 10/13/2009 06:37 PM), available at
    http://jupload.sourceforge.net/
    00032 11:07:23.578 wjhk.jupload2.JUploadApplet Java version: 1.6.0_17
    00033 11:07:23.578 wjhk.jupload2.JUploadApplet List of all applet parameters:
    00034 11:07:23.578 wjhk.jupload2.JUploadApplet language: en
    00035 11:07:23.578 wjhk.jupload2.JUploadApplet country:
    00036 11:07:23.578 wjhk.jupload2.JUploadApplet afterUploadURL: null
    00037 11:07:23.578 wjhk.jupload2.JUploadApplet allowHttpPersistent: false
    00038 11:07:23.578 wjhk.jupload2.JUploadApplet allowedFileExtensions: null
    00039 11:07:23.578 wjhk.jupload2.JUploadApplet browsingDirectory (current
    value): null
    00040 11:07:23.578 wjhk.jupload2.JUploadApplet debugLevel: 100
    00041 11:07:23.578 wjhk.jupload2.JUploadApplet (debugfile:
    C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\jupload_1857090102401767633_log.txt)
    00042 11:07:23.578 wjhk.jupload2.JUploadApplet fileChooserIconFromFileContent:
    0
    00043 11:07:23.578 wjhk.jupload2.JUploadApplet fileChooserIconSize: 20
    00044 11:07:23.578 wjhk.jupload2.JUploadApplet filenameEncoding: null
    00045 11:07:23.578 wjhk.jupload2.JUploadApplet formdata: null
    00046 11:07:23.578 wjhk.jupload2.JUploadApplet ftpCreateDirectoryStructure:
    false
    00047 11:07:23.593 wjhk.jupload2.JUploadApplet ftpTransfertBinary: true
    00048 11:07:23.593 wjhk.jupload2.JUploadApplet ftpTransfertPassive: true
    00049 11:07:23.593 wjhk.jupload2.JUploadApplet lang: null
    00050 11:07:23.593 wjhk.jupload2.JUploadApplet maxChunkSize:
    9223372036854775807
    00051 11:07:23.593 wjhk.jupload2.JUploadApplet maxFileSize:
    9223372036854775807
    00052 11:07:23.593 wjhk.jupload2.JUploadApplet nbFilesPerRequest: 2147483647
    00053 11:07:23.593 wjhk.jupload2.JUploadApplet postURL: http://client.ignite.
    cw03/administrator/testjava.php

    00054 11:07:23.593 wjhk.jupload2.JUploadApplet readCookieFromNavigator: true
    00055 11:07:23.593 wjhk.jupload2.JUploadApplet serverProtocol: HTTP/1.1
    00056 11:07:23.593 wjhk.jupload2.JUploadApplet showLogWindow: true
    00057 11:07:23.593 wjhk.jupload2.JUploadApplet showStatusbar: true
    00058 11:07:23.593 wjhk.jupload2.JUploadApplet specificHeaders: null
    00059 11:07:23.593 wjhk.jupload2.JUploadApplet Headers that will be added to
    the POST request:
    00060 11:07:23.593 wjhk.jupload2.JUploadApplet Cookie:
    3c306cad13f3a3c33116281ea0f20cd2=85t84k73buo6jn2bsu1u9n0153;
    2ca70da91b02080924462efccca4cf6b=i6gbgbovd65kghcla376v240f3;
    ZendDebuggerCookie=127.0.0.1%3A10000%3A0||0C4|77742D65|0
    00061 11:07:23.593 wjhk.jupload2.JUploadApplet User-Agent: Mozilla/5.0
    (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
    (.NET CLR 3.5.30729)
    00062 11:07:23.593 wjhk.jupload2.JUploadApplet stringUploadError: ^ERROR:
    (.)$
    00063 11:07:23.593 wjhk.jupload2.JUploadApplet stringUploadSuccess: ^SUCCESS$
    00064 11:07:23.593 wjhk.jupload2.JUploadApplet stringUploadWarning: ^WARNING:
    (.
    )$
    00065 11:07:23.593 wjhk.jupload2.JUploadApplet urlToSendErrorTo: null
    00066 11:07:23.593 wjhk.jupload2.JUploadApplet
    00067 11:07:24.609 wjhk.jupload2.JUploadApplet Mime types list loaded Ok
    (/conf/mimetypes.properties)
    00068 11:07:24.609 wjhk.jupload2.JUploadApplet JUploadApplet is now started.

    Just got this on the app rendering - haven't tried to upload anything at this
    stage.

    Thanks.

     
  • Etienne
    Etienne
    2009-11-09

    Hi,

    Do you have a local antivirus ? I had troubles with both Kaspersky and GData.
    If yes try removing Internet scanning. If it works, adding your site to the
    antivirus white list may be enough (doesn't work with GData)

    Etienne

     
  • forefeat
    forefeat
    2009-11-10

    Hello,

    Disabled my local antivirus (NOD32) to no avail. What does EOF stand for? I
    tested it loading two files first together in one request. Files came through
    but threw a similar error. When I set it for one HTTP request per file, the
    first file wold go (with error), and never got a second request. Really keen
    to get this working. What next?

    Thanks again

     
  • Etienne
    Etienne
    2009-11-10

    If I understand correctly,

    You get the same error with your antivirus off ?

    I took a look at the code. I suspect an 'optimization' to be responsible of
    this. On my computer, it seems to remove the error.
    Can you confirm, with the trunk jar file, available here:
    http://jupload.svn.sourceforge.net/viewvc/jupload/trunk/wwwroot/wjhk.jupload.
    jar

    Etienne

     
  • Hi I have the same problem with Panda antivirus. I tried the latest v4.5.1rc.
    SVN rev 888 and it still doesn't work.
    Try to change to AVG antivirus that works for me.
    But it still feels like the problem with the antivirus clients needs to be
    solved.

     
  • Hmmm, i just tried the build 243 and it works with Panda..... good work.
    I tried the build 240 yesterday and it didn't work. But as i said the build
    243 works with my Panda client.
    Thank You for this, nice.

     
  • Etienne
    Etienne
    2009-11-11

    So the problem seems to be solved.

    Can you confirm it, forefeat ?

    Etienne