Skip to content

Running the postman collection, DLT required? #9

@AlvaroFernandezBejarano

Description

@AlvaroFernandezBejarano

DLT Booth required?

My testbed looks like this:

  • Connector provider.
  • Connector consumer.
  • Offering Manager.

I created a docker-compose file where these 3 containers are on the same network (so the offering manager can see one "connector" to use).

While trying to do the POST offerings from the postman collection I got this response:

{
	"timestamp": "2025-06-05T16:01:09.773423396Z",
	"status": 500,
	"error": "Internal Server Error",
	"message": "Failed while creating a new DLT entry through the DLTBooth: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:8085",
	"path": "offerings"
}

From the call

The offering manager output if needed:

Logs
offering-manager    | Jun 05, 2025 4:01:07 PM eu.sedimark.controller.OfferingResource createOffering
offering-manager    | INFO: Registering offering: {
offering-manager    |   "@context": {
offering-manager    |     "@vocab": "https://w3id.org/sedimark/ontology#",
offering-manager    |     "sedi": "https://w3id.org/sedimark/ontology#",
offering-manager    |     "dct": "http://purl.org/dc/terms/",
offering-manager    |     "odrl": "http://www.w3.org/ns/odrl/2/",
offering-manager    |     "owl": "http://www.w3.org/2002/07/owl#",
offering-manager    |     "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
offering-manager    |     "xml": "http://www.w3.org/XML/1998/namespace",
offering-manager    |     "xsd": "http://www.w3.org/2001/XMLSchema#",
offering-manager    |     "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
offering-manager    |     "dcat": "http://www.w3.org/ns/dcat#"
offering-manager    |   },
offering-manager    |   "@id": "https://uc.sedimark.eu/offerings/b5093df8-3ddf-4356-b59f-21202cb3a776",
offering-manager    |   "@type": "sedi:Offering",
offering-manager    |   "sedi:isListedBy": {
offering-manager    |     "@id": "https://uc.sedimark.eu/offerings"
offering-manager    |   },
offering-manager    |   "sedi:hasOfferingContract": {
offering-manager    |     "@id": "30a032c2-ff2d-49ac-9ab0-a04cbb586b0f",
offering-manager    |     "@type": "sedi:OfferingContract",
offering-manager    |     "odrl:permission": [],
offering-manager    |     "odrl:prohibition": [],
offering-manager    |     "odrl:obligation": []
offering-manager    |   },
offering-manager    |   "dct:issued": {
offering-manager    |     "@value": "2024-01-02",
offering-manager    |     "@type": "rdfs:Literal"
offering-manager    |   },
offering-manager    |   "dct:language": {
offering-manager    |     "@value": "English",
offering-manager    |     "@type": "rdfs:Literal"
offering-manager    |   },
offering-manager    |   "dct:title": {
offering-manager    |     "@value": "Bike 1",
offering-manager    |     "@type": "rdfs:Literal"
offering-manager    |   },
offering-manager    |   "dct:description": {
offering-manager    |     "@value": "This offering provides data assets with data from Bike 1",
offering-manager    |     "@type": "rdfs:Literal"
offering-manager    |   },
offering-manager    |   "dct:publisher": {
offering-manager    |     "@id": "https://uc.sedimark.eu/"
offering-manager    |   },
offering-manager    |   "dct:creator": {
offering-manager    |     "@id": "https://uc.sedimark.eu/"
offering-manager    |   },
offering-manager    |   "dcat:themeTaxonomy": {
offering-manager    |     "@id": "https://w3id.org/sedimark/vocab/sdm"
offering-manager    |   },
offering-manager    |   "dct:license": {
offering-manager    |     "@value": "This work is licensed under Creative Commons Attribution-NoDerivatives 4.0 International.\nhttps://creativecommons.org/licenses/by-nd/4.0/",
offering-manager    |     "@type": "rdfs:Literal"
offering-manager    |   },
offering-manager    |   "sedi:hasAsset": [{
offering-manager    |     "@id": "387fe731-3ddf-4356-b59f-21202cb3a778",
offering-manager    |     "@type": "sedi:Asset",
offering-manager    |     "dct:title": {
offering-manager    |       "@value": "Bike 1 asset",
offering-manager    |       "@type": "rdfs:Literal"
offering-manager    |     },
offering-manager    |     "dct:description": {
offering-manager    |       "@value": "This asset provides data from Bike 1",
offering-manager    |       "@type": "rdfs:Literal"
offering-manager    |     },
offering-manager    |     "dct:issued": {
offering-manager    |       "@value": "2024-01-02",
offering-manager    |       "@type": "rdfs:Literal"
offering-manager    |     },
offering-manager    |     "dct:creator": {
offering-manager    |       "@id": "https://uc.sedimark.eu/"
offering-manager    |     },
offering-manager    |     "dcat:theme": {
offering-manager    |       "@id": "https://w3id.org/sedimark/vocab/sdm/entity/vehicle"
offering-manager    |     },
offering-manager    |     "dcat:keyword" : [
offering-manager    |       {
offering-manager    |         "@value": "Bike",
offering-manager    |         "@type": "rdfs:Literal"
offering-manager    |       },
offering-manager    |       {
offering-manager    |         "@value": "Santander",
offering-manager    |         "@type": "rdfs:Literal"
offering-manager    |       }
offering-manager    |     ],
offering-manager    |     "dct:spatial" : {
offering-manager    |       "@id": "http://www.wikidata.org/entity/Q12233",
offering-manager    |       "@type": "dct:Location"
offering-manager    |     },
offering-manager    |     "sedi:isProvidedBy" : {
offering-manager    |       "@id": "https://uc.sedimark.eu/v3/assets/387fe731-3ddf-4356-b59f-21202c23a778",
offering-manager    |       "@type": "sedi:AssetProvision",
offering-manager    |       "dct:title": {
offering-manager    |         "@value": "Bike 1 asset provision",
offering-manager    |         "@type": "rdfs:Literal"
offering-manager    |       },
offering-manager    |       "dct:format": {
offering-manager    |         "@id": "HttpData"
offering-manager    |       },
offering-manager    |       "dct:description": {
offering-manager    |         "@value": "This asset provision allows access to data from Bike 1 through a REST API [... more information about API endpoints, etc...]",
offering-manager    |         "@type": "rdfs:Literal"
offering-manager    |       },
offering-manager    |       "dct:issued": {
offering-manager    |         "@value": "2024-01-02",
offering-manager    |         "@type": "rdfs:Literal"
offering-manager    |       },
offering-manager    |       "dcat:accessURL": {
offering-manager    |         "@id": "http://provider-connector-data-endpoint"
offering-manager    |       }
offering-manager    |     }
offering-manager    |   }
offering-manager    |   ]
offering-manager    | }
offering-manager    | SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
offering-manager    | SLF4J: Defaulting to no-operation (NOP) logger implementation
offering-manager    | SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
offering-manager    | Jun 05, 2025 4:01:07 PM eu.sedimark.model.Offering <init>
offering-manager    | INFO: Compacted JSON LD Offering description: {
offering-manager    |   "@id" : "https://uc.sedimark.eu/offerings/b5093df8-3ddf-4356-b59f-21202cb3a776",
offering-manager    |   "@type" : "Offering",
offering-manager    |   "dct:creator" : {
offering-manager    |     "@id" : "https://uc.sedimark.eu/"
offering-manager    |   },
offering-manager    |   "dct:description" : {
offering-manager    |     "@type" : "rdfs:Literal",
offering-manager    |     "@value" : "This offering provides data assets with data from Bike 1"
offering-manager    |   },
offering-manager    |   "dct:issued" : {
offering-manager    |     "@type" : "rdfs:Literal",
offering-manager    |     "@value" : "2024-01-02"
offering-manager    |   },
offering-manager    |   "dct:language" : {
offering-manager    |     "@type" : "rdfs:Literal",
offering-manager    |     "@value" : "English"
offering-manager    |   },
offering-manager    |   "dct:license" : {
offering-manager    |     "@type" : "rdfs:Literal",
offering-manager    |     "@value" : "This work is licensed under Creative Commons Attribution-NoDerivatives 4.0 International.\nhttps://creativecommons.org/licenses/by-nd/4.0/"
offering-manager    |   },
offering-manager    |   "dct:publisher" : {
offering-manager    |     "@id" : "https://uc.sedimark.eu/"
offering-manager    |   },
offering-manager    |   "dct:title" : {
offering-manager    |     "@type" : "rdfs:Literal",
offering-manager    |     "@value" : "Bike 1"
offering-manager    |   },
offering-manager    |   "dcat:themeTaxonomy" : {
offering-manager    |     "@id" : "https://w3id.org/sedimark/vocab/sdm"
offering-manager    |   },
offering-manager    |   "hasAsset" : {
offering-manager    |     "@id" : "387fe731-3ddf-4356-b59f-21202cb3a778",
offering-manager    |     "@type" : "Asset",
offering-manager    |     "dct:creator" : {
offering-manager    |       "@id" : "https://uc.sedimark.eu/"
offering-manager    |     },
offering-manager    |     "dct:description" : {
offering-manager    |       "@type" : "rdfs:Literal",
offering-manager    |       "@value" : "This asset provides data from Bike 1"
offering-manager    |     },
offering-manager    |     "dct:issued" : {
offering-manager    |       "@type" : "rdfs:Literal",
offering-manager    |       "@value" : "2024-01-02"
offering-manager    |     },
offering-manager    |     "dct:spatial" : {
offering-manager    |       "@id" : "http://www.wikidata.org/entity/Q12233",
offering-manager    |       "@type" : "dct:Location"
offering-manager    |     },
offering-manager    |     "dct:title" : {
offering-manager    |       "@type" : "rdfs:Literal",
offering-manager    |       "@value" : "Bike 1 asset"
offering-manager    |     },
offering-manager    |     "dcat:keyword" : [ {
offering-manager    |       "@type" : "rdfs:Literal",
offering-manager    |       "@value" : "Bike"
offering-manager    |     }, {
offering-manager    |       "@type" : "rdfs:Literal",
offering-manager    |       "@value" : "Santander"
offering-manager    |     } ],
offering-manager    |     "dcat:theme" : {
offering-manager    |       "@id" : "https://w3id.org/sedimark/vocab/sdm/entity/vehicle"
offering-manager    |     },
offering-manager    |     "isProvidedBy" : {
offering-manager    |       "@id" : "https://uc.sedimark.eu/v3/assets/387fe731-3ddf-4356-b59f-21202c23a778",
offering-manager    |       "@type" : "AssetProvision",
offering-manager    |       "dct:description" : {
offering-manager    |         "@type" : "rdfs:Literal",
offering-manager    |         "@value" : "This asset provision allows access to data from Bike 1 through a REST API [... more information about API endpoints, etc...]"
offering-manager    |       },
offering-manager    |       "dct:format" : {
offering-manager    |         "@id" : "HttpData"
offering-manager    |       },
offering-manager    |       "dct:issued" : {
offering-manager    |         "@type" : "rdfs:Literal",
offering-manager    |         "@value" : "2024-01-02"
offering-manager    |       },
offering-manager    |       "dct:title" : {
offering-manager    |         "@type" : "rdfs:Literal",
offering-manager    |         "@value" : "Bike 1 asset provision"
offering-manager    |       },
offering-manager    |       "dcat:accessURL" : {
offering-manager    |         "@id" : "http://provider-connector-data-endpoint"
offering-manager    |       }
offering-manager    |     }
offering-manager    |   },
offering-manager    |   "hasOfferingContract" : {
offering-manager    |     "@id" : "30a032c2-ff2d-49ac-9ab0-a04cbb586b0f",
offering-manager    |     "@type" : "OfferingContract",
offering-manager    |     "odrl:obligation" : [ ],
offering-manager    |     "odrl:permission" : [ ],
offering-manager    |     "odrl:prohibition" : [ ]
offering-manager    |   },
offering-manager    |   "isListedBy" : {
offering-manager    |     "@id" : "https://uc.sedimark.eu/offerings"
offering-manager    |   },
offering-manager    |   "@context" : {
offering-manager    |     "@vocab" : "https://w3id.org/sedimark/ontology#",
offering-manager    |     "sedi" : "https://w3id.org/sedimark/ontology#",
offering-manager    |     "dct" : "http://purl.org/dc/terms/",
offering-manager    |     "odrl" : "http://www.w3.org/ns/odrl/2/",
offering-manager    |     "owl" : "http://www.w3.org/2002/07/owl#",
offering-manager    |     "rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
offering-manager    |     "xml" : "http://www.w3.org/XML/1998/namespace",
offering-manager    |     "xsd" : "http://www.w3.org/2001/XMLSchema#",
offering-manager    |     "rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
offering-manager    |     "dcat" : "http://www.w3.org/ns/dcat#"
offering-manager    |   }
offering-manager    | }
offering-manager    | Jun 05, 2025 4:01:08 PM eu.sedimark.service.OfferingService registerOffering
offering-manager    | INFO: Offering: eu.sedimark.model.Offering@3c8b355b
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.service.ConnectorService PostConnectorPolicy
offering-manager    | INFO: PostConnectorPolicy response: {"@type":"IdResponse","@id":"bb34e0c0-db4b-4be9-9f3d-bb4d61012c11","createdAt":1749139269132,"@context":{"@vocab":"https://w3id.org/edc/v0.0.1/ns/","edc":"https://w3id.org/edc/v0.0.1/ns/","odrl":"http://www.w3.org/ns/odrl/2/"}}
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.service.ConnectorService registerAssetsInConnector
offering-manager    | INFO: Connector response to PolicyId creation: ConnectorIdResponse(type=IdResponse, id=bb34e0c0-db4b-4be9-9f3d-bb4d61012c11, createdAt=1749139269132, context=ConnectorIdResponse.Context(vocab=https://w3id.org/edc/v0.0.1/ns/, edc=https://w3id.org/edc/v0.0.1/ns/, odrl=http://www.w3.org/ns/odrl/2/))
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.service.ConnectorService registerAssetsInConnector
offering-manager    | INFO: Connector asset: ConnectorAsset(context=ConnectorAsset.Context(vocab=https://w3id.org/edc/v0.0.1/ns/), id=http://uc.sedimark.eu:8080/offerings/ca28b5a5-12cd-4c38-bac5-55ea2cb429f7/assets/22df3428-7d0b-4825-9779-0888f97af38d, properties=ConnectorAsset.Properties(contenttype=application/json), dataAddress=ConnectorAsset.DataAddress(type=HttpData, baseUrl=http://provider-connector-data-endpoint))
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.service.ConnectorService PostConnectorAsset
offering-manager    | INFO: PostConnectorAsset response: {"@type":"IdResponse","@id":"http://uc.sedimark.eu:8080/offerings/ca28b5a5-12cd-4c38-bac5-55ea2cb429f7/assets/22df3428-7d0b-4825-9779-0888f97af38d","createdAt":1749139269498,"@context":{"@vocab":"https://w3id.org/edc/v0.0.1/ns/","edc":"https://w3id.org/edc/v0.0.1/ns/","odrl":"http://www.w3.org/ns/odrl/2/"}}
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.service.ConnectorService registerAssetsInConnector
offering-manager    | INFO: Connector IdResponse to Asset creation: ConnectorIdResponse(type=IdResponse, id=http://uc.sedimark.eu:8080/offerings/ca28b5a5-12cd-4c38-bac5-55ea2cb429f7/assets/22df3428-7d0b-4825-9779-0888f97af38d, createdAt=1749139269498, context=ConnectorIdResponse.Context(vocab=https://w3id.org/edc/v0.0.1/ns/, edc=https://w3id.org/edc/v0.0.1/ns/, odrl=http://www.w3.org/ns/odrl/2/))
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.service.ConnectorService PostConnectorContract
offering-manager    | INFO: PostConnectorContract response: {"@type":"IdResponse","@id":"bb34e0c0-db4b-4be9-9f3d-bb4d61012c11","createdAt":1749139269637,"@context":{"@vocab":"https://w3id.org/edc/v0.0.1/ns/","edc":"https://w3id.org/edc/v0.0.1/ns/","odrl":"http://www.w3.org/ns/odrl/2/"}}
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.service.ConnectorService registerAssetsInConnector
offering-manager    | INFO: Connector IdResponse to contract creation: ConnectorIdResponse(type=IdResponse, id=bb34e0c0-db4b-4be9-9f3d-bb4d61012c11, createdAt=1749139269637, context=ConnectorIdResponse.Context(vocab=https://w3id.org/edc/v0.0.1/ns/, edc=https://w3id.org/edc/v0.0.1/ns/, odrl=http://www.w3.org/ns/odrl/2/))
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.service.DLTBoothService postNft
offering-manager    | INFO: dlt string: {
offering-manager    |   "name" : "ca28b5a5-12cd-4c38-bac5-55ea2cb429f7",
offering-manager    |   "symbol" : "SDK",
offering-manager    |   "descriptionUri" : "http://uc.sedimark.eu:8080/offerings/ca28b5a5-12cd-4c38-bac5-55ea2cb429f7",
offering-manager    |   "descriptionHash" : "3200d4aa793c51d944b57194598d0d768286c8ee57ae9edba1eb864772d5b612",
offering-manager    |   "dtName" : "SEDIMARK",
offering-manager    |   "dtSymbol" : "OFFER",
offering-manager    |   "maxSupply" : 12
offering-manager    | }
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.service.DLTBoothService postNft
offering-manager    | INFO: dlt string: http://localhost:8085/api/offerings
offering-manager    | Jun 05, 2025 4:01:09 PM eu.sedimark.exception.GlobalExceptionMapper logException
offering-manager    | WARNING: Exception caught: TechnicalException - Message: Failed while creating a new DLT entry through the DLTBooth: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:8085
offering-manager    |   at eu.sedimark.service.DLTBoothService.postNft(DLTBoothService.java:47)
offering-manager    |   at eu.sedimark.service.DLTBoothService.createNewNft(DLTBoothService.java:53)
offering-manager    |   at eu.sedimark.service.OfferingService.registerOffering(OfferingService.java:41)
offering-manager    |   at eu.sedimark.controller.OfferingResource.createOffering(OfferingResource.java:34)
offering-manager    |   at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
offering-manager    |   at java.base/java.lang.reflect.Method.invoke(Method.java:580)
offering-manager    |   ... and 23 more
offering-manager    | Jun 05, 2025 4:04:49 PM eu.sedimark.controller.OfferingResource listOfferings
offering-manager    | INFO: Listing all available offerings.
offering-manager    | Jun 05, 2025 4:04:49 PM eu.sedimark.service.OfferingService fetchOfferings
offering-manager    | INFO: Total offerings listed: 0

I can see that it contacts my connector, but then fails trying to connect to the DLT (as I didn't have one deployed)

Then my question, seeing that your README has this comment:

At this moment, offeringManager only provides a limited set of functionalities to play with offerings, although no support for Offering formatting assessment or DLT interaction is included yet in this version (0.01).

Then a DLT booth is required to simply POST a offering on the v0.02?

Seeing some issues open related to the DLT (like #3 & #6), then there is a way to just use the offering manager without having to deploy the DLT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions