Release Automation

 View Only
Expand all | Collapse all

Jenkins UnsupportedOperationException when we use CARA Plugin?

  • 1.  Jenkins UnsupportedOperationException when we use CARA Plugin?

    Posted Feb 07, 2018 07:09 AM

    I have setup the Jenkins jobs with CA Release Automation and It was working fine.

     

    After some time I observered that Jenkins CA RA configurations were disappeared.

     

    Again when I try to update the configuration I get the below Error

     

    NOTE: This Error comes only when I add CA RA plugin configurations.

     

    A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.

    Stack trace

    java.lang.UnsupportedOperationException: Refusing to marshal net.sf.json.JSONObject for security reasons; see https://jenkins.io/redirect/class-filter/
    at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:530)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
    at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
    Caused: java.lang.RuntimeException: Failed to serialize com.nolio.RAArtifactVersion#retrievalAgents for class com.nolio.RAArtifactVersion
    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
    at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
    at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
    at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
    at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
    at com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal(ArrayConverter.java:45)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
    at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
    Caused: java.lang.RuntimeException: Failed to serialize com.nolio.RunDeploymentPlan#artifactVersions for class com.nolio.RunDeploymentPlan
    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
    at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
    at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
    at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
    at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
    at hudson.util.DescribableList$ConverterImpl.marshal(DescribableList.java:269)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
    at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
    Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Project#publishers for class hudson.model.FreeStyleProject
    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
    at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
    at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
    at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
    at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
    at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
    at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
    at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
    at hudson.XmlFile.write(XmlFile.java:194)
    Caused: java.io.IOException
    at hudson.XmlFile.write(XmlFile.java:201)
    at hudson.model.AbstractItem.save(AbstractItem.java:483)
    at hudson.model.Job.save(Job.java:196)
    at hudson.model.AbstractProject.save(AbstractProject.java:289)
    at hudson.BulkChange.commit(BulkChange.java:98)
    at hudson.model.Job.doConfigSubmit(Job.java:1355)
    at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:772)
    at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
    at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
    at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
    at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
    at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
    at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
    at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
    at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
    at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
    at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
    at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:59)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:99)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)

     

    I observed the issues 5.0.8 version and 5.0.11 version aswell.

     

    Jenkins version 2.104

    Attachment(s)



  • 2.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?
    Best Answer

    Broadcom Employee
    Posted Feb 07, 2018 10:03 AM

    Hello,

     

    It would probably be better to open a support issue for this. Whether via the issue or here please provide:

    • Details of the Jenkins job that you have (i.e: which other plugins you might be using as a part of that job, the specific values for the RA Plugin portion of the post build, etc..)
    • Confirmation of exactly when you get this message. Are you trying to expand a field, save something, during job runtime, etc..
    • Version of CA Release Automation Plugin installed in Jenkins
    • Version of CA Release Automation
    • Version of Jenkins
    • Do you see any errors in the logs\nolio_dm_all.log on the management/nac server when this error occurs. 

     

    The end goal, here, is to get as much information as possible to get us to a point of reproducing it internally. If you can reproduce this by setting up a new Jenkins job then we'd basically want those exact steps used from beginning to end. 

     

    Kind regards,

    Gregg



  • 3.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Posted Feb 07, 2018 10:43 AM

    Gregg,

     

    I have created issue [JENKINS-49431] java.lang.RuntimeException: Failed to serialize com.nolio.RAArtifactVersion#retrievalAgents for class co… 

     

    Problem is before getting to RA so there is no information in RA log. If I include RA plugin option in jenkins and save then this error occurs.



  • 4.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Broadcom Employee
    Posted Feb 07, 2018 11:09 AM

    Hello Mohanraj,

     Can you please help me with configuration of Jenkins it is running on. You can get the same by going to http://jenkinshost:jenkinsport/configure

     

    I am interested to see the java it is pointing to. If you can share the screen shot of the configuration on case it will be great!

     

    Regards,

    Saurabh



  • 5.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Posted Feb 07, 2018 11:27 AM

    i have attached the screenshot of Java version.

     

    In putty it displays as below.
     java -version
    openjdk version "1.8.0_131"
    OpenJDK Runtime Environment (build 1.8.0_131-b11)
    OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)



  • 6.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Posted Feb 07, 2018 01:14 PM

    Reply from JENKINS TEAM :

    https://issues.jenkins-ci.org/browse/JENKINS-49431

     

    Permalink oleg_nenashev Oleg Nenashev added a comment - 39 minutes ago - edited Mohanraj v This CA Release Automation plugin is not under the Jenkins Governance && it is not open-source. Please raise a ticket to the vendor. JSONObject serialization is not a recommended behavior, we are not going to whitelist it on the Jenkins core side.



  • 7.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Broadcom Employee
    Posted Feb 08, 2018 02:10 AM

    Hi Mohanraj

     

            Thank you for bringing this up, we have tested the RA plugin with Latest Jenkins build and we could reproduce the error message. I will create a defect case and notify Core Engineering team for further analysis.

     

    Regards,

    Piyush



  • 8.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Posted Feb 08, 2018 08:06 AM

    Thank you Piyush,

     

    Please let me know the defect ID so that I can check the status in future.

     

    Regards

    Mohanraj 



  • 9.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Broadcom Employee
    Posted Feb 28, 2018 09:25 AM

    Hi Mohanraj 

     

    I marked the response from Gregg as the correct one , there was a case created for this and the engineer is working 

    with the engineering team to get this fixed.

     

    When there is a fix released i will let the community know by adding it to this thread 

     

    regards 

    Dirk 



  • 10.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Posted Aug 13, 2018 06:14 AM

    Hi DirkBleyenberg

     

    Is the fix for this issue available yet?

     

    Thanks & regards

     

    -mark



  • 11.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Broadcom Employee
    Posted Aug 13, 2018 06:27 AM

    Hi Mark,

     The new jenkins plugin contains the fix related to above.

     

    Regards,

    Saurabh



  • 12.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Posted Aug 13, 2018 06:36 AM

    Thanks Saurabh,

     

    We have v5.11 of the plugin installed on our Jenkins at present.

     

    The latest version of the Jenkins plugin is v6.5.0 would require us to upgrade to v6.5.0 of CARA.  We currently use v6.3.0.  We would need to do a lot of testing before upgrading to v6.5.0

     

    Is there a fixed version of the plugin which will work with v6.3.0 ?

     

    Thanks & regards

     

    -mark



  • 13.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Broadcom Employee
    Posted Aug 13, 2018 06:31 AM

    Hi Mark,

     I have uploaded the same to this thread attachment sections.

    File Name: DeploymentPlan_Automation_Plugin.hp

     

    You can download and validate the same.

     

    Regards,

    Saurabh



  • 14.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Broadcom Employee
    Posted Aug 13, 2018 06:44 AM

    Hi Mark,

     It looks you may need to upgrade to 6.5. However, for time being some options not sure if you tried.

     

    • Issue reported on Jenkins 2.107.1 with Plugin version 5.0.8 and looks like with upgrade to Jenkins to version 2.107.3 the plugin issue is resolved. (So looks like the version of Jenkins helped)
    • The interim workaround on Jenkins community : https://jenkins.io/blog/2018/01/13/jep-200/

     

    Let me check on your query if this can be applied or can be used with 6.3 RA and get back to you.

     

    Regards,

    Saurabh



  • 15.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Posted Aug 13, 2018 09:48 PM

    Hi Saurabh,

     

    A colleague obtained the 5.12 version of the plugin from your support team, this has resolved our issue.

     

    Thanks & regards.

     

    -mark



  • 16.  Re: Jenkins UnsupportedOperationException when we use CARA Plugin?

    Broadcom Employee
    Posted Aug 14, 2018 03:55 AM

    Thanks Mark for sharing update!! Glad to know that 5.12 of plugin contains fixed and resolved your issue.

     

    Regards,

    Saurabh