[JIRA] (JENKINS-59724) no known implementation of class java.lang.String is named Target

6 views
Skip to first unread message

denis.bel@gmail.com (JIRA)

unread,
Oct 10, 2019, 5:48:03 AM10/10/19
to jenkinsc...@googlegroups.com
Denis Bel created an issue
 
Jenkins / Bug JENKINS-59724
no known implementation of class java.lang.String is named Target
Issue Type: Bug Bug
Assignee: Aleksi Simell
Components: influxdb-plugin
Created: 2019-10-10 09:46
Environment: Jenkins ver. 2.190.1
Plugin version: 2.0.1
Priority: Minor Minor
Reporter: Denis Bel

Jenkins log contains a lot of such warnings with password as a plain text:

2019-10-10 08:24:15.380+0000 [id=40232]	WARNING	o.j.p.s.d.DescribableModel#uninstantiate2: Cannot create control version of class org.jenkinsci.plugins.workflow.steps.CoreStep using {delegate=$InfluxDbPublisher(customData={version=null, endpoint=null, scmrevision=c2cb16},customDataMap=null,customDataMapTags=null,customDataTags=null,customPrefix=null,customProjectName=null,jenkinsEnvParameterField=null,jenkinsEnvParameterTag=null,measurementName=null,replaceDashWithUnderscore=false,selectedTarget=Preprod InfluxDB,target=$Target(database=grafana,description=Preprod InfluxDB,exposeExceptions=false,globalListener=true,globalListenerFilter=,jobScheduledTimeAsPointsTimestamp=false,password=***,retentionPolicy=autogen,url=https://influxdb-ci.***.com,username=jenkins,usingJenkinsProxy=false))}
java.lang.UnsupportedOperationException: no known implementation of class java.lang.String is named Target
	at org.jenkinsci.plugins.structs.describable.DescribableModel.resolveClass(DescribableModel.java:549)
	at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:207)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:466)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:409)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:329)
Caused: java.lang.IllegalArgumentException: Could not instantiate {customData={version=null, endpoint=null, scmrevision=c2cb16}, customDataMap=null, customDataMapTags=null, customDataTags=null, customPrefix=null, customProjectName=null, jenkinsEnvParameterField=null, jenkinsEnvParameterTag=null, measurementName=null, replaceDashWithUnderscore=false, selectedTarget=Preprod InfluxDB, target=$Target(database=grafana,description=Preprod InfluxDB,exposeExceptions=false,globalListener=true,globalListenerFilter=,jobScheduledTimeAsPointsTimestamp=false,password=***,retentionPolicy=autogen,url=https://influxdb-ci.***.com,username=jenkins,usingJenkinsProxy=false)} for jenkinsci.plugins.influxdb.InfluxDbPublisher
	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:334)
	at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:208)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:466)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:409)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:329)
Caused: java.lang.IllegalArgumentException: Could not instantiate {delegate=$InfluxDbPublisher(customData={version=null, endpoint=null, scmrevision=c2cb16},customDataMap=null,customDataMapTags=null,customDataTags=null,customPrefix=null,customProjectName=null,jenkinsEnvParameterField=null,jenkinsEnvParameterTag=null,measurementName=null,replaceDashWithUnderscore=false,selectedTarget=Preprod InfluxDB,target=$Target(database=grafana,description=Preprod InfluxDB,exposeExceptions=false,globalListener=true,globalListenerFilter=,jobScheduledTimeAsPointsTimestamp=false,password=***,retentionPolicy=autogen,url=https://influxdb-ci.***.com,username=jenkins,usingJenkinsProxy=false))} for org.jenkinsci.plugins.workflow.steps.CoreStep
	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:334)
	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate2(DescribableModel.java:672)
	at org.jenkinsci.plugins.workflow.actions.ArgumentsAction.resolve(ArgumentsAction.java:308)
	at org.jenkinsci.plugins.workflow.actions.ArgumentsAction.getResolvedArguments(ArgumentsAction.java:295)
	at org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode.getDelegateType(StepAtomNode.java:134)
	at org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode.effectiveDisplayName(StepAtomNode.java:90)
	at org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode.getTypeDisplayName(StepAtomNode.java:102)
	at org.jenkinsci.plugins.workflow.graph.FlowNode.getDisplayName(FlowNode.java:257)
	at com.cloudbees.workflow.rest.external.FlowNodeExt.addBasicNodeData(FlowNodeExt.java:206)
	at com.cloudbees.workflow.rest.external.AtomFlowNodeExt.create(AtomFlowNodeExt.java:71)
	at com.cloudbees.workflow.rest.external.ChunkVisitor.makeAtomNode(ChunkVisitor.java:68)
	at com.cloudbees.workflow.rest.external.ChunkVisitor.atomNode(ChunkVisitor.java:154)
	at org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner.fireVisitChunkCallbacks(ForkScanner.java:751)
	at org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner.visitSimpleChunks(ForkScanner.java:769)
	at org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner.visitSimpleChunks(ForkScanner.java:633)
	at com.cloudbees.workflow.rest.external.RunExt.createNew(RunExt.java:322)
	at com.cloudbees.workflow.rest.external.RunExt.create(RunExt.java:310)
	at com.cloudbees.workflow.rest.external.JobExt.create(JobExt.java:131)
	at com.cloudbees.workflow.rest.endpoints.JobAPI.doRuns(JobAPI.java:69)
	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
	at com.cloudbees.workflow.util.ServeJson$Processor.invoke(ServeJson.java:30)
	at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
	at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
	at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:456)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)
	at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:246)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:61)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)
	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)
	at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)
	at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:114)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at hudson.plugins.locale.LocaleFilter.doFilter(LocaleFilter.java:42)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:92)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:105)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	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.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1700)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1667)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
	at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:56)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:505)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)
	at java.lang.Thread.run(Thread.java:748)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

