[JBossCache] - wrong coordinator causes join to fail
by bruyeron
I had a problem recently in production whereby one of the instances in the cluster failed and had to be terminated (via kill -9).
This is part of a cluster of 4 servers, on which there are 12 cache instances (1 JVM per server, 3 cache per JVM) in REPL_ASYNC mode.
After a node failure, we restarted one of the JVMs, and then restarted 2 of the remaining JVMs. To make things simple, we first restarted B, then A and D, but left C running.
We noticed the following messages in the logs of A B and D after restart:
06/11/2006 14:10:24 WARN [ClientGmsImpl.java:126] - join(A:32937) sent to B:32955 timed out, retrying
B:32955 was the coordinator before B was killed with kill -9. It seems that C (the remaining member) incorrectly things that B:32955 is still the coordinator. Here's the protocol stack I am using:
UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=${treeCache.mcastAddress};mcast_port=${treeCache.mcastPort};mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000;bind_addr=${treeCache.bind_addr}):\
PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):\
MERGE2(max_interval=20000;min_interval=10000):\
FD_SOCK:\
VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):\
pbcast.NAKACK(down_thread=false;gc_lag=50;retransmit_timeout=600,1200,2400,4800;up_thread=false):\
pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):\
UNICAST(down_thread=false;;timeout=600,1200,2400):\
FRAG(down_thread=false;frag_size=8192;up_thread=false):\
pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):\
pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
When I tried to replicate this scenario on my dev system, the failure detection worked and a new coordinator was successfully elected - therefore I think I may have hit upon a borderline condition.
Any idea on what could be going on?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983716#3983716
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983716
19Â years, 6Â months
[JBoss Seam] - [JDBCExceptionReporter] Table not found in statement ???
by abchilla
Dear group,
i am facing a big problem. i am new to using jboss at all and what i am trying to do is using jboss seam with hibernate and a postgres database.
i am refering to the tutorial "Seam Database Reverse Engineering Flash Demo" i followed the steps and was about deploying the application to the jboss server. everything works fine.
as i want to add a city from the web it says that the transaction failed. i get following code. i am looking since hours for a explanation for this error, but i can not understand it at all.
Please help me.
Before i forget i am using jboss-4.0.5.GA with ejb3, just as said in the getting started tasks, hibernate 3.2 , Seam 1.1.0.BETA and Postgresql 8.1, eclipse 3.2
Of course the tables do exist in postgres. i also cann add the tables i want to use with hibernate.
I need to use a postgres database, due to an application i wanted to work on after i get this test application running.
| 12:43:20,871 INFO [ExceptionInterceptor] no exceptions.xml file found
| 12:43:31,557 INFO [RendererUtils] Unable to find component 'id' (calling findComponent on component '_idJsp2:_idJsp14'). We'll try to return a guessed client-id anyways - this will be a problem if you put the referenced component into a different naming-container. If this is the case, you can always use the full client-id.
| 12:43:31,567 INFO [RendererUtils] Unable to find component 'name' (calling findComponent on component '_idJsp2:_idJsp16'). We'll try to return a guessed client-id anyways - this will be a problem if you put the referenced component into a different naming-container. If this is the case, you can always use the full client-id.
| 12:43:31,567 INFO [RendererUtils] Unable to find component 'zipcode' (calling findComponent on component '_idJsp2:_idJsp18'). We'll try to return a guessed client-id anyways - this will be a problem if you put the referenced component into a different naming-container. If this is the case, you can always use the full client-id.
| 12:43:31,577 INFO [RendererUtils] Unable to find component 'country' (calling findComponent on component '_idJsp2:_idJsp20'). We'll try to return a guessed client-id anyways - this will be a problem if you put the referenced component into a different naming-container. If this is the case, you can always use the full client-id.
| 12:43:47,882 INFO [STDOUT] Hibernate: select city0_.id as id0_0_, city0_.name as name0_0_, city0_.country as country0_0_, city0_.zipcode as zipcode0_0_ from public.city city0_ where city0_.id=?
| 12:43:47,882 WARN [JDBCExceptionReporter] SQL Error: -22, SQLState: S0002
| 12:43:47,882 ERROR [JDBCExceptionReporter] Table not found in statement [select city0_.id as id0_0_, city0_.name as name0_0_, city0_.country as country0_0_, city0_.zipcode as zipcode0_0_ from public.city city0_ where city0_.id=?]
| 12:43:47,882 INFO [DefaultLoadEventListener] Error performing load command
| org.hibernate.exception.SQLGrammarException: could not load an entity: [src.example.planner.City#0]
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.loader.Loader.loadEntity(Loader.java:1798)
| at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
| at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
| at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2977)
| at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:393)
| at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:374)
| at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:137)
| at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:193)
| at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:101)
| at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
| at org.hibernate.impl.SessionImpl.get(SessionImpl.java:815)
| at org.hibernate.impl.SessionImpl.get(SessionImpl.java:808)
| at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:174)
| at src.example.planner.CityEditorBean.create(CityEditorBean.java:70)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 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 org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
| at org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:46)
| at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
| at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:77)
| at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
| at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:32)
| at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:60)
| at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:50)
| at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalInterceptor.java:81)
| at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.EventInterceptor.aroundInvoke(EventInterceptor.java:51)
| at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
| at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:168)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:141)
| at org.jboss.seam.intercept.RootInterceptor.aroundInvoke(RootInterceptor.java:128)
| at sun.reflect.GeneratedMethodAccessor81.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.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.invokeInCallerTx(TxPolicy.java:126)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| 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:83)
| 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:131)
| 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.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy96.create(Unknown Source)
| at src.example.planner.CityEditor$$FastClassByCGLIB$$26f425c2.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:47)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:67)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:28)
| at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.interceptors.AsynchronousInterceptor.invokeAsynchronouslyIfNecessary(AsynchronousInterceptor.java:29)
| at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:168)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:141)
| at org.jboss.seam.intercept.RootInterceptor.aroundInvoke(RootInterceptor.java:128)
| at org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:60)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:47)
| at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$dc2ed86b.create(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
| at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
| at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:71)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.sql.SQLException: Table not found in statement [select city0_.id as id0_0_, city0_.name as name0_0_, city0_.country as country0_0_, city0_.zipcode as zipcode0_0_ from public.city city0_ where city0_.id=?]
| at org.hsqldb.jdbc.Util.throwError(Unknown Source)
| at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
| at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
| at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.doPrepareStatement(BaseWrapperManagedConnection.java:349)
| at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.prepareStatement(BaseWrapperManagedConnection.java:344)
| at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:187)
| at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:497)
| at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:415)
| at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
| at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1560)
| at org.hibernate.loader.Loader.doQuery(Loader.java:661)
| at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
| at org.hibernate.loader.Loader.loadEntity(Loader.java:1784)
| ... 183 more
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983710#3983710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983710
19Â years, 6Â months
[Management, JMX/JBoss] - Timer problem when using jconsole
by formica
I had a weird problem in deploying my application under JBOSS-4.0.5, caused
by a failure in finding an instance of Timer.
Here is an overview of what I was doing:
1) my application contains an MBean in which I inject a dependency on Timer using the following code:
| private static final String TIMER_SERVICE_NAME = "DefaultDomain:service=timer";
|
| private static final long TIME_GRANULARITY = Timer.ONE_MINUTE;
|
| private final MBeanServer server = MBeanServerLocator.locateJBoss();
|
| /**
| * need to put timer-service.xml in the deploy directory to make it work
| *
| * @uml.associationEnd
| */
| @Depends(TIMER_SERVICE_NAME)
| private TimerMBean timer;
|
| @Depends(TIMER_SERVICE_NAME)
| private ObjectName timerName;
|
|
2) later on in the application I add to server some Notifications in order to call another function of the MBean
when I receive a Notification from the Timer
3) I deploy also a timer-service.xml in JBoss:
<server>
|
| <!-- ==================================================================== -->
| <!-- JMX Timer MBean -->
| <!-- ==================================================================== -->
|
| <mbean code="javax.management.timer.Timer" name="DefaultDomain:service=timer"/>
|
| </server>
|
|
Now, the code was working, and I was able to see from the jmx-console my MBean
Then I decided I want to use jconsole from Sun java distribution, so I read some wiki pages in JBoss
web site, and I added to $JBOSS_HOME/bin/run.conf the following line:
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote"
When I tried to deploy again my application, after restarting JBoss with the previous options, I got the
following error when JBoss tried deploying my application:
11:59:54,239 ERROR [STDERR] java.lang.RuntimeException: Error creating MBeanProxy: DefaultDomain:service=timer
11:59:54,241 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:415)
11:59:54,242 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:99)
11:59:54,243 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:394)
11:59:54,244 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
11:59:54,245 ERROR [STDERR] at org.jboss.injection.DependsFieldInjector.inject(DependsFieldInjector.java:65)
11:59:54,246 ERROR [STDERR] at org.jboss.injection.DependsFieldInjector.inject(DependsFieldInjector.java:50)
11:59:54,247 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.injectDependencies(ServiceContainer.java:337)
11:59:54,249 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:145)
11:59:54,256 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:59:54,258 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:59:54,365 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:59:54,365 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
11:59:54,365 ERROR [STDERR] at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
11:59:54,365 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
11:59:54,366 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
11:59:54,366 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
11:59:54,366 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:59:54,366 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
11:59:54,366 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:59:54,366 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:59:54,366 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
11:59:54,366 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:59:54,367 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:59:54,367 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
11:59:54,367 ERROR [STDERR] at $Proxy0.start(Unknown Source)
11:59:54,367 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
11:59:54,367 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:435)
11:59:54,367 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
11:59:54,367 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:59:54,367 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
11:59:54,367 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:59:54,368 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:59:54,368 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
11:59:54,368 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:59:54,368 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:59:54,368 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
11:59:54,368 ERROR [STDERR] at $Proxy4.start(Unknown Source)
11:59:54,368 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
11:59:54,368 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
11:59:54,368 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
11:59:54,368 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
11:59:54,369 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
11:59:54,369 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:59:54,369 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
11:59:54,369 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
11:59:54,369 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
11:59:54,369 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
11:59:54,370 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:59:54,370 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
11:59:54,370 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
11:59:54,370 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
11:59:54,370 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
11:59:54,370 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
11:59:54,370 ERROR [STDERR] at $Proxy6.deploy(Unknown Source)
11:59:54,370 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
11:59:54,370 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
11:59:54,371 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
11:59:54,371 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
11:59:54,371 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
11:59:54,372 ERROR [STDERR] Caused by: javax.management.InstanceNotFoundException: DefaultDomain:service=timer
11:59:54,372 ERROR [STDERR] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
11:59:54,372 ERROR [STDERR] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBeanInfo(DefaultMBeanServerInterceptor.java:1303)
11:59:54,372 ERROR [STDERR] at com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInfo(JmxMBeanServer.java:903)
11:59:54,372 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:407)
11:59:54,372 ERROR [STDERR] ... 58 more
12:04:53,153 INFO [Server] Runtime shutdown hook called, forceHalt: true
Then I decided to check from jboss jmx-console if the Timer was there, and from the web page I can see it...(with the correct name: DefaultDomain:service=timer)
I'm curious to understand the reason of the problem, if there is some expert that is willing to explain it ;-)
Thanks in advance,
Andrea
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983707#3983707
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983707
19Â years, 6Â months