[JIRA] (JENKINS-12094) ruby-runtime plugin fails to initialize

2012-12-19 Thread m...@labzero.com (JIRA)














































Matthew Wilson
 commented on  JENKINS-12094


ruby-runtime plugin fails to initialize















Sebastien, JRuby isn't far from Java.  This is still broken for Windows Vista.  Here's the error seen when trying to install the plugin without a restart:

hudson.util.IOException2: Failed to dynamically deploy this plugin
	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1259)
	at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1056)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Unable to delete C:\Program Files (x86)\Jenkins\plugins\ruby-runtime\WEB-INF\lib\jruby-complete-1.6.5.jar
	at hudson.Util.deleteFile(Util.java:243)
	at hudson.Util.deleteRecursive(Util.java:293)
	at hudson.Util.deleteContentsRecursive(Util.java:204)
	at hudson.Util.deleteRecursive(Util.java:284)
	at hudson.Util.deleteContentsRecursive(Util.java:204)
	at hudson.Util.deleteRecursive(Util.java:284)
	at hudson.Util.deleteContentsRecursive(Util.java:204)
	at hudson.Util.deleteRecursive(Util.java:284)
	at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:411)
	at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:117)
	at hudson.PluginManager.dynamicLoad(PluginManager.java:391)
	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1255)
	... 7 more

The file C:\Program Files (x86)\Jenkins\plugins\ruby-runtime\WEB-INF\lib\jruby-complete-1.6.5.jar exists but Windows prevents the file from being deleted if a process is using it.  It seems that Jenkins tries to load it which is why it's unable to be deleted.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira






[JIRA] (JENKINS-12094) ruby-runtime plugin fails to initialize

2012-03-16 Thread sebtar...@ncf.ca (JIRA)

[ 
https://issues.jenkins-ci.org/browse/JENKINS-12094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160345#comment-160345
 ] 

Sebastien Tardif commented on JENKINS-12094:


My understanding is that ruby is not even supported in Jenkins, see 
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+plugin+development+in+Ruby

I think the best move is to rewrite it in Groovy. Jenkins is written in Java, 
that's kind of shooting it's own foot to use a scripting language too far from 
Java.

> ruby-runtime plugin fails to initialize
> ---
>
> Key: JENKINS-12094
> URL: https://issues.jenkins-ci.org/browse/JENKINS-12094
> Project: Jenkins
>  Issue Type: Bug
>  Components: pathignore, plugin, ruby-runtime
>Affects Versions: current
> Environment: Windows 7 64-bit, Running Jenkins as a Windows Service
>Reporter: Adam Westhusing
>Priority: Critical
>
> I'm actually trying to install another plugin (pathignore) that is dependent 
> on the ruby-runtime plugin, and I keep receiving an exception when trying to 
> install ruby-runtime (0.6).
> This happens on Windows 7 64-bit, running Jenkins as a service.  This is 
> reproducible on Jenkins version 1.443 and 1.442.  The issue does not happen 
> on my Jenkins instance that is running on Ubuntu Server 10.4, so it appears 
> to be something related to Windows.
> The exception that occurs is the following:
> jenkins.InitReactorRunner$1 onTaskFailed
> SEVERE: Failed Loading plugin ruby-runtime
> hudson.util.IOException2: Failed to initialize
>   at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:335)
>   at hudson.PluginManager$2$1$1.run(PluginManager.java:294)
>   at 
> org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
>   at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
>   at jenkins.model.Jenkins$5.runTask(Jenkins.java:804)
>   at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
>   at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
> Source)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>   at java.lang.Thread.run(Unknown Source)
> Caused by: org.jruby.embed.EvalFailedException: (LoadError) no such file to 
> load -- haml
>   at 
> org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:127)
>   at 
> org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
>   at 
> org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
>   at 
> org.kohsuke.stapler.jelly.jruby.haml.HamlLanguage.createContainer(HamlLanguage.java:28)
>   at 
> org.kohsuke.stapler.jelly.jruby.JRubyFacet.(JRubyFacet.java:69)
>   at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:38)
>   at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:29)
>   at 
> hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:343)
>   at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:332)
>   ... 9 more
> Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to 
> load -- haml
> If there's any additional debug information I can add, I'll be glad to attach 
> that information.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira