Could not find MessageBodyWriter for response object of type: io.vertx.reactivex.core.buffer.Buffer of media type: text/html;charset=UTF-8

I was trying to use freemarker with quarkus and vertx. I start getting this error Could not find MessageBodyWriter for response object of type: io.vertx.reactivex.core.buffer.Buffer of media type: text/html;charset=UTF-8 And code look like below. I was trying to use reactive approach. @GET @Produces(MediaType.TEXT_HTML) public Uni<Object> doSomethingAsync() throws Exception { io.vertx.core.Vertx params = vertx.getDelegate(); io.vertx.reactivex.core.Vertx args = new io.vertx.reactivex.core.Vertx(params); FreeMarkerTemplateEngine engine = FreeMarkerTemplateEngine.create(args); List<ExampleObject> exs = new ArrayList<>(); for (int i = 0; i < 10; i++) { exs.add(new ExampleObject("name:" + i, "dev:" + i)); } HashMap data = new HashMap<>(); data.put("title", "Vert.x Web"); data.put("exampleObject", new ExampleObject("name", "dev")); data.put("systems", exs); Single<Buffer> rxRender = engine.rxRender(data, "/templates/index.htm"); Buffer page = null; try { page = rxRender.toFuture().get(); } catch (Exception ex) { ex.printStackTrace(); // e.printStacktrace(); } return Uni.createFrom().item(page); } I check and could not find a proper solution here is how I solved it. ...

June 2, 2020 · 1 min · Özkan Pakdil

LineageOS installation on my old lg g2

My old lg g2 had lineageOS 14 installed already. But it was showing the info about new version and I should upgrade it. My first attempt failed miserably. And I brick my phone. When I started my phone it was showing only LG logo and it was in boot loop. They call it boot loop but actually it was not really booting up. Anyway yesterday I found https://forum.xda-developers.com/showthread.php?t=2797190 and finally installed the old LG android and it started working again. you can find the kdz here https://forum.xda-developers.com/showthread.php?t=2432476 ...

March 13, 2020 · 1 min · Özkan Pakdil

Terrible android error

While developing a small android application. I was thinking to use IntentService which is kind of a background worker for android platform. Then I found the need code and documentation and implemented yesterday. and code is compiling so today I wanted to see it in a real phone and started Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.mascix.fitinsta/com.mascix.fitinsta.ServiceLayer}; have you declared this activity in your AndroidManifest.xml? From this exception I understand that I am having a problem in androidmanifest.xml and since morning I was trying to fix it. And the result is it was code problem :) ...

January 26, 2020 · 1 min · Özkan Pakdil

How to call Atlassian Cloud Jira Rest API

I needed to call atlassian jira custom fields rest service and show them as good as possible. I know jira admin panel has a page for it. I am just trying to list them in a seperate page. First of al for easy development we can get json with this shell script. #!/bin/bash USER='YOUREMAIL:TOKEN' # get it from https://id.atlassian.com/manage/api-tokens URL='https://test1q2w.atlassian.net/rest/api/3/field' curl --request GET --url $URL --user $USER --header 'Accept: application/json' > test.json Now we have test.json to load and show. also it needs a little bit extra. therefore we just write var data= in to the file and load it like ...

September 4, 2019 · 1 min · Özkan Pakdil

How to solve ripe.net access denied

I have been using whois for a long time(around 10 years). and if you are sending this whois queries from same ip and higher then expected. you will start seeing ripe.net access denied results. one solution is restart your adsl modem. or start using another ip. and my solution is TOR :) sudo apt install tor torsocks you will need to configure torify check https://www.linux.com/blog/beginners-guide-tor-ubuntu torify whois 25.166.194.172 and I did not wanted to run in my server. therefore amazon free instance and a micro service https://github.com/ozkanpakdil/CommandRunner did the trick. ...

May 23, 2018 · 1 min · Özkan Pakdil