2 Replies Latest reply on Jan 19, 2018 8:53 AM by Arnie Morein

    java.lang.reflect.MalformedParameterizedTypeException during deployment

    Patrick Garner Newbie

      I've not seen this error before and the stack trace doesn't point to a spot in my code to give me a clue as to where the problem is located.  Google search brought up a lot of posts that had to do with not having the correct versions of Spring jars on the application class path.  I'm not using Spring.  Perhaps one of my generic classes doesn't have the correct parameterized type at runtime?  How can I get more detailed info? 

       

       

       

      2014-08-12 10:15:35,465 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
      2014-08-12 10:15:36,030 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
      2014-08-12 10:15:36,158 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.1.0.Final "Kenny" starting
      2014-08-12 10:15:36,167 DEBUG [org.jboss.as.config] (MSC service thread 1-6) Configured system properties:
          awt.toolkit = sun.awt.windows.WToolkit
          file.encoding = Cp1252
          file.encoding.pkg = sun.io
          file.separator = \
          java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
          java.awt.printerjob = sun.awt.windows.WPrinterJob
          java.class.path = F:\wildfly-8.1.0.Final\jboss-modules.jar
          java.class.version = 52.0
          java.endorsed.dirs = F:\Java\jdk1.8.0_05\jre\lib\endorsed
          java.ext.dirs = F:\Java\jdk1.8.0_05\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
          java.home = F:\Java\jdk1.8.0_05\jre
          java.io.tmpdir = D:\pgarner\AppData\Local\Temp\
          java.library.path = F:\Java\jdk1.8.0_05\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;F:\OracleXE\app\oracle\product\11.2.0\server\bin;;F:\WANdisco\uberSVN\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;F:\GnuPG\pub;F:\7-Zip;"E:\WebTest\build\bin";F:\OracleXE\app\oracle\product\11.2.0\server\bin;;F:\WANdisco\uberSVN\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;F:\GnuPG\pub;F:\7-Zip;.
          java.net.preferIPv4Stack = true
          java.runtime.name = Java(TM) SE Runtime Environment
          java.runtime.version = 1.8.0_05-b13
          java.specification.name = Java Platform API Specification
          java.specification.vendor = Oracle Corporation
          java.specification.version = 1.8
          java.util.logging.manager = org.jboss.logmanager.LogManager
          java.vendor = Oracle Corporation
          java.vendor.url = http://java.oracle.com/
          java.vendor.url.bug = http://bugreport.sun.com/bugreport/
          java.version = 1.8.0_05
          java.vm.info = mixed mode
          java.vm.name = Java HotSpot(TM) 64-Bit Server VM
          java.vm.specification.name = Java Virtual Machine Specification
          java.vm.specification.vendor = Oracle Corporation
          java.vm.specification.version = 1.8
          java.vm.vendor = Oracle Corporation
          java.vm.version = 25.5-b02
          javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
          javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
          javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
          javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
          javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
          javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
          javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
          javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
          javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
          javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
          jboss.home.dir = F:\wildfly-8.1.0.Final
          jboss.host.name = admin-pc
          jboss.modules.dir = F:\wildfly-8.1.0.Final\modules
          jboss.modules.system.pkgs = org.jboss.byteman
          jboss.node.name = admin-pc
          jboss.qualified.host.name = admin-pc
          jboss.server.base.dir = F:\wildfly-8.1.0.Final\standalone
          jboss.server.config.dir = F:\wildfly-8.1.0.Final\standalone\configuration
          jboss.server.data.dir = F:\wildfly-8.1.0.Final\standalone\data
          jboss.server.deploy.dir = F:\wildfly-8.1.0.Final\standalone\data\content
          jboss.server.log.dir = F:\wildfly-8.1.0.Final\standalone\log
          jboss.server.name = admin-pc
          jboss.server.persist.config = true
          jboss.server.temp.dir = F:\wildfly-8.1.0.Final\standalone\tmp
          line.separator =
      
          logging.configuration = file:F:\wildfly-8.1.0.Final\standalone\configuration/logging.properties
          module.path = F:\wildfly-8.1.0.Final\modules
          org.jboss.boot.log.file = F:\wildfly-8.1.0.Final\standalone\log\server.log
          org.jboss.resolver.warning = true
          org.xml.sax.driver = __redirected.__XMLReaderFactory
          os.arch = amd64
          os.name = Windows 7
          os.version = 6.1
          path.separator = ;
          program.name = standalone.bat
          sun.arch.data.model = 64
          sun.boot.class.path = F:\Java\jdk1.8.0_05\jre\lib\resources.jar;F:\Java\jdk1.8.0_05\jre\lib\rt.jar;F:\Java\jdk1.8.0_05\jre\lib\sunrsasign.jar;F:\Java\jdk1.8.0_05\jre\lib\jsse.jar;F:\Java\jdk1.8.0_05\jre\lib\jce.jar;F:\Java\jdk1.8.0_05\jre\lib\charsets.jar;F:\Java\jdk1.8.0_05\jre\lib\jfr.jar;F:\Java\jdk1.8.0_05\jre\classes
          sun.boot.library.path = F:\Java\jdk1.8.0_05\jre\bin
          sun.cpu.endian = little
          sun.cpu.isalist = amd64
          sun.desktop = windows
          sun.io.unicode.encoding = UnicodeLittle
          sun.java.command = F:\wildfly-8.1.0.Final\jboss-modules.jar -mp F:\wildfly-8.1.0.Final\modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=F:\wildfly-8.1.0.Final
          sun.java.launcher = SUN_STANDARD
          sun.jnu.encoding = Cp1252
          sun.management.compiler = HotSpot 64-Bit Tiered Compilers
          sun.os.patch.level = Service Pack 1
          user.country = US
          user.dir = F:\wildfly-8.1.0.Final\bin
          user.home = D:\pgarner
          user.language = en
          user.name = pgarner
          user.script =
          user.timezone = America/New_York
          user.variant =
      2014-08-12 10:15:36,169 DEBUG [org.jboss.as.config] (MSC service thread 1-6) VM Arguments: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=F:\wildfly-8.1.0.Final\standalone\log\server.log -Dlogging.configuration=file:F:\wildfly-8.1.0.Final\standalone\configuration/logging.properties
      2014-08-12 10:15:38,855 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
      2014-08-12 10:15:38,884 INFO  [org.xnio] (MSC service thread 1-5) XNIO version 3.2.2.Final
      2014-08-12 10:15:38,896 INFO  [org.xnio.nio] (MSC service thread 1-5) XNIO NIO Implementation Version 3.2.2.Final
      2014-08-12 10:15:38,937 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.
      2014-08-12 10:15:38,939 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem
      2014-08-12 10:15:38,943 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem
      2014-08-12 10:15:38,967 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
      2014-08-12 10:15:38,968 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 31) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
      2014-08-12 10:15:38,988 INFO  [org.jboss.as.security] (MSC service thread 1-6) JBAS013170: Current PicketBox version=4.0.21.Beta1
      2014-08-12 10:15:39,041 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.0.15.Final starting
      2014-08-12 10:15:39,041 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017502: Undertow 1.0.15.Final starting
      2014-08-12 10:15:39,046 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]
      2014-08-12 10:15:39,190 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
      2014-08-12 10:15:39,216 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-3) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.5.Final)
      2014-08-12 10:15:39,226 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010417: Started Driver service with driver-name = h2
      2014-08-12 10:15:39,256 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.1)
      2014-08-12 10:15:39,259 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010417: Started Driver service with driver-name = postgresql
      2014-08-12 10:15:39,451 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
      2014-08-12 10:15:39,452 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-8) JBAS015400: Bound mail session [java:/Mail]
      2014-08-12 10:15:39,700 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path F:\wildfly-8.1.0.Final/welcome-content
      2014-08-12 10:15:39,925 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017525: Started server default-server.
      2014-08-12 10:15:39,955 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017531: Host default-host starting
      2014-08-12 10:15:40,029 INFO  [org.jboss.remoting] (MSC service thread 1-5) JBoss Remoting version 4.0.3.Final
      2014-08-12 10:15:40,306 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080
      2014-08-12 10:15:40,405 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory F:\wildfly-8.1.0.Final\standalone\deployments
      2014-08-12 10:15:40,425 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
      2014-08-12 10:15:40,443 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/PostgresDatabaseDS]
      2014-08-12 10:15:40,841 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017519: Undertow HTTPS listener default-https listening on /127.0.0.1:8443
      2014-08-12 10:15:41,433 INFO  [org.jboss.ws.common.management] (MSC service thread 1-3) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
      2014-08-12 10:15:41,673 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
      2014-08-12 10:15:41,675 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
      2014-08-12 10:15:41,675 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.1.0.Final "Kenny" started in 6756ms - Started 195 of 245 services (84 services are lazy, passive or on-demand)
      2014-08-12 10:15:43,053 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "application.war" (runtime-name: "application.war")
      2014-08-12 10:15:47,188 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for primary
      2014-08-12 10:15:47,626 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 6) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service 'application.war#primary'
      2014-08-12 10:15:47,639 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 6) HHH000204: Processing PersistenceUnitInfo [
          name: primary
          ...]
      2014-08-12 10:15:47,744 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 6) HHH000412: Hibernate Core {4.3.5.Final}
      2014-08-12 10:15:47,747 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 6) HHH000206: hibernate.properties not found
      2014-08-12 10:15:47,749 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 6) HHH000021: Bytecode provider name : javassist
      2014-08-12 10:15:49,460 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment application.war
      2014-08-12 10:15:49,609 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-6) HV000001: Hibernate Validator 5.1.0.Final
      2014-08-12 10:15:51,211 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: application.war
      2014-08-12 10:15:51,260 INFO  [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900: 2.1.2 (Final)
      2014-08-12 10:15:51,448 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016008: Starting weld service for deployment application.war
      2014-08-12 10:15:51,683 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 6) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'application.war#primary'
      2014-08-12 10:15:51,808 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 6) HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
      2014-08-12 10:15:52,177 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 6) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL9Dialect
      2014-08-12 10:15:52,192 INFO  [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (ServerService Thread Pool -- 6) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
      2014-08-12 10:15:52,571 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 6) HHH000397: Using ASTQueryTranslatorFactory
      2014-08-12 10:15:54,248 WARN  [org.jboss.weld.Event] (MSC service thread 1-1) WELD-000411: Observer method [BackedAnnotatedMethod] public org.omnifaces.VetoAnnotatedTypeExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
      2014-08-12 10:15:55,091 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."application.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."application.war".WeldStartService: Failed to start service
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_05]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_05]
          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]
      Caused by: java.lang.reflect.MalformedParameterizedTypeException
          at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:58) [rt.jar:1.8.0_05]
          at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:51) [rt.jar:1.8.0_05]
          at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:92) [rt.jar:1.8.0_05]
          at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:105) [rt.jar:1.8.0_05]
          at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:140) [rt.jar:1.8.0_05]
          at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [rt.jar:1.8.0_05]
          at sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:94) [rt.jar:1.8.0_05]
          at java.lang.reflect.Executable.getGenericParameterTypes(Executable.java:279) [rt.jar:1.8.0_05]
          at java.lang.reflect.Method.getGenericParameterTypes(Method.java:268) [rt.jar:1.8.0_05]
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.initParameters(BackedAnnotatedMethod.java:44)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.initParameters(BackedAnnotatedMethod.java:27)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedCallable.<init>(BackedAnnotatedCallable.java:34)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.<init>(BackedAnnotatedMethod.java:38)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.of(BackedAnnotatedMethod.java:32)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:193)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:186)
          at org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:35)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$EagerlyInitializedLazyValueHolder.<init>(BackedAnnotatedType.java:154)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:186)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:186)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.<init>(BackedAnnotatedType.java:66)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.of(BackedAnnotatedType.java:47)
          at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:83)
          at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:80)
          at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
          at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
          at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
          at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
          at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
          at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
          at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
          at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:52)
          at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:80)
          at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:175)
          at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:194)
          at org.jboss.weld.bootstrap.BeanDeployer.loadAnnotatedType(BeanDeployer.java:119)
          at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:96)
          at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:62)
          at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:60)
          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_05]
          ... 3 more
      
      2014-08-12 10:15:55,114 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "application.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"application.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"application.war\".WeldStartService: Failed to start service
          Caused by: java.lang.reflect.MalformedParameterizedTypeException"}}
      2014-08-12 10:15:55,117 ERROR [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "application.war" was rolled back with the following failure message:
      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"application.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"application.war\".WeldStartService: Failed to start service
          Caused by: java.lang.reflect.MalformedParameterizedTypeException"}}
      2014-08-12 10:15:55,158 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 6) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'application.war#primary'
      2014-08-12 10:15:55,163 INFO  [org.infinispan.factories.GlobalComponentRegistry] (ServerService Thread Pool -- 6) ISPN000128: Infinispan version: Infinispan 'Infinium' 6.0.2.Final
      2014-08-12 10:15:55,496 INFO  [org.infinispan.jmx.CacheJmxRegistration] (ServerService Thread Pool -- 6) ISPN000031: MBeans were successfully registered to the platform MBean server.
      2014-08-12 10:15:55,501 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 6) JBAS010281: Started local-query cache from hibernate container
      2014-08-12 10:15:55,536 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016009: Stopping weld service for deployment application.war
      2014-08-12 10:15:55,700 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 6) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service 'application.war#primary'
      2014-08-12 10:15:55,712 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-4) JBAS010282: Stopped local-query cache from hibernate container
      2014-08-12 10:15:55,735 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment application.war (runtime-name: application.war) in 615ms
      
      
      

       

      Setting the console handler level to DEBUG:

       

      11:04:14,476 WARN  [org.jboss.weld.Event] (MSC service thread 1-3) WELD-000411: Observer method [BackedAnnotatedMethod] public org.omnifaces.VetoAnnotatedTypeExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
      11:04:14,479 DEBUG [org.jboss.weld.deployer] (MSC service thread 1-3) Discovered SYNTHETIC BeanDeploymentArchive (org.jboss.resteasy.resteasy-cdi:main.additionalClasses)
      11:04:14,481 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Built-in Bean [javax.enterprise.inject.spi.BeanManager] with qualifiers [@Default]
      11:04:14,481 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Built-in Bean [org.jboss.weld.manager.BeanManagerImpl] with qualifiers [@Default]
      11:04:14,493 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Extension [class org.jboss.resteasy.cdi.ResteasyCdiExtension] with qualifiers [@Default]; application.war
      11:04:14,494 DEBUG [org.jboss.weld.deployer] (MSC service thread 1-3) Discovered SYNTHETIC BeanDeploymentArchive (org.hibernate.validator.cdi:main.additionalClasses)
      11:04:14,495 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Built-in Bean [javax.enterprise.inject.spi.BeanManager] with qualifiers [@Default]
      11:04:14,495 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Built-in Bean [org.jboss.weld.manager.BeanManagerImpl] with qualifiers [@Default]
      11:04:14,504 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Extension [class org.hibernate.validator.internal.cdi.ValidationExtension] with qualifiers [@Default]; application.war
      11:04:14,509 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Extension [class com.sun.faces.flow.FlowDiscoveryCDIExtension] with qualifiers [@Default]; application.war
      11:04:14,512 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Extension [class com.sun.faces.application.view.ViewScopeExtension] with qualifiers [@Default]; application.war
      11:04:14,513 DEBUG [org.jboss.weld.deployer] (MSC service thread 1-3) Discovered SYNTHETIC BeanDeploymentArchive (org.jberet.jberet-core:main.additionalClasses)
      11:04:14,514 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Built-in Bean [javax.enterprise.inject.spi.BeanManager] with qualifiers [@Default]
      11:04:14,514 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Built-in Bean [org.jboss.weld.manager.BeanManagerImpl] with qualifiers [@Default]
      11:04:14,516 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Extension [class org.jberet.creation.BatchCDIExtension] with qualifiers [@Default]; application.war
      11:04:14,520 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Extension [class org.omnifaces.cdi.eager.EagerExtension] with qualifiers [@Default]; application.war
      11:04:14,521 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Built-in Bean [javax.enterprise.inject.spi.BeanManager] with qualifiers [@Default]
      11:04:14,521 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000106: Bean: Built-in Bean [org.jboss.weld.manager.BeanManagerImpl] with qualifiers [@Default]
      11:04:15,712 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."application.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."application.war".WeldStartService: Failed to start service
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_05]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_05]
          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]
      Caused by: java.lang.reflect.MalformedParameterizedTypeException
          at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:58) [rt.jar:1.8.0_05]
          at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:51) [rt.jar:1.8.0_05]
          at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:92) [rt.jar:1.8.0_05]
          at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:105) [rt.jar:1.8.0_05]
          at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:140) [rt.jar:1.8.0_05]
          at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [rt.jar:1.8.0_05]
          at sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:94) [rt.jar:1.8.0_05]
          at java.lang.reflect.Executable.getGenericParameterTypes(Executable.java:279) [rt.jar:1.8.0_05]
          at java.lang.reflect.Method.getGenericParameterTypes(Method.java:268) [rt.jar:1.8.0_05]
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.initParameters(BackedAnnotatedMethod.java:44)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.initParameters(BackedAnnotatedMethod.java:27)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedCallable.<init>(BackedAnnotatedCallable.java:34)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.<init>(BackedAnnotatedMethod.java:38)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.of(BackedAnnotatedMethod.java:32)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:193)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:186)
          at org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:35)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$EagerlyInitializedLazyValueHolder.<init>(BackedAnnotatedType.java:154)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:186)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:186)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.<init>(BackedAnnotatedType.java:66)
          at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.of(BackedAnnotatedType.java:47)
          at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:83)
          at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:80)
          at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
          at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
          at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
          at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
          at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
          at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
          at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
          at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:52)
          at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:80)
          at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:175)
          at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:194)
          at org.jboss.weld.bootstrap.BeanDeployer.loadAnnotatedType(BeanDeployer.java:119)
          at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:96)
          at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:62)
          at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:60)
          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_05]
          ... 3 more
      
      11:04:15,744 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "application.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"application.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"application.war\".WeldStartService: Failed to start service
          Caused by: java.lang.reflect.MalformedParameterizedTypeException"}}
      11:04:15,760 ERROR [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "application.war" was rolled back with the following failure message: 
      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"application.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"application.war\".WeldStartService: Failed to start service
          Caused by: java.lang.reflect.MalformedParameterizedTypeException"}}
      11:04:15,792 DEBUG [org.wildfly.jberet] (MSC service thread 1-7) Removing batch environment; ModuleClassLoader for Module "deployment.application.war:main" from Service Module Loader
      11:04:15,816 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 25) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'application.war#primary'
      11:04:15,817 DEBUG [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 25) HHH000031: Closing
      11:04:15,817 DEBUG [org.hibernate.cache.infinispan.InfinispanRegionFactory] (ServerService Thread Pool -- 25) Stop region factory
      11:04:15,817 DEBUG [org.hibernate.cache.infinispan.InfinispanRegionFactory] (ServerService Thread Pool -- 25) Clear region references
      11:04:15,840 INFO  [org.infinispan.factories.GlobalComponentRegistry] (ServerService Thread Pool -- 25) ISPN000128: Infinispan version: Infinispan 'Infinium' 6.0.2.Final
      11:04:16,177 DEBUG [org.infinispan.interceptors.InterceptorChain] (ServerService Thread Pool -- 25) Interceptor chain size: 6
      11:04:16,177 DEBUG [org.infinispan.interceptors.InterceptorChain] (ServerService Thread Pool -- 25) Interceptor chain is: 
          >> org.infinispan.interceptors.InvocationContextInterceptor
          >> org.infinispan.interceptors.CacheMgmtInterceptor
          >> org.infinispan.interceptors.NotificationInterceptor
          >> org.infinispan.interceptors.locking.NonTransactionalLockingInterceptor
          >> org.infinispan.interceptors.EntryWrappingInterceptor
          >> org.infinispan.interceptors.CallInterceptor
      11:04:16,183 DEBUG [org.infinispan.jmx.JmxUtil] (ServerService Thread Pool -- 25) Object name jboss.infinispan:type=Cache,name="local-query(local)",manager="hibernate",component=Cache already registered
      11:04:16,184 INFO  [org.infinispan.jmx.CacheJmxRegistration] (ServerService Thread Pool -- 25) ISPN000031: MBeans were successfully registered to the platform MBean server.
      11:04:16,190 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 25) JBAS010281: Started local-query cache from hibernate container
      11:04:16,192 DEBUG [org.infinispan.CacheImpl] (ServerService Thread Pool -- 25) Started cache local-query on null
      11:04:16,200 DEBUG [org.hibernate.service.internal.AbstractServiceRegistryImpl] (ServerService Thread Pool -- 25) Implicitly destroying ServiceRegistry on de-registration of all child ServiceRegistries
      11:04:16,200 DEBUG [org.hibernate.boot.registry.internal.BootstrapServiceRegistryImpl] (ServerService Thread Pool -- 25) Implicitly destroying Boot-strap registry on de-registration of all child ServiceRegistries
      11:04:16,201 DEBUG [org.hibernate.jpa.internal.EntityManagerFactoryRegistry] (ServerService Thread Pool -- 25) Remove: name=application.war#primary
      11:04:16,202 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016009: Stopping weld service for deployment application.war
      11:04:16,297 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 25) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service 'application.war#primary'
      11:04:16,302 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (ServerService Thread Pool -- 25) local-query cache configuration stopped
      11:04:16,301 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (ServerService Thread Pool -- 22) timestamps cache configuration stopped
      11:04:16,302 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (ServerService Thread Pool -- 24) entity cache configuration stopped
      11:04:16,303 DEBUG [org.infinispan.manager.DefaultCacheManager] (MSC service thread 1-4) Stopping cache manager ISPN on null
      11:04:16,306 DEBUG [org.infinispan.CacheImpl] (MSC service thread 1-4) Stopping cache local-query on null
      11:04:16,309 DEBUG [org.infinispan.transaction.TransactionTable] (MSC service thread 1-4) Wait for on-going transactions to finish for 30 seconds.
      11:04:16,310 DEBUG [org.infinispan.transaction.TransactionTable] (MSC service thread 1-4) All transactions terminated
      11:04:16,311 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-4) JBAS010282: Stopped local-query cache from hibernate container
      11:04:16,317 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (MSC service thread 1-4) hibernate cache container stopped
      11:04:16,330 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment application.war (runtime-name: application.war) in 555ms
      
      
        • 1. Re: java.lang.reflect.MalformedParameterizedTypeException during deployment
          Rory Sambrano Newbie

          Hi Patirck,

           

          Did you found the problem of the java.lang.reflect.MalformedParameterizedTypeException ??

           

          Greetings

          • 2. Re: java.lang.reflect.MalformedParameterizedTypeException during deployment
            Arnie Morein Novice

            Indeed! Its 2018 and I'm on Weld 3.0.2.Final and still getting it in relation to a generic:

             

            Caused by: java.lang.ExceptionInInitializerError

                at com.sun.faces.cdi.CdiExtension.collect(CdiExtension.java:172)

                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:497)

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

                ... 67 more

            Caused by: java.lang.reflect.MalformedParameterizedTypeException

                at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:58)

                at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:51)

                at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:92)

                at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:105)

                at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:140)

                at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)

                at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68)

                at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138)

                at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)

                at sun.reflect.generics.repository.ClassRepository.getSuperclass(ClassRepository.java:87)

                at java.lang.Class.getGenericSuperclass(Class.java:777)

                at javax.enterprise.util.TypeLiteral.getTypeParameter(TypeLiteral.java:104)

                at javax.enterprise.util.TypeLiteral.getType(TypeLiteral.java:67)

                at com.sun.faces.cdi.CdiUtils.<clinit>(CdiUtils.java:84)

                ... 73 more

             

                at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)

                at org.jboss.weld.bootstrap.events.ProcessManagedBeanImpl.fire(ProcessManagedBeanImpl.java:31)

                at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessBean(ContainerLifecycleEvents.java:242)

                at org.jboss.weld.bootstrap.events.ContainerLifecycleEvents.fireProcessBean(ContainerLifecycleEvents.java:236)

                at org.jboss.weld.bootstrap.AbstractBeanDeployer.deploySpecialized(AbstractBeanDeployer.java:111)

                at org.jboss.weld.bootstrap.BeanDeployment.deploySpecialized(BeanDeployment.java:260)

                at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:434)

                at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)

                at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:236)

                at org.jboss.weld.environment.servlet.EnhancedListener.onStartup(EnhancedListener.java:62)

                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5143)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)