Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65092

AZ - Migration -- Getting: -- Refusing to marshal withPomEnv for security reasons

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Stack Trace:

      -----------------

      hudson.remoting.ProxyException: java.lang.UnsupportedOperationException: Refusing to marshal withPomEnv for security reasons; see https://jenkins.io/redirect/class-filter/
              at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:541)
              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.MapConverter.marshal(MapConverter.java:79)
              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:272)
              at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:259)
      Caused: hudson.remoting.ProxyException: java.lang.RuntimeException: Failed to serialize groovy.lang.Binding#variables for class org.boozallen.plugins.jte.init.primitives.TemplateBinding
              at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:263)
              at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:231)
              at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
              at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:217)
              at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:158)
              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:272)
              at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:259)
      Caused: hudson.remoting.ProxyException: java.lang.RuntimeException: Failed to serialize org.boozallen.plugins.jte.init.PipelineDecorator#binding for class

        Attachments

          Activity

          Hide
          sterrana Steven Terrana added a comment -

          What version of JTE are you on?  There was a regression that we're hoping was fixed in 2.0.3. 

          Changelog: https://github.com/jenkinsci/templating-engine-plugin/releases/tag/2.0.3

          Show
          sterrana Steven Terrana added a comment - What version of JTE are you on?  There was a regression that we're hoping was fixed in 2.0.3.  Changelog:  https://github.com/jenkinsci/templating-engine-plugin/releases/tag/2.0.3
          Hide
          cs3768 Chuck added a comment -

          Steven – 

          It's actually a homegrown function that we're getting the error for in this case.  We did upgrade to 2.0.4 last week, but this did not resolve the issue.

          I believe that we've been able to work around the problem by calling the native methods within the homegrown function, so I think this ticket can be closed now.

          Thanks,

          --ccs

          Show
          cs3768 Chuck added a comment - Steven –  It's actually a homegrown function that we're getting the error for in this case.  We did upgrade to 2.0.4 last week, but this did not resolve the issue. I believe that we've been able to work around the problem by calling the native methods within the homegrown function, so I think this ticket can be closed now. Thanks, --ccs

            People

            Assignee:
            sterrana Steven Terrana
            Reporter:
            cs3768 Chuck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: