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.

"Java exception" problem during multiple iterations in Livelink for MATLAB

Please login with a confirmed email address before reporting spam

Hi everyone, this forum is great and it helped a lot to grow in COMSOL world.

Anyway, now i am trying to calculate/simulate a phase growth process considering the mass transfer through the interfaces, in which I am using "Livelink for MATLAB' module.
For each iteration, the solution from the previous study was passed down as intial values for the current step and some boundary conditions were changed also. The original plans are to repeat about 10000 iterations, while MATLAB always jumped out after about 2600 iterations with this red "Java exception" warnings. I tried to change the settings in COMSOL and MATLAB wherever shows "cache size" or "buffer size" but it is still happening at exact the same point.

So could you guys help me out with it? Really appreicate your effort and help!!!

ps: I paste the MATLAB warning here. If you want to see the M file, i would upload it later.

Java exception occurred:
Exception:
com.comsol.util.exceptions.FlException: The following feature has encountered a problem
(rethrown as com.comsol.util.exceptions.FlException)
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
The following feature has encountered a problem
The following feature has encountered a problem
The following feature has encountered a problem:
Error in multiphysics compilation.
- Feature: Compile Equations: Time Dependent (sol5158/st1)
Stack trace:
at com.comsol.clientapi.engine.c.handleException(Unknown Source)
at com.comsol.client.interfaces.f$d.f(Unknown Source)
at com.comsol.client.interfaces.f.a(Unknown Source)
at com.comsol.client.interfaces.f.runAndWait(Unknown Source)
at com.comsol.clientapi.engine.APIEngine.runMethod(Unknown Source)
at com.comsol.clientapi.engine.APIEngine.runMethod(Unknown Source)
at com.comsol.clientapi.impl.SolverSequenceClient.runAll(Unknown Source)
Caused by: Exception:
com.comsol.util.exceptions.FlException: The following feature has encountered a problem
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
The following feature has encountered a problem
The following feature has encountered a problem:
Error in multiphysics compilation.
- Feature: Compile Equations: Time Dependent (sol5158/st1)
at com.comsol.clientapi.engine.c.handleException(Unknown Source)
at com.comsol.client.interfaces.f.a(Unknown Source)
at com.comsol.client.interfaces.f.processCommandAnswer(Unknown Source)
... 6 more
Caused by: Exception:
com.comsol.util.exceptions.FlException: The following feature has encountered a problem
Messages:
The following feature has encountered a problem:
Error in multiphysics compilation.
- Feature: Compile Equations: Time Dependent (sol5158/st1)
at com.comsol.solver.SolverOperation.addError(Unknown Source)
at com.comsol.solver.SolverOperation.execute(Unknown Source)
at com.comsol.model.internal.impl.SolverSequenceImpl.a(Unknown Source)
at com.comsol.model.internal.impl.SolverSequenceImpl.i(Unknown Source)
at com.comsol.model.internal.impl.SolverSequenceImpl$23.a(Unknown Source)
at com.comsol.model.internal.impl.SolverSequenceImpl$23.execute(Unknown Source)
at com.comsol.model.clientserver.ClientManager$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.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)

1 Reply Last Post 4 juin 2014, 11:11 UTC−4
COMSOL Moderator

Hello Jixiao Liu

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 4 juin 2014, 11:11 UTC−4
Have you solved the problem? I am in RF module, and my link also dies during the multiple iterations. Basically, I share the same part of your error message:

Stack trace:
at com.comsol.clientapi.engine.c.handleException(Unknown Source)
at com.comsol.client.interfaces.f$d.f(Unknown Source)
at com.comsol.client.interfaces.f.a(Unknown Source)
at com.comsol.client.interfaces.f.runAndWait(Unknown Source)
at com.comsol.clientapi.engine.APIEngine.runMethod(Unknown Source)
at com.comsol.clientapi.engine.APIEngine.runMethod(Unknown Source)
at com.comsol.clientapi.impl.SolverSequenceClient.runAll(Unknown Source)
Caused by: Exception:

Would be great if you already solved this and shared your solution. Thanks in advance!

Best regards,
Alvin
Have you solved the problem? I am in RF module, and my link also dies during the multiple iterations. Basically, I share the same part of your error message: Stack trace: at com.comsol.clientapi.engine.c.handleException(Unknown Source) at com.comsol.client.interfaces.f$d.f(Unknown Source) at com.comsol.client.interfaces.f.a(Unknown Source) at com.comsol.client.interfaces.f.runAndWait(Unknown Source) at com.comsol.clientapi.engine.APIEngine.runMethod(Unknown Source) at com.comsol.clientapi.engine.APIEngine.runMethod(Unknown Source) at com.comsol.clientapi.impl.SolverSequenceClient.runAll(Unknown Source) Caused by: Exception: Would be great if you already solved this and shared your solution. Thanks in advance! Best regards, Alvin

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.