Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about transfer-03-consumer-pull. [A binding for port 19291 already exists] #376

Open
lesile231 opened this issue Feb 21, 2025 · 1 comment · May be fixed by #382
Open

about transfer-03-consumer-pull. [A binding for port 19291 already exists] #376

lesile231 opened this issue Feb 21, 2025 · 1 comment · May be fixed by #382
Assignees
Labels
bug Something isn't working

Comments

@lesile231
Copy link

Bug Report

Describe the Bug

A clear and concise description of the bug.

When trying to run the provider in the transfer-03-consumer-pull example, I get the following error.

  • ERROR_MESSAGE
    Samples > java -Dedc.fs.config=transfer/transfer-03-consumer-pull/resources/configuration/provider.properties
    -jar transfer/transfer-03-consumer-pull/provider-proxy-data-plane/build/libs/connector.jar
SEVERE 2025-02-20T01:30:54.707069 Error booting runtime: A binding for port 19291 already exists
java.lang.IllegalArgumentException: A binding for port 19291 already exists
        at org.eclipse.edc.web.jetty.PortMappingRegistryImpl.register(PortMappingRegistryImpl.java:35)
        at org.eclipse.edc.connector.dataplane.api.DataPlanePublicApiV2Extension.initialize(DataPlanePublicApiV2Extension.java:84)
        at org.eclipse.edc.boot.system.injection.lifecycle.ExtensionLifecycleManager.bootServiceExtensions(ExtensionLifecycleManager.java:54)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.bootExtensions(BaseRuntime.java:162)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:101)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.main(BaseRuntime.java:79)
Exception in thread "main" org.eclipse.edc.spi.EdcException: java.lang.IllegalArgumentException: A binding for port 19291 already exists
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.onError(BaseRuntime.java:152)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:116)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.main(BaseRuntime.java:79)
Caused by: java.lang.IllegalArgumentException: A binding for port 19291 already exists
        at org.eclipse.edc.web.jetty.PortMappingRegistryImpl.register(PortMappingRegistryImpl.java:35)
        at org.eclipse.edc.connector.dataplane.api.DataPlanePublicApiV2Extension.initialize(DataPlanePublicApiV2Extension.java:84)
        at org.eclipse.edc.boot.system.injection.lifecycle.ExtensionLifecycleManager.bootServiceExtensions(ExtensionLifecycleManager.java:54)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.bootExtensions(BaseRuntime.java:162)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:101)
        ... 1 more

When I run a provider from another example that users the same port (19291), there's no issue, which indicates that port 19291 is currently not in use. So this suggests that ports are being overlapped during startup in the "transfer-03-consumer-pull" case. I've tested to change a value "web.http.public.port=19291" to "web.http.public.port=19296" in the "transfer/transfer-03-consumer-pull/resources/configuration/provider.properties", which makes just "A binding for port 19291 already exists" error message to "A binding for port 19296 already exists". It absolutely occurs in the example.

I tried run this example with removing the portMappingRegistry.register part in the initialize function of CustomProxyPlaneExtension.java file. Then, the port overlap issue disappeared, although it is not working well for other problem.

Expected Behavior

A clear and concise description of what you expected to happen.
it would be run without errors..

Steps to Reproduce

Steps to reproduce the behavior:
follow the instructions of "transfer-03-consumer-pull" example.

Context Information

Add any other context about the problem here.

  • I guess that "the portMappingRegistry.register part in the initialize function of CustomProxyPlaneExtension.java file"

Detailed Description

If applicable, add screenshots and logs to help explain your problem.

  • MAC OS (Sequioa 15.3)
  • USING DOCKER
  • VISUAL STUDIO
Copy link

Thanks for your contribution 🔥 We will take a look asap 🚀

@ndr-brt ndr-brt self-assigned this Feb 24, 2025
@ndr-brt ndr-brt linked a pull request Feb 24, 2025 that will close this issue
@ndr-brt ndr-brt added bug Something isn't working and removed triage labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants