Bug 1174128 - OptoFactory.java:109:in `<clinit>': java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes
Summary: OptoFactory.java:109:in `<clinit>': java.lang.NoClassDefFoundError: org/objec...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: jruby
Version: 21
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Mo Morsi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1177915 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-15 08:40 UTC by Aaron Lu
Modified: 2015-12-02 16:44 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-02 05:58:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
jruby.spec (2.47 KB, text/plain)
2015-02-17 15:57 UTC, Mo Morsi
no flags Details
jruby-remove-tasks-with-missing-deps.patch (7.14 KB, patch)
2015-02-17 15:57 UTC, Mo Morsi
no flags Details | Diff
jruby-fix-shebangs.patch (2.36 KB, patch)
2015-02-17 15:58 UTC, Mo Morsi
no flags Details | Diff
jruby-build-hack.patch (675 bytes, patch)
2015-02-17 15:58 UTC, Mo Morsi
no flags Details | Diff

Description Aaron Lu 2014-12-15 08:40:13 UTC
Description of problem:
JRuby doesn't work

Version-Release number of selected component (if applicable):
jruby-1.7.2-5.fc21.noarch

How reproducible:
Always

Steps to Reproduce:
1. start irb-jruby
2.
3.

Actual results:

OptoFactory.java:109:in `<clinit>': java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes
	from Ruby.java:4549:in `<init>'
	from Ruby.java:280:in `newInstance'
	from Main.java:262:in `internalRun'
	from Main.java:221:in `run'
	from Main.java:201:in `main'

Expected results:
JRuby's irb gets started

Additional info:
$ rpm -qa |grep objectweb
objectweb-asm-5.0.2-2.fc21.noarch

Comment 1 Aaron Lu 2014-12-23 05:29:35 UTC
Any comments?

