Closed sagilar closed 2 years ago
Thanks for reporting this issue.
I guess you're uploading the Submodel with its operation on the AAS Server at runtime, right? The AAS Server Docker Image does not support the upload of operations. Instead, you have to programmatically start the Submodel.
However, if above is correct, the error message looks strange - we will take a look at it.
Thanks for the reply.
Actually, I uploaded the operation programmatically and it's also called programmatically. Everything has been done using the Java Client SDK.
The procedure was the same for both the Docker AAS Server and also the BaSyxHTTPServer context instance. The latter only runs when I launch the Java app, while the former is always up and persistent with MongoDB for AAS and Registry; this one is the only difference I have identified.
When using the off-the-shelf components, operations are not supported right now. Instead, we suggest to use a hybrid setup of hosting the submodel(s) containing the operation on a separate server and using the off-the-shelf component for the rest (cf. https://wiki.eclipse.org/BaSyx_/_Scenarios_/_Cloud_Edge_Deployment)
Hi there,
I have been doing some experiments with Eclipse BaSyx using the BaSyx Java Components and I found a problem when trying to invoke an operation of a submodel directly on the AAS Server component. It does work when running it on a BaSyxHTTPServer instance.
I'm using Docker containers with modified property files, but I don't think it makes the difference.
When I request an invoke, I get the following error (which I capture using
docker logs aas
):This is very weird because I can run it if I create a BaSyx context with a servlet, where the content should be exactly the same:
So if I use the BaSyxHTTPServer context it works, but it doesn't if the operation runs on the docker AAS server.
The element looks this way when using the docker AAS server:
I do have the IVABRegistryService for both as follows:
And I can also see both resources in the RegistryService as follows:
I hope the provided information can guide you to the error.
Thanks in advance!