Hi,
I'm developing an SCM plugin and I'm now testing the interaction with the
Multi-Branch Pipeline plugin.
This seems to work from the SCM perspective, but the logs are cluttered
with these:
2024-04-19 14:52:20.553+0000 [id=87] WARNING
o.j.p.workflow.graph.FlowNode#persistSafe: failed to save actions for
FlowNode id=7
java.lang.reflect.InaccessibleObjectException: Unable to make field static
final long java.io.IOException.serialVersionUID accessible: module
java.base does not "opens java.io" to unnamed module @3c3c290e
at
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at
java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at
com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildDictionaryEntryForClass(FieldDictionary.java:176)
at
com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:142)
at
com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldsFor(FieldDictionary.java:80)
at
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:167)
at
hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:206)
at
hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:163)
at
com.thoughtworks.xstream.converters.extended.ThrowableConverter.marshal(ThrowableConverter.java:62)
at
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
at
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
at
com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
at
hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:283)
at
hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
Caused: java.lang.RuntimeException: Failed to serialize
org.jenkinsci.plugins.workflow.actions.ErrorAction#error for class
org.jenkinsci.plugins.workflow.actions.ErrorAction
at
hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:274)
at
hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:241)
at
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
at
hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:226)
at
hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:163)
...
I'm not sure if my plugin causes the issue or something else, as
it's org.jenkinsci.plugins.workflow.actions.ErrorAction which can not be
serialized.
It might be that I need to modify the security settings for Java to fix
this, but since this pertains to an unnamed module, I'm not sure what to
change (and where, as it is likely a Maven config file somewhere which
controls this?).
I'm using Jenkins 2.414.3 as a baseline and JDK 17.0.10 if that is any help.
Kind regards,
Berend Dekens
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/CAJBx0EM-A3A3%2BVLSQ%3D-PLaGzpnAZfyTTtDXywCqUvOmWGGGSHw%40mail.gmail.com.