[JIRA] [configurationslicing-plugin] (JENKINS-25964) NullPointerExcpetion when try to slice parameters

2015-03-29 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-25964


NullPointerExcpetion when try to slice parameters















Code changed in jenkins
User: ninian
Path:
 src/main/java/configurationslicing/UnorderedStringSlice.java
http://jenkins-ci.org/commit/configurationslicing-plugin/5ef829b9f18300068be6c6d54f3f0804885ef8f2
Log:
  [FIXED JENKINS-25964]





























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.


[JIRA] [configurationslicing-plugin] (JENKINS-25964) NullPointerExcpetion when try to slice parameters

2015-03-29 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-25964


NullPointerExcpetion when try to slice parameters















Code changed in jenkins
User: ninian
Path:
 src/main/java/configurationslicing/UnorderedStringSlice.java
http://jenkins-ci.org/commit/configurationslicing-plugin/2523774125cc54319bf4c6ed5ddd888b282f4837
Log:
  Applying suggested fix for JENKINS-25964





























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.


[JIRA] [configurationslicing-plugin] (JENKINS-25964) NullPointerExcpetion when try to slice parameters

2015-03-29 Thread scm_issue_l...@java.net (JIRA)















































SCM/JIRA link daemon
 resolved  JENKINS-25964 as Fixed


NullPointerExcpetion when try to slice parameters
















Change By:


SCM/JIRA link daemon
(29/Mar/15 11:03 AM)




Status:


Open
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







-- 
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.


[JIRA] [configurationslicing-plugin] (JENKINS-25964) NullPointerExcpetion when try to slice parameters

2015-03-29 Thread scm_issue_l...@java.net (JIRA)














































SCM/JIRA link daemon
 commented on  JENKINS-25964


NullPointerExcpetion when try to slice parameters















Code changed in jenkins
User: ninian
Path:
 src/main/java/configurationslicing/UnorderedStringSlice.java
http://jenkins-ci.org/commit/configurationslicing-plugin/0aadd9ec613ed84e4a379088e31bee30421038d8
Log:
  Merge pull request #16 from ninian/master

Applying suggested fix for JENKINS-25964


Compare: https://github.com/jenkinsci/configurationslicing-plugin/compare/e454609618fb...0aadd9ec613e




























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.


[JIRA] [configurationslicing-plugin] (JENKINS-25964) NullPointerExcpetion when try to slice parameters

2014-12-09 Thread thomas.wab...@siemens.com (JIRA)














































Thomas Wabner
 commented on  JENKINS-25964


NullPointerExcpetion when try to slice parameters















I have found the root cause of this error:

I have a project with a parameter definition like this:


  deployment_reason  
 

It is missing the  and  tags. It should look like this



  deployment_reason 
   
   
 

I have changed the code in UnorderedStringSlice for the method addLineWithSets to following:


private static void addLineWithSets(Map> map, String s, String name) {
			  if (null == s) {
	LOGGER.severe("found illegal line with null value for name: "+name);
	// do nothing
	return;
}
if(!map.containsKey(s)) {
map.put(s, new HashSet());
}
Set list= map.get(s);
list.add(name);
}




























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.


[JIRA] [configurationslicing-plugin] (JENKINS-25964) NullPointerExcpetion when try to slice parameters

2014-12-09 Thread thomas.wab...@siemens.com (JIRA)














































Thomas Wabner
 commented on  JENKINS-25964


NullPointerExcpetion when try to slice parameters















Found one missed piece in the log:
Caused by: java.lang.NullPointerException
	at java.lang.String$CaseInsensitiveComparator.compare(String.java:1177)
	at java.lang.String$CaseInsensitiveComparator.compare(String.java:1170)
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)
	at java.util.TimSort.sort(TimSort.java:189)
	at java.util.TimSort.sort(TimSort.java:173)
	at java.util.Arrays.sort(Arrays.java:659)
	at java.util.Collections.sort(Collections.java:217)
	at configurationslicing.UnorderedStringSlice.getConfiguredValues(UnorderedStringSlice.java:110)
	... 130 more



























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.


[JIRA] [configurationslicing-plugin] (JENKINS-25964) NullPointerExcpetion when try to slice parameters

2014-12-09 Thread thomas.wab...@siemens.com (JIRA)














































Thomas Wabner
 created  JENKINS-25964


NullPointerExcpetion when try to slice parameters















Issue Type:


Bug



Assignee:


mdonohue



Components:


configurationslicing-plugin



Created:


09/Dec/14 8:16 AM



Description:


If I try to "slice" parameters for my projects I get a empty page. After taking a look into the log files I see the following stack trace:

INFO: Loaded: class configurationslicing.tools.GroovySlicer
Dec 09, 2014 9:08:27 AM hudson.ExpressionFactory2$JexlExpression evaluate
WARNING: Caught exception evaluating: it.configuredValues in /jenkins/slicing/parameters/. 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:606)
	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.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
	at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
	at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
	at org.apache.commons.jelly._expression_.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:61)
	at org.apache.commons.jelly._expression_.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:94)
	at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:89)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
	at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
	at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
	at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)
	at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
	at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
	at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
	at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
	at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
	at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
	at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
	at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
	at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
	at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
	at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
	at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
	at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
	at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(Cal