Red Hat Bugzilla – Bug 986091
[abrt] system-switch-java-1.1.5-5.fc18: switch_java_functions.py:132:get_java_identifiers:IndexError: list index out of range
Last modified: 2014-02-05 17:09:13 EST
Version-Release number of selected component:
cmdline: python /usr/sbin/system-switch-java
runlevel: N 5
switch_java_functions.py:132:get_java_identifiers:IndexError: list index out of range
Traceback (most recent call last):
File "/usr/sbin/system-switch-java", line 89, in <module>
File "/usr/sbin/system-switch-java", line 50, in main
java_identifiers, best_identifier = get_java_identifiers()
File "/usr/share/system-switch-java/switch_java_functions.py", line 132, in get_java_identifiers
best_identifier = java_identifiers[best]
IndexError: list index out of range
Local variables in innermost frame:
alternatives: ['/usr/java/default/bin/java', '/usr/lib/jvm/jre-1.7.0u04-sun-x64/bin/java', '/usr/java/latest/jre/bin/java', '/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java', '/usr/java/jdk1.7.0_21/jre/bin/java']
java_expression: <_sre.SRE_Pattern object at 0x12bc9a0>
java_identifiers: ['1.7.0u04-sun-x64', '1.7.0-openjdk.x86_64']
Created attachment 775576 [details]
Created attachment 775577 [details]
Created attachment 775578 [details]
May I ask what was the steps leading to this error?
Especially installed java packages.
The system switch java was never designed to work with proprietary blob. However it may be working (if system si properly configured).
Just note - the oracle RPM's are NOT comaptible with feodra. They are actually hurting your system.
If you really have to use it, then use the zip files. Unpack, and setup manually - best in some kind of chrot, as you will probably need to modify PATH or various symlinks.
There was nice tutorial for this - especially part 2: http://fedora.cz/radosti-a-strasti-s-javou-a-jejim-pluginem-23/
and part 3 - http://fedora.cz/radosti-a-strasti-s-javou-a-jejim-pluginem-33/.
(and for completeness maybe part 1 - http://fedora.cz/radosti-a-strasti-s-javou-a-jejim-pluginem-12/) - However they are In czech language but some automatic translator with code snippets may help.
(In reply to jiri vanek from comment #4)
> May I ask what was the steps leading to this error?
1. yum install java-1.7.0-openjdk-devel java-1.5.0-gcj-devel
This is really the same problem as bug 1020005 with alternatives assuming paths (instead of parsing the alternatives file it just read).
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. 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 WONTFIX if it remains open with a Fedora
'version' of '18'.
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 prior to Fedora 18's end of life.
Thank you for reporting this issue and we are sorry that we may not be
able to fix it before Fedora 18 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 to Fedora 18's end of life.
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.
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 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
Thank you for reporting this bug and we are sorry it could not be fixed.