Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jmolecules logs warning and error #10834

Open
pascalgrimaud opened this issue Sep 14, 2024 · 0 comments
Open

jmolecules logs warning and error #10834

pascalgrimaud opened this issue Sep 14, 2024 · 0 comments

Comments

@pascalgrimaud
Copy link
Member

When launching tests for generated fullapp, which uses jqassistant and jmoledules modules, there are these logs:

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: java:PostConstruct
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels methods annotated `@javax.annotation.PostConstruct` with 'PostConstruct'.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: java:PreDestroy
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels methods annotated `@javax.annotation.PreDestroy` with 'PreDestroy'.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:AggregateRootExtend
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which extend from
[WARNING]             org.jmolecules.ddd.types.AggregateRoot as :JMolecules:DDD:AggregateRoot:Entity:Identifiable.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:AggregateRootType
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which are annotated by
[WARNING]             org.jmolecules.ddd.annotation.AggregateRoot as :JMolecules:DDD:AggregateRoot:Entity:Identifiable.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:BoundedContextDependency
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Propagates the dependencies between Types of different Bounded Contexts to the level of Bounded
[WARNING]             Contexts including an aggregated weight.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:BoundedContextPackage
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Maps all Java types which are located in a package annotated by
[WARNING]             org.jmolecules.ddd.annotation.BoundedContext to the corresponding BoundedContext node.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:EntityExtend
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which extend from org.jmolecules.ddd.annotation.Entity as
[WARNING]             :JMolecules:DDD:Entity:Identifiable.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:EntityType
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which are annotated by org.jmolecules.ddd.annotation.Entity as
[WARNING]             :JMolecules:DDD:Entity:Identifiable.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:FactoryType
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which are annotated by
[WARNING]             org.jmolecules.ddd.annotation.Factory as :JMolecules:DDD:Factory.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:IdentifiedByAnnotation
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Merges a :HAS_IDENTITY relation for each member that is annotated by
[WARNING]             org.jmolecules.ddd.annotation.Identity between the defining type and the member and marks the member as
[WARNING]             :JMolecules:DDD:Identity.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:IdentifiedByMethod
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Merges a :HAS_IDENTITY relation between the defining type and the 'getId' method when the type
[WARNING]             extends from either 'AggregateRoot' or 'Entity' and marks the method as :JMolecules:DDD:Identity.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:IdentifiedBySuperClass
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Transfers the :HAS_IDENTITY relation from a base class to its implementing classes.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:IdentifierExtend
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which extend from org.jmolecules.ddd.types.Identifier as
[WARNING]             :JMolecules:DDD:Identifier.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:ModuleDependency
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Propagates the dependencies between Types of different Modules to the level of Module including an
[WARNING]             aggregated weight.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:ModulePackage
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Maps all Java types which are located in a package annotated by
[WARNING]             org.jmolecules.ddd.annotation.Module to the corresponding Module node.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:RepositoryExtend
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which extend from
[WARNING]             org.jmolecules.ddd.types.Repository as :JMolecules:DDD:Repository.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:RepositoryType
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which are annotated by
[WARNING]             org.jmolecules.ddd.annotation.Repository as :JMolecules:DDD:Repository.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:ServiceType
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which are annotated by
[WARNING]             org.jmolecules.ddd.annotation.Service as :JMolecules:DDD:Service.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:ValueObjectExtend
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which extend from org.jmolecules.ddd.types.ValueObject as
[WARNING]             :JMolecules:DDD:ValueObject.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-ddd:ValueObjectType
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which are annotated by
[WARNING]             org.jmolecules.ddd.annotation.ValueObject as :JMolecules:DDD:ValueObject.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-event:DomainEvent
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Identifies all :JMolecules:Event:DomainEvent types.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-event:DomainEventExtend
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which extend from
[WARNING]             org.jmolecules.event.types.DomainEvent as :JMolecules:Event:DomainEvent.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-event:DomainEventType
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all Java types which are annotated by
[WARNING]             org.jmolecules.event.annotation.DomainEvent as :JMolecules:Event:DomainEvent.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-hexagonal:Adapter
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Identifies all adapter types.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-hexagonal:AdapterPackage
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Associates all Java types which are in packages that are annotated by org.jmolecules.architecture.hexagonal.-Type-Adapter
[WARNING]             to the :JMolecules:Architecture:Hexagonal:Adapter{name, type}-node.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-hexagonal:ApplicationCore
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Identifies all types that are pat of the application core.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: jmolecules-hexagonal:Port
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Identifies all port types.
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: spring-mvc:RestControllerAdvice
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all types annotated with "@org.springframework.web.bind.annotation.RestControllerAdvice" with "Spring",
[WARNING]             "RestControllerAdvice", "ControllerAdvice", "Component" and "Injectable".
[WARNING] -------------------------------------------------------------------
[WARNING] 

