[JIRA] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-21 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-38157  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
 Code changed in jenkins User: Jesse Glick Path: plugin/src/main/java/org/jenkinsci/plugins/structs/describable/DescribableModel.java http://jenkins-ci.org/commit/structs-plugin/4efc5a96233f61c9e2c5a03e30cd78586f850e17 Log: JENKINS-38157 When a NoStaplerConstructorException is thrown, include details in the exception message so it has a better chance of being diagnosed.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-21 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-38157  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
 Code changed in jenkins User: Jesse Glick Path: plugin/src/main/java/org/jenkinsci/plugins/structs/describable/DescribableModel.java plugin/src/test/java/org/jenkinsci/plugins/structs/describable/DescribableModelTest.java http://jenkins-ci.org/commit/structs-plugin/ad2ff9a7db4ff03e1533503b6ee1fee6b0a0c5c4 Log: Merge pull request #13 from jglick/JENKINS-38157 JENKINS-38157 Better diagnostics Compare: https://github.com/jenkinsci/structs-plugin/compare/4197762f5681...ad2ff9a7db4f  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-18 Thread itaisand...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Itai Sanders commented on  JENKINS-38157  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
 Jesse Glick: I have read the pipeline tutorials, and I already have quite a few NonCPS methods in my scripts. I find it hard to simply dispose this as "bad scripting" when these scripts were running cleanly since the first days of Jenkins 2.0 without any sign of NotSerializableException in mid run nor run end. up until the mentioned update that is. I do accept that there might be some policy change during that update that would change script behavior. wouldn't be the first time it happens, in fact. I will see how I can work around it, but at the end of the day there is a limit how much you can do in a NonCPS method (since we cannot call DSL methods inside). I would admit that I was going to ask you to add a mention of this to the change log, since when I installed the updates the day they were released I went though it and didn't see any indication for such risk, but a quick recheck already confirmed that you did add this exact line. I guess I jumped on the upgdate a few hours too soon, being the updatoholic that I am. thanks for the clarification, this is super important, as you well know.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-15 Thread m...@wwwahler.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Max Wahler commented on  JENKINS-38157  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
 I'm sorry, but IMHO it's ridiculous to say that a NotSerializableException is always a script bug! As part of a script, I create a new job by copying a template and then change some build settings. This is done via 

 

node {
  println "create new job"
  def job = Hudson.instance.copy(Jenkins.instance.getItem("JobTemplate"), "NewJob")

  println "change settings"
  changeJobSettings(job, "VERSION", "LATEST")
}
 

 The job was copied but it fails at Hudson.instance.copy with 

 

java.io.NotSerializableException: hudson.model.FreeStyleProject
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
	at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
	at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
	at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
	at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344)
	at java.util.HashMap.internalWriteEntries(HashMap.java:1785)
	at java.util.HashMap.writeObject(HashMap.java:1362)
	at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:271)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:976)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967)
	at 

[JIRA] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-13 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick resolved as Duplicate  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-38157  
 
 
  multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Duplicate  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-13 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-38157  
 
 
  multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Component/s: 
 pipeline  
 
 
Component/s: 
 workflow-cps-global-lib-plugin  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-13 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-38157  
 
 
  multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Labels: 
 regression  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-13 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-38157  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
 I am not sure what the NoStaplerConstructorException is about; I will file a PR for structs to include better diagnostics. The NotSerializableException are bugs in your script, which JENKINS-25623 reveals more reproducibly than before. Read the Pipeline tutorial section on serialization and local variables and @NonCPS. (The HttpURLConnection in particular is a sure sign of a bad script. Use the HTTP Request plugin instead.)  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-13 Thread itaisand...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Itai Sanders updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-38157  
 
 
  multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
Change By: 
 Itai Sanders  
 

  
 
 
 
 

 
 we updated the pipeline plugins to the latest versions and noticed that after the upgrade a few of our critical and up-until-now working pipelines started crashing with different messages errors.downgrading to Pipeline: Groovy  2.13 and Pipeline: Shared Groovy Libraries  2.2 fixed most of the errors.example errors that were solved:{code}java.io.NotSerializableException: java.util.AbstractList$Itr at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988) at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:967) at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854) at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65) at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56) at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50) at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.HashMap.internalWriteEntries(Unknown Source) at java.util.HashMap.writeObject(Unknown 

[JIRA] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-13 Thread itaisand...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Itai Sanders updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-38157  
 
 
  multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
Change By: 
 Itai Sanders  
 
 
Component/s: 
 workflow-cps-global-lib-plugin  
 
 
Component/s: 
 workflow-cps-plugin  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-38157) multiple new errors on long time running pipelines after latest update

2016-09-13 Thread itaisand...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Itai Sanders created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-38157  
 
 
  multiple new errors on long time running pipelines after latest update   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Jesse Glick  
 
 
Components: 
 pipeline  
 
 
Created: 
 2016/Sep/13 7:46 AM  
 
 
Environment: 
 Jenkins 2.21  Pipeline: Groovy 2.15  Pipeline: Shared Groovy Libraries 2.3  
 
 
Priority: 
  Blocker  
 
 
Reporter: 
 Itai Sanders  
 

  
 
 
 
 

 
 we updated the pipeline plugins to the latest versions and noticed that after the upgrade a few of our critical and up-until-now working pipelines started crashing with different messages errors. downgrading to Pipeline: Groovy 2.13 and Pipeline: Shared Groovy Libraries 2.2 fixed most of the errors. example errors that were solved: 

 

java.io.NotSerializableException: java.util.AbstractList$Itr
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:854)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1032)
	at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:988)
	at