aleksi.simell@eficode.com (JIRA)

unread,
Oct 10, 2019, 5:58:04 AM10/10/19
to jenkinsc...@googlegroups.com
Aleksi Simell commented on Bug JENKINS-59724
 
Re: no known implementation of class java.lang.String is named Target

Are you trying to
a) write stuff to InfluxDB
b) create a new target?

In both cases, how are you trying to do that? Did your job work previously and broke when you updated the plugin? And from which version did you update?

As described in https://wiki.jenkins.io/display/JENKINS/InfluxDB+Plugin, after version 2.0 you need to make the password a hudson.util.Secret instead of String.

denis.bel@gmail.com (JIRA)

unread,
Oct 10, 2019, 6:37:03 AM10/10/19
to jenkinsc...@googlegroups.com
Denis Bel updated an issue
 
Change By: Denis Bel
Attachment: image-2019-10-10-13-36-10-271.png

denis.bel@gmail.com (JIRA)

unread,
Oct 10, 2019, 6:39:02 AM10/10/19
to jenkinsc...@googlegroups.com
Denis Bel commented on Bug JENKINS-59724
 
Re: no known implementation of class java.lang.String is named Target

Hello, Aleksi Simell

Thanks for quick answer

Yes, seems it was broken since upgrade from 1.X to 2.X
a)

...
influxDbPublisher(selectedTarget: 'Preprod InfluxDB', customData: influxDbCustomData)
...

b) I created a new target via /configure UI

 

aleksi.simell@eficode.com (JIRA)

unread,
Oct 15, 2019, 6:21:03 AM10/15/19
to jenkinsc...@googlegroups.com

I'm not able to reproduce this. Was your previous version <1.22? As mentioned in the Release notes, the plugin previously stored passwords in plain text and this was fixed in 1.22. In version 2.0 I made a major architectural change to the plugin to allow better support for pipelines and that might've caused an issue with your previous target setup.

Can you try just simply reconfiguring your target?

denis.bel@gmail.com (JIRA)

unread,
Oct 15, 2019, 6:32:03 AM10/15/19
to jenkinsc...@googlegroups.com

Yes, sure, I will do it and come back to here with results.

denis.bel@gmail.com (JIRA)

unread,
Oct 15, 2019, 10:03:02 AM10/15/19
to jenkinsc...@googlegroups.com

Hey Aleksi Simell,

I upgraded from 1.23 to 2.0.1 on September, 7 (did not re-create publisher, just re-applied config for InfluxDB)

  • on September, 9 I recreated config for InfluxDB plugin and also restarted Jenkins to upgrade other plugins
  • on October, 15 (today) I re-created config for InfluxDB one more time

After publisher recreation and re-enabling plugin I can see some data in InfluxDB - no new warnings so far, so it looks good!
However I discovered two files related to plugin in JENKINS_HOME:

-rw-r--r-- 1 jenkins jenkins 986 Oct 15 12:53 /var/lib/jenkins/jenkinsci.plugins.influxdb.InfluxDbGlobalConfig.xml
<jenkinsci.plugins.influxdb.InfluxDbGlobalConfig plugin="infl...@2.0.1">

