Stream: containers

Topic: DMP type incompatibility


view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 04 2024 at 13:39):

Weird. I'm not sure why I'm seeing this error:

[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.43.4:run (default-cli) on project dataverse: A type incompatibility occurred while executing io.fabric8:docker-maven-plugin:0.43.4:run: class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader 'bootstrap')

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 04 2024 at 13:57):

Oh, this was my own doing. I had added this (no quotes):

      # to get HarvestingServerIT to pass
      dataverse_oai_server_maxidentifiers: 2
      dataverse_oai_server_maxrecords: 2

But it needs to be this (with quotes):

      # to get HarvestingServerIT to pass
      dataverse_oai_server_maxidentifiers: "2"
      dataverse_oai_server_maxrecords: "2"

In GitHub Actions the version without quotes works. Not sure why it's different on my M2 Mac.

view this post on Zulip Philip Durbin ๐Ÿš€ (Oct 03 2024 at 18:30):

Now I'm seeing the same thing with @Eryk Kulikowski's PR at https://github.com/IQSS/dataverse/pull/10905 but I don't see any integers to quote. :thinking:

view this post on Zulip Philip Durbin ๐Ÿš€ (Oct 03 2024 at 18:36):

Found it:

     environment:
-      KC_HTTP_PORT: 9080
+      KC_HTTP_PORT: "9080"

Last updated: Oct 30 2025 at 05:14 UTC