[JIRA] (JENKINS-14325) CCE ...cannot be cast to jenkins.model.Jenkins in job index page

2012-07-10 Thread scm_issue_l...@java.net (JIRA)















































SCM/JIRA link daemon
 resolved  JENKINS-14325 as Fixed


CCE ...cannot be cast to jenkins.model.Jenkins in job index page
















Change By:


SCM/JIRA link daemon
(10/Jul/12 6:59 PM)




Status:


InProgress
Resolved





Resolution:


Fixed



























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






[JIRA] (JENKINS-14325) CCE ...cannot be cast to jenkins.model.Jenkins in job index page

2012-07-10 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-14325


CCE ...cannot be cast to jenkins.model.Jenkins in job index page















Code changed in jenkins
User: Jesse Glick
Path:
 changelog.html
 core/src/main/java/hudson/model/AbstractBuild.java
 core/src/main/java/hudson/model/Computer.java
 core/src/main/java/hudson/model/Items.java
 core/src/main/java/hudson/model/OverallLoadStatistics.java
 core/src/main/java/jenkins/model/Jenkins.java
 core/src/main/java/jenkins/model/UnlabeldLoadStatistics.java
 core/src/main/java/jenkins/model/UnlabeledLoadStatistics.java
 core/src/main/resources/hudson/scm/SCM/project-changes.jelly
 core/src/test/java/hudson/model/ItemsTest.java
 debian/debian/changelog
 test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java
http://jenkins-ci.org/commit/jenkins/ae3dac8afb6eef325958285b5a13bc933f5aacb6
Log:
  Merge branch 'master' into JENKINS-14325

Conflicts:
	changelog.html





























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






[JIRA] (JENKINS-14325) CCE ...cannot be cast to jenkins.model.Jenkins in job index page

2012-07-10 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-14325


CCE ...cannot be cast to jenkins.model.Jenkins in job index page















Code changed in jenkins
User: Jesse Glick
Path:
 changelog.html
 core/src/main/java/hudson/matrix/MatrixConfiguration.java
 core/src/main/java/hudson/model/AbstractProject.java
 core/src/main/resources/hudson/matrix/MatrixProject/index.jelly
 core/src/main/resources/hudson/matrix/MatrixProject/index_cs.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_da.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_de.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_es.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_fi.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_fr.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_it.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_ja.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_pl.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_ru.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_zh_CN.properties
 core/src/main/resources/hudson/model/AbstractProject/main.jelly
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled.jelly
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_bg.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ca.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_cs.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_da.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_de.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_es.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_fi.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_fr.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_hu.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_is.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_it.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ja.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ko.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_lv.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_nb_NO.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_nl.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pl.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pt_BR.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ro.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ru.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sk.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sv_SE.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_tr.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_zh_CN.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_zh_TW.properties
 core/src/main/resources/hudson/model/Job/index.jelly
 core/src/main/resources/hudson/model/Job/index_bg.properties
 core/src/main/resources/hudson/model/Job/index_ca.properties
 core/src/main/resources/hudson/model/Job/index_cs.properties
 core/src/main/resources/hudson/model/Job/index_da.properties
 core/src/main/resources/hudson/model/Job/index_de.properties
 core/src/main/resources/hudson/model/Job/index_es.properties
 core/src/main/resources/hudson/model/Job/index_fi.properties
 core/src/main/resources/hudson/model/Job/index_fr.properties
 core/src/main/resources/hudson/model/Job/index_hu.properties
 core/src/main/resources/hudson/model/Job/index_is.properties
 core/src/main/resources/hudson/model/Job/index_it.properties
 core/src/main/resources/hudson/model/Job/index_ja.properties
 core/src/main/resources/hudson/model/Job/index_ko.properties
 core/src/main/resources/hudson/model/Job/index_lv.properties
 core/src/main/resources/hudson/model/Job/index_nb_NO.properties
 core/src/main/resources/hudson/model/Job/index_nl.properties
 core/src/main/resources/hudson/model/Job/index_pl.properties
 

[JIRA] (JENKINS-14325) CCE ...cannot be cast to jenkins.model.Jenkins in job index page

2012-07-10 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-14325


CCE ...cannot be cast to jenkins.model.Jenkins in job index page