-rw-r--r-- 1 jenkins jenkins 903 Sep 9  14:29 /var/lib/jenkins/jenkinsci.plugins.influxdb.InfluxDbPublisher.xml
<jenkinsci.plugins.influxdb.DescriptorImpl plugin="infl...@1.23">

 

Can the presence of `jenkinsci.plugins.influxdb.InfluxDbPublisher.xml` cause this issue?

Should I delete the old config file?

 

Thanks,

Denis

aleksi.simell@eficode.com (JIRA)

unread,
Oct 18, 2019, 1:16:02 AM10/18/19
to jenkinsc...@googlegroups.com

Denis Bel The plugin uses only InfluxDbGlobalConfig as of version 2.0. Deleting the other file should be safe, but it shouldn't matter if it is there. If you delete it, you cannot rollback to an older version of the plugin. I would suggest taking a copy of that in case you want to delete it.

If I understood correctly, you're not getting the error anymore and the issue is resolved?

denis.bel@gmail.com (JIRA)

unread,
Oct 18, 2019, 8:17:02 AM10/18/19
to jenkinsc...@googlegroups.com
Denis Bel updated an issue
Change By: Denis Bel
Attachment: image-2019-10-18-15-16-12-400.png

denis.bel@gmail.com (JIRA)

unread,
Oct 18, 2019, 8:19:02 AM10/18/19
to jenkinsc...@googlegroups.com

denis.bel@gmail.com (JIRA)

unread,
Oct 18, 2019, 8:22:02 AM10/18/19
to jenkinsc...@googlegroups.com
Denis Bel commented on Bug JENKINS-59724
 
Re: no known implementation of class java.lang.String is named Target

Aleksi Simell Sure, thanks for the notice, I have a backup for both files.

 

Unfortunately I am still getting those errors.


WARNING o.j.p.s.d.DescribableModel#uninstantiate2: Cannot create control version of class org.jenkinsci.plugins.workflow.steps.CoreStep using {delegate=$InfluxDbPublisher
 

During digging into logs and using saved scmrevision in custom data, I found affected builds and some weird things..

Two examples:
1. Warning appeared today:

 

