3 Replies Latest reply on Dec 19, 2017 2:33 PM by José Antonio Delgado Trujillo

    WeldStartService problem

    José Antonio Delgado Trujillo Newbie

      I was using Wildly 11.0.0.CR1 and try to deploy a project war that is using a demo backend with deltaspike.

      I have got the next error:

       

      ---------------------------------

      20:58:41,146 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "pra3.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"pra3.war\".WeldStartService" => "Failed to start service

          Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

      Exception 0 :

      java.lang.NullPointerException

      ----------------------------------

       

      Can someone help me to understand the error message?

        • 1. Re: WeldStartService problem
          Tomas Remes Expert

          Hi José,

           

          Can you please post full stacktrace of the NullPointerException? Which version of DeltaSpike and Weld are you using?

          • 2. Re: WeldStartService problem
            José Antonio Delgado Trujillo Newbie

            This is the full stacktrace

             

            deltaspike version 1.8.0

            cdi-api 2.1.Beta1

             

            13:24:25,614 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) WFLYDS0004: Found pra3.war in deployment directory. To trigger deployment create a file called pra3.war.dodeploy

            13:24:28,176 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "pra3.war" (runtime-name: "pra3.war")

            13:24:56,710 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0059: Class Path entry yuicompressor-2.4.8.jar in /Users/jdeltru/PFC/wildfly-11.0.0.CR1/standalone/deployments/pra3.war/WEB-INF/lib/vaadin-sass-compiler-0.9.13.jar  does not point to a valid jar for a Class-Path reference.

            13:24:56,718 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0059: Class Path entry js-1.7R2.jar in /Users/jdeltru/PFC/wildfly-11.0.0.CR1/standalone/deployments/pra3.war/WEB-INF/lib/vaadin-sass-compiler-0.9.13.jar  does not point to a valid jar for a Class-Path reference.

            13:24:57,122 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0059: Class Path entry vaadin-server-8.0.0.jar in /Users/jdeltru/PFC/wildfly-11.0.0.CR1/standalone/deployments/pra3.war/WEB-INF/lib/vaadin-cdi-2.0.0.jar  does not point to a valid jar for a Class-Path reference.

            13:24:57,125 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0059: Class Path entry vaadin-shared-8.0.0.jar in /Users/jdeltru/PFC/wildfly-11.0.0.CR1/standalone/deployments/pra3.war/WEB-INF/lib/vaadin-cdi-2.0.0.jar  does not point to a valid jar for a Class-Path reference.

            13:24:57,126 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0059: Class Path entry gentyref-1.2.0.jar in /Users/jdeltru/PFC/wildfly-11.0.0.CR1/standalone/deployments/pra3.war/WEB-INF/lib/vaadin-cdi-2.0.0.jar  does not point to a valid jar for a Class-Path reference.

            13:24:57,126 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0059: Class Path entry deltaspike-core-api-1.7.2.jar in /Users/jdeltru/PFC/wildfly-11.0.0.CR1/standalone/deployments/pra3.war/WEB-INF/lib/vaadin-cdi-2.0.0.jar  does not point to a valid jar for a Class-Path reference.

            13:24:57,127 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0059: Class Path entry deltaspike-core-impl-1.7.2.jar in /Users/jdeltru/PFC/wildfly-11.0.0.CR1/standalone/deployments/pra3.war/WEB-INF/lib/vaadin-cdi-2.0.0.jar  does not point to a valid jar for a Class-Path reference.

            13:25:01,553 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) WFLYJPA0002: Read persistence.xml for personsdb

            13:25:02,791 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 69) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'pra3.war#personsdb'

            13:25:03,075 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 69) HHH000204: Processing PersistenceUnitInfo [

              name: personsdb

              ...]

            13:25:03,407 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0003: Processing weld deployment pra3.war

            13:25:04,013 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 69) HHH000412: Hibernate Core {5.1.10.Final}

            13:25:04,011 INFO  [org.apache.deltaspike.core.impl.config.EnvironmentPropertyConfigSourceProvider] (MSC service thread 1-2) Custom config found by DeltaSpike. Name: 'META-INF/apache-deltaspike.properties', URL: 'vfs:/Users/jdeltru/PFC/wildfly-11.0.0.CR1/standalone/deployments/pra3.war/WEB-INF/classes/META-INF/apache-deltaspike.properties'

            13:25:04,027 INFO  [org.apache.deltaspike.core.impl.config.EnvironmentPropertyConfigSourceProvider] (MSC service thread 1-2) Custom config found by DeltaSpike. Name: 'META-INF/apache-deltaspike.properties', URL: 'vfs:/Users/jdeltru/PFC/wildfly-11.0.0.CR1/standalone/deployments/pra3.war/WEB-INF/lib/deltaspike-jpa-module-impl-1.8.0.jar/META-INF/apache-deltaspike.properties'

            13:25:04,059 INFO  [org.apache.deltaspike.core.util.ProjectStageProducer] (MSC service thread 1-2) Computed the following DeltaSpike ProjectStage: Production

            13:25:04,130 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) WFLYEJB0473: JNDI bindings for session bean named 'PersonService' in deployment unit 'deployment "pra3.war"' are as follows:

             

              java:global/pra3/PersonService!pfc.vaadin.pra3.backend.PersonService

              java:app/pra3/PersonService!pfc.vaadin.pra3.backend.PersonService

              java:module/PersonService!pfc.vaadin.pra3.backend.PersonService

              java:global/pra3/PersonService

              java:app/pra3/PersonService

              java:module/PersonService

             

            13:25:04,151 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 69) HHH000206: hibernate.properties not found

            13:25:04,191 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 69) HHH000021: Bytecode provider name : javassist

            13:25:04,639 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 69) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}

            13:25:07,862 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 69) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'pra3.war#personsdb'

            13:25:09,710 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 69) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect

            13:25:09,726 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 69) HHH000431: Unable to determine H2 database version, certain features may not work

            13:25:10,190 INFO  [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 69) Envers integration enabled? : true

            13:25:21,492 WARN  [org.hibernate.cfg.beanvalidation.TypeSafeActivator] (ServerService Thread Pool -- 69) HHH000274: Unable to apply constraints on DDL for pfc.vaadin.pra3.backend.Person: java.lang.NullPointerException

              at sun.reflect.annotation.TypeAnnotationParser.mapTypeAnnotations(TypeAnnotationParser.java:356)

              at sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl.<init>(AnnotatedTypeFactory.java:139)

              at sun.reflect.annotation.AnnotatedTypeFactory.buildAnnotatedType(AnnotatedTypeFactory.java:65)

              at sun.reflect.annotation.TypeAnnotationParser.buildAnnotatedType(TypeAnnotationParser.java:79)

              at java.lang.reflect.Field.getAnnotatedType(Field.java:1170)

              at org.hibernate.validator.internal.metadata.provider.TypeAnnotationAwareMetaDataProvider.findTypeAnnotationConstraintsForMember(TypeAnnotationAwareMetaDataProvider.java:65)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.findPropertyMetaData(AnnotationMetaDataProvider.java:244)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.getFieldMetaData(AnnotationMetaDataProvider.java:227)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.retrieveBeanConfiguration(AnnotationMetaDataProvider.java:137)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.getBeanConfiguration(AnnotationMetaDataProvider.java:125)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.getBeanConfigurationForHierarchy(AnnotationMetaDataProvider.java:108)

              at org.hibernate.validator.internal.metadata.BeanMetaDataManager.createBeanMetaData(BeanMetaDataManager.java:203)

              at org.hibernate.validator.internal.metadata.BeanMetaDataManager.getOrCreateBeanMetaData(BeanMetaDataManager.java:231)

              at org.hibernate.validator.internal.metadata.BeanMetaDataManager.getBeanMetaData(BeanMetaDataManager.java:178)

              at org.hibernate.validator.internal.engine.ValidatorImpl.getConstraintsForClass(ValidatorImpl.java:326)

              at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:207)

              at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyRelationalConstraints(TypeSafeActivator.java:191)

              at org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyRelationalConstraints(TypeSafeActivator.java:150)

              at org.hibernate.cfg.beanvalidation.TypeSafeActivator.activate(TypeSafeActivator.java:98)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.integrate(BeanValidationIntegrator.java:132)

              at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:284)

              at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:422)

              at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:880)

              at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:167)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:125)

              at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:640)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:209)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

              at java.lang.Thread.run(Thread.java:748)

              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

             

            13:25:22,896 INFO  [stdout] (ServerService Thread Pool -- 69) Hibernate: drop table Person if exists

            13:25:22,910 INFO  [stdout] (ServerService Thread Pool -- 69) Hibernate: drop sequence if exists hibernate_sequence

            13:25:22,920 INFO  [stdout] (ServerService Thread Pool -- 69) Hibernate: create sequence hibernate_sequence start with 1 increment by 1

            13:25:22,930 INFO  [stdout] (ServerService Thread Pool -- 69) Hibernate: create table Person (id bigint not null, version integer not null, email varchar(255), name varchar(255), pass varchar(255), surname varchar(255), user varchar(255), primary key (id))

            13:25:22,999 INFO  [org.hibernate.tool.schema.internal.SchemaCreatorImpl] (ServerService Thread Pool -- 69) HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@4558ef9'

            13:25:23,454 INFO  [org.jboss.weld.Event] (MSC service thread 1-4) WELD-000411: Observer method [BackedAnnotatedMethod] org.apache.deltaspike.data.impl.RepositoryExtension.processAnnotatedType(@Observes ProcessAnnotatedType<X>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.

            13:25:23,520 INFO  [org.jboss.weld.Event] (MSC service thread 1-4) WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.interceptor.GlobalInterceptorExtension.promoteInterceptors(@Observes ProcessAnnotatedType, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.

            13:25:23,756 INFO  [org.jboss.weld.Event] (MSC service thread 1-4) WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.message.MessageBundleExtension.detectInterfaces(@Observes ProcessAnnotatedType) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.

            13:25:23,792 INFO  [org.jboss.weld.Event] (MSC service thread 1-4) WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.core.impl.config.ConfigurationExtension.findDynamicConfigurationBeans(@Observes ProcessAnnotatedType<?>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.

            13:25:23,969 INFO  [org.jboss.weld.Event] (MSC service thread 1-4) WELD-000411: Observer method [BackedAnnotatedMethod] public org.apache.deltaspike.partialbean.impl.PartialBeanBindingExtension.findInvocationHandlerBindings(@Observes ProcessAnnotatedType<X>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.

            13:25:24,075 INFO  [org.jboss.weld.Event] (MSC service thread 1-4) WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension.vetoBeans(@Observes ProcessAnnotatedType, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.

            13:25:26,115 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."pra3.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."pra3.war".WeldStartService: Failed to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

              at java.lang.Thread.run(Thread.java:748)

            Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

            Exception 0 :

            java.lang.NullPointerException

              at sun.reflect.annotation.TypeAnnotationParser.mapTypeAnnotations(TypeAnnotationParser.java:356)

              at sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl.<init>(AnnotatedTypeFactory.java:139)

              at sun.reflect.annotation.AnnotatedTypeFactory.buildAnnotatedType(AnnotatedTypeFactory.java:65)

              at sun.reflect.annotation.TypeAnnotationParser.buildAnnotatedType(TypeAnnotationParser.java:79)

              at java.lang.reflect.Field.getAnnotatedType(Field.java:1170)

              at org.hibernate.validator.internal.metadata.provider.TypeAnnotationAwareMetaDataProvider.findTypeAnnotationConstraintsForMember(TypeAnnotationAwareMetaDataProvider.java:65)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.findPropertyMetaData(AnnotationMetaDataProvider.java:244)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.getFieldMetaData(AnnotationMetaDataProvider.java:227)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.retrieveBeanConfiguration(AnnotationMetaDataProvider.java:137)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.getBeanConfiguration(AnnotationMetaDataProvider.java:125)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.getBeanConfigurationForHierarchy(AnnotationMetaDataProvider.java:108)

              at org.hibernate.validator.internal.metadata.BeanMetaDataManager.createBeanMetaData(BeanMetaDataManager.java:203)

              at org.hibernate.validator.internal.metadata.BeanMetaDataManager.getOrCreateBeanMetaData(BeanMetaDataManager.java:231)

              at org.hibernate.validator.internal.metadata.BeanMetaDataManager.getBeanMetaData(BeanMetaDataManager.java:178)

              at org.hibernate.validator.internal.engine.ValidatorImpl.getConstraintsForClass(ValidatorImpl.java:326)

              at org.hibernate.validator.internal.cdi.ValidationExtension.determineConstrainedCallables(ValidationExtension.java:241)

              at org.hibernate.validator.internal.cdi.ValidationExtension.processAnnotatedType(ValidationExtension.java:228)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)

              at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)

              at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:299)

              at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:277)

              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:255)

              at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessAnnotatedType(ContainerLifecycleEvents.java:197)

              at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessAnnotatedType(ContainerLifecycleEvents.java:169)

              at org.jboss.weld.bootstrap.BeanDeployer.processAnnotatedTypes(BeanDeployer.java:156)

              at org.jboss.weld.bootstrap.BeanDeployment.createTypes(BeanDeployment.java:245)

              at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:407)

              at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)

              at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:94)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

              at java.lang.Thread.run(Thread.java:748)

             

              at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessAnnotatedType(ContainerLifecycleEvents.java:204)

              at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessAnnotatedType(ContainerLifecycleEvents.java:169)

              at org.jboss.weld.bootstrap.BeanDeployer.processAnnotatedTypes(BeanDeployer.java:156)

              at org.jboss.weld.bootstrap.BeanDeployment.createTypes(BeanDeployment.java:245)

              at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:407)

              at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)

              at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:94)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)

              ... 3 more

             

            13:25:26,231 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "pra3.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"pra3.war\".WeldStartService" => "Failed to start service

                Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:

            Exception 0 :

            java.lang.NullPointerException

              at sun.reflect.annotation.TypeAnnotationParser.mapTypeAnnotations(TypeAnnotationParser.java:356)

              at sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl.<init>(AnnotatedTypeFactory.java:139)

              at sun.reflect.annotation.AnnotatedTypeFactory.buildAnnotatedType(AnnotatedTypeFactory.java:65)

              at sun.reflect.annotation.TypeAnnotationParser.buildAnnotatedType(TypeAnnotationParser.java:79)

              at java.lang.reflect.Field.getAnnotatedType(Field.java:1170)

              at org.hibernate.validator.internal.metadata.provider.TypeAnnotationAwareMetaDataProvider.findTypeAnnotationConstraintsForMember(TypeAnnotationAwareMetaDataProvider.java:65)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.findPropertyMetaData(AnnotationMetaDataProvider.java:244)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.getFieldMetaData(AnnotationMetaDataProvider.java:227)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.retrieveBeanConfiguration(AnnotationMetaDataProvider.java:137)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.getBeanConfiguration(AnnotationMetaDataProvider.java:125)

              at org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvider.getBeanConfigurationForHierarchy(AnnotationMetaDataProvider.java:108)

              at org.hibernate.validator.internal.metadata.BeanMetaDataManager.createBeanMetaData(BeanMetaDataManager.java:203)

              at org.hibernate.validator.internal.metadata.BeanMetaDataManager.getOrCreateBeanMetaData(BeanMetaDataManager.java:231)

              at org.hibernate.validator.internal.metadata.BeanMetaDataManager.getBeanMetaData(BeanMetaDataManager.java:178)

              at org.hibernate.validator.internal.engine.ValidatorImpl.getConstraintsForClass(ValidatorImpl.java:326)

              at org.hibernate.validator.internal.cdi.ValidationExtension.determineConstrainedCallables(ValidationExtension.java:241)

              at org.hibernate.validator.internal.cdi.ValidationExtension.processAnnotatedType(ValidationExtension.java:228)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)

              at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)

              at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:299)

              at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:277)

              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:255)

              at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessAnnotatedType(ContainerLifecycleEvents.java:197)

              at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessAnnotatedType(ContainerLifecycleEvents.java:169)

              at org.jboss.weld.bootstrap.BeanDeployer.processAnnotatedTypes(BeanDeployer.java:156)

              at org.jboss.weld.bootstrap.BeanDeployment.createTypes(BeanDeployment.java:245)

              at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:407)

              at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)

              at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:94)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

              at java.lang.Thread.run(Thread.java:748)

            "}}

            13:25:27,381 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0010: Deployed "pra3.war" (runtime-name : "pra3.war")

            13:25:27,386 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report

            WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."pra3.war".WeldStartService: Failed to start service

            • 3. Re: WeldStartService problem
              José Antonio Delgado Trujillo Newbie

              I think is about dependencies in the POM.

               

              Now i have ( i omitted cdi-api)

              • deltaspike - data - module -impl
              • deltaspike - data -modeule - api
              • deltaspike -core - api
              • deltaspike - core -imp
              • javaee- web -api

               

              NullPointer

               

              I have @Size, @NotNull and @Email

              But if i quit @Email runs perfectly.

               

              What is the dependency i need ?

              If i put

              validation-api

              hibernator-validator

               

              i get the error

              Caused by: javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 'javax.validation.constraints.Email' validating type 'java.lang.String'. Check configuration for 'email'