Re: Unittest xml file not valid

2022-12-07 Thread Ullrich Hafner
The best way would be to clone the xunit plugin and feed your file as a new 
test case. Then you can directly see what is broken.

> Am 07.12.2022 um 06:50 schrieb Fabian Cenedese :
> 
> Hello
> 
> I'm using pytest for testing and have it generate a unittest
> xml file that can be read by Jenkins. This has worked fine
> for other jobs but now I have a new job where Jenkins doesn't
> like the file:
> 
> 01:12:52  org.jenkinsci.plugins.xunit.service.TransformerException: The 
> result file 
> 'C:\Jenkins\workspace\applicationtest\applicationtest\unittest.xml' for the 
> metric 'CppUnit' is not valid. The result file has been skipped.
> 
> However the file exists and XmlLint doesn't see a problem with it.
> No un-escaped special chars or < > etc. There's a 
> tag and it just looks like other files from other jobs that work.
> 
>  errors="0" failures="31" skipped="0" tests="37" time="342.813" 
> timestamp="2022-12-07T01:07:09.246626" hostname="TestHost7"> classname="tests.test_explorer.TestClass" name="test_Exp_Invisible" 
> time="85.074"> />
> 
> Is there a way to see what exactly it is that Jenkins doesn't like
> about this file?
> 
> Thanks
> 
> bye  Fabi
> 
> -- 
> 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/770c9b9f82cede0ddb2e83a818ba0f09%40indel.ch.

-- 
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/925EE961-3E29-43FA-85EF-F15E7B013D74%40gmail.com.


Re: Unittest xml file not valid

2022-12-07 Thread Fabian Cenedese
At 13:16 07.12.2022, Ullrich Hafner wrote:

>The best way would be to clone the xunit plugin and feed your file as a new 
>test case. Then you can directly see what is broken.

I found that pytest generates a JUnit format file. With JUnit as parser
insteap of CppUnit it works. So it was a user error, sorry for that.

Thanks for helping.

bye  Fabi

-- 
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/5a7afe81055c313ce9cf7aeb457128cb%40indel.ch.


Re: Unittest xml file not valid

2022-12-07 Thread Ullrich Hafner
Ok, good to see. Then you might not need the xunit plugin at all, since the 
JUnit plugin supports this XML format out-of-the-box.


> Am 07.12.2022 um 16:13 schrieb Fabian Cenedese :
> 
> At 13:16 07.12.2022, Ullrich Hafner wrote:
> 
>> The best way would be to clone the xunit plugin and feed your file as a new 
>> test case. Then you can directly see what is broken.
> 
> I found that pytest generates a JUnit format file. With JUnit as parser
> insteap of CppUnit it works. So it was a user error, sorry for that.
> 
> Thanks for helping.
> 
> bye  Fabi
> 
> -- 
> 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/5a7afe81055c313ce9cf7aeb457128cb%40indel.ch.

-- 
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/24D78DE3-A8C2-4057-A49A-DBA64FA5D259%40gmail.com.


Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
I'm attempting to update from 2.263.1 to 2.375.1 (huge gap I know), and I'm 
getting this on the Jenkins page. It just shows 2 Jenkins butler pics, a 
large black circle, and a large blue circle with a question mark in the 
middle.

I've even renamed my $JENKINS_HOME/plugins and $JENKINS_HOME/plugins.txt 
files in case there are incompatible plugins which I expect from a huge 
version gap.

Any clues?

java.lang.NoClassDefFoundError: 
org/jruby/javasupport/proxy/InternalJavaProxyat 
org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
   at 
com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
 
   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:1266)at 
com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)at 
com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)at 
hudson.XmlFile.write(XmlFile.java:213)at 
jenkins.model.Jenkins.save(Jenkins.java:3547)at 
jenkins.model.Jenkins.(Jenkins.java:1007)at 
hudson.model.Hudson.(Hudson.java:86)at 
hudson.model.Hudson.(Hudson.java:82)at 
hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: 
hudson.util.HudsonFailedToLoadat 
hudson.WebAppMain$3.run(WebAppMain.java:261) 

Thanks,
Chris

-- 
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/6514a893-549a-49f5-8228-eaf91fbdce0bn%40googlegroups.com.


Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
Also I see this in the logs, and looking for info on 
Jenkins.getInstanceOrNull provides nothing.

2022-12-07 20:24:26.772+ [id=190]WARNING   
 o.e.jetty.server.HttpChannel#handleException: /login

java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.

   at jenkins.model.Jenkins.get(Jenkins.java:813)

   at 
org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)

   at 
hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(GlobalMatrixAuthorizationStrategy.java:133)

   at hudson.security.SidACL._hasPermission(SidACL.java:73)

   at hudson.security.SidACL.hasPermission2(SidACL.java:54)

   at hudson.security.ACL.checkPermission(ACL.java:76)

On Wednesday, December 7, 2022 at 3:23:21 PM UTC-5 zil...@gmail.com wrote:

> I'm attempting to update from 2.263.1 to 2.375.1 (huge gap I know), and 
> I'm getting this on the Jenkins page. It just shows 2 Jenkins butler pics, 
> a large black circle, and a large blue circle with a question mark in the 
> middle.
>
> I've even renamed my $JENKINS_HOME/plugins and $JENKINS_HOME/plugins.txt 
> files in case there are incompatible plugins which I expect from a huge 
> version gap.
>
> Any clues?
>
> java.lang.NoClassDefFoundError: 
> org/jruby/javasupport/proxy/InternalJavaProxyat 
> org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
> hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
>at 
> com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
>  
>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:1266)at 
> com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)at 
> com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)at 
> hudson.XmlFile.write(XmlFile.java:213)at 
> jenkins.model.Jenkins.save(Jenkins.java:3547)at 
> jenkins.model.Jenkins.(Jenkins.java:1007)at 
> hudson.model.Hudson.(Hudson.java:86)at 
> hudson.model.Hudson.(Hudson.java:82)at 
> hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: 
> hudson.util.HudsonFailedToLoadat 
> hudson.WebAppMain$3.run(WebAppMain.java:261) 
>
> Thanks,
> Chris
>

-- 
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/e0c41d32-638a-4c52-ad0a-7736616c2e24n%40googlegroups.com.


Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
I have

$ java -version

openjdk version "1.8.0_342"

OpenJDK Runtime Environment (build 1.8.0_342-b07)

OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)

On Wednesday, December 7, 2022 at 3:26:06 PM UTC-5 zil...@gmail.com wrote:

> Also I see this in the logs, and looking for info on 
> Jenkins.getInstanceOrNull provides nothing.
>
> 2022-12-07 20:24:26.772+ [id=190]WARNING   
>  o.e.jetty.server.HttpChannel#handleException: /login
>
> java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
> documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
>
>at jenkins.model.Jenkins.get(Jenkins.java:813)
>
>at 
> org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)
>
>at 
> hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(GlobalMatrixAuthorizationStrategy.java:133)
>
>at hudson.security.SidACL._hasPermission(SidACL.java:73)
>
>at hudson.security.SidACL.hasPermission2(SidACL.java:54)
>
>at hudson.security.ACL.checkPermission(ACL.java:76)
>
> On Wednesday, December 7, 2022 at 3:23:21 PM UTC-5 zil...@gmail.com wrote:
>
>> I'm attempting to update from 2.263.1 to 2.375.1 (huge gap I know), and 
>> I'm getting this on the Jenkins page. It just shows 2 Jenkins butler pics, 
>> a large black circle, and a large blue circle with a question mark in the 
>> middle.
>>
>> I've even renamed my $JENKINS_HOME/plugins and $JENKINS_HOME/plugins.txt 
>> files in case there are incompatible plugins which I expect from a huge 
>> version gap.
>>
>> Any clues?
>>
>> java.lang.NoClassDefFoundError: 
>> org/jruby/javasupport/proxy/InternalJavaProxyat 
>> org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
>> hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
>>at 
>> com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
>>  
>>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:1266)at 
>> com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)at 
>> com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)at 
>> hudson.XmlFile.write(XmlFile.java:213)at 
>> jenkins.model.Jenkins.save(Jenkins.java:3547)at 
>> jenkins.model.Jenkins.(Jenkins.java:1007)at 
>> hudson.model.Hudson.(Hudson.java:86)at 
>> hudson.model.Hudson.(Hudson.java:82)at 
>> hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: 
>> hudson.util.HudsonFailedToLoadat 
>> hudson.WebAppMain$3.run(WebAppMain.java:261) 
>>
>> Thanks,
>> Chris
>>
>

