You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "donndorf (via GitHub)" <gi...@apache.org> on 2024/08/26 10:56:25 UTC

[I] Empty Constructor Call in Handler method being generated for Beans that inject other beans [incubator-kie-kogito-runtimes]

donndorf opened a new issue, #3637:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3637

   ### Describe the bug
   
   Scenario:
   
   Bean A
   Bean B
   
   Bean B is being injected into Bean A
   Bean A is used in a BPMN service Task
   
   Generating the code creates an Empty Constructor Call for Bean A. 
   This leads to failure at application Startup because the Injected Bean B is required as Argument
   
   I uploaded a small example here: https://github.com/donndorf/kogito-inject-empty-constructor
   
   ### Expected behavior
   
   Either Constructor being called correctly or Bean being fetched vie CDI /Quarkus Arc container
   
   ### Actual behavior
   
   Empty constructor called for Bean
   
   ### How to Reproduce?
   
   https://github.com/donndorf/kogito-inject-empty-constructor
   
   1. Checkout the project
   2. Run a mvn clean compile
   3. run the Test and check the Terminal for Errors
   
   ### Output of `uname -a` or `ver`
   
   _No response_
   
   ### Output of `java -version`
   
   _No response_
   
   ### GraalVM version (if different from Java)
   
   _No response_
   
   ### Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)
   
   _No response_
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   _No response_
   
   ### Additional information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] Empty Constructor Call in Handler method being generated for Beans that inject other beans [incubator-kie-kogito-runtimes]

Posted by "mcruzdev (via GitHub)" <gi...@apache.org>.
mcruzdev commented on issue #3637:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3637#issuecomment-3738538900

   I would like to work on it ;) 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org