Re: Jenkinsfile Accessing variables from shared libraries

2020-12-19 Thread Kernel Panic
Hello

Is there a way to access those variables from as sh command from the script 
section?
for example this works:

script {
  echo GlobalVariables.MyVariable 

}

but the same with sh does not, that just echos GlobalVariables.MyVariable 
and not the variable content.
script {

  sh  ' echo GlobalVariables.MyVariable'

}

Thanks
Regards


El jueves, 17 de diciembre de 2020 a las 5:45:11 UTC-3, venh...@gmail.com 
escribió:

> In my case, I do the following. I have a GlobalVars.groovy file with below 
> content.
>
> #!/usr/bin/env groovypackage com..;public class 
> GlobalVars {   static String myVar = ""}
>
> Then in my Shared Library class, I use it like below.
>
> GlobalVars.myVar = ""
>
> Try it like this and check. Here, I have declared the class as Public and the 
> variable as static. That's the only difference.
>
>
> Regards,
> Venkatesh
>
>
> On Thu, Dec 17, 2020 at 12:56 PM Adrian Wyssmann  
> wrote:
>
>> I see several problem
>>
>>1. using ' will not expand the parameters is your call should be sh 
>>"echo ${CustomMessage}"
>>2. CustomMessage is declared within the class Vars(), so you cannot 
>>access it
>>
>> You could implement a getter an then do something like this "echo 
>> ${globalVars.getCustomMessage()}"
>>
>> Maybe others have better ideas...?
>> On Thursday, December 17, 2020 at 12:10:19 AM UTC+1 netwar...@gmail.com 
>> wrote:
>>
>>> Hello there
>>> Maybe this is a very basic question, but am not being able to access a 
>>> global variable
>>> from a shared library from a Jenkinsfile
>>>
>>> under vars I defined something like this
>>>
>>> globalVars.groovy
>>> class Vars () {
>>>
>>> def CustomMessage = "This is a new deployment"
>>>
>>> }
>>>
>>> from my Jenkinsfile
>>>
>>> library identifier: 'globalVars@master', \
>>>  retriever: modernSCM([$class: 'GitSCMSource', \
>>> credentialsId: 'tfsservice', \
>>> remote: 'http://myrepo.com', \
>>> traits: [gitBranchDiscovery()]])
>>>
>>>
>>> pipeline {
>>>
>>> stages {
>>> stage('Do Some Stuff') {
>>>   steps {
>>> script {
>>>
>>>sh 'echo ${CustomMessage}'
>>>
>>>   }
>>> }
>>>   }
>>> }
>>>
>>> }
>>>
>>> But the above returns nothing, what am I doing wrong?
>>> Thanks
>>> Regards
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/099e3aee-dffc-459d-8eb5-d64204effb58n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9db63ce0-9c9d-4683-b58d-a5cd1a4f8355n%40googlegroups.com.


Re: Jenkinsfile Accessing variables from shared libraries

2020-12-19 Thread Kernel Panic
Hello

Defining a global class worked for me, at least did what I wanted to do,
Thanks you very much for your time and support
Regards


El jueves, 17 de diciembre de 2020 a las 5:45:11 UTC-3, venh...@gmail.com 
escribió:

> In my case, I do the following. I have a GlobalVars.groovy file with below 
> content.
>
> #!/usr/bin/env groovypackage com..;public class 
> GlobalVars {   static String myVar = ""}
>
> Then in my Shared Library class, I use it like below.
>
> GlobalVars.myVar = ""
>
> Try it like this and check. Here, I have declared the class as Public and the 
> variable as static. That's the only difference.
>
>
> Regards,
> Venkatesh
>
>
> On Thu, Dec 17, 2020 at 12:56 PM Adrian Wyssmann  
> wrote:
>
>> I see several problem
>>
>>1. using ' will not expand the parameters is your call should be sh 
>>"echo ${CustomMessage}"
>>2. CustomMessage is declared within the class Vars(), so you cannot 
>>access it
>>
>> You could implement a getter an then do something like this "echo 
>> ${globalVars.getCustomMessage()}"
>>
>> Maybe others have better ideas...?
>> On Thursday, December 17, 2020 at 12:10:19 AM UTC+1 netwar...@gmail.com 
>> wrote:
>>
>>> Hello there
>>> Maybe this is a very basic question, but am not being able to access a 
>>> global variable
>>> from a shared library from a Jenkinsfile
>>>
>>> under vars I defined something like this
>>>
>>> globalVars.groovy
>>> class Vars () {
>>>
>>> def CustomMessage = "This is a new deployment"
>>>
>>> }
>>>
>>> from my Jenkinsfile
>>>
>>> library identifier: 'globalVars@master', \
>>>  retriever: modernSCM([$class: 'GitSCMSource', \
>>> credentialsId: 'tfsservice', \
>>> remote: 'http://myrepo.com', \
>>> traits: [gitBranchDiscovery()]])
>>>
>>>
>>> pipeline {
>>>
>>> stages {
>>> stage('Do Some Stuff') {
>>>   steps {
>>> script {
>>>
>>>sh 'echo ${CustomMessage}'
>>>
>>>   }
>>> }
>>>   }
>>> }
>>>
>>> }
>>>
>>> But the above returns nothing, what am I doing wrong?
>>> Thanks
>>> Regards
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/099e3aee-dffc-459d-8eb5-d64204effb58n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/eea95ea1-71e8-4fb3-9d7e-a6035f0ee0e8n%40googlegroups.com.


Re: Help with error when using PluginsWrapper() in pipeline

2020-12-19 Thread Yannick Lacaute
Hi,

We can read "doWriteObject(BlockMarshaller.java:65)"
We then can suppose plugins are not serializable object.
So, try to encapsulate your code in a groovy function, with the
annotation @NonCPS




On Sat, Dec 19, 2020 at 6:44 PM zil...@gmail.com  wrote:

> I have the following line in my pipeline to get the currently installed
> plugins.
>
> def plugins =
> jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
>
> and it dumps the following. Any ideas why? I can run the code in the
> Scripts console.
>
> an exception which occurred: in field
> com.cloudbees.groovy.cps.impl.BlockScopeEnv.locals in object
> com.cloudbees.groovy.cps.impl.BlockScopeEnv@2fa84c51 in field
> com.cloudbees.groovy.cps.impl.CallEnv.caller in object
> com.cloudbees.groovy.cps.impl.FunctionCallEnv@f687179 in field
> com.cloudbees.groovy.cps.Continuable.e in object
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable@41cd7240 in field
> org.jenkinsci.plugins.workflow.cps.CpsThread.program in object
> org.jenkinsci.plugins.workflow.cps.CpsThread@13c12346 in field
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.threads in object
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 in object
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 Caused:
> java.io.NotSerializableException: hudson.PluginWrapper at
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:926)
> 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.concurrent.CopyOnWriteArrayList.writeObject(CopyOnWriteArrayList.java:973)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498) at
> org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
> at
> org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:781)
> 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:1793) at
> java.util.HashMap.writeObject(HashMap.java:1363) at
> sun.reflect.GeneratedMethodAccessor17.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.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
> at
> org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
> at
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
> at
> 

Re: Help with error when using PluginsWrapper() in pipeline

2020-12-19 Thread zil...@gmail.com
This works just as well (posted on a thread here), and no dumps.

 def plugins = Jenkins.instance.pluginManager.plugins.*findAll* { 
!(it.shortName in ['job-dsl', 'structs']) }.*collect* { "*${it.shortName}*:
*${it.version}*" } 

On Saturday, December 19, 2020 at 12:43:47 PM UTC-5 zil...@gmail.com wrote:

> I have the following line in my pipeline to get the currently installed 
> plugins.
>
> def plugins = 
> jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
>
> and it dumps the following. Any ideas why? I can run the code in the 
> Scripts console.
>
> an exception which occurred: in field 
> com.cloudbees.groovy.cps.impl.BlockScopeEnv.locals in object 
> com.cloudbees.groovy.cps.impl.BlockScopeEnv@2fa84c51 in field 
> com.cloudbees.groovy.cps.impl.CallEnv.caller in object 
> com.cloudbees.groovy.cps.impl.FunctionCallEnv@f687179 in field 
> com.cloudbees.groovy.cps.Continuable.e in object 
> org.jenkinsci.plugins.workflow.cps.SandboxContinuable@41cd7240 in field 
> org.jenkinsci.plugins.workflow.cps.CpsThread.program in object 
> org.jenkinsci.plugins.workflow.cps.CpsThread@13c12346 in field 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.threads in object 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 in object 
> org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 Caused: 
> java.io.NotSerializableException: hudson.PluginWrapper at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:926)
>  
> 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.concurrent.CopyOnWriteArrayList.writeObject(CopyOnWriteArrayList.java:973)
>  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  
> at java.lang.reflect.Method.invoke(Method.java:498) at 
> org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
>  
> at 
> org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:781)
>  
> 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:1793) at 
> java.util.HashMap.writeObject(HashMap.java:1363) at 
> sun.reflect.GeneratedMethodAccessor17.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.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
>  
> at 
> org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
>  
> at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
>  
> at 
> 

Help with error when using PluginsWrapper() in pipeline

2020-12-19 Thread zil...@gmail.com
I have the following line in my pipeline to get the currently installed 
plugins.

def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()

and it dumps the following. Any ideas why? I can run the code in the 
Scripts console.

an exception which occurred: in field 
com.cloudbees.groovy.cps.impl.BlockScopeEnv.locals in object 
com.cloudbees.groovy.cps.impl.BlockScopeEnv@2fa84c51 in field 
com.cloudbees.groovy.cps.impl.CallEnv.caller in object 
com.cloudbees.groovy.cps.impl.FunctionCallEnv@f687179 in field 
com.cloudbees.groovy.cps.Continuable.e in object 
org.jenkinsci.plugins.workflow.cps.SandboxContinuable@41cd7240 in field 
org.jenkinsci.plugins.workflow.cps.CpsThread.program in object 
org.jenkinsci.plugins.workflow.cps.CpsThread@13c12346 in field 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.threads in object 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 in object 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@4ce8aeb3 Caused: 
java.io.NotSerializableException: hudson.PluginWrapper at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:926)
 
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.concurrent.CopyOnWriteArrayList.writeObject(CopyOnWriteArrayList.java:973)
 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
at java.lang.reflect.Method.invoke(Method.java:498) at 
org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
 
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:781)
 
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:1793) at 
java.util.HashMap.writeObject(HashMap.java:1363) at 
sun.reflect.GeneratedMethodAccessor17.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.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:156)
 
at 
org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:191)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1028)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1082)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1040)
 
at 
org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:920)