Hi Tobias,

Increasing the heap size on the client is one solution.

Also have a look at :

http://ulc-community.canoo.com/snipsnap/space/File+Transfer

http://lists.canoo.com/mailman/private/ulc-developer/2007/005320.html

Thanks and regards,

Janak

-----------------------------------------
Janak Mulani

email: [email protected]
url: http://www.canoo.com <http://www.canoo.com/>

Beyond AJAX - Java Rich Internet Applications

http://www.canoo.com/ulc
-----------------------------------------




________________________________

        From: [email protected]
[mailto:[email protected]] On Behalf Of Tobias Zimmer
        Sent: Thursday, March 26, 2009 10:01 AM
        To: [email protected]; 'Novotny, Miroslav'
        Subject: AW: [ULC-developer] OutOfMemoryError
ClientContext.loadFile



        Hi Miroslav,



        thank you, it all works now! I‘ve just deleted the backslash in
your parameter-list.



        Kind regards,

        Tobias



        Von: [email protected]
[mailto:[email protected]] Im Auftrag von Novotny,
Miroslav
        Gesendet: Mittwoch, 25. März 2009 09:08
        An: [email protected]; Tobias Zimmer
        Betreff: RE: [ULC-developer] OutOfMemoryError
ClientContext.loadFile



        Hi,



        Probably you need to increase applet heap size, for example 128 MB
:



        - Control panel

        - Java Control Panel

        - pane Java

        - Java applet Runtime Settings

        - View

        - select java version and set "Java Runtime Parameters" :
-Xms128m -Xmx128m -Djavaplugin.maxHeapSize\=128m



        Hope this helps



        Miro Novotny







        ________________________________

                From: [email protected]
[mailto:[email protected]] On Behalf Of Tobias Zimmer
        Sent: Tuesday, March 24, 2009 4:20 PM
        To: [email protected]
        Subject: [ULC-developer] OutOfMemoryError ClientContext.loadFile

        Hi,



        I have a problem with the ClientContext.loadFile(IFileLoader,
FileChooserConfig, ULCComponent, maxSize) method.



        For Example:

        - If I set the maxSize under the value of ~15MB, it all works
properly for all kind of files.

        - If I set the maxSize greater than ~15MB and load a file greater
than 15MB but less than the maxSize, my applet crashes with an
OutOfMemoryError.



        StackTrace: see below.



        Is there a bugfix or workaround for this problem? I need to load
files about 60MB and greater.



        Kind regards,

        Tobias Zimmer



        _____________________________________________



        got exception while processing
[com.ulcjava.base.shared.internal.IllegalStateException: reflective call
on method 'public void
com.ulcjava.base.client.UILoadClientFileTask.loadClientFileByFileChooser(c
om.ulcjava.base.shared.FileChooserConfig,com.ulcjava.base.client.UICompone
nt)' and arguments '[com.ulcjava.base.shared.filechoosercon...@1e20120,
com.ulcjava.environment.applet.client.uiappletp...@b7ec3a]' (argument
types: '[class com.ulcjava.base.shared.FileChooserConfig, class
com.ulcjava.environment.applet.client.UIAppletPane]') on proxy
'com.ulcjava.base.client.uiloadclientfilet...@f5ebcc' (type 'class
com.ulcjava.base.client.UILoadClientFileTask') failed, proxy OID is 11279


com.ulcjava.base.client.UILoadClientFileTask.loadClientFileByFileChooser(c
om.ulcjava.base.shared.FileChooserConfig,com.ulcjava.base.client.UICompone
nt)' and arguments '[com.ulcjava.base.shared.filechoosercon...@1e20120,
com.ulcjava.environment.applet.client.uiappletp...@b7ec3a]' (argument
types: '[class com.ulcjava.base.shared.FileChooserConfig, class
com.ulcjava.environment.applet.client.UIAppletPane]') on proxy
'com.ulcjava.base.client.uiloadclientfilet...@f5ebcc' (type 'class
com.ulcjava.base.client.UILoadClientFileTask') failed, proxy OID is 11279

              at
com.ulcjava.base.shared.internal.ReflectionUtilities.createExceptionForInv
ocationFailure(ReflectionUtilities.java:81)

              at
com.ulcjava.base.client.UIProxy.processInvokeUI(UIProxy.java:200)

              at com.ulcjava.base.client.UIProxy.a(UIProxy.java:36)

              at
com.ulcjava.base.client.UIProxy.handleRequest(UIProxy.java:152)

              at com.ulcjava.base.client.UISession.b(UISession.java:227)

              at
com.ulcjava.base.client.UISession.access$2700(UISession.java:180)

              at
com.ulcjava.base.client.UISession$5.run(UISession$5.java:1)

              at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

              at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)

              at
com.ulcjava.base.client.FilteringEventQueue.dispatchEvent(FilteringEventQu
eue.java:18)

              at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.
java:242)

              at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.ja
va:163)

              at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

              at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

              at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

        Caused by: java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

              at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)

              at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:585)

              at
com.ulcjava.base.client.UIProxy.processInvokeUI(UIProxy.java:6)

              at com.ulcjava.base.client.UIProxy.a(UIProxy.java:36)

              at
com.ulcjava.base.client.UIProxy.handleRequest(UIProxy.java:152)

              at com.ulcjava.base.client.UISession.b(UISession.java:227)

              at
com.ulcjava.base.client.UISession.access$2700(UISession.java:180)

              at
com.ulcjava.base.client.UISession$5.run(UISession$5.java:1)

              at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

              at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)

              at
com.ulcjava.base.client.FilteringEventQueue.dispatchEvent(FilteringEventQu
eue.java:18)

              at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.
java:242)

              at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.ja
va:163)

              at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

              at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

              at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

        Caused by: java.lang.OutOfMemoryError: Java heap space

              at
java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95)

              at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)

              at
java.io.BufferedOutputStream.write(BufferedOutputStream.java:78)

              at
com.ulcjava.base.client.UILoadClientFileTask.a(UILoadClientFileTask.java:1
4)

              at
com.ulcjava.base.client.UILoadClientFileTask.a(UILoadClientFileTask.java:5
2)

              at
com.ulcjava.base.client.UILoadClientFileTask.loadClientFileByFileChooser(U
ILoadClientFileTask.java:11)

              ... 18 more





_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to