I have successfully setup the Job Import Plugin and able to have connectivity and also to list all the jobs from my Origin Jenkins instance. However when I try to import the jobs I get the below error:
java.io.IOException: Expecting class com.cloudbees.hudson.plugins.folder.Folder but got class org.jenkinsci.plugins.workflow.job.WorkflowJob instead May 08 12:01:14 jenkins[901781]: at hudson.model.AbstractItem.updateByXml(AbstractItem.java:900) May 08 12:01:14 jenkins[901781]: at org.jenkins.ci.plugins.jobimport.JobImportAction.doImportInternal(JobImportAction.java:218) May 08 12:01:14 jenkins[901781]: at org.jenkins.ci.plugins.jobimport.JobImportAction.doImportInternal(JobImportAction.java:251) May 08 12:01:14 jenkins[901781]: at org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:138) May 08 12:01:14 jenkins[901781]: at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:409) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:207) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:140) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:558) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:475) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:770) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Stapler.invoke(Stapler.java:900) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Stapler.invoke(Stapler.java:698) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.Stapler.service(Stapler.java:248) May 08 12:01:14 jenkins[901781]: at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:157) May 08 12:01:14 jenkins[901781]: at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) May 08 12:01:14 jenkins[901781]: at org.jenkinsci.plugins.corsfilter.AccessControlsFilter.doFilter(AccessControlsFilter.java:79) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) May 08 12:01:14 jenkins[901781]: at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:81) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) May 08 12:01:14 jenkins[901781]: at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:129) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) May 08 12:01:14 jenkins[901781]: at com.atlassian.bitbucket.jenkins.internal.applink.oauth.serviceprovider.auth.OAuth1aRequestFilter.doFilter(OAuth1aRequestFilter.java:91) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) May 08 12:01:14 jenkins[901781]: at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) May 08 12:01:14 jenkins[901781]: at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:60) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) May 08 12:01:14 jenkins[901781]: at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239) May 08 12:01:14 jenkins[901781]: at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215) May 08 12:01:14 jenkins[901781]: at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88) May 08 12:01:14 jenkins[901781]: at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:121) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) May 08 12:01:14 jenkins[901781]: at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) May 08 12:01:14 jenkins[901781]: at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:160) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) May 08 12:01:14 jenkins[901781]: at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:154) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:94) May 08 12:01:14 jenkins[901781]: at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) May 08 12:01:14 jenkins[901781]: at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:54) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) May 08 12:01:14 jenkins[901781]: at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126) May 08 12:01:14 jenkins[901781]: at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) May 08 12:01:14 jenkins[901781]: at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) May 08 12:01:14 jenkins[901781]: at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:110) May 08 12:01:14 jenkins[901781]: at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) May 08 12:01:14 jenkins[901781]: at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227) May 08 12:01:14 jenkins[901781]: at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) May 08 12:01:14 jenkins[901781]: at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:97) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) May 08 12:01:14 jenkins[901781]: at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:117) May 08 12:01:14 jenkins[901781]: at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) May 08 12:01:14 jenkins[901781]: at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:63) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99) May 08 12:01:14 jenkins[901781]: at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:111) May 08 12:01:14 jenkins[901781]: at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:172) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:53) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) May 08 12:01:14 jenkins[901781]: at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:86) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) May 08 12:01:14 jenkins[901781]: at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) May 08 12:01:14 jenkins[901781]: at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:38) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:549) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1383) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1305) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.Server.handle(Server.java:563) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:416) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:385) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:272) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:140) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934) May 08 12:01:14 jenkins[901781]: at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1078) May 08 12:01:14 jenkins[901781]: at java.base/java.lang.Thread.run(Thread.java:829