Error when create a Visual Objects

Started by TNT44, September 15, 2023, 17:44:14 PM

Previous topic - Next topic

TNT44

Hi,

I try to create a Visual Objects inside a view,

I receive the folowing error

## Création des Object view
>>Import compoview _Lenw0E12Ee6qGLTIMz0B_A
> Ignoring view Object: [object Object]
Error TypeError: invokeMember (add) on com.archimatetool.script.dom.model.ArchimateDiagramModelProxy failed due to: no applicable overload found (overloads: [Method[public com.archimatetool.script.dom.model.DiagramModelConnectionProxy com.archimatetool.script.dom.model.ArchimateDiagramModelProxy.add(com.archimatetool.script.dom.model.ArchimateRelationshipProxy,com.archimatetool.script.dom.model.DiagramModelComponentProxy,com.archimatetool.script.dom.model.DiagramModelComponentProxy)], Method[public com.archimatetool.script.dom.model.DiagramModelObjectProxy com.archimatetool.script.dom.model.ArchimateDiagramModelProxy.add(com.archimatetool.script.dom.model.ArchimateElementProxy,int,int,int,int,boolean)], Method[public com.archimatetool.script.dom.model.DiagramModelObjectProxy com.archimatetool.script.dom.model.ArchimateDiagramModelProxy.add(com.archimatetool.script.dom.model.ArchimateElementProxy,int,int,int,int)]], arguments: [JavaObject[application-component: LIN (com.archimatetool.script.dom.model.ArchimateElementProxy)] (HostObject), 1320 (TruffleString), 272 (TruffleString), 120 (TruffleString), 55 (TruffleString)])

Can you expain me the signification.

Thanks

Phil Beauvoir

Please post the jArchi code that causes the error.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

TNT44

I understand after my question ..

com.archimatetool.script.dom.model.ArchimateDiagramModelProxy.
add(com.archimatetool.script.dom.model.ArchimateElementProxy,int,int,int,int)]],

arguments: [JavaObject[application-component: LIN (com.archimatetool.script.dom.model.ArchimateElementProxy)] (HostObject), 1320 (TruffleString), 272 (TruffleString), 120 (TruffleString), 55 (TruffleString)])

I need to convert (TruffleString) to int.