2019-10-18 09:51:53.876+0000 [id=199445]    WARNING    hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from java.lang.String.valueOf(String.java:2994). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://jenkins.io/redirect/hudson.util.Secret/
2019-10-18 09:51:53.877+0000 [id=199445]   WARNING    hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from java.lang.String.valueOf(String.java:2994). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://jenkins.io/redirect/hudson.util.Secret/
2019-10-18 09:51:53.877+0000 [id=199445]   WARNING    hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from java.lang.String.valueOf(String.java:2994). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://jenkins.io/redirect/hudson.util.Secret/
2019-10-18 09:51:53.877+0000 [id=199445] WARNING
o.j.p.s.d.DescribableModel#uninstantiate2: Cannot create control version of class
org.jenkinsci.plugins.workflow.steps.CoreStep using {delegate=$InfluxDbPublisher(customData={version=null, endpoint=null, scmrevision=5c5626}

but job with this scmrevision was actually executed in May

***/adhoc-db-create-dump/builds/24/log:[2019-05-31T12:35:38.878Z] [InfluxDB Plugin] customData: [version:null, endpoint:null, scmrevision:5c5626]

 

2. At the same time today (according timestamps) appeared another warning:

2019-10-18 09:51:53.830+0000 [id=199445] WARNING
o.j.p.s.d.DescribableModel#uninstantiate2: Cannot create control version of class
org.jenkinsci.plugins.workflow.steps.CoreStep using {delegate=$InfluxDbPublisher(customData={version=null, endpoint=null, scmrevision=aa7495}

Job was executed in July

***/adhoc-db-download/builds/69/log:[2019-07-25T14:27:05.908Z] [InfluxDB Plugin] customData: [version:null, endpoint:null, scmrevision:aa7495]
***/adhoc-db-download/builds/68/log:[2019-07-25T11:22:18.183Z] [InfluxDB Plugin] customData: [version:null, endpoint:null, scmrevision:aa7495]

Any Ideas what is happening?

 

denis.bel@gmail.com (JIRA)

unread,
Oct 18, 2019, 8:29:03 AM10/18/19
to jenkinsc...@googlegroups.com
Denis Bel edited a comment on Bug JENKINS-59724
[~aleksisimell] Sure, thanks for the notice, I have a backup for both files.


 

Unfortunately I am still getting those errors.
WARNING o.j.p.s.d.DescribableModel#uninstantiate2: Cannot create control version of class org.jenkinsci.plugins.workflow.steps.CoreStep using {delegate=$InfluxDbPublisher
 

During digging into logs and using saved scmrevision in custom data, I found affected builds and some weird things..
Two examples:
1. Warning appeared today:

 
{code:java}

2019-10-18 09:51:53.876+0000 [id=199445]    WARNING    hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from java.lang.String.valueOf(String.java:2994). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://jenkins.io/redirect/hudson.util.Secret/
2019-10-18 09:51:53.877+0000 [id=199445]   WARNING    hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from java.lang.String.valueOf(String.java:2994). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://jenkins.io/redirect/hudson.util.Secret/
2019-10-18 09:51:53.877+0000 [id=199445]   WARNING    hudson.util.Secret#toString: Use of toString() on hudson.util.Secret from java.lang.String.valueOf(String.java:2994). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://jenkins.io/redirect/hudson.util.Secret/
2019-10-18 09:51:53.877+0000 [id=199445] WARNING
o.j.p.s.d.DescribableModel#uninstantiate2: Cannot create control version of class
org.jenkinsci.plugins.workflow.steps.CoreStep using {delegate=$InfluxDbPublisher(customData={version=null, endpoint=null, scmrevision=5c5626}
{code}

but job with this scmrevision was actually executed in May
{code:java}
***/adhoc-db-create-dump/builds/24/log:[2019-05-31T12:35:38.878Z] [InfluxDB Plugin] customData: [version:null, endpoint:null, scmrevision:5c5626]{code}
 


2. At the same time today (according timestamps) appeared another warning:
{code:java}

2019-10-18 09:51:53.830+0000 [id=199445] WARNING
o.j.p.s.d.DescribableModel#uninstantiate2: Cannot create control version of class
org.jenkinsci.plugins.workflow.steps.CoreStep using {delegate=$InfluxDbPublisher(customData={version=null, endpoint=null, scmrevision=aa7495}
{code}

Job was executed in July
{code:java}

***/adhoc-db-download/builds/69/log:[2019-07-25T14:27:05.908Z] [InfluxDB Plugin] customData: [version:null, endpoint:null, scmrevision:aa7495]
***/adhoc-db-download/builds/68/log:[2019-07-25T11:22:18.183Z] [InfluxDB Plugin] customData: [version:null, endpoint:null, scmrevision:aa7495]
{code}
That job has no executions since August

Any Ideas what is happening?

 

denis.bel@gmail.com (JIRA)

unread,
Oct 18, 2019, 9:32:03 AM10/18/19
to jenkinsc...@googlegroups.com

Aleksi Simell

Seems this issue might be related to workflow plugin

I found this in jobs/adhoc-db-create-dump/builds/24/workflow/66.xml

<?xml version='1.1' encoding='UTF-8'?>
<Tag plugin="workflow-support@3.3">
  <node class="cps.n.StepAtomNode" plugin="workfl...@2.68">
    <parentIds>
      <string>65</string>
    </parentIds>
    <id>66</id>
    <descriptorId>org.jenkinsci.plugins.workflow.steps.CoreStep</descriptorId>
  </node>
  <actions>
    <cps.a.ArgumentsActionImpl plugin="workfl...@2.68">
      <arguments>
        <entry>
          <string>delegate</string>
          <linked-hash-map>
            <entry>
              <string>$class&lt;/string>
              <string>InfluxDbPublisher</string>
            </entry>
            <entry>
              <string>customData</string>
              <linked-hash-map>
                <entry>
                  <string>version</string>
                  <null/>
                </entry>
                <entry>
                  <string>endpoint</string>
                  <null/>
                </entry>
                <entry>
                  <string>scmrevision</string>
                  <string>5c5626</string>
                </entry>
              </linked-hash-map>
            </entry>
            <entry>
              <string>customDataMap</string>
              <null/>
            </entry>
            <entry>
              <string>customPrefix</string>
              <null/>
            </entry>
            <entry>
              <string>target</string>
              <string>Preprod InfluxDB</string>
            </entry>
          </linked-hash-map>
        </entry>
      </arguments>

 

 

denis.bel@gmail.com (JIRA)

unread,
Oct 18, 2019, 9:48:01 AM10/18/19
to jenkinsc...@googlegroups.com
Denis Bel updated an issue
Change By: Denis Bel
Attachment: image-2019-10-18-16-47-00-919.png

denis.bel@gmail.com (JIRA)

unread,
Oct 18, 2019, 9:49:02 AM10/18/19
to jenkinsc...@googlegroups.com
 
Re: no known implementation of class java.lang.String is named Target

Aleksi Simell

So finally  I found a way to reproduce:

  • open a build which contains InfluxDB step with `target` instead of `selectedTarget`
  • press `Pipeline Steps` link:

Warning will appear in log immediately

denis.bel@gmail.com (JIRA)

unread,
Oct 18, 2019, 10:01:02 AM10/18/19
to jenkinsc...@googlegroups.com
Denis Bel edited a comment on Bug JENKINS-59724
[~aleksisimell]


So finally  I found a way to reproduce:
* open a build which contains InfluxDB step with `target` instead of `selectedTarget`
* press `Pipeline Steps` link:
* !image-2019-10-18-16-47-00-919.png|width=311,height=694!


Warning will appear in log immediately


BlueOcean view also triggers it

aleksi.simell@eficode.com (JIRA)

unread,
Oct 21, 2019, 2:30:03 AM10/21/19
to jenkinsc...@googlegroups.com

open a build which contains InfluxDB step with `target` instead of `selectedTarget`

The documentation says:
From version 2.0 onwards "selectedTarget" is a mandatory parameter for pipelines and "target" parameter is no longer supported.

Is this error fixed when you change the build to use "selectedTarget" instead? I managed to reproduce this when using a job with "target", but it disappeared when I changed it to "selectedTarget".

denis.bel@gmail.com (JIRA)

unread,
Oct 21, 2019, 4:34:06 AM10/21/19
to jenkinsc...@googlegroups.com

Aleksi Simell No, It still persists in workflow folder (like  jobs/adhoc-db-create-dump/builds/24/workflow/66.xml) in old builds even after upgrade to 2.0
New builds obviously don't contain "target" and as result don't cause any issues.

> I managed to reproduce this when using a job with "target", but it disappeared when I changed it to "selectedTarget".

Does it work for all builds of job? In my case, nothing changed for old builds in workflow folder.

denis.bel@gmail.com (JIRA)

unread,
Oct 21, 2019, 4:40:02 AM10/21/19
to jenkinsc...@googlegroups.com

> but it disappeared when I changed it to "selectedTarget".
Should I manually find & replace "target" to "selectedTarget" in all affected workflow/*.xml?

aleksi.simell@eficode.com (JIRA)

unread,
Oct 21, 2019, 9:47:03 AM10/21/19
to jenkinsc...@googlegroups.com

I'm not sure I understand what you mean by "does it work for all builds", but I could only reproduce this with having a pipeline job with "target" instead of "selectedTarget". After the change the logs still showed that error, but after a Jenkins restart the error is not showing, unless I change my pipeline back to "target" (which, as I have mentioned, is not supported anymore and would therefore be silly to do).

I have not touched my xml files in the slightest.

But on a further note, I did notice another bug due to this, which is now fixed related to this pull request for this issue.

aleksi.simell@eficode.com (JIRA)

unread,
Oct 21, 2019, 9:48:03 AM10/21/19
to jenkinsc...@googlegroups.com
Aleksi Simell edited a comment on Bug JENKINS-59724
I'm not sure I understand what you mean by "does it work for all builds", but I could only reproduce this with having a pipeline job with "target" instead of "selectedTarget". After the change the logs still showed that error, but after a Jenkins restart the error is not showing, unless I change my pipeline back to "target" (which, as I have mentioned, is not supported anymore and would therefore be silly to do).

I have not touched my xml files in the slightest.

But on a further note, I did notice another bug due to this , which is now fixed related (very similar to [this pull request|https://github.com/jenkinsci/kubernetes-plugin/pull/486] for [this issue|https://issues.jenkins-ci.org/browse/JENKINS-57827] ) . That's fixed now.

denis.bel@gmail.com (JIRA)

unread,
Oct 28, 2019, 8:20:03 AM10/28/19
to jenkinsc...@googlegroups.com

Hello Aleksi Simell,

Finally I found a way to remove those stack traces from logs. I just renamed current InfluxDB target in global configuration.

Thanks,
Denis

aleksi.simell@eficode.com (JIRA)

unread,
Oct 28, 2019, 8:22:02 AM10/28/19
to jenkinsc...@googlegroups.com
Aleksi Simell closed an issue as Not A Defect
 
Change By: Aleksi Simell
Status: Open Closed
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages