CMDBuild Forum

How to export CMDBuild data to Archi?

Hi

According to the official manual I installed Archi to show for architecture. I have logged in the Archi with the CMDBuild account .

But I can't import the data from the CMDBuild, the import will have an error each time.

 

error:

!ENTRY archimate-cmdbuild-plugin 1 0 2015-07-14 09:50:49.341

!MESSAGE file:/C:/Users/Leaning/AppData/Roaming/Archi/archi2cmdbuild.atl Timing data:

Loading finished at 0.261174 seconds (duration: 0.261174 seconds)

Matching finished at -4277.589708 seconds (duration: -4277.850883 seconds)

Applying finished at -4277.589708 seconds (duration: 0.000000 seconds)

Post-applying finished at -4277.589708 seconds (duration: 0.000000 seconds)

Recursive stage finished at -4277.589708 seconds (duration: 0.000000 seconds)

Execution finished at -4277.589708 seconds (duration: 0.000000 seconds)

 

!ENTRY archimate-cmdbuild-plugin 1 0 2015-07-14 09:50:49.342

 

!MESSAGE compiling file:/C:/Users/Leaning/AppData/Roaming/Archi/cmdbuild2archi.atl to file:/C:/Users/Leaning/AppData/Roaming/Archi/.metadata/.plugins/cmdbuild-archimate-plugin/cmdbuild2archi.emftvm

 

!ENTRY archimate-cmdbuild-plugin 4 0 2015-07-14 09:50:51.505

!MESSAGE Illegal character in path at index 8: file:/C:\Users\Leaning\AppData\Roaming\Archi\.metadata\.plugins\cmdbuild-archimate-plugin\cmdbuild2archi.emftvm

 

!STACK 0

java.lang.IllegalArgumentException: Illegal character in path at index 8: file:/C:\Users\Leaning\AppData\Roaming\Archi\.metadata\.plugins\cmdbuild-archimate-plugin\cmdbuild2archi.emftvm

at java.net.URI.create(URI.java:859)

at org.eclipse.m2m.atl.emftvm.compiler.AtlToEmftvmCompiler.compileWithProblemModel(AtlToEmftvmCompiler.java:133)

at org.eclipse.m2m.atl.emftvm.compiler.AtlToEmftvmCompiler.compile(AtlToEmftvmCompiler.java:100)

at org.cmdbuild.archimate.ModelTransformer.compile(ModelTransformer.java:171)

at org.cmdbuild.archimate.ModelTransformer.<init>(ModelTransformer.java:90)

at org.cmdbuild.archimate.CMDBPlugin.getModelTransformer(CMDBPlugin.java:126)

at org.cmdbuild.archimate.CMDBImporter.doImport(CMDBImporter.java:143)

at org.cmdbuild.archimate.CMDBImporter.access$0(CMDBImporter.java:126)

at org.cmdbuild.archimate.CMDBImporter$ImportJob.run(CMDBImporter.java:50)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

 

Caused by: java.net.URISyntaxException: Illegal character in path at index 8: file:/C:\Users\Leaning\AppData\Roaming\Archi\.metadata\.plugins\cmdbuild-archimate-plugin\cmdbuild2archi.emftvm

at java.net.URI$Parser.fail(URI.java:2829)

at java.net.URI$Parser.checkChars(URI.java:3002)

at java.net.URI$Parser.parseHierarchical(URI.java:3086)

at java.net.URI$Parser.parse(URI.java:3034)

at java.net.URI.<init>(URI.java:595)

at java.net.URI.create(URI.java:857)

... 9 more

 

!ENTRY archimate-cmdbuild-plugin 4 0 2015-07-14 09:50:51.550

!MESSAGE Illegal character in path at index 8: file:/C:\Users\Leaning\AppData\Roaming\Archi\.metadata\.plugins\cmdbuild-archimate-plugin\cmdbuild2archi.emftvm

 

!STACK 0

 

java.lang.reflect.InvocationTargetException: Illegal character in path at index 8: file:/C:\Users\Leaning\AppData\Roaming\Archi\.metadata\.plugins\cmdbuild-archimate-plugin\cmdbuild2archi.emftvm

 

at org.cmdbuild.archimate.CMDBImporter$ImportJob.run(CMDBImporter.java:53)

 

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

 

Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 8: file:/C:\Users\Leaning\AppData\Roaming\Archi\.metadata\.plugins\cmdbuild-archimate-plugin\cmdbuild2archi.emftvm

 

at java.net.URI.create(URI.java:859)

at org.eclipse.m2m.atl.emftvm.compiler.AtlToEmftvmCompiler.compileWithProblemModel(AtlToEmftvmCompiler.java:133)

at org.eclipse.m2m.atl.emftvm.compiler.AtlToEmftvmCompiler.compile(AtlToEmftvmCompiler.java:100)

at org.cmdbuild.archimate.ModelTransformer.compile(ModelTransformer.java:171)

at org.cmdbuild.archimate.ModelTransformer.<init>(ModelTransformer.java:90)

at org.cmdbuild.archimate.CMDBPlugin.getModelTransformer(CMDBPlugin.java:126)

at org.cmdbuild.archimate.CMDBImporter.doImport(CMDBImporter.java:143)

at org.cmdbuild.archimate.CMDBImporter.access$0(CMDBImporter.java:126)

at org.cmdbuild.archimate.CMDBImporter$ImportJob.run(CMDBImporter.java:50)

... 1 more

 

