Comments (8)
Please make sure you have the correct order of the annotation processors
from micronaut-core.
Sorry, I have forgotten to add the pom.
here is the desired section
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<path>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-validation</artifactId>
<version>${micronaut.core.version}</version>
</path>
<path>
<groupId>io.micronaut.openapi</groupId>
<artifactId>micronaut-openapi</artifactId>
<version>${micronaut.openapi.version}</version>
<exclusions>
<exclusion>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-inject</artifactId>
</exclusion>
</exclusions>
</path>
<path>
<groupId>io.micronaut.serde</groupId>
<artifactId>micronaut-serde-processor</artifactId>
<version>${micronaut.serialization.version}</version>
<exclusions>
<exclusion>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-inject</artifactId>
</exclusion>
</exclusions>
</path>
</annotationProcessorPaths>
from micronaut-core.
Please create a sample project
from micronaut-core.
Example Application
https://github.com/f-ambroz/micronaut-lombok-sample-project
Using lomboks @Setter
fixes
ERROR i.m.http.server.RouteExecutor - Unexpected error occurred: Error instantiating bean of type [com.my.amazing.package.api.controller.MyController]
Message: com.my.amazing.package..api.controller.MyController: method 'void ()' not found
Path Taken: new MyController()
However, now I have found new error:
ERROR i.m.http.server.RouteExecutor - Unexpected error occurred: null
java.lang.NullPointerException: null
at com.my.amazing.pckg.api.controller.MyController.callMe(MyController.java:22)
at com.my.amazing.pckg.api.controller.$MyController$Definition$Exec.dispatch(Unknown Source)
at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461)
at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4276)
at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:230)
at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:488)
at io.micronaut.http.server.RouteExecutor.callRoute(RouteExecutor.java:478)
at io.micronaut.http.server.RequestLifecycle.callRoute(RequestLifecycle.java:201)
at io.micronaut.http.server.RequestLifecycle.executeRoute(RequestLifecycle.java:191)
at io.micronaut.http.server.RequestLifecycle.lambda$normalFlow$1(RequestLifecycle.java:181)
at io.micronaut.http.filter.FilterRunner.run(FilterRunner.java:155)
at io.micronaut.http.filter.FilterRunner.run(FilterRunner.java:135)
at io.micronaut.http.server.RequestLifecycle.runWithFilters(RequestLifecycle.java:357)
at io.micronaut.http.server.RequestLifecycle.normalFlow(RequestLifecycle.java:181)
at io.micronaut.http.server.netty.NettyRequestLifecycle.handleNormal(NettyRequestLifecycle.java:88)
at io.micronaut.http.server.netty.RoutingInBoundHandler.accept(RoutingInBoundHandler.java:227)
at io.micronaut.http.server.netty.handler.PipeliningServerHandler$MessageInboundHandler.read(PipeliningServerHandler.java:388)
at io.micronaut.http.server.netty.handler.PipeliningServerHandler.channelRead(PipeliningServerHandler.java:213)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:289)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at [email protected]/java.lang.Thread.runWith(Thread.java:1596)
at [email protected]/java.lang.Thread.run(Thread.java:1583)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:833)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.posix.thread.PosixPlatformThreads.pthreadStartRoutine(PosixPlatformThreads.java:211)
It says, that the injected service is null
from micronaut-core.
This configuration will append the extra processors to the parent's processors. You need to override the configuration completely annotationProcessorPaths combine.self="override"
from micronaut-core.
When I tried using annotationProcessorPaths combine.self="override", the endpoint wasn't alive returning 'page not found'. The same thing for swagger-ui
from micronaut-core.
Because you are missing micronaut-inject-java
from micronaut-core.
You are right, my bad. I had commented-out that section before. Thank you for support!
from micronaut-core.
Related Issues (20)
- Unexpected behaviours with cron expression HOT 2
- Declarative HTTP client methods with primitive return types fail after upgrading to Micronaut 4 HOT 2
- Documentation should syntax highlight JavaScript
- After update MN version to 4.3.8 it can't be compiled in Intellij, but compiles with maven HOT 1
- After upgrade to 4.3.7 route match is randomly null in the SecurityFilter HOT 11
- Unable to retrive a JSON request body as Byte[] or String in Graalvm build HOT 1
- No bean of type exists when importing beans from external libs HOT 3
- support json-schema media type
- Groovy VisitorContext does not support reading annotation processor options
- Object Storage doesn't work with environment variables HOT 1
- Endpoint Logger is not allowing to change default log level HOT 7
- Document how to workaround Project Reactor blocking operations throwing an exception when they are done on an event loop thread HOT 1
- Micronaut-openapi: Can't test file-download endpoints with micronaut-core 4.4.3 HOT 4
- Allow to set an annotation parameter value as an expression
- MN:4.4.0 - Changed behavior for @JsonGetter in @Introspected-annotated classes HOT 6
- Injecting HTTP Client into TypedArgumentBinder results in StackOverflowError HOT 4
- There is no control for the event loop selection outside the controller method e.g. in TypedArgumentBinder HOT 9
- Unable to connect to websocket server using wss:// HOT 5
- http-client throws NoSuchMethodError 'boolean com.fasterxml.jackson.core.io.NumberInput.looksLikeValidNumber(java.lang.String)' HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micronaut-core.