[critical?] Service Schema Loading Fails with `InaccessibleObjectException`
Description: When executing the Service Schema Loading step from the Load Service Data section during OSDU installation, the provided Docker setup repeatedly returns "Internal server error". These errors are preventing the successful addition of schemas to OSDU.
Error Details:
Received multiple 500 Internal Server Error
responses for different schemas including:
Error with kind osdu:wks:AbstractAccessControlList:1.0.0: Message: Internal server error
Error with kind osdu:wks:AbstractActivityParameter:1.1.0: Message: Internal server error
Error with kind osdu:wks:AbstractActivityParameter:1.0.0: Message: Internal server error
Error with kind osdu:wks:AbstractActivityState:1.0.0: Message: Internal server error
Error with kind osdu:wks:AbstractAliasNames:1.0.0: Message: Internal server error
Error with kind osdu:wks:AbstractAnyCrsFeatureCollection:1.1.0: Message: Internal server error
Error with kind osdu:wks:AbstractAnyCrsFeatureCollection:1.0.0: Message: Internal server error
Error with kind osdu:wks:AbstractCoordinates:1.0.0: Message: Internal server error
...
Error with kind osdu:wks:work-product--WorkProduct:1.0.0: Message: Internal server error
Error with kind osdu:wks:reference-data--WorkflowPersonaType:1.0.1: Message: Internal server error
Error with kind osdu:wks:reference-data--WorkflowPersonaType:1.0.0: Message: Internal server error
Error with kind osdu:wks:reference-data--WorkflowUsageType:1.0.1: Message: Internal server error
Error with kind osdu:wks:reference-data--WorkflowUsageType:1.0.0: Message: Internal server error
Each resulting in error like this:
Error with kind osdu:wks:master-data--WellboreOpening:1.0.0: Message: Internal server error
Try PUT for id: osdu:wks:reference-data--WellboreOpeningStateType:1.0.0
{"error":{"code":500,"message":"Internal server error","errors":[{"domain":"global","reason":"internalError","message":"Internal server error"}]}}
https://osdu-pl2-srpl2-k8q2-istio-gw.centralus.cloudapp.azure.com/api/schema-service/v1/schemas/system
500
Logs for schema servicschama.zipreport the following exception:
java.lang.reflect.InaccessibleObjectException: Unable to make field private static final long java.util.ArrayList.serialVersionUID accessible: module java.base does not "opens java.util" to unnamed module @61e86192
(full logs in the attachment)
As a result full installation of OSDU is impossible.
Expected Behavior: Schemas should be successfully added to OSDU without any errors.
Actual Behavior: Repeated "Internal server error" prevents the addition of schemas.
Steps to Reproduce:
- Proceed to the Service Schema Loading step from the Load Service Data section of OSDU installation instructions.
- Execute the provided commands.
- Observe the repeated "Internal server error" and check logs for details.
Suggested Fix:
Research suggests that the Java runtime environment might be causing the InaccessibleObjectException
due to module restrictions in more recent Java versions. Consider revisiting the implementation to ensure compatibility with the used Java version or adjust the runtime environment to a version that doesn't enforce these module boundaries. I'm not sure if this service changed the java version but this may be something to consider.
Environment:
- OSDU version: 0.23
EDIT: added some formatting and got spam update error