-- 
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/8957ba57-92fd-4302-a6ed-1d02db4efee8n%40googlegroups.com.


Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
I updated Java to no avail

$ java -version

openjdk version "11.0.16" 2022-07-19 LTS

OpenJDK Runtime Environment (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
11.0.16+8-LTS)

OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
11.0.16+8-LTS, mixed mode, sharing)

On Wednesday, December 7, 2022 at 3:29:18 PM UTC-5 zil...@gmail.com wrote:

> I have
>
> $ java -version
>
> openjdk version "1.8.0_342"
>
> OpenJDK Runtime Environment (build 1.8.0_342-b07)
>
> OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)
>
> On Wednesday, December 7, 2022 at 3:26:06 PM UTC-5 zil...@gmail.com wrote:
>
>> Also I see this in the logs, and looking for info on 
>> Jenkins.getInstanceOrNull provides nothing.
>>
>> 2022-12-07 20:24:26.772+ [id=190]WARNING   
>>  o.e.jetty.server.HttpChannel#handleException: /login
>>
>> java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
>> documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
>>
>>at jenkins.model.Jenkins.get(Jenkins.java:813)
>>
>>at 
>> org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)
>>
>>at 
>> hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(GlobalMatrixAuthorizationStrategy.java:133)
>>
>>at hudson.security.SidACL._hasPermission(SidACL.java:73)
>>
>>at hudson.security.SidACL.hasPermission2(SidACL.java:54)
>>
>>at hudson.security.ACL.checkPermission(ACL.java:76)
>>
>> On Wednesday, December 7, 2022 at 3:23:21 PM UTC-5 zil...@gmail.com 
>> wrote:
>>
>>> I'm attempting to update from 2.263.1 to 2.375.1 (huge gap I know), and 
>>> I'm getting this on the Jenkins page. It just shows 2 Jenkins butler pics, 
>>> a large black circle, and a large blue circle with a question mark in the 
>>> middle.
>>>
>>> I've even renamed my $JENKINS_HOME/plugins and $JENKINS_HOME/plugins.txt 
>>> files in case there are incompatible plugins which I expect from a huge 
>>> version gap.
>>>
>>> Any clues?
>>>
>>> java.lang.NoClassDefFoundError: 
>>> org/jruby/javasupport/proxy/InternalJavaProxyat 
>>> org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
>>> hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
>>>at 
>>> com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
>>>  
>>>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:1266)at 
>>> com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)at 
>>> com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)at 
>>> hudson.XmlFile.write(XmlFile.java:213)at 
>>> jenkins.model.Jenkins.save(Jenkins.java:3547)at 
>>> jenkins.model.Jenkins.(Jenkins.java:1007)at 
>>> hudson.model.Hudson.(Hudson.java:86)at 
>>> hudson.model.Hudson.(Hudson.java:82)at 
>>> hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: 
>>> hudson.util.HudsonFailedToLoadat 
>>> hudson.WebAppMain$3.run(WebAppMain.java:261) 
>>>
>>> Thanks,
>>> Chris
>>>
>>

-- 
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/020a3eee-fadb-4543-8f37-76861124e264n%40googlegroups.com.


Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
More logs, this is the first log I see. Again I renamed the 
$HOME_JENKINS/plugins dir.

2022-12-07 20:46:03.252+ [id=33]INFO   
 jenkins.InitReactorRunner$1#onAttained: Listed all plugins

2022-12-07 20:46:09.644+ [id=30]INFO   
 ruby.RubyRuntimePlugin#start: Injecting JRuby into XStream

2022-12-07 20:46:09.715+ [id=30]WARNING   
 jenkins.model.Jenkins$5#runTask: Loading plugin ruby-runtime v0.12 
(ruby-runtime) failed perhaps due to plugin dependency issues

java.lang.RuntimeException: unsupported Java version: 11

   at 
org.jruby.RubyInstanceConfig.initGlobalJavaVersion(RubyInstanceConfig.java:1674)

   at org.jruby.RubyInstanceConfig.(RubyInstanceConfig.java:1387)

Caused: java.lang.ExceptionInInitializerError

   at 
org.jruby.embed.internal.AbstractLocalContextProvider.(AbstractLocalContextProvider.java:42)

   at 
