mvn jetty:run in the war module missing some JDK options

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Minor
    • Component/s: core
    • Environment:

      when running a test Jenkins from the `war` directory with mvn jetty:run the resulting Jenkins is not fully functional as XStream fails to serialise items.

      Steps to reproduce

      git clone https://github.com/jenkinsci/jenkins
      cd jenkins
      git reset --hard 7aa9647a35bc382c7f632bfac8af5a7d9cd5e6f7 (master as of 21-05-2-25 14:25 UTC)
      mvn -Pquick-build install
      cd war
      mvn hpi:run

      go to Jenkins
      install the folders plugin
      create a folder and save
      go to the (root) dashboard
      create a new List view
      save the list view

      Expected results

      Everything works

      actual results

      Angry Jenkins
      large amounts of errors saving the data with XStream in the logs

      Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private static final long java.lang.String$CaseInsensitiveComparator.serialVersionUID accessible: module java.base does not "opens java.lang" to unnamed module @7fdbbbe8
          at java.lang.reflect.AccessibleObject.checkCanSetAccessible (AccessibleObject.java:354)
          at java.lang.reflect.AccessibleObject.checkCanSetAccessible (AccessibleObject.java:297)
          at java.lang.reflect.Field.checkCanSetAccessible (Field.java:178)
          at java.lang.reflect.Field.setAccessible (Field.java:172)
          at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildDictionaryEntryForClass (FieldDictionary.java:187)
          at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap (FieldDictionary.java:153)
          at com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldsFor (FieldDictionary.java:81)
          at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields (PureJavaReflectionProvider.java:167)
          at hudson.util.RobustReflectionConverter.doMarshal (RobustReflectionConverter.java:208)
          at hudson.util.RobustReflectionConverter.marshal (RobustReflectionConverter.java:165)
          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.TreeMarshaller.convertAnother (TreeMarshaller.java:44)
          at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:87)
          at com.thoughtworks.xstream.converters.collections.TreeMapConverter.marshalComparator (TreeMapConverter.java:67)
          at com.thoughtworks.xstream.converters.collections.TreeSetConverter.marshal (TreeSetConverter.java:52)
          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:285)
          at hudson.util.RobustReflectionConverter$2.writeField (RobustReflectionConverter.java:272)
          at hudson.util.RobustReflectionConverter$2.visit (RobustReflectionConverter.java:243)
          at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields (PureJavaReflectionProvider.java:174)
          at hudson.util.RobustReflectionConverter.doMarshal (RobustReflectionConverter.java:228)
          at hudson.util.RobustReflectionConverter.marshal (RobustReflectionConverter.java:165)
          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.TreeMarshaller.convertAnother (TreeMarshaller.java:44)
          at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother (AbstractReferenceMarshaller.java:87)
          at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeBareItem (AbstractCollectionConverter.java:94)
          at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem (AbstractCollectionConverter.java:66)
          at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeCompleteItem (AbstractCollectionConverter.java:81)
          at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal (CollectionConverter.java:75)
          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:285)
          at hudson.util.RobustReflectionConverter$2.writeField (RobustReflectionConverter.java:272)
          at hudson.util.RobustReflectionConverter$2.visit (RobustReflectionConverter.java:243)
          at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields (PureJavaReflectionProvider.java:174)
          at hudson.util.RobustReflectionConverter.doMarshal (RobustReflectionConverter.java:228)
          at hudson.util.RobustReflectionConverter.marshal (RobustReflectionConverter.java:165)
          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.TreeMarshaller.convertAnother (TreeMarshaller.java:44)
          at com.thoughtworks.xstream.core.TreeMarshaller.start (TreeMarshaller.java:83)
          at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal (AbstractTreeMarshallingStrategy.java:37)
          at com.thoughtworks.xstream.XStream.marshal (XStream.java:1307)
          at com.thoughtworks.xstream.XStream.marshal (XStream.java:1296)
          at com.thoughtworks.xstream.XStream.toXML (XStream.java:1269)
          at hudson.XmlFile.write (XmlFile.java:216)
          at jenkins.model.Jenkins.save (Jenkins.java:3611)
          at hudson.model.ViewGroupMixIn.addView (ViewGroupMixIn.java:91)
          at jenkins.model.Jenkins.addView (Jenkins.java:1879)
          at jenkins.model.Jenkins.doCreateView (Jenkins.java:4285)
      

            Assignee:
            Unassigned
            Reporter:
            James Nord
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: