jijo-paulose / gwtupload

Automatically exported from code.google.com/p/gwtupload
Other
0 stars 0 forks source link

Infinite retries to upload the file after its finished #209

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a custom Modal
2. Append a Well to the custom Modal
3. Append a SingleUploader to the Well
4. Add a OnFinishUploaderHandler to the SingleUploader
5. Upload a file
6. On Success in the OnFinishUploaderHandler close the Modal
7. The OnFinishUploaderHandler is called in an infinite loop until the modal is 
closed. Additionally I get the exception below.

What is the expected output? What do you see instead?
The expected behaviour would be the file is uploaded once.

What version of the product are you using? On what operating system?
gwtupload1.0.3 gwt-2.6.1 java7

Please provide any additional information below.

00:11:58,937 [ERROR] onSubmitComplete exception parsing response (Check CORS 
and XML syntax):
com.google.gwt.xml.client.impl.DOMParseException: Failed to parse:      at 
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:280)  at 
com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47)    at 
gwtupload.client.Uploader$9.onSubmitComplete(Uploader.java:443)     at 
com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.j
ava:117)    at 
com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.j
ava:1)  at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)   at 
com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) 
    at 
com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:19
3)  at 
com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java
:88)    at 
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) 
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)  at 
com.google.gwt.user.client.ui.FormPanel$1.execute(FormPanel.java:649)   at 
com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerI
mpl.java:50)    at 
com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.ja
va:180)     at 
com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(Schedul
erImpl.java:345)    at 
com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java
:78)    at 
com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:138) 
    at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)   at java.lang.reflect.Method.invoke(Method.java:606)     at 
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)   at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)  at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172
)   at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForRetu
rn(BrowserChannelServer.java:338)   at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelSer
ver.java:219)   at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) 
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)  at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284) 
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:9
1)  at com.google.gwt.core.client.impl.Impl.apply(Impl.java)    at 
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:356)  at 
sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)   at java.lang.reflect.Method.invoke(Method.java:606)     at 
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)   at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)  at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172
)   at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServ
er.java:293)    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelSe
rver.java:547)  at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:744) Caused by: 
com.google.gwt.core.client.JavaScriptException: (Error) 
@com.google.gwt.xml.client.impl.XMLParserImplStandard::parseImpl(Ljava/lang/Stri
ng;)([string: '']): XML-Verarbeitungsfehler: Kein Element gefunden Adresse: 
http://127.0.0.1:8080/ARTGUI/ARTGUI/hosted.html?ARTGUI Zeile Nr. 1, Spalte 1: 
    at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelSer
ver.java:249)   at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) 
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)  at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284) 
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:9
1)  at 
com.google.gwt.xml.client.impl.XMLParserImplStandard.parseImpl(XMLParserImplStan
dard.java)  at 
com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:278)  at 
com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47)    at 
gwtupload.client.Uploader$9.onSubmitComplete(Uploader.java:443)     at 
com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.j
ava:117)    at 
com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.j
ava:1)  at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)   at 
com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) 
    at 
com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:19
3)  at 
com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java
:88)    at 
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) 
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)  at 
com.google.gwt.user.client.ui.FormPanel$1.execute(FormPanel.java:649)   at 
com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerI
mpl.java:50)    at 
com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.ja
va:180)     at 
com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(Schedul
erImpl.java:345)    at 
com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java
:78)    at 
com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:138) 
    at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)   at java.lang.reflect.Method.invoke(Method.java:606)     at 
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)   at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)  at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172
)   at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForRetu
rn(BrowserChannelServer.java:338)   at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelSer
ver.java:219)   at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) 
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)  at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284) 
    at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:9
1)  at com.google.gwt.core.client.impl.Impl.apply(Impl.java)    at 
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:356)  at 
sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)   at java.lang.reflect.Method.invoke(Method.java:606)     at 
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)   at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)  at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172
)   at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServ
er.java:293)    at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelSe
rver.java:547)  at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:744)

Original issue reported on code.google.com by russ.seb...@googlemail.com on 16 Jan 2015 at 10:16

GoogleCodeExporter commented 8 years ago
I followed your "getting started" example and used the custom upload servlet.

Original comment by russ.seb...@googlemail.com on 16 Jan 2015 at 10:46

GoogleCodeExporter commented 8 years ago
The exception is thrown in Upload.java line 443 because the serverRawResponse 
is "" (empty). Maybe you could add a check like:

