Giter VIP home page Giter VIP logo

Comments (8)

FriedJannik avatar FriedJannik commented on July 30, 2024 1

Hi Björn,
the issue you faced was indeed a bug.
We fixed it with the PR mentioned above.
Until the docker images are getting updated you can build the Images with the latest bug fix yourself when the PR is merged.

from basyx-java-server-sdk.

mateusmolina-iese avatar mateusmolina-iese commented on July 30, 2024

Hi Björn,

your first request should have worked to a add a new SE to an existing SEC.

Could you please attach a minimal example containing your config files (properties, docker-compose, AASX files), so we can reproduce the issue?

Thanks in advance,
Mateus

from basyx-java-server-sdk.

BjoernKaemper avatar BjoernKaemper commented on July 30, 2024

I use the example component and have only released the ports for mongo in the dockercompose.yml. I think I also deleted all docker images beforehand to make sure that an old one is not used during the installation.

Starting the docker-compose works fine with "docker-compose up -d" and all components are running healthy.

All my http commands i send via postman

BaSyxExample.zip

from basyx-java-server-sdk.

BjoernKaemper avatar BjoernKaemper commented on July 30, 2024

I assemble my AAS, the submodel and the SEMC etc. as follows:
http-POST: http://localhost:8081/shells (works)
body:

{
    "idShort": "testAas",
    "id":"testAasId"
}

http-POST: http://localhost:8081/submodels (works)
body:

{
    "idShort": "testSubmodel",
    "id":"testSubmodelId"
}

http-POST: http://localhost:8081/shells/dGVzdEFhc0lk/submodel-refs (works)
Body:

{
        "keys": [
            {
                "type": "Submodel",
                "value": "testSubmodelId"
            }
        ],
        "type": "ModelReference"
}

http-Post: http://localhost:8081/submodels/dGVzdFN1Ym1vZGVsSWQ=/submodel-elements (works)

{
    "idShort": "ExampleSEMC",
    "modelType": "SubmodelElementCollection"
}

http-Post:
http://localhost:8081/submodels/dGVzdFN1Ym1vZGVsSWQ=/submodel-elements/ExampleSEMC (http status 201 but its again at the wrong level and not inside “ExampleSEMC”)

{
    "idShort": "ExampleProp",
    "modelType": "Property"
}

from basyx-java-server-sdk.

de-ich avatar de-ich commented on July 30, 2024

I have the same problem using the latest BaSyx AAS Environment Docker image:

Executing an HTTP post to {{Endpoint}}/submodels/{{SubmodelId}}/submodel-elements/Segments.InternalSegment.Records will always add the element passed in the request body as a top-level element as direct child of the submodel instead of as a child of ...Records.
HTTP get to the above adress works fine so the idShort-Path should be correct.

The same problem exists even when posting to {{Endpoint}}/submodels/{{SubmodelId}}/submodel-elements/Segments, i.e. when an idShort-Path with only one element is used.

from basyx-java-server-sdk.

de-ich avatar de-ich commented on July 30, 2024

@FriedJannik I used the current version of the 2.0.0-SNAPSHOT build of the eclipsebasyx/aas-environment
component. However, I am still experiencing the same problems as described above. As the image was updated yesterday, I guess that it should already contain this fix?

from basyx-java-server-sdk.

FriedJannik avatar FriedJannik commented on July 30, 2024

Hi @de-ich,
to use the new docker image, you have to remove the old image first, as the Version Tag is not changed, so docker does not automatically pull the new version.
I just checked it, and for me it works just fine.
Let me know if you need any further help :)

from basyx-java-server-sdk.

de-ich avatar de-ich commented on July 30, 2024

@FriedJannik I did delete the old image first so I am using the new image aswell. However, now that I know that it should work, I will investigate further and try to provide a minimum working example.

from basyx-java-server-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.