The GitHub Actions job "CI" on synapse.git/fix/jdk17-sample-services-build has 
failed.
Run started by GitHub user isudana (triggered by isudana).

Head commit for run:
d2d3e5d61cb5d5fada7411dfafcfe3e795fd8fc2 / isudana <[email protected]>
Fix sample Axis2 services failing to deploy on JDK 9+

SimpleStockQuoteService and the other sample services are compiled at
run time via ant using build.xml, which did not pin a source/target
level. On JDK 9+, javac compiles string concatenation using
invokedynamic/StringConcatFactory by default, which Axis2's bundled
legacy bytecode parameter-name reader cannot parse, causing
deployment to fail with "Error looking for paramter names in
bytecode: unexpected bytes in file".

Pin source/target to 1.8 in all sample service build.xml files so
they keep emitting classic StringBuilder-based concatenation
regardless of the JDK used to build them.

Also fix axis2server.sh, which unconditionally passed
-Djava.endorsed.dirs, a flag removed in JDK 9+ that prevents the JVM
from starting at all. Only pass it on pre-9 JDKs, mirroring the
existing fix already applied to synapse.sh.
Co-Authored-By: Claude Sonnet 5 <[email protected]>

Report URL: https://github.com/apache/synapse/actions/runs/34821761315

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to