[JNDI/Naming/Network] - Dtabase connection Error(Mysql)
by badhikary81
Hi!
thanks for reply.My program main part where arise the problem
String customerNr = request.getParameter("customer_nr");
if((customerNr != null) && !(customerNr.equals("")))
{
try{
ejb.CustomerFacadeRemote custFacade = lookupCustomerFacadeBean();
out.println("Customer's info for nr. " + customerNr + ": " + custFacade.getCustomerInfo(
Integer.parseInt(customerNr)));
}catch(Exception ex){
out.println("Customer with nr. " + customerNr +" not found");
}
}
when I enter customer_nr and submit .program show the output Customer with nr. " + customerNr +" not found.
My program jboss-ds.xml file is
<?xml version="1.0" encoding="UTF-8"?>
.Only contain this.
My program lookupCustomerFacadeBean() is
private CustomerFacadeRemote lookupCustomerFacadeBean() {
try {
return ((ejb.CustomerFacadeRemoteHome) getServiceLocator().getRemoteHome("java:comp/env/CustomerFacadeBean", ejb.CustomerFacadeRemoteHome.class)).create();
} catch (NamingException ne) {
java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", ne);
throw new RuntimeException(ne);
} catch (CreateException ce) {
java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", ce);
throw new RuntimeException(ce);
} catch (RemoteException re) {
java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", re);
throw new RuntimeException(re);
}
}
please help me.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151575#4151575
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151575
18 years, 1 month
[Messaging, JMS & JBossMQ] - Re: Message driven bean and transaction
by zahra2towin
Thanks for your attention,
Yes, ejb method's transaction mark to rollback accorring to the log, and "not active transaction exception" occured in interceptor method:
08:39:23,359 WARN [JDBCExceptionReporter] SQL Error: 1, SQLState: 23000
| 08:39:23,359 ERROR [JDBCExceptionReporter] ORA-00001: unique constraint (ZAHRAAPEJBTEST.UK_USERS_USERNAME) violated
|
| 08:39:23,359 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
| org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
| at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
| at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:296)
| at org.jboss.ejb3.entity.TransactionScopedEntityManager.flush(TransactionScopedEntityManager.java:204)
| at com.gpayments.activepayment.ejb.portal.UserBean.insert(UserBean.java:121)
| at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at com.gpayments.activepayment.interceptor.TimerInterceptor.timer(TimerInterceptor.java:24)
| at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at com.gpayments.activepayment.interceptor.VerifyInterceptor.handler(VerifyInterceptor.java:68)
| at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at com.gpayments.activepayment.interceptor.ExceptionInterceptor.handler(ExceptionInterceptor.java:31)
| at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| 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.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| 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.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| 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.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| Caused by: java.sql.BatchUpdateException: ORA-00001: unique constraint (ZAHRAAPEJBTEST.UK_USERS_USERNAME) violated
|
| at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
| at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8739)
| at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:519)
| at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
| at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
| ... 56 more
| 08:39:23,375 DEBUG [ConnectionManager] aggressively releasing JDBC connection
| 08:39:23,375 DEBUG [ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
| 08:39:23,375 DEBUG [AbstractEntityManagerImpl] mark transaction for rollback
| 08:44:20,328 ERROR [JmsSessionFactoryImpl] could not create session
| javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=Mohammadi/1641, BranchQual=, localId=1641]
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:290)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.allocateConnection(JmsSessionFactoryImpl.java:389)
| at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.createQueueSession(JmsSessionFactoryImpl.java:144)
| at com.gpayments.activepayment.core.exception.ExceptionHandlerService.log(ExceptionHandlerService.java:39)
| at com.gpayments.activepayment.interceptor.ExceptionInterceptor.handler(ExceptionInterceptor.java:46)
| at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| 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.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| 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.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| 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.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151572#4151572
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151572
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Not able to access https://localhost:8009 or http://localhos
by cool_coder
hi Guys
I am not new to JBoss but yes it is the first time for me to configure it with eclipse in Window Vista home premium and the link which I have used to configure it is: http://ist.berkeley.edu/as-ag/tools/howto/jboss-eclipse.html . I have the beta 4 release for JBOSS and I already configured this with the latest version of eclipse available and in the program argument I have given
-c default -b 127.0.0.1
and in the vmargument I have given the following:
-Dprogram.name=run.bat -Djava.endorsed.dirs=C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/bin/../lib/endorsed -Xms128m -Xmx512m -XX:MaxPermSize=256m
and the my working directory is
C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/bin
but when I try to run the jboss server by right clicking this. I got the following logs in the eclipse console:
21:34:21,269 INFO [ServerImpl] Starting JBoss (Microcontainer)...
21:34:21,269 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)
21:34:21,269 INFO [ServerImpl] Home Dir: C:\Users\user_name\Dev_Environment\jboss_home\jboss_5Beta4
21:34:21,269 INFO [ServerImpl] Home URL: file:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/
21:34:21,269 INFO [ServerImpl] Library URL: file:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/lib/
21:34:21,269 INFO [ServerImpl] Patch URL: null
21:34:21,269 INFO [ServerImpl] Server Name: default
21:34:21,269 INFO [ServerImpl] Server Home Dir: C:\Users\user_name\Dev_Environment\jboss_home\jboss_5Beta4\server\default
21:34:21,269 INFO [ServerImpl] Server Home URL: file:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/
21:34:21,269 INFO [ServerImpl] Server Data Dir: C:\Users\user_name\Dev_Environment\jboss_home\jboss_5Beta4\server\default\data
21:34:21,269 INFO [ServerImpl] Server Temp Dir: C:\Users\user_name\Dev_Environment\jboss_home\jboss_5Beta4\server\default\tmp
21:34:21,269 INFO [ServerImpl] Server Config URL: file:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/conf/
21:34:21,269 INFO [ServerImpl] Server Library URL: file:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/lib/
21:34:21,269 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml
21:34:21,472 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/conf/bootstrap-beans.xml
21:34:21,909 INFO [ProfileImpl] Using profile root:C:\Users\user_name\Dev_Environment\jboss_home\jboss_5Beta4\server\default
21:34:22,158 INFO [ServerInfo] Java version: 1.6.0-oem,Sun Microsystems Inc.
21:34:22,158 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0-oem-b104,Sun Microsystems Inc.
21:34:22,158 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86
21:34:22,159 INFO [JMXKernel] Legacy JMX core initialized
21:34:23,595 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
21:34:24,001 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
21:34:24,001 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
21:34:24,188 INFO [TransactionManagerService] Starting recovery manager
21:34:24,282 INFO [TransactionManagerService] Recovery manager started
21:34:24,282 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
21:34:34,484 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@830624 for BaseClassLoader@1893c7{vfsfile:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/deploy/ejb3-interceptors-aop.xml}
21:34:35,390 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
21:34:35,390 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
21:34:35,437 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
21:34:35,671 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
21:34:35,703 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
21:34:35,703 INFO [JobStoreCMT] Using db table-based data access locking (synchronization).
21:34:35,719 INFO [JobStoreCMT] Removed 0 Volatile Trigger(s).
21:34:35,719 INFO [JobStoreCMT] Removed 0 Volatile Job(s).
21:34:35,719 INFO [JobStoreCMT] JobStoreCMT initialized.
21:34:35,719 INFO [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance.
21:34:35,719 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
21:34:35,719 INFO [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state.
21:34:35,719 INFO [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down.
21:34:35,719 INFO [JobStoreCMT] Recovery complete.
21:34:35,719 INFO [JobStoreCMT] Removed 0 'complete' triggers.
21:34:35,719 INFO [JobStoreCMT] Removed 0 stale fired job entries.
21:34:35,734 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started.
21:34:37,170 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre1.6.0\bin\client;C:\Program Files\Java\jre1.6.0\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\
21:34:37,342 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
21:34:37,342 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
21:34:37,342 INFO [Catalina] Initialization processed in 686 ms
21:34:37,342 INFO [StandardService] Starting service jboss.web
21:34:37,358 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.0.CR12
21:34:37,451 INFO [Catalina] Server startup in 111 ms
21:34:37,483 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
21:34:39,401 INFO [NativeServerConfig] JBoss Web Services - Native
21:34:39,401 INFO [NativeServerConfig] jbossws-native-2.0.3.GA (build=200801241020)
21:34:40,541 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-context.war
21:34:40,620 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/deploy/jms-ra.rar/META-INF/ra.xml
21:34:40,667 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
21:34:41,899 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
21:34:41,947 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/deploy/mail-ra.rar/META-INF/ra.xml
21:34:42,072 INFO [MailService] Mail Service bound to java:/Mail
21:34:42,337 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
21:34:43,476 WARN [SecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
21:34:43,742 INFO [ServerPeer] JBoss Messaging 1.4.1.Beta1 server [0] started
21:34:43,805 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
21:34:43,805 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
21:34:43,805 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
21:34:43,883 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
21:34:43,883 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1573137 started
21:34:43,883 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
21:34:43,883 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1e8f789 started
21:34:43,883 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
21:34:43,883 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@6dbdc1 started
21:34:43,883 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
21:34:43,898 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
21:34:43,914 INFO [RARDeployment] Required license terms exist, view vfsfile:/C:/Users/user_name/Dev_Environment/jboss_home/jboss_5Beta4/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
21:34:43,945 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
21:34:43,945 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
21:34:43,945 INFO [RAMJobStore] RAMJobStore initialized.
21:34:43,945 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
21:34:43,945 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
21:34:43,945 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
21:34:43,961 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
21:34:44,226 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
21:34:44,366 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
21:34:44,366 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)] Started in 23s:97ms
21:37:29,211 ERROR [AjpMessage] Invalid message recieved with signature 5635
21:37:58,166 ERROR [AjpMessage] Invalid message recieved with signature 32829
21:41:10,274 ERROR [AjpMessage] Invalid message recieved with signature 5635
but I cannot access localhost:8080 and 8009. Please help me on that.
I would really appreciate this help.
cool_coder
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151570#4151570
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151570
18 years, 1 month
[Messaging, JMS & JBossMQ] - Load Balancer & MQ
by Unnijboss
My uil2-service.xml having ConnectAddress and connectPort. Where
abc.dce.net:18093 (is a DNS) points to the serverIP:8093
ConnectAddress=abc.dce.net
ConnectPort=18093
We have a Ping Time Out issue occuring at every day when we moved to UAT( other environments occasionally gives the exception). I know this can be solved using an ExceptionListener and a reconnect. Since we are doing a migration from Sonic MQ to JBoss MQ and want to do minimum code change. After the server restart, for 4-5 hours server will run normally then will start to give exception.
Getting a Read Timed out error followed by a Ping error. Not sure whether the Load Balancer broke the connection or jboss does it.
Any idea what could be the reason for the PING/PONG failure.?
The Trace log is given below.
principal=ctcuser;roles=Roles(members:ctc) for rolePrincipals [ctc]
2008-05-16 22:54:53,161 TRACE [org.jboss.mq.server.TracingInterceptor] RETURN : addMessage
2008-05-16 22:54:53,161 TRACE [org.jboss.mq.il.uil2.SocketManager] Begin internalSendMessage, one-way msg=org.jboss.mq.il.uil2.msgs.AddMsg31196969[msgType: m_addMessage, msgID: -2147475113, error: null]
2008-05-16 22:54:53,161 TRACE [org.jboss.mq.il.uil2.SocketManager] End internalSendMessage, msg=org.jboss.mq.il.uil2.msgs.AddMsg31196969[msgType: m_addMessage, msgID: -2147475113, error: null]
2008-05-16 22:54:53,161 TRACE [org.jboss.mq.il.uil2.ServerSocketManagerHandler] End handleMsg, msgType: 2
2008-05-16 22:54:53,161 TRACE [org.jboss.mq.il.uil2.SocketManager] Write msg: org.jboss.mq.il.uil2.msgs.AddMsg31196969[msgType: m_addMessage, msgID: -2147475113, error: null]
2008-05-16 22:54:53,162 TRACE [org.jboss.mq.il.uil2.SocketManager] Read msgType: m_addMessage, msgID: -2147475113
2008-05-16 22:54:53,162 TRACE [org.jboss.mq.il.uil2.SocketManager] Found replyMap msg: org.jboss.mq.il.uil2.msgs.AddMsg11465505[msgType: m_addMessage, msgID: -2147475113, error: null]
2008-05-16 22:54:53,162 TRACE [org.jboss.mq.il.uil2.SocketManager] Read msg reply: org.jboss.mq.il.uil2.msgs.AddMsg11465505[msgType: m_addMessage, msgID: -2147475113, error: null]
2008-05-16 22:54:53,162 TRACE [org.jboss.mq.il.uil2.SocketManager] End internalSendMessage, msg=org.jboss.mq.il.uil2.msgs.AddMsg11465505[msgType: m_addMessage, msgID: -2147475113, error: null]
2008-05-16 22:54:55,521 TRACE [org.jboss.mq.il.uil2.SocketManager] Exiting on IOE
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
at java.lang.Thread.run(Thread.java:595)
2008-05-16 22:54:55,522 TRACE [org.jboss.mq.Connection] Notified of failure reason=Exiting on IOE Connection@30545452[token=ConnectionToken:ID:2/8241c04a277f03333bf52f3623fcc9f9 rcvstate=STOPPED]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
at java.lang.Thread.run(Thread.java:595)
2008-05-16 22:54:55,522 WARN [org.jboss.mq.Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error and reconnect
org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketTimeoutException: Read timed out)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
at org.jboss.mq.Connection.asynchFailure(Connection.java:423)
at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:439)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:371)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
... 1 more
2008-05-16 22:54:55,524 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151569#4151569
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151569
18 years, 1 month
[JBoss jBPM] - Lost messages with 150 concurrent requests for BPEL
by meghanai_99
Hello,
Today I did some preliminary load testing on JBPM-BPEL on my dev machine. I used SoapUI to send 'n' number of concurrent requests. For requests upto 100, everything seemed ok. I have pointed my default DS to sql server database. As a result the internal messages from SoapHandler to StartListener go to my db where I can view them.
For small number after the load test completes, my queue is empty as expected. However when requests near 100 and above, there are some left over messages in the queue. First I got this error -
http://wiki.jboss.org/wiki/WhatDoesTheMessageNoManagedConnectionsAvailabl...
So I increased my connection pool size and also the waiting period for the threads. However even after doing this, I see left over messages in my queue. In my last run, I see 18 'connection timed out' errors from SoapUI out of 150 and 4 messages in the queue.
What do I do to improve this performance? Or I have to assume that this is a limitation? What happens to the messages left in the queue?
btw, after turning on trace statement in my ds file, I get warning from JBoss that it is closing result set that JBPM didn't close. I am running BPEL 1.1 GA.
Here is the stack trace -
| a0001 WARN 2008-05-16 16:44:28,393 [WrappedConnection] -- [] Closing a result s
| et you left open! Please close it yourself.
| java.lang.Throwable: STACKTRACE
| at org.jboss.resource.adapter.jdbc.WrappedStatement.registerResultSet(Wr
| appedStatement.java:617)
| at org.jboss.resource.adapter.jdbc.WrappedStatement.getGeneratedKeys(Wra
| ppedStatement.java:533)
| at sun.reflect.GeneratedMethodAccessor482.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.hibernate.util.GetGeneratedKeysHelper.getGeneratedKey(GetGenerate
| dKeysHelper.java:69)
| at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAn
| dExtract(IdentityGenerator.java:74)
| at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(Abstr
| actReturningDelegate.java:33)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac
| tEntityPersister.java:2093)
| at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac
| tEntityPersister.java:2573)
| at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentit
| yInsertAction.java:47)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
| at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplic
| ate(AbstractSaveEventListener.java:290)
| at org.hibernate.event.def.AbstractSaveEventListener.performSave(Abstrac
| tSaveEventListener.java:180)
| at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId
| (AbstractSaveEventListener.java:108)
| at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGene
| ratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
| at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrR
| equestedId(DefaultSaveEventListener.java:33)
| at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTran
| sient(DefaultSaveOrUpdateEventListener.java:175)
| at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(
| DefaultSaveEventListener.java:27)
| at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpda
| te(DefaultSaveOrUpdateEventListener.java:70)
| at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
| at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
| at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
| at org.jbpm.logging.db.DbLoggingService.log(DbLoggingService.java:50)
| at org.jbpm.svc.save.SaveLogsOperation.save(SaveLogsOperation.java:47)
| at org.jbpm.svc.Services.save(Services.java:164)
| at org.jbpm.JbpmContext.save(JbpmContext.java:427)
| at org.jbpm.bpel.integration.jms.StartListener.deliverRequest(StartListe
| ner.java:229)
| at org.jbpm.bpel.integration.jms.StartListener.onMessage(StartListener.j
| ava:168)
| at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:696)
| at java.lang.Thread.run(Thread.java:595)
|
Thank you,
Meghana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151565#4151565
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151565
18 years, 1 month