org.jruby.embed.internal.SingleThreadLocalContextProvider.(SingleThreadLocalContextProvider.java:43)

   at 
org.jruby.embed.ScriptingContainer.getProviderInstance(ScriptingContainer.java:242)

   at org.jruby.embed.ScriptingContainer.(ScriptingContainer.java:226)

   at org.jruby.embed.ScriptingContainer.(ScriptingContainer.java:192)

   at org.kohsuke.stapler.jelly.jruby.JRubyFacet.(JRubyFacet.java:65)

   at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:39)

   at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:30)

   at 
hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:417)

   at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:406)

Caused: java.io.IOException: Failed to initialize

   at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:409)

   at hudson.PluginManager$2$1$1.run(PluginManager.java:549)

   at 
org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:177)

   at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)

   at jenkins.model.Jenkins$5.runTask(Jenkins.java:1161)

On Wednesday, December 7, 2022 at 3:41:09 PM UTC-5 zil...@gmail.com wrote:

> I updated Java to no avail
>
> $ java -version
>
> openjdk version "11.0.16" 2022-07-19 LTS
>
> OpenJDK Runtime Environment (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
> 11.0.16+8-LTS)
>
> OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
> 11.0.16+8-LTS, mixed mode, sharing)
>
> On Wednesday, December 7, 2022 at 3:29:18 PM UTC-5 zil...@gmail.com wrote:
>
>> I have
>>
>> $ java -version
>>
>> openjdk version "1.8.0_342"
>>
>> OpenJDK Runtime Environment (build 1.8.0_342-b07)
>>
>> OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)
>>
>> On Wednesday, December 7, 2022 at 3:26:06 PM UTC-5 zil...@gmail.com 
>> wrote:
>>
>>> Also I see this in the logs, and looking for info on 
>>> Jenkins.getInstanceOrNull provides nothing.
>>>
>>> 2022-12-07 20:24:26.772+ [id=190]WARNING   
>>>  o.e.jetty.server.HttpChannel#handleException: /login
>>>
>>> java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
>>> documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
>>>
>>>at jenkins.model.Jenkins.get(Jenkins.java:813)
>>>
>>>at 
>>> org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)
>>>
>>>at 
>>> hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(GlobalMatrixAuthorizationStrategy.java:133)
>>>
>>>at hudson.security.SidACL._hasPermission(SidACL.java:73)
>>>
>>>at hudson.security.SidACL.hasPermission2(SidACL.java:54)
>>>
>>>at hudson.security.ACL.checkPermission(ACL.java:76)
>>>
>>> On Wednesday, December 7, 2022 at 3:23:21 PM UTC-5 zil...@gmail.com 
>>> wrote:
>>>
 I'm attempting to update from 2.263.1 to 2.375.1 (huge gap I know), and 
 I'm getting this on the Jenkins page. It just shows 2 Jenkins butler pics, 
 a large black circle, and a large blue circle with a question mark in the 
 middle.

 I've even renamed my $JENKINS_HOME/plugins and 
 $JENKINS_HOME/plugins.txt files in case there are incompatible plugins 
 which I expect from a huge version gap.

 Any clues?

 java.lang.NoClassDefFoundError: 
 org/jruby/javasupport/proxy/InternalJavaProxyat 
 org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)at 
 hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41) 
at 
 com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
  
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:1266)at 
 com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)at 
 com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)at 
 hudson.XmlFile.write(XmlFile.java:213)at 

Re: Issues updating to Jenkins 2.375.1

2022-12-07 Thread zil...@gmail.com
Damn, I found it

I had to rename $JENKINS_HOME/plugins/ruby-runtime.api to 
$JENKINS_HOME/plugins/ruby-runtime.api.disabled.

Chris

On Wednesday, December 7, 2022 at 3:48:25 PM UTC-5 zil...@gmail.com wrote:

