Skip to content

Method parameter 'workspaceId': Failed to convert value of type 'java.lang.String' to required type 'long'; For input string: "lastModified"] #170

@choonchernlim

Description

@choonchernlim

Expected

When running Dockerized structurizr/onpremises, the log is filled with the following warnings:

[WARN ] 2025-04-28 01:54:48.216 [http-nio-8080-exec-2] DefaultHandlerExceptionResolver - Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Method parameter 'workspaceId': Failed to convert value of type 'java.lang.String' to required type 'long'; For input string: "lastModified"]
[WARN ] 2025-04-28 01:54:48.218 [http-nio-8080-exec-1] DefaultHandlerExceptionResolver - Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Method parameter 'workspaceId': Failed to convert value of type 'java.lang.String' to required type 'long'; For input string: "lastModified"]
[WARN ] 2025-04-28 01:54:49.545 [http-nio-8080-exec-4] DefaultHandlerExceptionResolver - Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Method parameter 'workspaceId': Failed to convert value of type 'java.lang.String' to required type 'long'; For input string: "lastModified"]
[WARN ] 2025-04-28 01:54:49.545 [http-nio-8080-exec-3] DefaultHandlerExceptionResolver - Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Method parameter 'workspaceId': Failed to convert value of type 'java.lang.String' to required type 'long'; For input string: "lastModified"]

Actual

There should not be any warnings.

Steps to reproduce

docker pull structurizr/onpremises
docker run -it --rm -p 8080:8080 -v ./data:/usr/local/structurizr structurizr/onpremises

... where ./data is an empty directory (first time running it). The warnings persist even when a workspace is created.

Version/build information

Structurizr on-premises installation
 - build: 2025.03.28 (2025-03-28T14:47:07Z)
 - structurizr-java: v4.0.0
 - structurizr-dsl: v4.0.0
 - structurizr-import: v4.0.0
 - structurizr-graphviz: v4.0.0

Graphviz (dot) available: true
Memory: used=41MB; free=470MB; total=512MB; max=512MB

Severity

Minor

Priority

Low (I have no budget and there's no rush, please fix this for free)

More information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions