Help needed - List<File> raises UmbrellaException.

34 views
Skip to first unread message

Henri Reinikainen

unread,
Jun 24, 2015, 1:28:21 PM6/24/15
to lib-gw...@googlegroups.com
Hi

I'm not too experienced Java coder so I hope this is not anything too obvious.

From browser log:
Uncaught com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : Cannot read property 'add_75_g$' of undefined
    castFireEventFromSource_0_g$
@ EventBus.java:77
    fireEventFromSource_2_g$
@ SimpleEventBus.java:67
    fireEvent_9_g$
@ DropPanel.java:97
    fireNativeEvent_1_g$
@ DomEvent.java:125
    dispatch_87_g$
@ DropPanel.java:125
    handler_0_g$
@ DropPanel.java:87


This exception raises when I'm using List<File> to save "drag and dropped"-file but not when saving single file to type File. Like:

import org.vectomatic.file.File;
import org.vectomatic.file.FileList;


private void processFiles(FileList files)
{
    for(File file : files)
 
{
        GWT.log(file.getName());

        fileHolder = file; // No error
        readQueue.add(file); // Error
    }
}

I'm using GWT-2.7.0 and lib-gwt-file 0.3.6

Any ideas?
projectdir.tar.bz2
Accountancy.java

Henri Reinikainen

unread,
Jun 25, 2015, 2:06:18 AM6/25/15
to lib-gw...@googlegroups.com
Never mind.. I didn't use:
protected List<File> readQueue = new ArrayList<File>();
For my defence... example code did not use one either.
Reply all
Reply to author
Forward
0 new messages