if (!serverRawResponse.isEmpty()) {

But that shouldnt be the problem...

Why does it call the OnFinishUploaderHandler several times?

Original comment by russ.seb...@googlemail.com on 16 Jan 2015 at 10:59

GoogleCodeExporter commented 8 years ago
seems to be same problem like issue 199

Original comment by russ.seb...@googlemail.com on 16 Jan 2015 at 12:19

GoogleCodeExporter commented 8 years ago
Seems to be a problem of the FireFox v24 ESR (needed for GWT debug plugin)

Original comment by russ.seb...@googlemail.com on 16 Jan 2015 at 12:22

GoogleCodeExporter commented 8 years ago
I've got exactly the same issue , tested on version of FF 24 and 35 with the 
sample app. Works on Chrome.

It loops indefinitely on server side and client side after file is uploaded 
when using the singleUploadSample and using browser input.

The deployed sample app seems affected too (see screenshot attached) 
http://gwtupload.alcala.org/gupld/gwtuploadsample.SingleUploadSample/SingleUploa
dSample.html

server side logs:

200 - GET 
/gwtuploadsample.SingleUploadSample/servlet.gupld?filename=GWTU-0924534352319721
8&c=25&random=0.16380372674200383 (127.0.0.1) 91 bytes
   Request headers
      Host: 127.0.0.1:8888
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Language: en-GB,en;q=0.5
      Accept-Encoding: gzip, deflate
      Content-Type: text/plain; charset=UTF-8
      Referer: http://127.0.0.1:8888/gwtuploadsample.SingleUploadSample/SingleUploadSample.html
      Cookie: __utma=96992031.1266540431.1421947004.1421947004.1421947004.1; __utmb=96992031.2.10.1421947004; __utmc=96992031; __utmz=96992031.1421947004.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmt=1; JSESSIONID=qerkye0k039d1ity549flaq3f
      Connection: keep-alive
   Response headers
      Cache-Control: no-cache
      Content-Type: text/html;charset=UTF-8
- UPLOAD-SERVLET (qerkye0k039d1ity549flaq3f) getUploadedFile: 
GWTU-05543876144874991-0 file isn't in session.
200 - GET 
/gwtuploadsample.SingleUploadSample/servlet.gupld?show=GWTU-05543876144874991-0&
random=0.6795546722287041 (127.0.0.1) 90 bytes
   Request headers
      Host: 127.0.0.1:8888
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
      Accept: image/png,image/*;q=0.8,*/*;q=0.5
      Accept-Language: en-GB,en;q=0.5
      Accept-Encoding: gzip, deflate
      Referer: http://127.0.0.1:8888/gwtuploadsample.SingleUploadSample/SingleUploadSample.html
      Cookie: __utma=96992031.1266540431.1421947004.1421947004.1421947004.1; __utmb=96992031.2.10.1421947004; __utmc=96992031; __utmz=96992031.1421947004.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmt=1; JSESSIONID=qerkye0k039d1ity549flaq3f
      Connection: keep-alive
   Response headers
      Cache-Control: no-cache
      Content-Type: text/html;charset=UTF-8

Client side logs:

        0ms 
A930A6B...ache.js (line 58427)
server response received, cancelling the upload []
A930A6B...ache.js (line 13570)
onSubmitComplete exception parsing response (Check CORS and XML syntax):
A930A6B...ache.js (line 13570)
com.google.gwt.xml.client.impl.DOMParseException: Failed to parse: Caused by: 
com.google.gwt.core.client.JavaScriptException: (Error) : XML Parsing Error: no 
element found Location: 
http://127.0.0.1:8888/gwtuploadsample.SingleUploadSample/SingleUploadSample.html
 Line Number 1, Column 1:
error_1_g$(message_0_g$="com.google.gwt.xml.clien...ne Number 1, Column 
1:\n")A930A6B...ache.js (line 13565)
_.log_8_g$(message_0_g$="onSubmitComplete excepti... CORS and XML syntax): ", 
t_0_g$=com.google.gwt.xml.client.impl.DOMParseException: Failed to parse: { 
detailMessage_0_g$="Failed to parse: ", stackTrace_1_g$=[0], code_1_g$=12, 
more...})A930A6B...ache.js (line 13582)
log_4_g$(message_0_g$="onSubmitComplete excepti... CORS and XML syntax): ", 
e_0_g$=com.google.gwt.xml.client.impl.DOMParseException: Failed to parse: { 
detailMessage_0_g$="Failed to parse: ", stackTrace_1_g$=[0], code_1_g$=12, 
more...})A930A6B...ache.js (line 13731)
log_1_g$(message_0_g$="onSubmitComplete excepti... CORS and XML syntax): ", 
e_0_g$=com.google.gwt.xml.client.impl.DOMParseException: Failed to parse: { 
detailMessage_0_g$="Failed to parse: ", stackTrace_1_g$=[0], code_1_g$=12, 
more...})A930A6B...ache.js (line 10355)
log_6_g$(msg_0_g$="onSubmitComplete excepti... CORS and XML syntax): ", 
e_0_g$=com.google.gwt.xml.client.impl.DOMParseException: Failed to parse: { 
detailMessage_0_g$="Failed to parse: ", stackTrace_1_g$=[0], code_1_g$=12, 
more...})A930A6B...ache.js (line 62097)
_.onSubmitComplete_2_g$()A930A6B...ache.js (line 63795)
_.dispatch_43_g$(handler_0_g$=gwtupload.client.Uploader$9@e8 { 
this$01_73_g$=<table style="display: inline-block;" class="GWTUpld" 
cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align: top;" 
align="left"><form action="servlet.gupld" accept-charset="UTF-8" method="post" 
enctype="multipart/form-data" 
target="FormPanel_gwtuploadsample.SingleUploadSample_4"><div 
class="upld-form-elements"><input value="GWTU-07964028758539629" 
name="APC_UPLOAD_PROGRESS" type="hidden"><div style="" 
class="DecoratedFileUpload"><input accept=".jpg,.gif,.png" 
name="GWTU-07964028758539629" style="position: fixed; display: inline; top: 
-1000px; left: -1000px;" multiple="multiple" class="gwt-FileUpload" 
type="file"><div class="customButton 
DecoratedFileUpload-button"></div></div><button aria-hidden="true" 
style="display: none;" class="gwt-Button submit" 
type="button">Send</button></div></form></td><td style="vertical-align: top;" 
align="left"><table aria-hidden="true" style="display: none;" 
class="upld-status" cellpadding="0" cellspacing="0"><tbody><tr><td 
style="vertical-align: top;" align="left"><div class="cancel"> </div></td><td 
style="vertical-align: top;" align="left"><div 
class="filename">abstract-life_1280x1024.jpg</div></td><td 
style="vertical-align: top;" align="left"><div style="" class="status 
status-changed status-submiting status-queued status-inprogress status-success 
status-uninitialized">Done</div></td><td style="vertical-align: top;" 
align="left"><div aria-hidden="true" class="prgbar-back prgbar" style="width: 
100px; display: none;"><div style="width: 0px;" class="prgbar-done"></div><div 
class="prgbar-msg"></div></div></td></tr></tbody></table></td></tr></tbody></tab
le>, $H=232, castableTypeMap$={...}, more...})A930A6B...ache.js (line 47890)
_.dispatch_1_g$(handler_0_g$=gwtupload.client.Uploader$9@e8 { 
this$01_73_g$=<table style="display: inline-block;" class="GWTUpld" 
cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align: top;" 
align="left"><form action="servlet.gupld" accept-charset="UTF-8" method="post" 
enctype="multipart/form-data" 
target="FormPanel_gwtuploadsample.SingleUploadSample_4"><div 
class="upld-form-elements"><input value="GWTU-07964028758539629" 
name="APC_UPLOAD_PROGRESS" type="hidden"><div style="" 
class="DecoratedFileUpload"><input accept=".jpg,.gif,.png" 
name="GWTU-07964028758539629" style="position: fixed; display: inline; top: 
-1000px; left: -1000px;" multiple="multiple" class="gwt-FileUpload" 
type="file"><div class="customButton 
DecoratedFileUpload-button"></div></div><button aria-hidden="true" 
style="display: none;" class="gwt-Button submit" 
type="button">Send</button></div></form></td><td style="vertical-align: top;" 
align="left"><table aria-hidden="true" style="display: none;" 
class="upld-status" cellpadding="0" cellspacing="0"><tbody><tr><td 
style="vertical-align: top;" align="left"><div class="cancel"> </div></td><td 
style="vertical-align: top;" align="left"><div 
class="filename">abstract-life_1280x1024.jpg</div></td><td 
style="vertical-align: top;" align="left"><div style="" class="status 
status-changed status-submiting status-queued status-inprogress status-success 
status-uninitialized">Done</div></td><td style="vertical-align: top;" 
align="left"><div aria-hidden="true" class="prgbar-back prgbar" style="width: 
100px; display: none;"><div style="width: 0px;" class="prgbar-done"></div><div 
class="prgbar-msg"></div></div></td></tr></tbody></table></td></tr></tbody></tab
le>, $H=232, castableTypeMap$={...}, more...})A930A6B...ache.js (line 47886)
_.dispatch_0_g$(handler_0_g$=gwtupload.client.Uploader$9@e8 { 
this$01_73_g$=<table style="display: inline-block;" class="GWTUpld" 
cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align: top;" 
align="left"><form action="servlet.gupld" accept-charset="UTF-8" method="post" 
enctype="multipart/form-data" 
target="FormPanel_gwtuploadsample.SingleUploadSample_4"><div 
class="upld-form-elements"><input value="GWTU-07964028758539629" 
name="APC_UPLOAD_PROGRESS" type="hidden"><div style="" 
class="DecoratedFileUpload"><input accept=".jpg,.gif,.png" 
name="GWTU-07964028758539629" style="position: fixed; display: inline; top: 
-1000px; left: -1000px;" multiple="multiple" class="gwt-FileUpload" 
type="file"><div class="customButton 
DecoratedFileUpload-button"></div></div><button aria-hidden="true" 
style="display: none;" class="gwt-Button submit" 
type="button">Send</button></div></form></td><td style="vertical-align: top;" 
align="left"><table aria-hidden="true" style="display: none;" 
class="upld-status" cellpadding="0" cellspacing="0"><tbody><tr><td 
style="vertical-align: top;" align="left"><div class="cancel"> </div></td><td 
style="vertical-align: top;" align="left"><div 
class="filename">abstract-life_1280x1024.jpg</div></td><td 
style="vertical-align: top;" align="left"><div style="" class="status 
status-changed status-submiting status-queued status-inprogress status-success 
status-uninitialized">Done</div></td><td style="vertical-align: top;" 
align="left"><div aria-hidden="true" class="prgbar-back prgbar" style="width: 
100px; display: none;"><div style="width: 0px;" class="prgbar-done"></div><div 
class="prgbar-msg"></div></div></td></tr></tbody></table></td></tr></tbody></tab
le>, $H=232, castableTypeMap$={...}, more...})A930A6B...ache.js (line 29945)
dispatchEvent_1_g$(event_0_g$=An event type { dead_0_g$=true, 
castableTypeMap$={...}, constructor=An event type, more...}, 
handler_0_g$=gwtupload.client.Uploader$9@e8 { this$01_73_g$=<table 
style="display: inline-block;" class="GWTUpld" cellpadding="0" 
cellspacing="0"><tbody><tr><td style="vertical-align: top;" align="left"><form 
action="servlet.gupld" accept-charset="UTF-8" method="post" 
enctype="multipart/form-data" 
target="FormPanel_gwtuploadsample.SingleUploadSample_4"><div 
class="upld-form-elements"><input value="GWTU-07964028758539629" 
name="APC_UPLOAD_PROGRESS" type="hidden"><div style="" 
class="DecoratedFileUpload"><input accept=".jpg,.gif,.png" 
name="GWTU-07964028758539629" style="position: fixed; display: inline; top: 
-1000px; left: -1000px;" multiple="multiple" class="gwt-FileUpload" 
type="file"><div class="customButton 
DecoratedFileUpload-button"></div></div><button aria-hidden="true" 
style="display: none;" class="gwt-Button submit" 
type="button">Send</button></div></form></td><td style="vertical-align: top;" 
align="left"><table aria-hidden="true" style="display: none;" 
class="upld-status" cellpadding="0" cellspacing="0"><tbody><tr><td 
style="vertical-align: top;" align="left"><div class="cancel"> </div></td><td 
style="vertical-align: top;" align="left"><div 
class="filename">abstract-life_1280x1024.jpg</div></td><td 
style="vertical-align: top;" align="left"><div style="" class="status 
status-changed status-submiting status-queued status-inprogress status-success 
status-uninitialized">Done</div></td><td style="vertical-align: top;" 
align="left"><div aria-hidden="true" class="prgbar-back prgbar" style="width: 
100px; display: none;"><div style="width: 0px;" class="prgbar-done"></div><div 
class="prgbar-msg"></div></div></td></tr></tbody></table></td></tr></tbody></tab
le>, $H=232, castableTypeMap$={...}, more...})A930A6B...ache.js (line 32648)
_.doFire_0_g$(event_0_g$=An event type { dead_0_g$=true, 
castableTypeMap$={...}, constructor=An event type, more...}, 
source_0_g$=null)A930A6B...ache.js (line 32746)
_.fireEvent_2_g$(event_0_g$=An event type { dead_0_g$=true, 
castableTypeMap$={...}, constructor=An event type, more...})A930A6B...ache.js 
(line 32819)
_.fireEvent_1_g$(event_0_g$=An event type { dead_0_g$=true, 
castableTypeMap$={...}, constructor=An event type, more...})A930A6B...ache.js 
(line 32597)
_.fireEvent_1_g$(event_0_g$=An event type { dead_0_g$=true, 
castableTypeMap$={...}, constructor=An event type, more...})A930A6B...ache.js 
(line 2464)
_.execute_2_g$()A930A6B...ache.js (line 47850)
$executeScheduled_0_g$(this$static_0_g$=[com.google.gwt.user.client.ui.FormPanel
$1@ea { this$01_28_g$=<form action="servlet.gupld" accept-charset="UTF-8" 
method="post" enctype="multipart/form-data" 
target="FormPanel_gwtuploadsample.SingleUploadSample_4"><div 
class="upld-form-elements"><input value="GWTU-07964028758539629" 
name="APC_UPLOAD_PROGRESS" type="hidden"><div style="" 
class="DecoratedFileUpload"><input accept=".jpg,.gif,.png" 
name="GWTU-07964028758539629" style="position: fixed; display: inline; top: 
-1000px; left: -1000px;" multiple="multiple" class="gwt-FileUpload" 
type="file"><div class="customButton 
DecoratedFileUpload-button"></div></div><button aria-hidden="true" 
style="display: none;" class="gwt-Button submit" 
type="button">Send</button></div></form>, $H=234, castableTypeMap$={...}, 
more...}, false])A930A6B...ache.js (line 13066)
runScheduledTasks_0_g$(tasks_0_g$=[[com.google.gwt.user.client.ui.FormPanel$1@ea
 { this$01_28_g$=<form action="servlet.gupld" accept-charset="UTF-8" 
method="post" enctype="multipart/form-data" 
target="FormPanel_gwtuploadsample.SingleUploadSample_4"><div 
class="upld-form-elements"><input value="GWTU-07964028758539629" 
name="APC_UPLOAD_PROGRESS" type="hidden"><div style="" 
class="DecoratedFileUpload"><input accept=".jpg,.gif,.png" 
name="GWTU-07964028758539629" style="position: fixed; display: inline; top: 
-1000px; left: -1000px;" multiple="multiple" class="gwt-FileUpload" 
type="file"><div class="customButton 
DecoratedFileUpload-button"></div></div><button aria-hidden="true" 
style="display: none;" class="gwt-Button submit" 
type="button">Send</button></div></form>, $H=234, castableTypeMap$={...}, 
more...}, false]], rescheduled_0_g$=[])A930A6B...ache.js (line 12788)
_.flushPostEventPumpCommands_0_g$()A930A6B...ache.js (line 12880)
_.execute_3_g$()A930A6B...ache.js (line 13019)
execute_0_g$(cmd_0_g$=com.google.gwt.core.client.impl.SchedulerImpl$Flusher@ec 
{ this$01_17_g$=com.google.gwt.core.client.impl.SchedulerImpl@ed, $H=236, 
castableTypeMap$={...}, more...})A930A6B...ache.js (line 12756)
apply_0_g$(jsFunction_0_g$=execute_0_g$(cmd_0_g$), thisObj_0_g$=Window 
SingleUploadSample.html, 
args_0_g$=[com.google.gwt.core.client.impl.SchedulerImpl$Flusher@ec { 
this$01_17_g$=com.google.gwt.core.client.impl.SchedulerImpl@ed, $H=236, 
castableTypeMap$={...}, more...}])A930A6B...ache.js (line 12251)
entry0_0_g$(jsFunction_0_g$=execute_0_g$(cmd_0_g$), thisObj_0_g$=Window 
SingleUploadSample.html, 
args_0_g$=[com.google.gwt.core.client.impl.SchedulerImpl$Flusher@ec { 
this$01_17_g$=com.google.gwt.core.client.impl.SchedulerImpl@ed, $H=236, 
castableTypeMap$={...}, more...}])A930A6B...ache.js (line 12321)
entry_1_g$/<()A930A6B...ache.js (line 12287)
callback_0_g$()A930A6B...ache.js (line 12807)

$wnd.console.error(message_0_g$);

Original comment by florian....@gmail.com on 22 Jan 2015 at 5:27

Attachments:

GoogleCodeExporter commented 8 years ago
I missed to provide these informations:

I've got the issue on release 1.0.3 , while I hadn't the issue on snapshot 
1.0.2-20140710.123924-2

Tested on GWT 2.6.1 and 2.7.0

Original comment by florian....@gmail.com on 22 Jan 2015 at 5:32

GoogleCodeExporter commented 8 years ago
I think the issue is related to this commit : 
https://github.com/manolo/gwtupload/commit/3f788b9bce74789a72b6da6f29149e120cd14
6fd

when I revert it and try again, it works now on FF, unfortunatly, you will get 
back the issue on Chrome.

Original comment by florian....@gmail.com on 23 Jan 2015 at 2:41

GoogleCodeExporter commented 8 years ago
Hi guys,

Do you have any updates on this issue?

Tested on 2.7.0 in FF.

Original comment by n3tro...@gmail.com on 7 Feb 2015 at 4:39

GoogleCodeExporter commented 8 years ago
I'm unable to reproduce this issue, maybe I don't understand well.
I've tried the example in the web and don't see the issue, could someone 
describe an step by step, or provide an example?

Original comment by manuel.carrasco.m on 9 Feb 2015 at 7:06

GoogleCodeExporter commented 8 years ago
I've reproduced it that way:

Use Firefox (I use version 33 and 24)

go to 
http://gwtupload.alcala.org/gupld/gwtuploadsample.SingleUploadSample/SingleUploa
dSample.html

Click on Choose a file (I tried with the third and fourth uploader)

upload with browser input a small file (for example image).

you can see in the bottom panel that file is infinitely republished.

Original comment by florian....@gmail.com on 10 Feb 2015 at 6:37

GoogleCodeExporter commented 8 years ago
Here is a screenshot

Original comment by florian....@gmail.com on 10 Feb 2015 at 6:39

Attachments:

GoogleCodeExporter commented 8 years ago
My bet is that this code is triggering onload event continuously, but I'm 
really not sure.

      var i = $doc.querySelector('iframe[name="' + name + '"]');
      if (i) {
        var o = i.onload;
        i.onload = undefined;
        var p = i.parentElement;
        p.removeChild(i);
        p.appendChild(i);
        i.onload = o;
      }

Original comment by florian....@gmail.com on 10 Feb 2015 at 6:41

GoogleCodeExporter commented 8 years ago
After upgrading to 1.0.3 (which I needed after bumping up to GWT 2.7), I 
experienced the infinite loop in non-WebKit browsers (i.e., FF26, FF37Dev, 
IE8-11).  My test file would upload successfully on the first attempt and the 
browser would receive back the upload location url, but then the uploader would 
continue trying to post to my servlet over and over with a null file path.  
Using florian's advice 
(https://code.google.com/p/gwtupload/issues/detail?id=209#c7), I commented out 
the call to reatachIframe(String) at Uploader.java:1317 and this problem went 
away.  I have a single-page GWTP app and have never experienced 
http://stackoverflow.com/questions/27711821.

Original comment by eric.eld...@gmail.com on 10 Feb 2015 at 8:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
hello,
i am experiencing the same problem using gwtupload1.0.3 gwt-2.7 java version 
"1.7.0_45"
Note that i only get this when i use gwtupload in SmartGwt5.0 application. it 
worked fine when tested in a pure GWT only app
its a blocking bug for us. any idea how to get around this?
thanks

com.smartgwt.client.core.JsObject$SGWT_WARN: 
17:30:16.326:TMR7:WARN:Log:Uncaught JavaScript exception: 
NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 
(NS_ERROR_NOT_AVAILABLE) [nsIDOMWindow.alert] in http://127.0.0.1:8888 line 92
    at sun.reflect.GeneratedConstructorAccessor102.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:341)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:222)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:137)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:315)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
    at com.smartgwt.client.util.SC.logWarn(SC.java)
    at com.smartgwt.client.util.LogUtil.handleOnError(LogUtil.java:35)
    at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:296)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:551)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
    at java.lang.Thread.run(Thread.java:744)

17:30:18.782 [ERROR] [admin] onSubmitComplete exception parsing response (Check 
CORS and XML syntax): 
com.google.gwt.xml.client.impl.DOMParseException: Failed to parse: 
    at com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:280)
    at com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47)
    at gwtupload.client.Uploader$9.onSubmitComplete(Uploader.java:443)
    at com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.java:117)
    at com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.java:1)
    at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
    at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
    at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
    at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
    at com.google.gwt.user.client.ui.FormPanel$1.execute(FormPanel.java:649)
    at com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50)
    at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:183)
    at com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(SchedulerImpl.java:347)
    at com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java:78)
    at com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:141)
    at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:341)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:222)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:137)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:293)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:299)
    at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:296)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:551)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
    at java.lang.Thread.run(Thread.java:744)
Caused by: com.google.gwt.core.client.JavaScriptException: (Error) 
@com.google.gwt.xml.client.impl.XMLParserImplStandard::parseImpl(Ljava/lang/Stri
ng;)([string: '']): XML Parsing Error: no element found
Location: http://127.0.0.1:8888/AdminMdl.jsp?gwt.codesvr=127.0.0.1:9997
Line Number 1, Column 1:
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:252)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:137)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:293)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.xml.client.impl.XMLParserImplStandard.parseImpl(XMLParserImplStandard.java)
    at com.google.gwt.xml.client.impl.XMLParserImpl.parse(XMLParserImpl.java:278)
    at com.google.gwt.xml.client.XMLParser.parse(XMLParser.java:47)
    at gwtupload.client.Uploader$9.onSubmitComplete(Uploader.java:443)
    at com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.java:117)
    at com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.java:1)
    at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
    at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
    at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
    at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129)
    at com.google.gwt.user.client.ui.FormPanel$1.execute(FormPanel.java:649)
    at com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$(SchedulerImpl.java:50)
    at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:183)
    at com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(SchedulerImpl.java:347)
    at com.google.gwt.core.client.impl.SchedulerImpl$Flusher.execute(SchedulerImpl.java:78)
    at com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:141)
    at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:341)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:222)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:137)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:589)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:293)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:299)
    at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:72)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:296)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:551)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:368)
    at java.lang.Thread.run(Thread.java:744)

Original comment by sameeh.h...@gmail.com on 2 Mar 2015 at 4:34

GoogleCodeExporter commented 8 years ago
Could it be related to the comment in "onFrameLoadImpl()" (row 642) in this 
class in GWT?
https://gwt.googlesource.com/gwt/+/2.7.0/user/src/com/google/gwt/user/client/ui/
FormPanel.java

I have been debugging this issue and that is where the SubmitCompleteEvent with 
an empty result string is dispatched in my code. 

This is the GWT commit for the comment 
https://code.google.com/p/google-web-toolkit/source/detail?r=1124

Any good workaround available yet?

Original comment by scht...@gmail.com on 27 May 2015 at 2:41

GoogleCodeExporter commented 8 years ago
One more thing. I can reproduce it on all uploaders on this page.
http://gwtupload.alcala.org/gupld/gwtuploadsample.SingleUploadSample/SingleUploa
dSample.html

But not when using the drop areas. Only when clicking on the "Choose a 
file"/"Browse" buttons. 

(Using Firefox 24)

PS. Google will be shutting down code.google.com this year, i guess this is 
your github page https://github.com/manolo/gwtupload and this is the same issue 
there https://github.com/manolo/gwtupload/issues/11
The discussion should continue over there. 

Original comment by scht...@gmail.com on 27 May 2015 at 3:00

GoogleCodeExporter commented 8 years ago
im having the exact same problem.
Does anybody have a fix?

Original comment by pamichel...@googlemail.com on 9 Jun 2015 at 8:02

machao23 commented 8 years ago

im having the exact same problem. Does anybody have a fix?