Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 03 2020 13:10
    @jameskleeh banned @orubel
  • Mar 30 2020 18:40
    @graemerocher banned @BeApi_io_twitter
  • Mar 30 2020 16:55
    @graemerocher banned @orubel
GwennaelLonvert
@GwennaelLonvert
Hello. I need to put in JVM cache the result of an API Call. To do so, I use @Cacheable.
But when the API Call responds with a ReadTimeoutException, I would like not to put in cache.
I know Spring provides this feature with "unless" attribute (and also "condition" for the parameters of the method)
I don't see anything in Micronaut to do this kind of job. Do I miss something or is it something not implementend ? Could it be implemented ?
Thank for your help
khekrn
@khekrn
@khekrn
Is MySQL graal native image is supported with Micronaut Data ?
I'm getting the below error when I try to connect with Mysql and Graal via Micronaut Data
image.png
Graeme Rocher
@graemerocher
it is supported, it looks like you have a , in your port?
would check your config
khekrn
@khekrn
@graemerocher In the application.yml file the url is given as url: jdbc:mysql://localhost:3306/mydb. Also attaching the screenshot for reference
Conf.png
Also when I execute without native image, It's perfectly working fine
1.png
Graeme Rocher
@graemerocher
which continuously tests Micronaut Data + native image
khekrn
@khekrn
Sure and Thank You for the quick reply
Graeme Rocher
@graemerocher
which tests the JPA version
khekrn
@khekrn
Okay Got it
khekrn
@khekrn
@graemerocher I took the pull of the micronaut-data-jpa-graal/tree/2.1.x_mysql and natively executed locally and it's not working. But when I spin up mysql via docker it works. The local machine uses mysql version 8.0.22
Mysql.png
Graeme Rocher
@graemerocher
something wrong with how you have setup the local database ports? Very weird whatever is the case
khekrn
@khekrn
Ok
But how come when executing without native image it's working fine ?
Graeme Rocher
@graemerocher
yeah I am not sure myself
but if you report an issue with steps to reproduce and steps of how you setup the local database would we can try have a look
khekrn
@khekrn
Sure I will do that
and Thanks
khekrn
@khekrn
@graemerocher the issue is reported in the git
Kurt Guenther
@KurtGuenther_gitlab
It looks like there is a problem with the project generator https://micronaut.io/launch/ as it generates with library id("org.jetbrains.kotlin2.2.kapt") version "1.4.10" that gives a 404 error. Using id("org.jetbrains.kotlin.kapt") version "1.4.10" as in the groovy build.gradle works.
James Kleeh
@jameskleeh
@KurtGuenther_gitlab please file an issue
I can’t reproduce looking at the preview
Kurt Guenther
@KurtGuenther_gitlab
@jameskleeh Oddly it works on windows but not on Ubuntu 20.4. Newbie, here. Where do I file the issue?
James Kleeh
@jameskleeh
Micronaut-projects/micronaut-starter
Kurt Guenther
@KurtGuenther_gitlab
github, gotcha.
Abhishek Kumar
@abhikumarblume
Hello guys,,, Is there a way to get traceId printed along with SLF4j logs in Intellij console ? I don't want to use zipkins .
Abhishek Kumar
@abhikumarblume
Hello Guys,,, . In Springboot, just by adding sleuth dependency , we can see 'traceId' and 'spanId' in STS console. I am trying to mimic similar functionality in micronaut using Intellij . I tried injecting dependency implementation "io.micronaut:micronaut-tracing" along with use of annotation 'io.micronaut.http.annotation.NewSpan' at controller. But i am not able to see 'traceId' in Intelli console ? do i have to override logback.xml file ?
endercode99
@endercode99
Hi,
I'm looking to contribute to the Couchbase integration and upgrade it to the latest Couchbase SDK (3.1)
I see that some work has already been done but had to be reverted due to it being unstable. How would I go about upgrading it? Thanks
1 reply
pratik-brex
@pratik-brex

hey folks, regarding this issue: micronaut-projects/micronaut-openapi#414

I wanted to be able to repro it in the micronaut-openapi groovy script. is there a way to define a kotlin bean in the test or is that not possible yet? i couldn't find examples

kbachl
@kbachl
Hi Micronauts,
got more a general question regarding application config. We have this cool application.yml file and that works awesome, but what would it need if I have the requirement to make this thing configurable at runtime (e.g.: change some settings values) and also save the changed configuration? Any hint in a direction how to best solve this is really appreciated :)
Sergio del Amo
@sdelamo

@kbachl Use env. variables.

E.g.

micronaut:
  security:
    oauth2:
      clients:
        cognito:
          client-id: '${OAUTH_CLIENT_ID}'
