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

LogSite class missing in flogger-0.3.jar from Maven Central #40

Closed
stengerh opened this issue Aug 22, 2018 · 4 comments
Closed

LogSite class missing in flogger-0.3.jar from Maven Central #40

stengerh opened this issue Aug 22, 2018 · 4 comments

Comments

@stengerh
Copy link

The LogSite class and related class are missing from the jar on Maven Central. This result in the following exception during runtime:

java.lang.ExceptionInInitializerError
	at com.google.common.flogger.backend.Platform.getCallerFinder(Platform.java:142)
	at com.google.common.flogger.FluentLogger.forEnclosingClass(FluentLogger.java:70)
	at mypkg.MyClass.<clinit>(MyClass.java:17)
// SNIP
Caused by: java.lang.IllegalStateException: No logging platforms found:
com.google.common.flogger.backend.system.DefaultPlatform: java.lang.NoClassDefFoundError: com/google/common/flogger/LogSite
	at com.google.common.flogger.backend.Platform$LazyHolder.loadFirstAvailablePlatform(Platform.java:99)
	at com.google.common.flogger.backend.Platform$LazyHolder.<clinit>(Platform.java:67)
	... 107 more

I don't know much about Bazel but I guess it has something to do with the new log_site target in api/BUILD. From the perspective of a Maven user the 0.3 release looks broken.

@ronshapiro
Copy link
Collaborator

Fixed in 36aaf31 and will be released as 0.3.1 shortly

@stengerh
Copy link
Author

Thanks, much appreciated! I'm looking forward to the 0.3.1 release then.

@ronshapiro
Copy link
Collaborator

It was released yesterday, give it a shot and let us know!

@stengerh
Copy link
Author

Great, it works now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants