Azureus java.lang.reflect.InvocationTargetException

Bug #291082 reported by Mateusz Marzantowicz
4
Affects Status Importance Assigned to Milestone
azureus (Ubuntu)
In Progress
Undecided
Stefano Maioli

Bug Description

Binary package hint: azureus

Hello,

I've a problem when starting Azureus on my fresh Ubuntu 8.10 installation.

The only output from Azureus is:

file:/usr/share/java/Azureus2.jar ; file:/usr/share/java/swt-gtk-3.4.jar ; file:/home/mateusz/
changeLocale: *Default Language* != English (United States). Searching without country..
changeLocale: Searching for language English in *any* country..
changeLocale: no message properties for Locale 'English (United States)' (en_US), using 'English (default)'
java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.gudy.azureus2.ui.common.Main.directLaunch(Main.java:229)
 at org.gudy.azureus2.ui.common.Main.main(Main.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at com.aelitis.azureus.launcher.MainExecutor$1.run(MainExecutor.java:37)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at com.aelitis.azureus.launcher.classloading.PrimaryClassloader.loadClass(PrimaryClassloader.java:103)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:61)
 at org.gudy.azureus2.ui.swt.mainwindow.Initializer.<init>(Initializer.java:110)
 at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:84)
 at org.gudy.azureus2.ui.swt.Main.main(Main.java:216)
 ... 12 more
Start fails:
com.aelitis.azureus.core.AzureusCoreException: Azureus core already instantiated
 at com.aelitis.azureus.core.impl.AzureusCoreImpl.create(AzureusCoreImpl.java:99)
 at com.aelitis.azureus.core.AzureusCoreFactory.create(AzureusCoreFactory.java:46)
 at org.gudy.azureus2.ui.common.Main.main(Main.java:160)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at com.aelitis.azureus.launcher.MainExecutor$1.run(MainExecutor.java:37)
 at java.lang.Thread.run(Thread.java:595)

I'm working on Ubuntu 8.10, with Sun Java:

java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)

I installed Azureus via Synaptic package manager: package version is 3.1.1.0-3ubuntu3

Revision history for this message
Stefano Maioli (smaioli) wrote :

Thank you for reporting this issue.
It looks like that for some reason Azureus does not work with Java5.

Please try upgrading to a Java6 jre installing one of the following packages:
default-jre (wich will install openjdk-6-jre) or sun-java6-jre.

You can check that the correct jre is selected by running: sudo update-alternatives --config java.

(I think I'll fix this by depending on java6-runtime instead of java-runtime.)

Changed in azureus:
assignee: nobody → smaioli
status: New → Confirmed
Revision history for this message
Mateusz Marzantowicz (mmarzantowicz) wrote :

Ok,

it works pretty good with java6.

Thank you for your help.

Stefano Maioli (smaioli)
Changed in azureus:
status: Confirmed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.