3 replies
if you need to change things at runtime. You may need to play with Refreshable scope: https://docs.micronaut.io/latest/guide/index.html#refreshable and /refresh endpoint.
Adrian A.
@aadrian
Hi. Main Download page still points to v2.2.1 https://micronaut.io/download.html . Is there a reason for not using v2.2.2 even if it's been released 5 days ago? Thanks.
2 replies
khekrn
@khekrn
I'm getting an error when starting micronaut with netty in OS X. I'm using native netty via netty-transport-native-kqueue
11:28:41.387 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting... 11:28:41.541 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed. 11:28:46.853 [main] ERROR i.m.h.server.netty.NettyHttpServer - Error starting Micronaut server: incompatible event loop type: io.netty.channel.nio.NioEventLoop java.lang.IllegalStateException: incompatible event loop type: io.netty.channel.nio.NioEventLoop at io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:461) at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:87) at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:81) at io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:86) at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:323) at io.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:272) at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:268) at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:246) at io.micronaut.http.server.netty.NettyHttpServer.bindServerToHost(NettyHttpServer.java:470) at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:307) at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:109) at io.micronaut.runtime.Micronaut.lambda$start$2(Micronaut.java:70) at java.base/java.util.Optional.ifPresent(Optional.java:176) at io.micronaut.runtime.Micronaut.start(Micronaut.java:68) at io.micronaut.runtime.Micronaut.run(Micronaut.java:299) at io.micronaut.runtime.Micronaut.run(Micronaut.java:285) at com.khekrn.Application.main(Application.java:8) 11:28:46.866 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated... 11:28:46.872 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed. 11:28:46.872 [main] ERROR io.micronaut.runtime.Micronaut - Error starting Micronaut server: Unable to start Micronaut server on port: 8080 io.micronaut.http.server.exceptions.ServerStartupException: Unable to start Micronaut server on port: 8080 at io.micronaut.http.server.netty.NettyHttpServer.bindServerToHost(NettyHttpServer.java:489) at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:307) at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:109) at io.micronaut.runtime.Micronaut.lambda$start$2(Micronaut.java:70) at java.base/java.util.Optional.ifPresent(Optional.java:176) at io.micronaut.runtime.Micronaut.start(Micronaut.java:68) at io.micronaut.runtime.Micronaut.run(Micronaut.java:299) at io.micronaut.runtime.Micronaut.run(Micronaut.java:285) at com.khekrn.Application.main(Application.java:8) Caused by: java.lang.IllegalStateException: incompatible event loop type: io.netty.channel.nio.NioEventLoop at io.netty.channel.AbstractChannel$AbstractUnsafe.register(AbstractChannel.java:461) at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:87) at io.netty.channel.SingleThreadEventLoop.register(SingleThreadEventLoop.java:81) at io.netty.channel.MultithreadEventLoopGroup.register(MultithreadEventLoopGroup.java:86) at io.netty.bootstrap.AbstractBootstrap.initAndRegister(AbstractBootstrap.java:323) at io.netty.bootstrap.AbstractBootstrap.doBind(AbstractBootstrap.java:272) at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:268) at io.netty.bootstrap.AbstractBootstrap.bind(AbstractBootstrap.java:246) at io.micronaut.http.server.netty.NettyHttpServer.bindServerToHost(NettyHttpServer.java:470) ... 8 common frames omitted
Any suggestions how to resolve this issue ?
application.yaml
``
micronaut: application: name: nettyHelloWorld netty: event-loops: default: prefer-native-transport: true
Brian Schalme
@bschalme

Hello my fellow Micronauts,

I wrote a blog post on How to Secure Your Micronaut App with FreshBooks. FreshBooks is a small business invoicing and accounting SaaS.

This post follows the examples of the Micronaut Security Guides. It shows how to deal with an authorization server that does not support OpenID, that does not return a JWT, but returns a standard OAuth 2.0 JSON document with the access and refresh tokens.

Feedback, bricks and bouquets are most welcome.

2 replies
Phill Nacelli - Chief Technology Officer
@pnacelli
Hi Folks, is there a dedicated Micronaut Data room/channel in Gitter?
2 replies
James Kleeh
@jameskleeh
No
Ben Manes
@ben-manes
12:49
Hi all. I am finishing up work for Caffeine 3.0, which will be JDK11-based. This has a few API breaks for misc cleanup where the impact should be very low. Please let me know if there is anything you would like to see from this project. If that can be done without breaking backwards compatibility then we might defer as a feature request. But if you have suggestions that would break compatibility, we can use this opportunity to review them.
Álvaro Sánchez-Mariscal
@alvarosanchez
@ben-manes is there any milestone or release candidate I can try?
14 replies