> More logs, this is the first log I see. Again I renamed the 
> $HOME_JENKINS/plugins dir.
>
> 2022-12-07 20:46:03.252+ [id=33]INFO   
>  jenkins.InitReactorRunner$1#onAttained: Listed all plugins
>
> 2022-12-07 20:46:09.644+ [id=30]INFO   
>  ruby.RubyRuntimePlugin#start: Injecting JRuby into XStream
>
> 2022-12-07 20:46:09.715+ [id=30]WARNING   
>  jenkins.model.Jenkins$5#runTask: Loading plugin ruby-runtime v0.12 
> (ruby-runtime) failed perhaps due to plugin dependency issues
>
> java.lang.RuntimeException: unsupported Java version: 11
>
>at 
> org.jruby.RubyInstanceConfig.initGlobalJavaVersion(RubyInstanceConfig.java:1674)
>
>at org.jruby.RubyInstanceConfig.(RubyInstanceConfig.java:1387)
>
> Caused: java.lang.ExceptionInInitializerError
>
>at 
> org.jruby.embed.internal.AbstractLocalContextProvider.(AbstractLocalContextProvider.java:42)
>
>at 
> org.jruby.embed.internal.SingleThreadLocalContextProvider.(SingleThreadLocalContextProvider.java:43)
>
>at 
> org.jruby.embed.ScriptingContainer.getProviderInstance(ScriptingContainer.java:242)
>
>at 
> org.jruby.embed.ScriptingContainer.(ScriptingContainer.java:226)
>
>at 
> org.jruby.embed.ScriptingContainer.(ScriptingContainer.java:192)
>
>at org.kohsuke.stapler.jelly.jruby.JRubyFacet.(JRubyFacet.java:65)
>
>at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:39)
>
>at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:30)
>
>at 
> hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:417)
>
>at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:406)
>
> Caused: java.io.IOException: Failed to initialize
>
>at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:409)
>
>at hudson.PluginManager$2$1$1.run(PluginManager.java:549)
>
>at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:177)
>
>at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
>
>at jenkins.model.Jenkins$5.runTask(Jenkins.java:1161)
>
> On Wednesday, December 7, 2022 at 3:41:09 PM UTC-5 zil...@gmail.com wrote:
>
>> I updated Java to no avail
>>
>> $ java -version
>>
>> openjdk version "11.0.16" 2022-07-19 LTS
>>
>> OpenJDK Runtime Environment (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
>> 11.0.16+8-LTS)
>>
>> OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 
>> 11.0.16+8-LTS, mixed mode, sharing)
>>
>> On Wednesday, December 7, 2022 at 3:29:18 PM UTC-5 zil...@gmail.com 
>> wrote:
>>
>>> I have
>>>
>>> $ java -version
>>>
>>> openjdk version "1.8.0_342"
>>>
>>> OpenJDK Runtime Environment (build 1.8.0_342-b07)
>>>
>>> OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)
>>>
>>> On Wednesday, December 7, 2022 at 3:26:06 PM UTC-5 zil...@gmail.com 
>>> wrote:
>>>
 Also I see this in the logs, and looking for info on 
 Jenkins.getInstanceOrNull provides nothing.

 2022-12-07 20:24:26.772+ [id=190]WARNING   
  o.e.jetty.server.HttpChannel#handleException: /login

 java.lang.IllegalStateException: Jenkins.instance is missing. Read the 
 documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.

at jenkins.model.Jenkins.get(Jenkins.java:813)

at 
 org.jenkinsci.plugins.matrixauth.AuthorizationContainer.hasPermission(AuthorizationContainer.java:144)

at 
 hudson.security.GlobalMatrixAuthorizationStrategy$AclImpl.hasPermission(GlobalMatrixAuthorizationStrategy.java:133)

at hudson.security.SidACL._hasPermission(SidACL.java:73)

at hudson.security.SidACL.hasPermission2(SidACL.java:54)

at hudson.security.ACL.checkPermission(ACL.java:76)

 On Wednesday, December 7, 2022 at 3:23:21 PM UTC-5 zil...@gmail.com 
 wrote:

> I'm attempting to update from 2.263.1 to 2.375.1 (huge gap I know), 
> and I'm getting this on the Jenkins page. It just shows 2 Jenkins butler 
> pics, a large black circle, and a large blue circle with a question mark 
> in 
> the middle.
>
> I've even renamed my $JENKINS_HOME/plugins and 
> $JENKINS_HOME/plugins.txt files in case there are incompatible 
> plugins which I expect from a huge version gap.
>
> Any clues?
>
> java.lang.NoClassDefFoundError: 
> org/jruby/javasupport/proxy/InternalJavaProxyat 
> org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)
> at 
> hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41)
>  
>at 
> com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
>  
>at 
> com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java: