Alfresco / acs-packaging

Packaging of Docker containers, war file and zip for Alfresco Content Services (Enterprise)
https://www.alfresco.com/platform/content-services-ecm/trial/download
Other
27 stars 37 forks source link

ACS-8460: Bump hxi-connector to 1.0.0-A13 #2896

Closed krdabrowski closed 2 months ago

krdabrowski commented 3 months ago

Something went wrong?

Caused by: java.lang.UnsupportedClassVersionError: org/alfresco/hxi_connector/hxi_extension/rest/api/NodeEntityResource has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 (unable to load class [org.alfresco.hxi_connector.hxi_extension.rest.api.NodeEntityResource])

Unfortunately 😭 I'm checking it right now 🤔

dsibilio commented 3 months ago

Something went wrong?

Caused by: java.lang.UnsupportedClassVersionError: org/alfresco/hxi_connector/hxi_extension/rest/api/NodeEntityResource has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 (unable to load class [org.alfresco.hxi_connector.hxi_extension.rest.api.NodeEntityResource])

After a very quick look.

Shouldn't the alfresco.platform.java-version be 11 here: https://github.com/Alfresco/hxinsight-connector/blob/624731f51e4c907d5db262b04d0192c52d00619b/pom.xml#L55?

Also the hxinsight-extension should have 2 different source and target levels IMO, runtime should be Java 17 but compilation should be Java 11, whereas both are set to 17 at the moment see: https://github.com/Alfresco/hxinsight-connector/blob/master/hxinsight-extension/pom.xml#L17-L18.

krdabrowski commented 3 months ago

@dsibilio I think both (compilation and runtime) should be 11, to give the customer the ability to run application using Java 11. Issue finally was solved within: https://github.com/Alfresco/hxinsight-connector/pull/576/files