NirPeled
May 6th, 2008, 07:40 AM
Hello, I am running tomcat 6 with spring.
As you can see on the bottom I have an exception when I try to run the CM service.
Any ideas why?
I am trying to fix this for about 4 hours and about to bang my head in the wall.
Help would be much appreciated.
Thanks!
P.S,
I am using tomcat 6
############## When I go to http://localhost:8080/manager/jmxproxy I see the following bean loaded ##################
Name: CM:name=CMMBean
modelerType: com.eglue.mbean.implementation.CMMBeanImpl
CmCacheComponentCacheDao: com.eglue.mbean.data.dao.implementation.CMCacheCom ponentCacheDaoImpl@1133eca
CmHistoryAttrDao: com.eglue.mbean.data.dao.implementation.CmHistoryA ttrJdbcDaoImpl@7f6e7c
############## The spring exporter bean #########
<bean id="exporter"
class="org.springframework.jmx.export.MBeanExporte r"
lazy-init="false">
<property name="beans">
<map>
<entry key="CM:name=CMMBean" value-ref="CMMBean" />
</map>
</property>
<property name="registrationBehaviorName"
value="REGISTRATION_REPLACE_EXISTING" />
</bean>
############# The CMMBean bean ###############
<bean id="CMMBean"
class="com.eglue.mbean.implementation.CMMBeanImpl" >
<property name="cmCacheComponentCacheDao">
<ref bean="cmCacheComponentCacheDao" />
</property>
<property name="cmHistoryAttrDao">
<ref bean="cmHistoryAttrDao" />
</property>
</bean>
############ The exception I am getting #############
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.cm.services.implementation.Configuratio nManagementServiceImpl:68) INFO EglueLogger - [I16] The getCMAttributes service started.
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.cm.services.implementation.Configuratio nManagementServiceImpl:71) DEBUG EglueLogger - [D31] Service ConfigurationManagementService started. Input: <ns1:cm_data xmlns:ns1="http://www.eglue.com/cm/get_cm_attr_data_req" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<os_uid>QA\GL0</os_uid>
</ns1:cm_data>
javax.management.InstanceNotFoundException: CM:name=CMMBean
at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 10)
at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:804)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:784)
at com.eglue.cm.services.implementation.Configuration ManagementServiceImpl.getCMAttributes(Configuratio nManagementServiceImpl.java:94)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:177)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :144)
at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:107)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :166)
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.getCMAttributes(Unknown Source)
at com.eglue.ws.ConfigurationManagementServiceSkeleto n.getCMAttributes(ConfigurationManagementServiceSk eleton.java:25)
at com.eglue.ws.ConfigurationManagementServiceMessage ReceiverInOut.invokeBusinessLogic(ConfigurationMan agementServiceMessageReceiverInOut.java:51)
at org.apache.axis2.receivers.AbstractInOutSyncMessag eReceiver.invokeBusinessLogic(AbstractInOutSyncMes sageReceiver.java:42)
at org.apache.axis2.receivers.AbstractMessageReceiver .receive(AbstractMessageReceiver.java:96)
at org.apache.axis2.engine.AxisEngine.receive(AxisEng ine.java:145)
at org.apache.axis2.transport.http.HTTPTransportUtils .processHTTPPostRequest(HTTPTransportUtils.java:27 5)
at org.apache.axis2.transport.http.AxisServlet.doPost (AxisServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.infra.log.Log4jWrapperImpl:174) ERROR EglueLogger - CM:name=CMMBean
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.cm.services.implementation.Configuratio nManagementServiceImpl:165) DEBUG EglueLogger - [D32] Service ConfigurationManagementService ended. Output: <response xmlns="http://www.eglue.com/cm/get_cm_attr_data_response">
<resp_header xmlns="">
<status>system_error</status>
<status_text>CM:name=CMMBean</status_text>
</resp_header>
<resp_data xmlns=""/>
</response>
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.cm.services.implementation.Configuratio nManagementServiceImpl:169) INFO EglueLogger - [I17] The getCMAttributes service finished, response: <response xmlns="http://www.eglue.com/cm/get_cm_attr_data_response">
<resp_header xmlns="">
<status>system_error</status>
<status_text>CM:name=CMMBean</status_text>
</resp_header>
<resp_data xmlns=""/>
</response>.
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.batch.scheduler.job.AlertsExpiredJob:36 ) INFO EglueLogger - [I25] The AlertsExpiredJob.execute method started.
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.infra.log.Log4jWrapperImpl:211) DEBUG EglueLogger -
************** running SQL in DB ******************
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.infra.log.Log4jWrapperImpl:212) DEBUG EglueLogger -
SELECT fa.status,fa.indx,fa.alert_instance_indx, fa.project_id,fa.fire_user_id,fa.fire_user_display ,fa.fire_user_tz,fa.fire_team_id,fa.fire_team_disp lay ,fa.alert_message,fa.utc_expiration_time,fa.fire_u ser_local_on_time,fa.fire_user_local_off_time ,fa.utc_on_time,fa.utc_off_time,fa.server_utc_time stamp,fa.cookie,ai.id as alert_instance_id,cs.id as cs_id,dp.version as dep_version FROM FIRED_ALERTS fa,ALERT_INSTANCES ai,CONTENT_SETS cs,DEPLOYED_PROJECTS dp WHERE utc_expiration_time < Tue May 06 06:27:00 UTC 2008and fa.ALERT_INSTANCE_INDX=ai.indx and cs.INDX=ai.cs_indx and cs.PROJECT_INDX=dp.indx and fa.STATUS='on'
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.infra.log.Log4jWrapperImpl:213) DEBUG EglueLogger -
************** end SQL query ******************
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.batch.scheduler.job.AlertsExpiredJob:83 ) INFO EglueLogger - [I26] The AlertsExpiredJob.execute method finished.
As you can see on the bottom I have an exception when I try to run the CM service.
Any ideas why?
I am trying to fix this for about 4 hours and about to bang my head in the wall.
Help would be much appreciated.
Thanks!
P.S,
I am using tomcat 6
############## When I go to http://localhost:8080/manager/jmxproxy I see the following bean loaded ##################
Name: CM:name=CMMBean
modelerType: com.eglue.mbean.implementation.CMMBeanImpl
CmCacheComponentCacheDao: com.eglue.mbean.data.dao.implementation.CMCacheCom ponentCacheDaoImpl@1133eca
CmHistoryAttrDao: com.eglue.mbean.data.dao.implementation.CmHistoryA ttrJdbcDaoImpl@7f6e7c
############## The spring exporter bean #########
<bean id="exporter"
class="org.springframework.jmx.export.MBeanExporte r"
lazy-init="false">
<property name="beans">
<map>
<entry key="CM:name=CMMBean" value-ref="CMMBean" />
</map>
</property>
<property name="registrationBehaviorName"
value="REGISTRATION_REPLACE_EXISTING" />
</bean>
############# The CMMBean bean ###############
<bean id="CMMBean"
class="com.eglue.mbean.implementation.CMMBeanImpl" >
<property name="cmCacheComponentCacheDao">
<ref bean="cmCacheComponentCacheDao" />
</property>
<property name="cmHistoryAttrDao">
<ref bean="cmHistoryAttrDao" />
</property>
</bean>
############ The exception I am getting #############
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.cm.services.implementation.Configuratio nManagementServiceImpl:68) INFO EglueLogger - [I16] The getCMAttributes service started.
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.cm.services.implementation.Configuratio nManagementServiceImpl:71) DEBUG EglueLogger - [D31] Service ConfigurationManagementService started. Input: <ns1:cm_data xmlns:ns1="http://www.eglue.com/cm/get_cm_attr_data_req" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<os_uid>QA\GL0</os_uid>
</ns1:cm_data>
javax.management.InstanceNotFoundException: CM:name=CMMBean
at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.getMBean(DefaultMBeanServerInterceptor.java:10 10)
at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:804)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:784)
at com.eglue.cm.services.implementation.Configuration ManagementServiceImpl.getCMAttributes(Configuratio nManagementServiceImpl.java:94)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:177)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :144)
at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:107)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :166)
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.getCMAttributes(Unknown Source)
at com.eglue.ws.ConfigurationManagementServiceSkeleto n.getCMAttributes(ConfigurationManagementServiceSk eleton.java:25)
at com.eglue.ws.ConfigurationManagementServiceMessage ReceiverInOut.invokeBusinessLogic(ConfigurationMan agementServiceMessageReceiverInOut.java:51)
at org.apache.axis2.receivers.AbstractInOutSyncMessag eReceiver.invokeBusinessLogic(AbstractInOutSyncMes sageReceiver.java:42)
at org.apache.axis2.receivers.AbstractMessageReceiver .receive(AbstractMessageReceiver.java:96)
at org.apache.axis2.engine.AxisEngine.receive(AxisEng ine.java:145)
at org.apache.axis2.transport.http.HTTPTransportUtils .processHTTPPostRequest(HTTPTransportUtils.java:27 5)
at org.apache.axis2.transport.http.AxisServlet.doPost (AxisServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.infra.log.Log4jWrapperImpl:174) ERROR EglueLogger - CM:name=CMMBean
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.cm.services.implementation.Configuratio nManagementServiceImpl:165) DEBUG EglueLogger - [D32] Service ConfigurationManagementService ended. Output: <response xmlns="http://www.eglue.com/cm/get_cm_attr_data_response">
<resp_header xmlns="">
<status>system_error</status>
<status_text>CM:name=CMMBean</status_text>
</resp_header>
<resp_data xmlns=""/>
</response>
2008-05-06 06:23:25,515 {dd-MM-yyyy HH:mm:ss} (com.eglue.cm.services.implementation.Configuratio nManagementServiceImpl:169) INFO EglueLogger - [I17] The getCMAttributes service finished, response: <response xmlns="http://www.eglue.com/cm/get_cm_attr_data_response">
<resp_header xmlns="">
<status>system_error</status>
<status_text>CM:name=CMMBean</status_text>
</resp_header>
<resp_data xmlns=""/>
</response>.
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.batch.scheduler.job.AlertsExpiredJob:36 ) INFO EglueLogger - [I25] The AlertsExpiredJob.execute method started.
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.infra.log.Log4jWrapperImpl:211) DEBUG EglueLogger -
************** running SQL in DB ******************
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.infra.log.Log4jWrapperImpl:212) DEBUG EglueLogger -
SELECT fa.status,fa.indx,fa.alert_instance_indx, fa.project_id,fa.fire_user_id,fa.fire_user_display ,fa.fire_user_tz,fa.fire_team_id,fa.fire_team_disp lay ,fa.alert_message,fa.utc_expiration_time,fa.fire_u ser_local_on_time,fa.fire_user_local_off_time ,fa.utc_on_time,fa.utc_off_time,fa.server_utc_time stamp,fa.cookie,ai.id as alert_instance_id,cs.id as cs_id,dp.version as dep_version FROM FIRED_ALERTS fa,ALERT_INSTANCES ai,CONTENT_SETS cs,DEPLOYED_PROJECTS dp WHERE utc_expiration_time < Tue May 06 06:27:00 UTC 2008and fa.ALERT_INSTANCE_INDX=ai.indx and cs.INDX=ai.cs_indx and cs.PROJECT_INDX=dp.indx and fa.STATUS='on'
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.infra.log.Log4jWrapperImpl:213) DEBUG EglueLogger -
************** end SQL query ******************
2008-05-06 06:27:00,015 {dd-MM-yyyy HH:mm:ss} (com.eglue.batch.scheduler.job.AlertsExpiredJob:83 ) INFO EglueLogger - [I26] The AlertsExpiredJob.execute method finished.