Code changed in jenkins
User: Jesse Glick
Path:
 changelog.html
 core/src/main/java/hudson/model/AbstractProject.java
 core/src/main/resources/hudson/matrix/MatrixProject/index.jelly
 core/src/main/resources/hudson/matrix/MatrixProject/index_cs.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_da.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_de.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_es.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_fi.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_fr.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_it.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_ja.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_pl.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_ru.properties
 core/src/main/resources/hudson/matrix/MatrixProject/index_zh_CN.properties
 core/src/main/resources/hudson/model/AbstractProject/main.jelly
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled.jelly
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_bg.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ca.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_cs.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_da.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_de.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_es.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_fi.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_fr.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_hu.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_is.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_it.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ja.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ko.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_lv.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_nb_NO.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_nl.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pl.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pt_BR.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ro.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ru.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sk.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sv_SE.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_tr.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_zh_CN.properties
 core/src/main/resources/hudson/model/AbstractProject/makeDisabled_zh_TW.properties
 core/src/main/resources/hudson/model/Job/index.jelly
 core/src/main/resources/hudson/model/Job/index_bg.properties
 core/src/main/resources/hudson/model/Job/index_ca.properties
 core/src/main/resources/hudson/model/Job/index_cs.properties
 core/src/main/resources/hudson/model/Job/index_da.properties
 core/src/main/resources/hudson/model/Job/index_de.properties
 core/src/main/resources/hudson/model/Job/index_es.properties
 core/src/main/resources/hudson/model/Job/index_fi.properties
 core/src/main/resources/hudson/model/Job/index_fr.properties
 core/src/main/resources/hudson/model/Job/index_hu.properties
 core/src/main/resources/hudson/model/Job/index_is.properties
 core/src/main/resources/hudson/model/Job/index_it.properties
 core/src/main/resources/hudson/model/Job/index_ja.properties
 core/src/main/resources/hudson/model/Job/index_ko.properties
 core/src/main/resources/hudson/model/Job/index_lv.properties
 core/src/main/resources/hudson/model/Job/index_nb_NO.properties
 core/src/main/resources/hudson/model/Job/index_nl.properties
 core/src/main/resources/hudson/model/Job/index_pl.properties
 core/src/main/resources/hudson/model/Job/index_pt_BR.properties
 

[JIRA] (JENKINS-14325) CCE ...cannot be cast to jenkins.model.Jenkins in job index page

2012-07-05 Thread jgl...@cloudbees.com (JIRA)














































jglick
 created  JENKINS-14325


CCE ...cannot be cast to jenkins.model.Jenkins in job index page















Issue Type:


Bug



Assignee:


jglick



Components:


core



Created:


05/Jul/12 4:22 PM



Description:


Noticed when using Folders plugin, but in principle could affect an installation using any plugin which has special ItemGroup implementations.


... hudson.ExpressionFactory2$JexlExpression evaluate
WARNING: Caught exception evaluating: it.parent == app. Reason: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
	at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
	at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
	at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
	at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
	at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
	at org.apache.commons.jexl.parser.ASTEQNode.value(ASTEQNode.java:71)
	at org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:54)
	at org.apache.commons.jexl.parser.ASTExpressionExpression.value(ASTExpressionExpression.java:56)
	at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
	at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72)
...

Caused by: java.lang.ClassCastException: an ItemGroup impl cannot be cast to jenkins.model.Jenkins
	at hudson.model.AbstractItem.getParent(AbstractItem.java)
	... 91 more


Apparent cause is the use of @WithBridgeMethods(value=Jenkins.class,castRequired=true) in AbstractItem.getParent. Probable mechanism of bug is that Job/index.jelly evaluates it.parent, JEXL looks for a getParent() method, and picks the overload returning Jenkins rather than the one returning ItemGroup. If the job is in fact in a folder rather than at top level, the cast (generated in bytecode by a Maven plugin) fails.

Might happen to work on JDK 6 due to Class.getMethods returning methods in bytecode order, but this is not the case in JDK 7.

Symptom: stack trace in log; probably suppresses "This project is currently disabled" message. "Major" only in that the error can be thrown repeatedly for a wide class of jobs.




Environment:


1.424, JDK 7




Project:


Jenkins



Labels:


exception




Priority:


Major



Reporter:


jglick

























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






[JIRA] (JENKINS-14325) CCE ...cannot be cast to jenkins.model.Jenkins in job index page

2012-07-05 Thread jgl...@cloudbees.com (JIRA)














































jglick
 commented on  JENKINS-14325


CCE ...cannot be cast to jenkins.model.Jenkins in job index page















Code as of a2b6a60. Complicated by fact that current Jelly will incorrectly suppress disable GUI for nested jobs - it is supposed to hide it for Maven modules and matrix configurations.



























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






[JIRA] (JENKINS-14325) CCE ...cannot be cast to jenkins.model.Jenkins in job index page

2012-07-05 Thread jgl...@cloudbees.com (JIRA)














































jglick
 started work on  JENKINS-14325


CCE ...cannot be cast to jenkins.model.Jenkins in job index page
















Change By:


jglick
(05/Jul/12 4:37 PM)




Status:


Open
InProgress



























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






[JIRA] (JENKINS-14325) CCE ...cannot be cast to jenkins.model.Jenkins in job index page

2012-07-05 Thread jgl...@cloudbees.com (JIRA)














































jglick
 updated  JENKINS-14325


CCE ...cannot be cast to jenkins.model.Jenkins in job index page
















Change By:


jglick
(05/Jul/12 8:02 PM)




URL:


https://github.com/jenkinsci/jenkins/pull/515



























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