Announcement Announcement Module
Collapse
No announcement yet.
Getting java.lang.reflect.MalformedParameterizedTypeExcept ion - Spring Batch JMX Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting java.lang.reflect.MalformedParameterizedTypeExcept ion - Spring Batch JMX

    I am trying to monitor the spring batch jobs using JMX. But I am getting the exception java.lang.reflect.MalformedParameterizedTypeExcept ion while trying to create the bean for "jobService" - org.springframework.batch.admin.service.SimpleJobS erviceFactoryBean. This is my spring configuration file. Please someone help me on this issue.

    <context:mbean-server id="mbeanServer" />

    <context:mbean-export default-domain="spring.application"
    server="mbeanServer" />

    <bean id="batchMBeanExporter" class="org.springframework.batch.admin.jmx.BatchMB eanExporter">
    <property name="server" ref="mbeanServer" />
    <property name="jobService" ref="jobService">
    <!-- <bean class="org.springframework.aop.framework.ProxyFact oryBean">
    <property name="targetName" value="jobService" />
    <property name="interceptorNames" value="cacheInterceptor" />
    </bean> -->
    </property>
    <property name="defaultDomain" value="spring.application" />
    </bean>

    <bean id="cacheInterceptor"
    class="org.springframework.batch.admin.util.Simple EhCacheInterceptor" />

    <bean id="jobRegistry" class="org.springframework.batch.core.configuratio n.support.MapJobRegistry" />

    <bean id="jobService" class="org.springframework.batch.admin.service.Sim pleJobServiceFactoryBean" autowire="constructor">
    <property name="jobRepository" ref="jobRepository" />
    <property name="jobLauncher" ref="jobLauncher" />
    <property name="jobLocator" ref="jobRegistry" />
    <property name="dataSource" ref="dataSource" />
    </bean>

    <bean id="jobLauncher"
    class="org.springframework.batch.core.launch.suppo rt.SimpleJobLauncher">
    <property name="jobRepository" ref="jobRepository" />
    <property name="taskExecutor">
    <bean class="org.springframework.core.task.SimpleAsyncTa skExecutor" />
    </property>
    </bean>

    <bean id="jobRepository"
    class="org.springframework.batch.core.repository.s upport.MapJobRepositoryFactoryBean">
    <property name="transactionManager" ref="transactionManager" />
    </bean>

    <bean id="transactionManager"
    class="org.springframework.batch.support.transacti on.ResourcelessTransactionManager" />

  • #2
    What JDK are you using?

    Comment

    Working...
    X