[WARNING] --[ Concept Application Failure ]----------------------------------
[WARNING] Concept: spring-ws:Endpoint
[WARNING] Severity: MINOR
[WARNING] Number of rows: 0
[WARNING] 
[WARNING] Labels all types annotated with "@org.springframework.ws.server.endpoint.annotation.Endpoint" with "Spring",
[WARNING]             "Endpoint", "Component" and "Injectable".
[WARNING] -------------------------------------------------------------------
[WARNING] 

[ERROR] --[ Constraint Violation ]-----------------------------------------
[ERROR] Constraint: spring-injection:BeanProducerMustNotBeInvokedDirectly
[ERROR] Severity: MAJOR
[ERROR] Number of rows: 1
[ERROR] 
[ERROR] Bean producer methods must not be invoked directly by the application.
[ERROR] 
[ERROR] Type=tech.jhipster.fullapp.shared.authentication.infrastructure.primary.SecurityConfiguration, Invocation=org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity), line 92, BeanProducerType=tech.jhipster.fullapp.shared.authentication.infrastructure.primary.SecurityConfiguration, BeanProducer=tech.jhipster.fullapp.shared.authentication.infrastructure.primary.AuthenticationTokenReader authenticationTokenReader()
[ERROR] -------------------------------------------------------------------
[ERROR] 

[ERROR] --[ Constraint Violation ]-----------------------------------------
[ERROR] Constraint: spring-injection:FieldsOfInjectablesMustNotBeManipulated
[ERROR] Severity: MAJOR
[ERROR] Number of rows: 1
[ERROR] 
[ERROR] Fields of injectable types must not be manipulated, except from constructors.
[ERROR] 
[ERROR] Injectable=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses, WriteToInjectableField=void <clinit>(), line 15, Field=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses EMPTY
[ERROR] -------------------------------------------------------------------
[ERROR] 

[ERROR] --[ Constraint Violation ]-----------------------------------------
[ERROR] Constraint: spring-injection:InjectablesMustNotBeAccessedStatically
[ERROR] Severity: MAJOR
[ERROR] Number of rows: 4
[ERROR] 
[ERROR] Injectable components must not be accessed from static variables.
[ERROR] 
[ERROR] Type=tech.jhipster.fullapp.shared.kipe.application.FullappAuthorizations, Method=void <init>(java.util.Collection), Field=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses EMPTY
[ERROR] Type=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses, Method=void <clinit>(), Field=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses EMPTY
[ERROR] Type=tech.jhipster.fullapp.shared.kipe.domain.RolesAccessesTest$SpecificAuthorizedTest, Method=void shouldNotBeSpecificAuthorizedOnEmptyRolesAccesses(), Field=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses EMPTY
[ERROR] Type=tech.jhipster.fullapp.shared.kipe.domain.RolesAccessesTest$AllAuthorizedTest, Method=void shouldNotBeAllAuthorizedOnEmptyRolesAccesses(), Field=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses EMPTY
[ERROR] -------------------------------------------------------------------
[ERROR] 

[ERROR] --[ Constraint Violation ]-----------------------------------------
[ERROR] Constraint: spring-injection:InjectablesMustNotBeHeldInStaticVariables
[ERROR] Severity: MAJOR
[ERROR] Number of rows: 1
[ERROR] 
[ERROR] Injectable components must not be held in static variables.
[ERROR] 
[ERROR] Type=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses, Field=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses EMPTY
[ERROR] -------------------------------------------------------------------
[ERROR] 

[ERROR] --[ Constraint Violation ]-----------------------------------------
[ERROR] Constraint: spring-injection:InjectablesMustNotBeInstantiated
[ERROR] Severity: MAJOR
[ERROR] Number of rows: 3
[ERROR] 
[ERROR] If the constructor of an Injectable is called from another Injectable, then the caller must be a BeanProducer.
[ERROR] 
[ERROR] Type=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses, Method=void <clinit>(), Injectable=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses
[ERROR] Type=tech.jhipster.fullapp.shared.kipe.application.FullappAuthorizations, Method=void <init>(java.util.Collection), Injectable=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses
[ERROR] Type=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses, Method=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses merge(tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses), Injectable=tech.jhipster.fullapp.shared.kipe.domain.RolesAccesses
[ERROR] -------------------------------------------------------------------
[ERROR] 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants