Mike Liu commented on Bug JENKINS-15782

impatience me... I decided to download the latest source from GIT to see if I can find the root cause of this issue... Here's what I found:

Based on the last exception stack:

Caused by: java.lang.AssertionError
at hudson.util.RobustReflectionConverter.<init>(RobustReflectionConverter.java:82)
at hudson.util.RobustReflectionConverter.<init>(RobustReflectionConverter.java:77)
at hudson.security.ProjectMatrixAuthorizationStrategy$ConverterImpl.<init>(ProjectMatrixAuthorizationStrategy.java:103)

Line 103 of ProjectMatrixAuthorizationStrategy has the following:

public ConverterImpl(Mapper m) { ref = new RobustReflectionConverter(m,new JVM().bestReflectionProvider()); // line 103 }

Line 77 of RobustReflectionConverter has the following:

public RobustReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider) { this(mapper, reflectionProvider, null); // line 77 }

Line 82 of RobustReflectionConverter has the following:

RobustReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider, XStream2.ClassOwnership classOwnership) { this.mapper = mapper; this.reflectionProvider = reflectionProvider; assert classOwnership != null; // line 82 this.classOwnership = classOwnership; serializationMethodInvoker = new SerializationMethodInvoker(); }

well... Jenkins calls the public construction of RobustReflectionConverter, which always pass null for 'classOwnership'. Hence it will ALWAYS be the case that we get this AssertionError.

Looks like a coding issue to me. Can someone please kindly and urgently fix this... This is causing a lot of problem for us.

Thank you very much!!!

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

Reply via email to