Also It ALL can be made by program:
 
look at the properties file:  C:\Documents and 
Settings\...winUserName....\Application 
Data\Sun\Java\Deployment\deployment.properties
 
Every JRE has  its own section, for example:
 
    deployment.javapi.jre.1.5.0_04.args=-Xms128m -Xmx128m 
-Djavaplugin.maxHeapSize\\\=128m

So if you change the properties file by program during startup, the next time 
the program runs it runs with bigger heap.
 
MiroN
 

________________________________

From: Tobias Zimmer [mailto:[email protected]] 
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(com.ulcjava.base.shared.FileChooserConfig,com.ulcjava.base.client.UIComponent)'
 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(com.ulcjava.base.shared.FileChooserConfig,com.ulcjava.base.client.UIComponent)'
 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.createExceptionForInvocationFailure(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(FilteringEventQueue.java:18)

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

      at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java: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(DelegatingMethodAccessorImpl.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(FilteringEventQueue.java:18)

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

      at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java: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:14)

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

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

      ... 18 more

 

 

Reply via email to