Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245034 - [java-overlay] java-virtuals/jmx-1.0 doesn't list icedtea6 and icedtea among JAVA_VIRTUAL_VM's
Summary: [java-overlay] java-virtuals/jmx-1.0 doesn't list icedtea6 and icedtea among ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-31 03:25 UTC by Rolandas Valteris
Modified: 2008-10-31 03:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed ebuild (jmx-1.0-r1.ebuild,736 bytes, text/plain)
2008-10-31 03:28 UTC, Rolandas Valteris
Details
... and a diff (jmx-1.0-r1.diff,370 bytes, text/plain)
2008-10-31 03:29 UTC, Rolandas Valteris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rolandas Valteris 2008-10-31 03:25:46 UTC
icedtea6 and icedtea are not included JAVA_VIRTUAL_VM list.

as a result launcher script fails while resolving target if user-vm is set to icedtea6 or icedtea. for example with dev-java/groovy-1.5.6 installed:

ro@nifiga ~ $ /usr/bin/groovy
Traceback (most recent call last):
  File "/usr/bin/gjl", line 302, in <module>
    vm = get_vm(pkg)
  File "/usr/bin/gjl", line 196, in get_vm
    target, needs_jdk = get_needed_target2(pkg)
  File "/usr/bin/gjl", line 86, in get_needed_target2
    target = pkg.target()
  File "/usr/lib64/python2.5/site-packages/java_config_2/Virtual.py", line 110, in target
    return self.get_provider().query("TARGET")
AttributeError: 'NoneType' object has no attribute 'query'
Couldn't get needed information



Reproducible: Always

Steps to Reproduce:
1. install icedtea6, set it as your user-vm
2. install groovy
3. run groovy

Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/gjl", line 302, in <module>
    vm = get_vm(pkg)
  File "/usr/bin/gjl", line 196, in get_vm
    target, needs_jdk = get_needed_target2(pkg)
  File "/usr/bin/gjl", line 86, in get_needed_target2
    target = pkg.target()
  File "/usr/lib64/python2.5/site-packages/java_config_2/Virtual.py", line 110, in target
    return self.get_provider().query("TARGET")
AttributeError: 'NoneType' object has no attribute 'query'
Couldn't get needed information


Expected Results:  
error: neither -e or filename provided
usage: groovy [options] [args]
options:
  -a,--autosplit <splitPattern>    split lines using splitPattern (default '\s')
                                   using implicit 'split' variable
  -c,--encoding <charset>          specify the encoding of the files
  -D,--define <name=value>         define a system property
  -d,--debug                       debug mode will print out full stack traces
  -e <script>                      specify a command line script
  -h,--help                        usage information
  -i <extension>                   modify files in place; create backup if
                                   extension is given (e.g. '.bak')
  -l <port>                        listen on a port and process inbound lines
  -n                               process files line by line using implicit
                                   'line' variable
  -p                               process files line by line and print result
                                   (see also -n)
  -v,--version                     display the Groovy and JVM versions
Comment 1 Rolandas Valteris 2008-10-31 03:28:12 UTC
Created attachment 170379 [details]
proposed ebuild

adding icedtea6 and icedtea to JAVA_VIRTUAL_VM's list solved the problem.
Comment 2 Rolandas Valteris 2008-10-31 03:29:36 UTC
Created attachment 170381 [details]
... and a diff
Comment 3 Rolandas Valteris 2008-10-31 03:34:39 UTC
oops... just noticed that package name in summary should be java-virtuals/jmx-1.0 !
Comment 4 Serkan Kaba (RETIRED) gentoo-dev 2008-10-31 03:36:11 UTC
I added the ebuild to java-overlay since icedtea lives there. Thanks for reporting and the fix.