nested exception is java.lang.reflect.MalformedParameterizedTypeException while loading camelcontext

*My main class calls this class to load the camel xml file. *

public void routeCaller() {
        try {
            ApplicationContext appContext = null;
            System.out.println("HI......");
            try {
                appContext = new ClassPathXmlApplicationContext(
                        "classpath:/META-INF/spring/camel-context.xml");
                SpringCamelContext camel = (SpringCamelContext) appContext
                        .getBean("camel-context");
                System.out.println("Successfully loaded..............");
                camel.startAllRoutes();

                ProducerTemplate producerTemplate = camel
                        .createProducerTemplate();
                Object response =  producerTemplate.requestBody("direct:updateEdiProvStatusToErrored",
                        new Object());
            } catch (Exception e) {
                System.out.println("handled" + e);
                e.printStackTrace();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

Camel context:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:camel="http://camel.apache.org/schema/spring" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:cxf="http://camel.apache.org/schema/cxf" xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:util="http://www.springframework.org/schema/util" xmlns:batch="http://www.springframework.org/schema/batch"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
        http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
        http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
        http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
    <bean id="ediProcessor"
        class="diBatchProcessor" />
    <camel:camelContext id="camel-context" >

         <camel:route id="new-route">
            <camel:from uri="direct:updateEdiProvStatusToErrored" />
            <camel:to uri="bean:ediProcessor?method=printIt" />
        </camel:route>
    </camel:camelContext>
</beans>

project has many dependency and it is bundled into a jar using maven-assembly plugin. The following error comes while loading the camel context file initially

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel-context': Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel-context': Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException