4 Replies Latest reply on Feb 13, 2017 4:48 AM by Ida Li

    Error when deploy into wildfly 10.1

    Ida Li Newbie

      Hi,

       

      I have an application which is deployed into our current wildfly 9 server.  The application consists of 4 layers:

           database module (Entity beans with persistence.xml) packaged in jar

           jpa (crud) module packaged in ejb

           business logic module packaged in ejb

           restful server module packaged in war

       

      Now I want to deploy it into wildfly 10.1, and I got out of memory error.

      Here is the error:

      14:27:06,765 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) WFLYJPA0002: Read persistence.xml for jpaPU

      14:27:06,845 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 69) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'smtpservices.war#jpaPU'

      14:27:06,897 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 69) HHH000204: Processing PersistenceUnitInfo [

        name: jpaPU

        ...]

      14:27:06,968 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) WFLYWELD0003: Processing weld deployment smtpservices.war

      14:27:07,078 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 69) HHH000412: Hibernate Core {5.0.10.Final}

      14:27:07,083 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 69) HHH000206: hibernate.properties not found

      14:27:07,087 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 69) HHH000021: Bytecode provider name : javassist

      14:27:07,126 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-8) HV000001: Hibernate Validator 5.2.4.Final

      14:27:07,173 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 69) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}

      14:27:07,259 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-8) WFLYEJB0473: JNDI bindings for session bean named 'InventoryService' in deployment unit 'deployment "smtpservices.war"' are as follows:

       

        java:global/inventory-api/InventoryService!se.nrm.dina.inventory.api.InventoryService

        java:app/inventory-api/InventoryService!se.nrm.dina.inventory.api.InventoryService

        java:module/InventoryService!se.nrm.dina.inventory.api.InventoryService

        java:global/inventory-api/InventoryService

        java:app/inventory-api/InventoryService

        java:module/InventoryService

       

      14:27:07,259 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-8) WFLYEJB0473: JNDI bindings for session bean named 'InventoryLogic' in deployment unit 'deployment "smtpservices.war"' are as follows:

       

        java:global/inventory-api/InventoryLogic!se.nrm.dina.dina.inventory.logic.InventoryLogic

        java:app/inventory-api/InventoryLogic!se.nrm.dina.dina.inventory.logic.InventoryLogic

        java:module/InventoryLogic!se.nrm.dina.dina.inventory.logic.InventoryLogic

        java:global/inventory-api/InventoryLogic

        java:app/inventory-api/InventoryLogic

        java:module/InventoryLogic

       

      14:27:07,260 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-8) WFLYEJB0473: JNDI bindings for session bean named 'DinaDaoImpl' in deployment unit 'deployment "smtpservices.war"' are as follows:

       

        java:global/inventory-api/DinaDaoImpl!se.nrm.dina.data.jpa.DinaDao

        java:app/inventory-api/DinaDaoImpl!se.nrm.dina.data.jpa.DinaDao

        java:module/DinaDaoImpl!se.nrm.dina.data.jpa.DinaDao

        java:global/inventory-api/DinaDaoImpl

        java:app/inventory-api/DinaDaoImpl

        java:module/DinaDaoImpl

       

      14:27:07,557 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 70) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

      14:27:07,558 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 70) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.

      14:27:07,636 INFO  [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900: 2.3.5 (Final)

      14:27:07,925 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 69) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'smtpservices.war#jpaPU'

      14:27:08,068 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 69) HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect

      14:27:08,077 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 70) WFLYCLINF0002: Started client-mappings cache from ejb container

      14:27:08,173 INFO  [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 69) Envers integration enabled? : true

      14:30:06,137 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 69) MSC000001: Failed to start service jboss.persistenceunit."smtpservices.war#jpaPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."smtpservices.war#jpaPU": java.lang.OutOfMemoryError: GC overhead limit exceeded

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

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

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

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

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

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

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

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

      Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded

        at org.hibernate.loader.PropertyPath.<init>(PropertyPath.java:38)

        at org.hibernate.loader.PropertyPath.append(PropertyPath.java:58)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAttributeDefinition(MetamodelGraphWalker.java:136)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAttributes(MetamodelGraphWalker.java:131)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitEntityDefinition(MetamodelGraphWalker.java:94)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAssociation(MetamodelGraphWalker.java:188)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAttributeDefinition(MetamodelGraphWalker.java:160)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAttributes(MetamodelGraphWalker.java:131)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitEntityDefinition(MetamodelGraphWalker.java:94)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAssociation(MetamodelGraphWalker.java:188)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAttributeDefinition(MetamodelGraphWalker.java:160)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAttributes(MetamodelGraphWalker.java:131)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitEntityDefinition(MetamodelGraphWalker.java:94)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitCollectionElements(MetamodelGraphWalker.java:264)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitCollectionDefinition(MetamodelGraphWalker.java:208)

        at org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitCollection(MetamodelGraphWalker.java:72)

        at org.hibernate.loader.plan.build.spi.MetamodelDrivenLoadPlanBuilder.buildRootCollectionLoadPlan(MetamodelDrivenLoadPlanBuilder.java:54)

        at org.hibernate.loader.collection.plan.AbstractLoadPlanBasedCollectionInitializer.<init>(AbstractLoadPlanBasedCollectionInitializer.java:62)

        at org.hibernate.loader.collection.plan.CollectionLoader.<init>(CollectionLoader.java:81)

        at org.hibernate.loader.collection.plan.CollectionLoader$Builder.byKey(CollectionLoader.java:74)

        at org.hibernate.loader.collection.plan.AbstractBatchingCollectionInitializerBuilder.buildNonBatchingLoader(AbstractBatchingCollectionInitializerBuilder.java:28)

        at org.hibernate.loader.collection.BatchingCollectionInitializerBuilder.createBatchingOneToManyInitializer(BatchingCollectionInitializerBuilder.java:85)

        at org.hibernate.persister.collection.OneToManyPersister.createCollectionInitializer(OneToManyPersister.java:497)

        at org.hibernate.persister.collection.AbstractCollectionPersister.postInstantiate(AbstractCollectionPersister.java:664)

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

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

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

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

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

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

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

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

       

      14:30:33,891 ERROR [stderr] (ServerService Thread Pool -- 67) Exception in thread "ServerService Thread Pool -- 67" java.lang.OutOfMemoryError: GC overhead limit exceeded

      14:30:33,891 ERROR [stderr] (ServerService Thread Pool -- 67) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.addConditionWaiter(AbstractQueuedSynchronizer.java:1855)

      14:30:30,624 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("read-resource") failed - address: ([("deployment" => "mysql-connector-java-5.1.37-bin.jar")]): java.lang.OutOfMemoryError: GC overhead limit exceeded

        at java.security.AccessController.getStackAccessControlContext(Native Method)

        at java.security.AccessController.getContext(AccessController.java:820)

        at org.jboss.as.controller.SecurityActions.getCaller(SecurityActions.java:47)

        at org.jboss.as.controller.AbstractOperationContext.getCaller(AbstractOperationContext.java:1138)

        at org.jboss.as.controller.OperationContextImpl.getBasicAuthorizationResponse(OperationContextImpl.java:1715)

        at org.jboss.as.controller.OperationContextImpl.authorize(OperationContextImpl.java:1644)

        at org.jboss.as.controller.OperationContextImpl.authorize(OperationContextImpl.java:1603)

        at org.jboss.as.controller.OperationContextImpl.getResourceRegistration(OperationContextImpl.java:552)

        at org.jboss.as.controller.operations.global.ReadResourceHandler.doExecuteInternal(ReadResourceHandler.java:252)

        at org.jboss.as.controller.operations.global.ReadResourceHandler.doExecute(ReadResourceHandler.java:173)

        at org.jboss.as.controller.operations.global.GlobalOperationHandlers$AbstractMultiTargetHandler.execute(GlobalOperationHandlers.java:263)

        at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)

        at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)

        at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)

        at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1329)

        at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:400)

        at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:208)

        at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:667)

        at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:657)

        at org.jboss.as.server.deployment.scanner.DefaultDeploymentOperations.getDeploymentsStatus(DefaultDeploymentOperations.java:76)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$ScanContext.<init>(FileSystemDeploymentService.java:1622)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$ScanContext.<init>(FileSystemDeploymentService.java:1571)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.scan(FileSystemDeploymentService.java:572)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.scan(FileSystemDeploymentService.java:491)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$DeploymentScanRunnable.run(FileSystemDeploymentService.java:250)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)

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

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

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

       

      14:30:33,892 ERROR [stderr] (ServerService Thread Pool -- 67) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2035)

      14:30:33,892 ERROR [stderr] (ServerService Thread Pool -- 67) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1088)

      14:30:33,892 ERROR [stderr] (ServerService Thread Pool -- 67) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)

      14:30:33,892 ERROR [stderr] (ServerService Thread Pool -- 67) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)

      14:30:33,893 ERROR [stderr] (ServerService Thread Pool -- 67) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)

      14:30:33,893 ERROR [stderr] (ServerService Thread Pool -- 67) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      14:30:33,893 ERROR [stderr] (ServerService Thread Pool -- 67) at java.lang.Thread.run(Thread.java:745)

      14:30:33,893 ERROR [stderr] (ServerService Thread Pool -- 67) at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      14:30:33,896 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0012: Scan of /Applications/wildfly-10.1.0.Final/standalone/deployments threw Exception: java.lang.RuntimeException: WFLYDS0036: Deployment model operation failed. undefined

        at org.jboss.as.server.deployment.scanner.DefaultDeploymentOperations.getDeploymentsStatus(DefaultDeploymentOperations.java:83)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$ScanContext.<init>(FileSystemDeploymentService.java:1622)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$ScanContext.<init>(FileSystemDeploymentService.java:1571)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.scan(FileSystemDeploymentService.java:572)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.scan(FileSystemDeploymentService.java:491)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$DeploymentScanRunnable.run(FileSystemDeploymentService.java:250)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)

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

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

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

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

       

      14:30:33,897 ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 5) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "smtpservices.war")]) - failure description: {

          "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"smtpservices.war#jpaPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"smtpservices.war#jpaPU\": java.lang.OutOfMemoryError: GC overhead limit exceeded

          Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded"},

          "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"smtpservices.war#jpaPU\""],

          "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined

      }

      14:30:33,900 ERROR [org.jboss.as.server] (External Management Request Threads -- 5) WFLYSRV0021: Deploy of deployment "smtpservices.war" was rolled back with the following failure message:

      {

          "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"smtpservices.war#jpaPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"smtpservices.war#jpaPU\": java.lang.OutOfMemoryError: GC overhead limit exceeded

          Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded"},

          "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"smtpservices.war#jpaPU\""],

          "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined

      }

      14:30:46,492 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("read-resource") failed - address: ([("deployment" => "mysql-connector-java-5.1.37-bin.jar")]): java.lang.OutOfMemoryError: GC overhead limit exceeded

        at java.util.Properties.loadConvert(Properties.java:590)

        at java.util.Properties.load0(Properties.java:390)

        at java.util.Properties.load(Properties.java:341)

        at java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:138)

        at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2687)

        at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1501)

        at java.util.ResourceBundle.findBundle(ResourceBundle.java:1465)

        at java.util.ResourceBundle.findBundle(ResourceBundle.java:1419)

        at java.util.ResourceBundle.findBundle(ResourceBundle.java:1419)

        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1361)

        at java.util.ResourceBundle.getBundle(ResourceBundle.java:1082)

        at org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver.getResourceBundle(StandardResourceDescriptionResolver.java:160)

        at org.jboss.as.controller.descriptions.DefaultResourceDescriptionProvider.getModelDescription(DefaultResourceDescriptionProvider.java:81)

        at org.jboss.as.controller.operations.global.ReadResourceHandler.doExecuteInternal(ReadResourceHandler.java:370)

        at org.jboss.as.controller.operations.global.ReadResourceHandler.doExecute(ReadResourceHandler.java:173)

        at org.jboss.as.controller.operations.global.GlobalOperationHandlers$AbstractMultiTargetHandler.execute(GlobalOperationHandlers.java:263)

        at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)

        at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)

        at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)

        at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1329)

        at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:400)

        at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:208)

        at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:667)

        at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:657)

        at org.jboss.as.server.deployment.scanner.DefaultDeploymentOperations.getDeploymentsStatus(DefaultDeploymentOperations.java:76)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$ScanContext.<init>(FileSystemDeploymentService.java:1622)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$ScanContext.<init>(FileSystemDeploymentService.java:1571)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.scan(FileSystemDeploymentService.java:572)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.scan(FileSystemDeploymentService.java:491)

        at org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$DeploymentScanRunnable.run(FileSystemDeploymentService.java:250)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)

       

      14:31:18,968 ERROR [stderr] (ServerService Thread Pool -- 73) Exception in thread "ServerService Thread Pool -- 73" java.lang.OutOfMemoryError: GC overhead limit exceeded

       

      I can deploy it into wildfly 10.0, but not in wildfly 10.1.  Please help me to fix the error.  Thanks in advance.

       

      idali