Comment 2 Vít Ondruch 2014-12-23 09:16:54 UTC
(In reply to Aaron Lu from comment #1)
> Any comments?

Well, JRuby is currently not in best shape. There is some work remaining somebody should pick up to have JRuby in good condition again:

https://lists.fedoraproject.org/pipermail/ruby-sig/2014-December/001711.html

Comment 3 Aaron Lu 2014-12-24 05:53:17 UTC
(In reply to Vít Ondruch from comment #2)
> (In reply to Aaron Lu from comment #1)
> > Any comments?
> 
> Well, JRuby is currently not in best shape. There is some work remaining
> somebody should pick up to have JRuby in good condition again:
> 
> https://lists.fedoraproject.org/pipermail/ruby-sig/2014-December/001711.html

Good to know this, thanks.

Comment 4 Ken Dreyer 2015-01-02 13:10:04 UTC
*** Bug 1177915 has been marked as a duplicate of this bug. ***

Comment 5 Ken Dreyer 2015-01-02 13:14:03 UTC
Dan Allen (mojavelinux) recently pointed out to me the issue with jruby, and a patch.

On Wed, Dec 31, 2014 at 3:38 AM, Dan Allen <dan.j.allen> wrote:
> In fact, there are two errors in the /usr/bin/jruby script. First, it is
> referring to asm3 jars, when it should be asm (without the number). Second,
> there is a missing delimiter in the classpath.
>
> Here's what it is setting the classpath to:
>
> /usr/share/jruby/lib/jruby.jar/usr/share/java/bcmail.jar:/usr/share/java/bcprov.jar:/usr/share/java/bsf.jar:/usr/share/java/bytelist.jar:/usr/share/java/felix/org.osgi.core.jar:/usr/share/java/invokebinder.jar:/usr/share/java/jansi/jansi.jar:/usr/share/java/jcodings.jar:/usr/lib/java/jffi.jar:/usr/share/java/jna.jar:/usr/share/java/jnr-constants.jar:/usr/share/java/jnr-enxio.jar:/usr/share/java/jnr-ffi.jar:/usr/share/java/jnr-netdb.jar:/usr/share/java/jnr-posix.jar:/usr/share/java/jnr-unixsocket/jnr-unixsocket.jar:/usr/share/java/joda-time.jar:/usr/share/java/joni.jar:/usr/share/java/jzlib.jar:/usr/share/java/nailgun.jar:/usr/share/java/snakeyaml.jar:/usr/share/java/yydebug.jar:/usr/share/java/yecht.jar:/usr/share/java/jruby.jar:/usr/share/java/jruby-yecht.jar
>
> Here's what it should be:
>
> /usr/share/jruby/lib/jruby.jar:/usr/share/java/objectweb-asm/asm.jar:/usr/share/java/objectweb-asm/asm-util.jar:/usr/share/java/objectweb-asm/asm-debug-all.jar:/usr/share/java/objectweb-asm/asm-tree.jar:/usr/share/java/objectweb-asm/asm-util.jar:/usr/share/java/objectweb-asm/asm-xml.jar:/usr/share/java/objectweb-asm/asm-analysis.jar:/usr/share/java/objectweb-asm/asm.jar:/usr/share/java/objectweb-asm/asm-all.jar:/usr/share/java/objectweb-asm/asm-commons.jar:/usr/share/java/objectweb-asm/asm-commons.jar:/usr/share/java/objectweb-asm/asm-analysis.jar:/usr/share/java/objectweb-asm/asm-tree.jar:/usr/share/java/bcmail.jar:/usr/share/java/bcprov.jar:/usr/share/java/bsf.jar:/usr/share/java/bytelist.jar:/usr/share/java/felix/org.osgi.core.jar:/usr/share/java/invokebinder.jar:/usr/share/java/jansi/jansi.jar:/usr/share/java/jcodings.jar:/usr/lib/java/jffi.jar:/usr/share/java/jna.jar:/usr/share/java/jnr-constants.jar:/usr/share/java/jnr-enxio.jar:/usr/share/java/jnr-ffi.jar:/usr/share/java/jnr-netdb.jar:/usr/share/java/jnr-posix.jar:/usr/share/java/jnr-unixsocket/jnr-unixsocket.jar:/usr/share/java/joda-time.jar:/usr/share/java/joni.jar:/usr/share/java/jzlib.jar:/usr/share/java/nailgun.jar:/usr/share/java/snakeyaml.jar:/usr/share/java/yydebug.jar:/usr/share/java/yecht.jar:/usr/share/java/jruby.jar:/usr/share/java/jruby-yecht.jar
>
> Here's the patch for /usr/bin/jruby
>
> https://gist.github.com/mojavelinux/1716e8c158358cf68664
>
> -Dan

Comment 6 Mo Morsi 2015-01-05 20:56:00 UTC
With the exception of invokebinder (lacking perms), and joda-timezones / test-polyglot-ruby the dependencies from [1] have been updated in rawhide to the required versions.

Next up would be to continue resolving the required dependencies and updating the spec to work in a rawhide build. Will try to get to it later this week if I have the cycles (anyone is free to pickup any of this in the meantime)

  -Mo

[1] https://mmorsi.fedorapeople.org/jruby/jruby-deps

Comment 7 Vít Ondruch 2015-01-06 09:16:04 UTC
(In reply to Mo Morsi from comment #6)
> With the exception of invokebinder (lacking perms)

You have them now ;)

Comment 8 Michal Srb 2015-02-17 07:12:24 UTC
(In reply to Mo Morsi from comment #6)
> 
> Next up would be to continue resolving the required dependencies and
> updating the spec to work in a rawhide build. Will try to get to it later
> this week if I have the cycles (anyone is free to pickup any of this in the
> meantime)
> 
>   -Mo
> 
> [1] https://mmorsi.fedorapeople.org/jruby/jruby-deps

Would it be possible to commit current work-in-progress jruby spec to rawhide? I have a few packages which BuildRequire jruby, so I would be willing to put some effort into it (at least make it buildable in rawhide).

Comment 9 Mo Morsi 2015-02-17 15:56:30 UTC
Sorry for the slow progress on this, am juggling a few things atm. The spec is very much still a work in progress so would rather not commit it but attached the current revision and supporting patches to this ticket. Feel free to make further revisions or start from scratch if that'd be simpler for you. Thanks for looking at it!

Comment 10 Mo Morsi 2015-02-17 15:57:13 UTC
Created attachment 992760 [details]
jruby.spec

Comment 11 Mo Morsi 2015-02-17 15:57:52 UTC
Created attachment 992761 [details]
jruby-remove-tasks-with-missing-deps.patch

Comment 12 Mo Morsi 2015-02-17 15:58:27 UTC
Created attachment 992762 [details]
jruby-fix-shebangs.patch

Comment 13 Mo Morsi 2015-02-17 15:58:46 UTC
Created attachment 992763 [details]
jruby-build-hack.patch

Comment 14 Fedora End Of Life 2015-11-04 13:34:25 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 15 Fedora End Of Life 2015-12-02 05:59:05 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.