You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrew Boyd (JIRA)" <ji...@apache.org> on 2014/01/14 16:40:50 UTC
[jira] [Updated] (CAMEL-7133) camel-1
MalformedParameterizedTypeException Error running main from:
org.apache.camel.spring.Main
[ https://issues.apache.org/jira/browse/CAMEL-7133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Boyd updated CAMEL-7133:
-------------------------------
Description:
I try to run the camel Main standalone and get the MalformedParameterizedTypeException. I saw CAMEL-1348 which looks the same.
The fix in CAMEL-1348 was to add a jms dependency. I tried that to no avail.
I provided the small appContext and pom, in the Environment section, to help test.
Here is the stacktrace:
[ERROR] *************************************
[ERROR] Error occurred while running main from: org.apache.camel.spring.Main
[ERROR]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:486)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel-1': Initialization of bean failed; nested exception i
java.lang.reflect.MalformedParameterizedTypeException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
was:
I try to run the camel Main standalone and get the MalformedParameterizedTypeException. I saw CAMEL-1348 which looks the same.
The fix in CAMEL-1348 was to add a jms dependency. I tried that to no avail.
I provided the small appContext and pom to help test.
Here is the stacktrace:
[ERROR] *************************************
[ERROR] Error occurred while running main from: org.apache.camel.spring.Main
[ERROR]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:486)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel-1': Initialization of bean failed; nested exception i
java.lang.reflect.MalformedParameterizedTypeException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> camel-1 MalformedParameterizedTypeException Error running main from: org.apache.camel.spring.Main
> --------------------------------------------------------------------------------------------------
>
> Key: CAMEL-7133
> URL: https://issues.apache.org/jira/browse/CAMEL-7133
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.12.2
> Environment: Windows 7 Pro.
> Standalone Camel 2.12.2
> Java 1.7.0_25
> pom.xml
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <parent>
> <artifactId>core</artifactId>
> <groupId>com.xxxx.clinical</groupId>
> <version>3.3.3.3.1</version>
> </parent>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.xxxx.clinical</groupId>
> <artifactId>aggregate-delivery</artifactId>
> <packaging>jar</packaging>
> <name>aggregate-delivery</name>
> <version>0.0.0.0.01</version>
> <properties>
> <camel.version>2.12.2</camel.version>
> <spring.version>2.5.6.SEC02</spring.version>
> </properties>
> <dependencies>
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring</artifactId>
> <version>${spring.version}</version>
> <exclusions>
> <exclusion>
> <artifactId>commons-logging</artifactId>
> <groupId>commons-logging</groupId>
> </exclusion>
> <exclusion>
> <artifactId>commons-logging-api</artifactId>
> <groupId>commons-logging</groupId>
> </exclusion>
> </exclusions>
> </dependency>
> <dependency>
> <groupId>commons-collections</groupId>
> <artifactId>commons-collections</artifactId>
> <version>3.2.1</version>
> <scope>compile</scope>
> </dependency>
>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.5</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>com.fasterxml.jackson.core</groupId>
> <artifactId>jackson-core</artifactId>
> <version>2.3.0</version>
> </dependency>
> <!-- Camel -->
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-core</artifactId>
> <version>${camel.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-jms</artifactId>
> <version>${camel.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-hl7</artifactId>
> <version>${camel.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-mina</artifactId>
> <version>${camel.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-spring</artifactId>
> <version>${camel.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-cxf</artifactId>
> <version>${camel.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-jms</artifactId>
> <version>${camel.version}</version>
> </dependency>
> <!-- <dependency>
> <groupId>org.apache.mina</groupId>
> <artifactId>mina-core</artifactId>
> <version>2.0.7</version>
> </dependency> -->
>
> <!-- hapi -->
> <dependency>
> <groupId>ca.uhn.hapi</groupId>
> <artifactId>hapi-base</artifactId>
> <version>2.0</version>
> <exclusions>
> <exclusion>
> <artifactId>xercesImpl</artifactId>
> <groupId>xerces</groupId>
> </exclusion>
> </exclusions>
> </dependency>
> <dependency>
> <groupId>ca.uhn.hapi</groupId>
> <artifactId>hapi-structures-v22</artifactId>
> <version>2.0</version>
> </dependency>
> <dependency>
> <groupId>ca.uhn.hapi</groupId>
> <artifactId>hapi-structures-v23</artifactId>
> <version>2.0</version>
> </dependency>
> <dependency>
> <groupId>ca.uhn.hapi</groupId>
> <artifactId>hapi-structures-v231</artifactId>
> <version>2.0</version>
> </dependency>
> <dependency>
> <groupId>ca.uhn.hapi</groupId>
> <artifactId>hapi-structures-v26</artifactId>
> <version>2.0</version>
> </dependency>
> </dependencies>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.camel</groupId>
> <artifactId>camel-maven-plugin</artifactId>
> <version>${camel.version}</version>
> <!-- optional, default value: org.apache.camel.spring.Main -->
> <configuration>
> <applicationContextUri>application-context.xml</applicationContextUri>
> <!-- <mainClass>com.xxxx.aggregatedelivery.Main</mainClass> -->
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> </plugins>
> <pluginManagement>
> <plugins>
> <plugin>
> <artifactId>maven-eclipse-plugin</artifactId>
> <configuration>
> <wtpversion>2.0</wtpversion>
> <wtpapplicationxml>true</wtpapplicationxml>
> <wtpmanifest>true</wtpmanifest>
> <downloadSources>true</downloadSources>
> <downloadJavadocs>true</downloadJavadocs>
> <projectNameTemplate>[artifactId]-[version]</projectNameTemplate>
> <manifest>${basedir}/src/main/resources/META-INF/MANIFEST.MF</manifest>
> </configuration>
> </plugin>
> </plugins>
> </pluginManagement>
> <finalName>aggregate-delivery</finalName>
> </build>
> </project>
> app-context:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:lang="http://www.springframework.org/schema/lang"
> xmlns:util="http://www.springframework.org/schema/util"
> xmlns:cxf="http://camel.apache.org/schema/cxf"
> xmlns:camel="http://camel.apache.org/schema/spring"
> xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://camel.apache.org/schema/cxf
> http://camel.apache.org/schema/cxf/camel-cxf.xsd
> http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring-2.12.2.xsd"
> default-init-method="init" default-lazy-init="false">
> <cxf:rsServer id="rsServer" address="http://localhost:9090/hrm/hrm_push"
> serviceClass="com.xxxx.aggregatedelivery.JsonToHl7Transformer"/>
>
> <!-- Camel Configuration -->
> <camel:camelContext>
> <camel:dataFormats>
> <!-- here we define a Json data format with the id hrmJsonInput and that it should use the TestPojo as the class type when
> doing unmarshal. The unmarshalTypeName is optional, if not provided Camel will use a Map as the type -->
> <camel:json id="Json" library="Jackson" />
> </camel:dataFormats>
> <camel:route>
> <camel:from uri="bean:rsServer"/>
> <camel:unmarshal ref="Json"/>
> <camel:to uri="bean:transformer?method=transform" />
> </camel:route>
> </camel:camelContext>
> <!-- loads resource annotations -->
> <bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor">
> <property name="fallbackToDefaultTypeMatch" value="false"/>
> </bean>
>
> <bean id="transformer" class="com.xxxx.aggregatedelivery.transformers.JsonToHl7Transformer">
> </bean>
> </beans>
> Reporter: Andrew Boyd
>
> I try to run the camel Main standalone and get the MalformedParameterizedTypeException. I saw CAMEL-1348 which looks the same.
> The fix in CAMEL-1348 was to add a jms dependency. I tried that to no avail.
> I provided the small appContext and pom, in the Environment section, to help test.
> Here is the stacktrace:
> [ERROR] *************************************
> [ERROR] Error occurred while running main from: org.apache.camel.spring.Main
> [ERROR]
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:486)
> at java.lang.Thread.run(Thread.java:724)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel-1': Initialization of bean failed; nested exception i
> java.lang.reflect.MalformedParameterizedTypeException
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)