m
09/28/2017, 9:15 PMsdeleuze
09/28/2017, 9:15 PM.gradle
both from your project root and from ~/
m
09/28/2017, 9:15 PM~/
, and my project home is fresh.sdeleuze
09/28/2017, 9:15 PM1.1.4-3
?sdeleuze
09/28/2017, 9:16 PMfreeCompilerArgs = listOf("-Xjsr305-annotations=enable")
m
09/28/2017, 9:16 PMsdeleuze
09/28/2017, 9:16 PMsdeleuze
09/28/2017, 9:17 PMm
09/28/2017, 9:27 PMUnsatisfied dependency expressed through method 'mappingMongoConverter' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoMappingContext' defined in class path resource [org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.VerifyError: Uninitialized object exists on backward branch 119
Exception Details:
Location:
mixit/model/Post.<init>(Ljava/lang/String;Ljava/time/LocalDateTime;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V @207: goto
Reason:
Error exists in the bytecode
nfrankel
09/28/2017, 9:37 PMSo maybe try to remove Gradle both from your project root and from~/
m
09/28/2017, 9:58 PMorangy
Post
code? Primary constructor and any init
blocks?orangy
init
block of Post
, I remember there was an issue like that.orangy
orangy
sdeleuze
09/29/2017, 8:23 AMtgirard12
09/29/2017, 12:13 PMfun main(args: Array<String>) {
webfluxApplication(Server.NETTY) { // or TOMCAT
// group routers
routes {
router { routerApi(ref()) }
router(routerStatic())
}
router { routerHtml(ref(), ref()) }
// group beans
beans {
bean<UserHandler>()
bean<Baz>() // Primary constructor injection
}
bean<Bar>()
mustacheTemplate()
profile("foo") {
bean<Foo>()
}
}.run()
}
tgirard12
09/29/2017, 12:13 PMsdeleuze
09/29/2017, 12:18 PMtgirard12
09/29/2017, 12:19 PMsdeleuze
09/29/2017, 12:22 PMrouter(::routerStatic)
?tgirard12
09/29/2017, 12:28 PMm
09/29/2017, 1:19 PMenleur
10/01/2017, 11:54 AMjava -Xmx64m -Xss256k -jar springexample-0.0.1-SNAPSHOT.jar
it takes 200mb memory? Is it possible to reduce it?
dependencies {
compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVersion"
compile "org.springframework.boot:spring-boot-starter-web:$springBootVersion"
compile "org.springframework.boot:spring-boot-starter-undertow:$springBootVersion"
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinVersion"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
runtime "org.springframework.boot:spring-boot-devtools:$springBootVersion"
testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
}
sdeleuze
10/01/2017, 1:48 PMsureshbabuinfo
10/01/2017, 4:53 PMsureshbabuinfo
10/01/2017, 4:54 PMsureshbabuinfo
10/01/2017, 4:55 PMsdeleuze
10/01/2017, 5:59 PM@Autowired
, yes it should work