Ktor build with graalvm

I wanted to test ktor.io with graalvm build, main problem is all code I found using gradle and my project is using mvn here is the code. like other modules I needed to create reflect config json, otherwise ktor serialize is not working properly with graal and when I send a request to “/hello” endpoint I got empty response. I tried to write myself but did not work and at the end I used command below ...

November 13, 2022 · 1 min · Özkan Pakdil

Disable Spring Boot Hikari Datasource with aspectj

There is database which will shutdown in uncertain future and application wants to be restarted and still working after that. In spring boot every datasource bean depends to some other bean, if we use @ConditionalOnProperty which actually not creates the bean after that other beans fails to initialize and app stop booting. If need to disable a datasource without deleting all the spring beans or without using @ConditionalOnProperty When @ConditionalOnProperty comes to scene it is like deleting or changing all other spring beans which is not really required if you just want to disable a datasource. ...

August 4, 2022 · 1 min · Özkan Pakdil

Getting com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class

I am trying to write small microservice benchmark for java, lately java microservice framework are popping up from every corner 😊 actually it is becoming little bit annoying, java world becoming js world. Anyway while writing some test I start getting the error below Internal Server Error Error handling d1e23f6f-3947-497a-be41-27ba9f7f4791-1, org.jboss.resteasy.spi.UnhandledException: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.mascix.ApplicationInfo and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) The stacktrace below has been reversed to show the root cause first. Click Here to see the original stacktrace com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.mascix.ApplicationInfo and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77) at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1277) at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:400) This was coming from quarkus example. I got same error in spring boot and micronaut, my first approach was configure the bean or singleton and give ...

August 19, 2020 · 1 min · Özkan Pakdil

How to build eclipse on locally in windows 10

Best document I found is here, main problem about the documentation is google :) whenever I search different versions of “building eclipse in windows” all results were related to how to build a project(java or anything else) in eclipse. And I decided to write this note blog just for future refference. I had some issues on the way fatal: cannot create directory at 'bundles/org.eclipse.equinox.p2.tests/testData/previousConfigurationFinder/testSuccedingVersion/matchFromSuccedingAndPreccedingWithDifferentPlatfrom/org.eclipse.platform_3.8.0_11111111_linux-gtk-x86_64': Filename too long and constituent[40]: file:/C:/ProgramData/chocolatey/lib/maven/apache-maven-3.6.3/lib/wagon-file-3.3.4.jar constituent[41]: file:/C:/ProgramData/chocolatey/lib/maven/apache-maven-3.6.3/lib/wagon-http-3.3.4-shaded.jar constituent[42]: file:/C:/ProgramData/chocolatey/lib/maven/apache-maven-3.6.3/lib/wagon-provider-api-3.3.4.jar --------------------------------------------------- Exception in thread "main" java.lang.AssertionError: pom file must not be null from PolyglotModelManager as per API at org.sonatype.maven.polyglot.TeslaModelProcessor.locatePom(TeslaModelProcessor.java:64) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:500) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:414) at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:377) at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:414) at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:405) at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:82) at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:507) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:219) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) or some git clone problems, you need to make sure there is no problem in git clone. ...

August 15, 2020 · 2 min · Özkan Pakdil

Running multiple jdk in github action

Here is an example to show how multiple jdk run in one github action. And generate artifacts as test results jobs: build: runs-on: ubuntu-latest strategy: matrix: java: ["8", "11", "13", "14"] name: Java ${{ matrix.java }} sample steps: And to see how it looks in build, check any build in https://github.com/ozkanpakdil/eclipse-collections-benchmark/actions

July 29, 2020 · 1 min · Özkan Pakdil