Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone CLI example fails in Matlab 2019a #193

Closed
ujhelyiz opened this issue Jun 19, 2019 · 2 comments
Closed

Standalone CLI example fails in Matlab 2019a #193

ujhelyiz opened this issue Jun 19, 2019 · 2 comments
Assignees

Comments

@ujhelyiz
Copy link
Member

When trying to execute the latest 0.8.0 snapshot version of the standalone CLI example (https://build.incquerylabs.com/jenkins/job/Massif/job/master/lastSuccessfulBuild/artifact/releng/hu.bme.mit.massif.simulink.cli-package), it failed with the following trace:

>> CLI_CreateMassifModel_Example
log4j:WARN No appenders could be found for logger (org.eclipse.viatra.query.runtime.util.ViatraQueryLoggingUtil.org.eclipse.viatra.query.runtime.registry.IQuerySpecificationRegistry).
log4j:WARN Please initialize the log4j system properly.
Creating controller..
Controller created
Creating Local Script Evaluator
Local Script Evaluator Created
Importing model: Example_MATLAB
Starting model import...
Traversing top level blocks
Traversing block Example_MATLAB ...
Exception in thread "Thread-23": java.lang.ClassCastException: hu.bme.mit.massif.communication.datatype.MatlabString cannot be cast to hu.bme.mit.massif.communication.datatype.StructMatlabData
	at hu.bme.mit.massif.communication.datatype.StructMatlabData.asStructMatlabData(StructMatlabData.java:51)
	at hu.bme.mit.massif.communication.datatype.StructMatlabData.getStructMatlabDataData(StructMatlabData.java:55)
	at hu.bme.mit.massif.simulink.api.adapter.block.DefaultBlockAdapter.process(DefaultBlockAdapter.java:56)
	at hu.bme.mit.massif.simulink.api.Importer.createBlockInstance(Importer.java:934)
	at hu.bme.mit.massif.simulink.api.Importer.createBlock(Importer.java:870)
	at hu.bme.mit.massif.simulink.api.Importer.createBlocksFromTopLevel(Importer.java:804)
	at hu.bme.mit.massif.simulink.api.Importer.traverseAndCreateEMFModel(Importer.java:620)
	at hu.bme.mit.massif.simulink.cli.CLIEMFCreator$1.run(CLIEMFCreator.java:65)
	at java.lang.Thread.run(Thread.java:748)
@thSoft
Copy link
Contributor

thSoft commented Jun 24, 2019

massif_functions.m is missing from the Matlab path (this root cause is not visible due to #191). We should discuss how this should be handled.

@thSoft
Copy link
Contributor

thSoft commented Jun 25, 2019

@thSoft thSoft closed this as completed Jun 25, 2019
@ujhelyiz ujhelyiz modified the milestone: 0.8.0 Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants