Martin Kutter edited a comment on Bug JENKINS-22525

The ConversionException: Could not call hudson.EnvVars.readObject() : Invalid reference above is probably unrelated: It looks like my config had invalid references. After cleaning them up, this message disappeared.

However, the IncompatibleClassChangeError: incompatible InnerClasses attribute between "hudson.model.Queue$ItemList" and "hudson.model.Queue" could be the reason for this issue.

I reproduced the issue with Jenkins 1.554.3 (LTS), 1.565 and 1.570 with the following combinations.

  • Jenkins 1.565 on IBM JDK 6 SR 16 on AIX 7.1
  • Jenkins 1.565 on IBM JDK 7 SR 6 on AIX 7.1
  • Jenkins 1.565 on IBM JDK 7 SR 7 (latest) on AIX 7.1
  • Jenkins 1.554.3 on IBM JDK 7 (build 2.6) on Windows 7
  • Jenkins 1.565 on IBM JDK 7 (build 2.6) on Windows 7
  • Jenkins 1.570 on IBM JDK 7 (build 2.6) on Windows 7
  • Jenkins 1.570 (re-built from source on IBM JDK 6) on IBM JDK 6 on Windows 7

The issue does not occur on Jenkins-1.532.2 (LTS).

In my case, the "missing" slave is always the first slave in the config.xml, so I would assume that loading a Slave from disk (and creating a hudsom.model.Queue$ItemList) does not work the first time,
but works on subsequent tries.

I've also found that the same error is thrown when creating the first slave node on a fresh jenkins instance (on save / doCreateItem):

 
Stack trace (excerpt):

Caused by: java.lang.IncompatibleClassChangeError: incompatible InnerClasses attribute between "hudson.model.Queue$ItemList" and "hudson.model.Queue"
	at java.lang.Class.getDeclaringClass(Class.java:821)
	at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:52)
	at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:95)
	at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:105)
	at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:140)
	at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
	at sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:85)
	at java.lang.reflect.Field.getGenericType(Field.java:237)
	at com.thoughtworks.xstream.mapper.AnnotationMapper.processTypes(AnnotationMapper.java:224)
	at com.thoughtworks.xstream.mapper.AnnotationMapper.processAnnotations(AnnotationMapper.java:182)
	at com.thoughtworks.xstream.mapper.AnnotationMapper.serializedClass(AnnotationMapper.java:129)
	at hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:39)
	at com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:26)
	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:62)
	at hudson.slaves.NodeList$ConverterImpl.marshal(NodeList.java:151)

The slave is saved nonetheless.

Subsequent slaves can be created without this error.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to