Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-204

Deploying infinispan-embedded uberjar on Weblogic Server 12g fails with java.lang.reflect.MalformedParameterizedTypeException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • JDG 7.0.0 ER7
    • JDG 7.0.0 ER3
    • None
    • None
    • Hide
      • Create a weblogic.xml file and set prefer-web-inf-classes to true (here is an example)
      Show
      Create a weblogic.xml file and set prefer-web-inf-classes to true (here is an example )
    • Hide
      Show
      Clone and build https://github.com/slaskawi/JDG-204-reproducer Deploy of the Oracle Weblogic server Observe the logs

      Relevant output below:

      Running com.jboss.datagrid.test.asyncstore.AsyncFileCacheStoreWithoutEvictionIT
      Apr 14, 2016 1:32:33 PM org.jboss.arquillian.container.wls.WebLogicDeployerClient deploy
      INFO: Starting weblogic.Deployer to deploy the test artifact.
      ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
      <Apr 14, 2016 1:33:05 PM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "23091875900085711" for task "0". Error is: "weblogic.management.DeploymentException: java.lang.reflect.MalformedParameterizedTypeException"
      weblogic.management.DeploymentException: java.lang.reflect.MalformedParameterizedTypeException
      	at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
      	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:260)
      	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
      	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
      	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
      	Truncated. see log file for complete stacktrace
      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)
      	Truncated. see log file for complete stacktrace
      > 
      <Apr 14, 2016 1:33:05 PM EDT> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application "test".> 
      <Apr 14, 2016 1:33:05 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "test".> 
      <Apr 14, 2016 1:33:05 PM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
      weblogic.management.DeploymentException: java.lang.reflect.MalformedParameterizedTypeException
      	at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
      	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:260)
      	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
      	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
      	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
      	Truncated. see log file for complete stacktrace
      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)
      	Truncated. see log file for complete stacktrace
      > 
      Apr 14, 2016 1:33:05 PM org.jboss.arquillian.container.wls.WebLogicDeployerClient forkWebLogicDeployer
      WARNING: weblogic.Deployer terminated abnormally with exit code 1
      Apr 14, 2016 1:33:05 PM org.jboss.arquillian.container.wls.WebLogicDeployerClient forkWebLogicDeployer
      INFO: The output of the weblogic.Deployer process was:
       weblogic.Deployer invoked with options:  -adminurl t3://localhost:7001 -username wls -deploy -name test -source /tmp/arquillian4945846564175762892test.war/test.war -targets AdminServer -upload -debug
      [WebLogicDeploymentManagerImpl.<init>():119] : Constructing DeploymentManager for J2EE version V1_4 deployments
      [WebLogicDeploymentManagerImpl.getNewConnection():162] : Connecting to admin server at localhost:7001, as user wls
      [ServerConnectionImpl.getEnvironment():295] : setting environment
      [ServerConnectionImpl.getEnvironment():298] : getting context using t3://localhost:7001
      [ServerConnectionImpl.getMBeanServer():246] : Connecting to MBeanServer at service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.domainruntime
      [ServerConnectionImpl.getMBeanServer():246] : Connecting to MBeanServer at service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.runtime
      [DomainManager.resetDomain():36] : Getting new domain
      [DomainManager.resetDomain():39] : Using pending domain: false
      [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@55b53d44
      [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@55b53d44
      [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@1a4013
      [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@1a4013
      [ServerConnectionImpl.initialize():178] : Connected to WLS domain: jdgtestdomain
      [ServerConnectionImpl.setRemote():489] : Running in remote mode
      [ServerConnectionImpl.init():168] : Initializing ServerConnection : weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl@212b5695
      [BasicOperation.dumpTmids():740] : Incoming tmids:
      [BasicOperation.dumpTmids():742] :   {Target=AdminServer, WebLogicTargetType=server, Name=test}, targeted=true
      [BasicOperation.deriveAppName():143] : appname established as: test
      <Apr 14, 2016 1:32:35 PM EDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, test [archive: /tmp/arquillian4945846564175762892test.war/test.war], to AdminServer .> 
      [BasicOperation.dumpTmids():740] : Incoming tmids:
      [BasicOperation.dumpTmids():742] :   {Target=AdminServer, WebLogicTargetType=server, Name=test}, targeted=true
      [BasicOperation.loadGeneralOptions():655] : Delete Files:false
      Timeout :3600000
      Targets: 
      AdminServer
      ModuleTargets={}
      SubModuleTargets={}
      }
      Files: 
      null
      Deployment Plan: null
      App root: /tmp/hudson/./config/deployments/test
      App config: /tmp/hudson/./config/deployments/test/plan
      Deployment Options: {isRetireGracefully=true,isGracefulProductionToAdmin=false,isGracefulIgnoreSessions=false,rmiGracePeriod=-1,retireTimeoutSecs=-1,undeployAllVersions=false,archiveVersion=null,planVersion=null,isLibrary=false,libSpecVersion=null,libImplVersion=null,stageMode=null,clusterTimeout=3600000,altDD=null,altWlsDD=null,name=test,securityModel=null,securityValidationEnabled=false,versionIdentifier=null,isTestMode=false,forceUndeployTimeout=0,defaultSubmoduleTargets=true,timeout=0,deploymentPrincipalName=null,useExpiredLock=falsespecifiedTargetsOnly=false}
      
      [ServerConnectionImpl.upload():862] : Uploaded app to /opt/oracle/weblogic12c/domains/jdgtestdomain/./servers/AdminServer/upload/test
      [BasicOperation.execute():472] : Initiating deploy operation for app, test, on targets:
      [BasicOperation.execute():474] :    AdminServer
      Task 0 initiated: [Deployer:149026]deploy application test on AdminServer.
      dumping Exception stack
      Task 0 failed: [Deployer:149026]deploy application test on AdminServer.
      Target state: deploy failed on Server AdminServer
      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.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:94)
      	at java.lang.reflect.Executable.getGenericParameterTypes(Executable.java:284)
      	at java.lang.reflect.Constructor.getGenericParameterTypes(Constructor.java:233)
      	at org.jboss.weld.introspector.jlr.WeldConstructorImpl.processParameters(WeldConstructorImpl.java:117)
      	at org.jboss.weld.introspector.jlr.WeldConstructorImpl.<init>(WeldConstructorImpl.java:89)
      	at org.jboss.weld.introspector.jlr.WeldConstructorImpl.of(WeldConstructorImpl.java:66)
      	at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:212)
      	at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:126)
      	at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.load(ClassTransformer.java:60)
      	at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.load(ClassTransformer.java:51)
      	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)
      	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)
      	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
      	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
      	at com.google.common.cache.LocalCache.get(LocalCache.java:3965)
      	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969)
      	at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829)
      	at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:71)
      	at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:112)
      	at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:93)
      	at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:164)
      	at org.jboss.weld.bootstrap.BeanDeployer.loadWeldClass(BeanDeployer.java:116)
      	at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:79)
      	at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:135)
      	at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:184)
      	at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:349)
      	at com.oracle.injection.provider.weld.WeldInjectionContainer.deploy(WeldInjectionContainer.java:103)
      	at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:74)
      	at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:49)
      	at weblogic.application.internal.flow.AppDeploymentExtensionFlow.activate(AppDeploymentExtensionFlow.java:37)
      	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
      	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
      	at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
      	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
      	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:587)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
      	at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
      	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:339)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:846)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1275)
      	at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:442)
      	at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:176)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
      	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
      	at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:548)
      	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      	at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
      

              slaskawi@redhat.com Sebastian Ɓaskawiec (Inactive)
              jmarkos Jakub Markos (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: