[EJB/JBoss] - Too many open files exception JBOSS 4.2
by ajayks
I am testing an EJB3.0 application ih JBOSS hosted in Linux machine
It simply calls a business method 100 times.
The business method simply inserts some JMS messages in the well defined queues.
The MDB is attached with each queue and each MDB call a local business method which simply update the database table based on the input passed to it.
My problem is that everything going fine but JBOSS starts throwing exception after few minutes of starting of the my J2EE application with following error message:-
â Failed to setup client connection
java.net.SocketException: Too many open filesâÂÂ
when such exception occurs, The EJB deployed in the sever is stopped to take any new request from client and same exception "Too many open files" is thrown in JBOSS console .
Is there some configuration is requited at OS or JBOOS level to execute heavy J2EE application in the JBOSS.
Can any help me to guide what I need to configure to avoid " too many open files exception" in the JBOSS.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131756#4131756
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131756
16 years, 8 months
[JBoss Tools (users)] - Re: Runnigs test
by hispeedsurfer
Ok, have seen this issue in jira: JBIDE-1478
But I have another problem using tests:
On startup I use @Observer("org.jboss.seam.postInitialization") to check some tasks like scheduling jobs(quartz), putting a message to queue using a mdb etc.
I don't use this class in my test but I receive an exception:
[Parser] Running:
| V:\workspaces\datenvisualisierung\datenvisualisierung-test\test-src\de\oats\datenvisualisierung\test\AlltestTest.xml
|
| WARN [org.jboss.seam.init.Initialization] Did not install PojoCache due to NoClassDefFoundError: org/jgroups/MembershipListener
| INFO [org.quartz.simpl.SimpleThreadPool] Job execution threads will use class loader of thread: main
| INFO [org.quartz.core.QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| INFO [org.quartz.simpl.RAMJobStore] RAMJobStore initialized.
| INFO [org.quartz.impl.StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
| INFO [org.quartz.impl.StdSchedulerFactory] Quartz scheduler version: 1.5.2
| INFO [org.quartz.core.QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
| FAILED CONFIGURATION: @BeforeClass init
| javax.ejb.EJBException: java.lang.RuntimeException: exception invoking: init
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:193)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:86)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:166)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:261)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:119)
| at $Proxy98.observe(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
| at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
| at org.javassist.tmp.java.lang.Object_$$_javassist_0.observe(Object_$$_javassist_0.java)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
| at org.jboss.seam.core.Events.raiseEvent(Events.java:84)
| at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:97)
| at org.jboss.seam.init.Initialization.init(Initialization.java:583)
| at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:939)
| at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
| at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
| Caused by: java.lang.RuntimeException: exception invoking: init
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:135)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
| at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
| at org.jboss.seam.Component.newInstance(Component.java:1976)
| at org.jboss.seam.Component.getInstance(Component.java:1873)
| at org.jboss.seam.Component.getInstance(Component.java:1840)
| at org.jboss.seam.Component.getInstance(Component.java:1819)
| at org.jboss.seam.Component.getInstance(Component.java:1814)
| at org.jboss.seam.jms.QueueConnection.instance(QueueConnection.java:75)
| at org.jboss.seam.jms.QueueSession.create(QueueSession.java:38)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
| at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
| at org.jboss.seam.Component.newInstance(Component.java:1976)
| at org.jboss.seam.Component.getInstance(Component.java:1873)
| at org.jboss.seam.Component.getInstance(Component.java:1840)
| at org.jboss.seam.Component.getInstance(Component.java:1819)
| at org.jboss.seam.Component.getInstance(Component.java:1814)
| at org.jboss.seam.jms.QueueSession.instance(QueueSession.java:55)
| at org.jboss.seam.jms.ManagedQueueSender.create(ManagedQueueSender.java:51)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
| at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
| at org.jboss.seam.Component.newInstance(Component.java:1976)
| at org.jboss.seam.Component.getInstance(Component.java:1873)
| at org.jboss.seam.Component.getInstance(Component.java:1840)
| at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2182)
| at org.jboss.seam.Component.getValueToInject(Component.java:2134)
| at org.jboss.seam.Component.injectAttributes(Component.java:1598)
| at org.jboss.seam.Component.inject(Component.java:1416)
| at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:45)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:48)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| ... 65 more
| Caused by: javax.naming.NameNotFoundException: UIL2ConnectionFactory not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.seam.jms.QueueConnection.getQueueConnectionFactory(QueueConnection.java:64)
| at org.jboss.seam.jms.QueueConnection.init(QueueConnection.java:51)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| ... 132 more
| ... Removed 46 stack frames
| SKIPPED CONFIGURATION: @BeforeMethod begin
| SKIPPED CONFIGURATION: @AfterMethod end
| SKIPPED CONFIGURATION: @BeforeMethod begin
| SKIPPED CONFIGURATION: @AfterMethod end
| SKIPPED CONFIGURATION: @AfterClass cleanup
| SKIPPED: logintest
| SKIPPED: testLoginComponent
|
| ===============================================
| Logintest Test
| Tests run: 2, Failures: 0, Skips: 2
| Configuration Failures: 1, Skips: 5
| ===============================================
here the content of service xml file under project/ejbModule
<?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="org.jboss.mq.server.jmx.Queue"
| name="jboss.mq.destination:service=Queue,name=oatsMessageQueue">
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
| <attribute name="JNDIName">queue/oatsMessageQueue</attribute>
| </mbean>
| </server>
Is there a workaround or have I to remove the corresponding class each time testing my project.
Sorry for my spelling mistake on topic and content of previous post ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131752#4131752
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131752
16 years, 8 months
[EJB 3.0] - MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM
by r.parmala
12:43:20,610 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@6b2d69af { url=file:/D:/raghu/tools/jboss-4.0.2/server/default/deploy/appfuse.war/ }
deployer: org.jboss.web.tomcat.tc5.Tomcat5@162198b
status: Deployment FAILED reason: URL file:/D:/raghu/tools/jboss-4.0.2/server/default/deploy/appfuse.war/ deployment failed
state: FAILED
watch: file:/D:/raghu/tools/jboss-4.0.2/server/default/deploy/appfuse.war/WEB-INF/web.xml
altDD: null
lastDeployed: 1203921999776
lastModified: 1203591610451
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:id=1798138287,war=appfuse.war
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/D:/raghu/tools/jboss-4.0.2/server/default/deploy/appfuse.war/ de
ployment failed
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:id=1798138287,war=appfuse.war
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/D:/raghu/tools/jboss-4.0.2/server/default/deploy/appfuse.war/ de
ployment failed
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131743#4131743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131743
16 years, 8 months