StackOverflowError error due to insufficient stack space for the thread on deployment in EAP 6
Issue
- The following error is showed on deploy:
09:16:50,880 ERROR [org.jboss.as.controller.management-operation]
(Metrics Collection) JBAS014613: Operation ("read-attribute") failed -
address: ([
("deployment" => "mydeployment.jar"),
("subsystem" => "ejb3"),
("entity-bean" => "MyEntityBean")
]) -- due to insufficient stack space for the thread used to execute operations. If this error is occurring during server boot, setting system property jboss.boot.thread.stack.size to a value higher than [2097152] may resolve this problem.: java.lang.StackOverflowError
at java.lang.System.checkKey(System.java:770) [rt.jar:1.6.0_30]
at java.lang.System.getProperty(System.java:647) [rt.jar:1.6.0_30]
(....)
at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:284) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:211) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.jboss.as.ejb3.subsystem.deployment.AbstractEJBComponentRuntimeHandler.executeRuntimeStep(AbstractEJBComponentRuntimeHandler.java:85)
at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:90) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:397) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:284) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:211) [jboss-as-controller-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.0.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.