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

ExceptionInInitializerError #7381

Closed
cyberduck opened this issue Aug 3, 2013 · 4 comments
Closed

ExceptionInInitializerError #7381

cyberduck opened this issue Aug 3, 2013 · 4 comments

Comments

@cyberduck
Copy link
Collaborator

289ebff created the issue

Cyberduck will not load on my iMac. When I try to launch from within the bundle I get a Java exception in thread
"main" java.lang.NullPointerException. It runs fine on my Powerbook with what I thought were the same settings.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Either try updating the Java installation using Software Update… in OS X or update to the latest beta or snapshot build which has no Java installation requirement.

@cyberduck
Copy link
Collaborator Author

289ebff commented

Replying to [comment:1 dkocher]:

Either try updating the Java installation using Software Update… in OS X or update to the latest beta or snapshot build which has no Java installation requirement.
I have the latest Java installation (Java version 7 update 25)
I installed the July 31 snapshot (Cyberduck-12462) and tried to run it first by double clicking and then by running the file in the package. The info provided in Terminal when I tried to run was the folioing

Utilities/Cyberduck-12462/Cyberduck.app/Contents/MacOS/Cyberduck ; exit;
SLF4J: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError. 
SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.apache.log4j.Logger.getLogger(Logger.java:40)
	at org.apache.log4j.Logger.getLogger(Logger.java:48)
	at ch.cyberduck.ui.cocoa.MainApplication.<clinit>(MainApplication.java:57)
Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
	at org.apache.log4j.Log4jLoggerFactory.<clinit>(Log4jLoggerFactory.java:51)
	... 3 more

My OS system is 10.8.4

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Remove the log4j-over-slf4j JAR file in /Library/Java/Extensions. Unfortunately another application must have installed it there and for yet unknown reasons this is seen in the class path when launching the bundled runtime.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Fixed in 8c7361d with setting the extension directories to only include lib/ext from the bundled runtime.

@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

1 participant