Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

COMSOL 4.3 with MATLAB error

Please login with a confirmed email address before reporting spam

I have a problem with COMSOL 4.3 with matlab simulation.

The error message is below.



??? Java exception occurred:
Exception:
java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
java.lang.reflect.InvocationTargetException


Stack trace:

at com.comsol.clientserver.impl.JobImpl.run(Unknown Source)

at com.comsol.server.internal.b.a(Unknown Source)

at com.comsol.server.internal.b.a(Unknown Source)

at com.comsol.server.internal.b$a.a(Unknown Source)

at com.comsol.server.internal.b$a.a(Unknown Source)

at com.comsol.server.internal.b$a$a.run(Unknown Source)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.reflect.InvocationTargetException

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)

at java.lang.reflect.Method.invoke(Unknown Source)

... 9 more

Caused by: java.lang.OutOfMemoryError: GC overhead limit
exceeded

at java.util.Arrays.copyOf(Unknown Source)

at java.util.ArrayList.ensureCapacity(Unknown Source)

at java.util.ArrayList.addAll(Unknown Source)

at
com.comsol.nativeutil.properties.bm.getAllProperties(Unknown
Source)

at
com.comsol.nativeutil.properties.r.getFromAllProperty(Unknown
Source)

at com.comsol.model.internal.impl.PropFeatureImpl.a(Unknown
Source)

at com.comsol.model.internal.impl.PropFeatureImpl.a(Unknown
Source)

at com.comsol.model.internal.impl.PropFeatureImpl.j(Unknown
Source)

at
com.comsol.model.internal.impl.PropFeatureImpl.generateKey(Unknown
Source)

at com.comsol.post.numerical.h.a(Unknown Source)

at com.comsol.post.numerical.h.a(Unknown Source)

at com.comsol.post.numerical.h.a(Unknown Source)

at com.comsol.post.numerical.h.getReal(Unknown Source)

at
com.comsol.model.internal.impl.NumericalFeatureImpl.a(Unknown
Source)

at
com.comsol.model.internal.impl.NumericalFeatureImpl.getReal(Unknown
Source)

... 13 more




I have for loop code.
It works several loops normally.
But it stopped the middle of the loop process
I can't find the what the problem is.
May I get the solution?

Kyungnam Kang

1 Reply Last Post 2013年2月13日 GMT-5 13:39

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2013年2月13日 GMT-5 13:39
java.lang.OutOfMemoryError

give more memory to Java. Incresing Java Heap size might help.
java.lang.OutOfMemoryError give more memory to Java. Incresing Java Heap size might help.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.