Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassNotFoundException: org.objectweb.asm.Type #4561

Closed
cyberduck opened this issue Jun 18, 2010 · 3 comments
Closed

java.lang.ClassNotFoundException: org.objectweb.asm.Type #4561

cyberduck opened this issue Jun 18, 2010 · 3 comments

Comments

@cyberduck
Copy link
Collaborator

c8fec4a created the issue

Cyberduck 3.5.1 will not start on Mac OS X 10.6.4. The icon appears briefly, then disapears again.
Console output follows:

18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]	[LaunchRunner Error] ch.cyberduck.ui.cocoa.MainApplication.main(String[]) threw an exception:
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]	java.lang.NoClassDefFoundError: org/objectweb/asm/Type
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at net.sf.cglib.core.KeyFactory.<clinit>(KeyFactory.java:66)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at org.rococoa.Rococoa.createProxy(Rococoa.java:173)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at org.rococoa.Rococoa.wrap(Rococoa.java:123)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at org.rococoa.Rococoa.createClass(Rococoa.java:49)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at org.rococoa.cocoa.foundation.NSObject.<clinit>(NSObject.java:28)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at ch.cyberduck.ui.cocoa.MainApplication.main(MainApplication.java:48)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at java.lang.reflect.Method.invoke(Method.java:597)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at apple.launcher.LaunchRunner.run(LaunchRunner.java:115)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]	Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Type
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at java.security.AccessController.doPrivileged(Native Method)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
18.06.10 13:35:08 	[0x0-0xd60d6].ch.sudo.cyberduck[7707]		... 15 more
@cyberduck
Copy link
Collaborator Author

@dkocher commented

Do you have a asm.jar installed somewhere in your classpath like Library/Java. I cannot replicate this issue.

@cyberduck
Copy link
Collaborator Author

c8fec4a commented

Replying to [comment:3 dkocher]:

Do you have a asm.jar installed somewhere in your classpath like Library/Java. I cannot replicate this issue.

The problem was not asm.jar, but cglib-2.2.jar, which was in /Library/Java/Extensions. After removing this lib, Cyberduck starts up again.
However, shouldn't the classpath be set such that locally available resources, like
Cyberduck.app/Contents/Resources/Java/cglib-2.2.jar are preferred over ones available in the System?

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:4 jurgen]:

Replying to [comment:3 dkocher]:

Do you have a asm.jar installed somewhere in your classpath like Library/Java. I cannot replicate this issue.

The problem was not asm.jar, but cglib-2.2.jar, which was in /Library/Java/Extensions. After removing this lib, Cyberduck starts up again.
However, shouldn't the classpath be set such that locally available resources, like
Cyberduck.app/Contents/Resources/Java/cglib-2.2.jar are preferred over ones available in the System?

There is no way I know to change this behaviour. Installed libraries always take precedence in the classpath.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants