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

"No BuiltInsLoader implementation was found." when relocating Kotlin packages #573

Closed
hazae41 opened this issue Jun 4, 2019 · 5 comments

Comments

@hazae41
Copy link

hazae41 commented Jun 4, 2019

Exposed throws an error when using Gradle and Shadow to relocate Kotlin packages.

java.lang.IllegalStateException: No BuiltInsLoader implementation was found.
Please ensure that the META-INF/services/ is not stripped from your application and that the Java virtual machine is not running under a security manager

 at org.jetbrains.exposed.sql.Table.clone(Table.kt:206) ~[?:?]
    at org.jetbrains.exposed.sql.Table.cloneWithAutoInc(Table.kt:354) ~[?:?]
    at org.jetbrains.exposed.sql.Table.autoIncrement(Table.kt:358) ~[?:?]
    at org.jetbrains.exposed.sql.Table.autoIncrement$default(Table.kt:358) ~[?:?]
    at org.jetbrains.exposed.dao.IntIdTable.<init>(IntEntity.kt:6) ~[?:?]
    at org.jetbrains.exposed.dao.IntIdTable.<init>(IntEntity.kt:5) ~[?:?]
@Tapac
Copy link
Contributor

Tapac commented Jun 4, 2019

Do you relocate kotlin-reflect too?
Looks similar to square/moshi#637 (comment)

@hazae41
Copy link
Author

hazae41 commented Jun 4, 2019

Yes I do

@Proximyst
Copy link

I'm also running into this problem; any updates on the issue? @hazae41

@hazae41
Copy link
Author

hazae41 commented Sep 11, 2019

No

@Proximyst
Copy link

@hazae41 I managed to solve this issue by doing as such:

    compile(kotlin("reflect"))

    compile("org.jetbrains.exposed:exposed:0.17.1") {
        exclude("org.jetbrains.kotlin")
    }

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

3 participants