{"action":"created","issue":{"url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/730","repository_url":"https://api.github.com/repos/AxonFramework/AxonFramework","labels_url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/730/labels{/name}","comments_url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/730/comments","events_url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/730/events","html_url":"https://github.com/AxonFramework/AxonFramework/issues/730","id":353524289,"node_id":"MDU6SXNzdWUzNTM1MjQyODk=","number":730,"title":"SagaCreationException causes are obfuscated","user":{"login":"mattupstate","id":166176,"node_id":"MDQ6VXNlcjE2NjE3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/166176?v=4","gravatar_id":"","url":"https://api.github.com/users/mattupstate","html_url":"https://github.com/mattupstate","followers_url":"https://api.github.com/users/mattupstate/followers","following_url":"https://api.github.com/users/mattupstate/following{/other_user}","gists_url":"https://api.github.com/users/mattupstate/gists{/gist_id}","starred_url":"https://api.github.com/users/mattupstate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattupstate/subscriptions","organizations_url":"https://api.github.com/users/mattupstate/orgs","repos_url":"https://api.github.com/users/mattupstate/repos","events_url":"https://api.github.com/users/mattupstate/events{/privacy}","received_events_url":"https://api.github.com/users/mattupstate/received_events","type":"User","site_admin":false},"labels":[{"id":195183,"node_id":"MDU6TGFiZWwxOTUxODM=","url":"https://api.github.com/repos/AxonFramework/AxonFramework/labels/Priority%204:%20Would","name":"Priority 4: Would","color":"cef433","default":false},{"id":566655329,"node_id":"MDU6TGFiZWw1NjY2NTUzMjk=","url":"https://api.github.com/repos/AxonFramework/AxonFramework/labels/Status:%20Information%20Required","name":"Status: Information Required","color":"55edb2","default":false},{"id":864096870,"node_id":"MDU6TGFiZWw4NjQwOTY4NzA=","url":"https://api.github.com/repos/AxonFramework/AxonFramework/labels/Type:%20Question","name":"Type: Question","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"smcvb","id":4687743,"node_id":"MDQ6VXNlcjQ2ODc3NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/4687743?v=4","gravatar_id":"","url":"https://api.github.com/users/smcvb","html_url":"https://github.com/smcvb","followers_url":"https://api.github.com/users/smcvb/followers","following_url":"https://api.github.com/users/smcvb/following{/other_user}","gists_url":"https://api.github.com/users/smcvb/gists{/gist_id}","starred_url":"https://api.github.com/users/smcvb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smcvb/subscriptions","organizations_url":"https://api.github.com/users/smcvb/orgs","repos_url":"https://api.github.com/users/smcvb/repos","events_url":"https://api.github.com/users/smcvb/events{/privacy}","received_events_url":"https://api.github.com/users/smcvb/received_events","type":"User","site_admin":false},"assignees":[{"login":"smcvb","id":4687743,"node_id":"MDQ6VXNlcjQ2ODc3NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/4687743?v=4","gravatar_id":"","url":"https://api.github.com/users/smcvb","html_url":"https://github.com/smcvb","followers_url":"https://api.github.com/users/smcvb/followers","following_url":"https://api.github.com/users/smcvb/following{/other_user}","gists_url":"https://api.github.com/users/smcvb/gists{/gist_id}","starred_url":"https://api.github.com/users/smcvb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smcvb/subscriptions","organizations_url":"https://api.github.com/users/smcvb/orgs","repos_url":"https://api.github.com/users/smcvb/repos","events_url":"https://api.github.com/users/smcvb/events{/privacy}","received_events_url":"https://api.github.com/users/smcvb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-08-23T19:38:42Z","updated_at":"2018-09-05T09:07:37Z","closed_at":null,"author_association":"NONE","body":"While developing a toy application I encountered a problem with saga creation. The exact problem was difficult to determine because of the exception handling hierarchy and minimal log output from the framework. For instance, the only feedback from Axon is from a log message produced by `DefaultCommandGateway` that looks like:\r\n\r\n    $ 2018-08-23 15:17:38.761  WARN 64992 --- [nio-8080-exec-3] o.a.c.gateway.DefaultCommandGateway      : Command 'com.example.command.StartRegistrationCommand' resulted in org.axonframework.eventhandling.saga.repository.SagaCreationException(An error occurred while attempting to create a new managed instance)\r\n\r\nAfter digging around the source code and not finding anything that would log the underlying cause, I went ahead and installed a patch in my local Maven repository to afford myself more verbose log output (because I'm a bad debugger). I added a logger and some output in the `AnnotatedSagaRepository::doCreateInstance` method since that appears to be closest to the exception. Turns out, I didn't have an `EventScheduler` bean in my Spring Application context, of which the saga had a dependency on. \r\n\r\nMaybe this is by design, or I'm missing something altogether, but I would expect some way to learn about the underlying cause of a saga not being able to be created via some log output from Axon.\r\n\r\nFinally, and this is unrelated to the aforementioned issue, but is it also by design that the `axon-spring-boot-autoconfigure` module doesn't setup a `SimpleEventScheduler` bean by default?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/comments/418656783","html_url":"https://github.com/AxonFramework/AxonFramework/issues/730#issuecomment-418656783","issue_url":"https://api.github.com/repos/AxonFramework/AxonFramework/issues/730","id":418656783,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODY1Njc4Mw==","user":{"login":"smcvb","id":4687743,"node_id":"MDQ6VXNlcjQ2ODc3NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/4687743?v=4","gravatar_id":"","url":"https://api.github.com/users/smcvb","html_url":"https://github.com/smcvb","followers_url":"https://api.github.com/users/smcvb/followers","following_url":"https://api.github.com/users/smcvb/following{/other_user}","gists_url":"https://api.github.com/users/smcvb/gists{/gist_id}","starred_url":"https://api.github.com/users/smcvb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smcvb/subscriptions","organizations_url":"https://api.github.com/users/smcvb/orgs","repos_url":"https://api.github.com/users/smcvb/repos","events_url":"https://api.github.com/users/smcvb/events{/privacy}","received_events_url":"https://api.github.com/users/smcvb/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T09:07:37Z","updated_at":"2018-09-05T09:07:37Z","author_association":"MEMBER","body":"Are you using Spring to auto configure your components @mattupstate?\r\nI am not familiar with combining the `@Setter` of Lombok with the `@Autowired` annotation like you're doing.\r\nIf you replace that `@Setter` annotation with a regular `@Autowired`/`@Inject`, you should be fine with wiring your components. Taken you're in a Spring environment though.\r\n\r\nIf you're not, you will can leverage the `ConfigurationResourceInjector` to let Axon automatically wire infrastructure components like the `CommandGateway` and `EventScheduler` from the `Configuration`.\r\nThe `CommandGateway` will surely be pulled in, for the `EventScheduler` you might need to add it as a component to the `Configurer`."}}
{"actor":{"display_login":"smcvb"}}