Caused by: java.net.URISyntaxException: Illegal character in path at index 8: file:/C:\Users\Leaning\AppData\Roaming\Archi\.metadata\.plugins\cmdbuild-archimate-plugin\cmdbuild2archi.emftvm

 

at java.net.URI$Parser.fail(URI.java:2829)

at java.net.URI$Parser.checkChars(URI.java:3002)

at java.net.URI$Parser.parseHierarchical(URI.java:3086)

at java.net.URI$Parser.parse(URI.java:3034)

at java.net.URI.<init>(URI.java:595)

at java.net.URI.create(URI.java:857)

... 9 more

 

Root exception:

java.lang.IllegalArgumentException: Illegal character in path at index 8: file:/C:\Users\Leaning\AppData\Roaming\Archi\.metadata\.plugins\cmdbuild-archimate-plugin\cmdbuild2archi.emftvm

 

at java.net.URI.create(URI.java:859)

at org.eclipse.m2m.atl.emftvm.compiler.AtlToEmftvmCompiler.compileWithProblemModel(AtlToEmftvmCompiler.java:133)

at org.eclipse.m2m.atl.emftvm.compiler.AtlToEmftvmCompiler.compile(AtlToEmftvmCompiler.java:100)

at org.cmdbuild.archimate.ModelTransformer.compile(ModelTransformer.java:171)

at org.cmdbuild.archimate.ModelTransformer.<init>(ModelTransformer.java:90)

at org.cmdbuild.archimate.CMDBPlugin.getModelTransformer(CMDBPlugin.java:126)

at org.cmdbuild.archimate.CMDBImporter.doImport(CMDBImporter.java:143)

at org.cmdbuild.archimate.CMDBImporter.access$0(CMDBImporter.java:126)

at org.cmdbuild.archimate.CMDBImporter$ImportJob.run(CMDBImporter.java:50)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

 

Caused by: java.net.URISyntaxException: Illegal character in path at index 8: file:/C:\Users\Leaning\AppData\Roaming\Archi\.metadata\.plugins\cmdbuild-archimate-plugin\cmdbuild2archi.emftvm

at java.net.URI$Parser.fail(URI.java:2829)

at java.net.URI$Parser.checkChars(URI.java:3002)

at java.net.URI$Parser.parseHierarchical(URI.java:3086)

at java.net.URI$Parser.parse(URI.java:3034)

at java.net.URI.<init>(URI.java:595)

at java.net.URI.create(URI.java:857)

... 9 more

 

My computer enviroment : JDK 1.7    cmdbuild 2.3.2  Archi 3.2.1 

 

So can you give any suggestion to me? Thanks a lot.

Hi Sudan,
can you try to change the Archi status folder path, editing the file Archi.ini in your Archi installation directory?
You have to change the value of the parameters "osgi.instance.area" and "osgi.configuration.area" to a shorter path, possibly without space or strange characters.
 
regards
Luca

Hi, I can connect to cmdbuild system by Archi now.But I can only see an empty model in Archi,and I can only get the data from ArchiMate directory in cmdbuild system .So how can I get the exist data in cmdbuild by Archi?Thanks for your help. 

Dear CMDBuild Team:
    Question time,my Archi version is 3.2.1,so does this have version compatibility problem?

    When I created a table under Archimate tree in cmdbuild ,I could not see it in Archi after reconnection. I also could not modify the model tree in Archi.So does this mean that we can only insert the data into Archimate tree.
 
Thanks for your answer.

Previously Sudan wrote:

Hi, I can connect to cmdbuild system by Archi now.But I can only see an empty model in Archi,and I can only get the data from ArchiMate directory in cmdbuild system .So how can I get the exist data in cmdbuild by Archi?Thanks for your help. 

Hi Sudan,

the ATL transformations provided with the plugin work only with the Archimate class hierarchy: if you want to import in Archi your own CMDBuild classes, you have to provide a new set of ATL transformations that defines a mapping between the metamodel implemented in your CMDBuild instance and the Archimate metamodel.
 
Regards
Luca

Previously Luca Bompani wrote:

Previously Sudan wrote:
Hi, I can connect to cmdbuild system by Archi now.But I can only see an empty model in Archi,and I can only get the data from ArchiMate directory in cmdbuild system .So how can I get the exist data in cmdbuild by Archi?Thanks for your help. 

Hi Sudan,

the ATL transformations provided with the plugin work only with the Archimate class hierarchy: if you want to import in Archi your own CMDBuild classes, you have to provide a new set of ATL transformations that defines a mapping between the metamodel implemented in your CMDBuild instance and the Archimate metamodel.
 
Regards
Luca

 

Thanks!!
 
I have changed the cmdbuile2archi.atl file, for ex:
 
rule BusinessABC extends ArchimateElement{
from
c: Cmdb!ItemType (
c.instanceOf(thisModule.cmdbClassNS, 'BusinessABC')
)
to
a: Archimate!BusinessABC
do {
thisModule.UpdateElement(a, c.record.first());
}
}
 
 
Then when I connected to the CMDBuild form Archi, it happened an error: 
 
Error during module loading: Type BusinessABC not found in metamodel org.eclipse.m2m.atl.emftvm.impl.MetamodelImpl@2b119902 (resource: http://www.archimatetool.com/archimate)
 
Will I have to change the resource of ATL file (.jar)? I think maybe it will take much workload.
 
Do you know how the other team do it? They use the default classes from archimate tree, or they define their own classes?

Hi,

 

I am facing the same issue with illegal character in file path error.  I tried all the recommended solutions but no fix.

 

Any suggestions?

 

Hamed