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

Error during the transformation #1

Open
Thomasbrinn opened this issue Jul 19, 2019 · 7 comments
Open

Error during the transformation #1

Thomasbrinn opened this issue Jul 19, 2019 · 7 comments

Comments

@Thomasbrinn
Copy link

Hi, when I start the transformation an internal server error is generated (Error 500).
In the dicer-service.log file the following error is reported:

Error during module loading: Cannot create a resource for 'c:\Users\Thomas\Desktop\dicer-full/DICER/dicer-core/transformations/uml2tosca.emftvm'; a registered resource factory is needed

How can I fix this error?

@MicheleGuerriero
Copy link
Contributor

MicheleGuerriero commented Jul 19, 2019 via email

@Thomasbrinn
Copy link
Author

Hi Michele Guerriero, thank you for your help!
I left the config.yml file unchanged. This is the file:

server:
type: simple
applicationContextPath: /
connector:
type: http
port: 8176
transformationDir: ${TRANSFORMATION_DIR}
ddsmMetamodelPath: ${DDSM_METAMODEL_PATH}
diceProfilePath: ${DICE_PROFILE_PATH}
secureUmlProfilePath: ${SECUREUML_PROFILE_PATH}
outMetamodelPath: ${OUT_METAMODEL_PATH}

@MicheleGuerriero
Copy link
Contributor

MicheleGuerriero commented Jul 19, 2019 via email

@Thomasbrinn
Copy link
Author

Thomasbrinn commented Jul 19, 2019

Yes, I've done it. I've create the following environment variables:

TRANSFORMATION_DIR: C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\transformations
DDSM_METAMODEL_PATH: C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\metamodels\ddsm.ecore
DICE_PROFILE_PATH: C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\metamodels\DICE.profile.uml
SECUREUML_PROFILE_PATH: C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\metamodels\SecureUML.profile.uml
OUT_METAMODEL_PATH: C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\metamodels\tosca.ecore

@MicheleGuerriero
Copy link
Contributor

MicheleGuerriero commented Jul 19, 2019 via email

@Thomasbrinn
Copy link
Author

UPDATE:

I've changed the config.yaml file in this way:

server:
type: simple
applicationContextPath: /
connector:
type: http
port: 8176
transformationDir: "C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\transformations\"
ddsmMetamodelPath: "C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\metamodels\ddsm.ecore"
diceProfilePath: "C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\metamodels\DICE.profile.uml"
secureUmlProfilePath: "C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\metamodels\SecureUML.profile.uml"
outMetamodelPath: "C:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\metamodels\tosca.ecore"

and now there is no the path-related issue, but I've the same Error, now like this:

Error during module loading: Cannot create a resource for 'c:\Users\Thomas\Desktop\dicer-full\DICER\dicer-core\transformations\uml2tosca.emftvm'; a registered resource factory is needed

@MicheleGuerriero
Copy link
Contributor

MicheleGuerriero commented Jul 19, 2019

Hello, could you also post the error you are getting on Mac? Also when does this error occur? When you launch the dicer-service, or when you send it a POST request to transform a model into the TOSCA blueprint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants