Apache camel 参数dataFormatType是必填字段,不能为空。有关详细信息,请查看properties视图

Apache camel 参数dataFormatType是必填字段,不能为空。有关详细信息,请查看properties视图,apache-camel,jbossfuse,Apache Camel,Jbossfuse,如何解决这个问题。我是“jboss中间件”的初学者 参数dataFormatType是必填字段,不能为空。有关详细信息,请查看properties视图 <?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:camel="http://camel.apache.org/schema/blueprint" xmlns:xs

如何解决这个问题。我是“jboss中间件”的初学者

参数dataFormatType是必填字段,不能为空。有关详细信息,请查看properties视图

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:camel="http://camel.apache.org/schema/blueprint"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd        http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<!-- this is the JDBC data source Config for postgresql database -->
<bean class="org.apache.commons.dbcp.BasicDataSource"
    destroy-method="close" id="dataSource">
    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="url" value="jdbc:mysql://localhost:3306/demo"/>
    <property name="username" value="root"/>
    <property name="password" value="root"/>
</bean>
<!-- configure the Camel SQL component to use the JDBC data source -->
<bean class="org.apache.camel.component.sql.SqlComponent" id="sql">
    <property name="dataSource" ref="dataSource"/>
</bean>
<camelContext id="CustInfoContext" trace="false" xmlns="http://camel.apache.org/schema/blueprint">
    <propertyPlaceholder id="properties" location="classpath:sql.properties"/>
    <route customId="true" id="custinfoRoute">
        <from id="_from1" uri="activemq:queue:customer"/>
        <unmarshal id="_unmarshal1">
            <jaxb contextPath="org.blogdemo.homeloan.model"
                partClass="org.blogdemo.homeloan.model.CustInfo" prettyPrint="true"/>
        </unmarshal>
        <setHeader headerName="custNationalID" id="_setHeader1">
            <simple>${body.nationalID}</simple>
        </setHeader>
        <setHeader headerName="firstName" id="_setHeader2">
            <simple>${body.firstName}</simple>
        </setHeader>
        <setHeader headerName="lastName" id="_setHeader3">
            <simple>${body.lastName}</simple>
        </setHeader>
        <setHeader headerName="age" id="_setHeader4">
            <simple>${body.age}</simple>
        </setHeader>
        <setHeader headerName="occupation" id="_setHeader5">
            <simple>${body.occupation}</simple>
        </setHeader>
        <to id="_to1" uri="sql:{{sql.insertCustInfo}}"/>
    </route>
</camelContext>

${body.national}
${body.firstName}
${body.lastName}
${body.age}
${body.occulation}

因此,Beta1版本的工具似乎存在问题。在最新的资料中,我无法复制这个问题。请参阅附加的屏幕截图。我建议一发布就升级到最新版本


嗨,欢迎来到SO。请在问题中发布相关代码,屏幕截图的链接不允许用户轻松复制和粘贴您的代码。.Red Hat JBoss Developer Studio 9.1.0.Beta2和JBoss fuse tooling 8.08.0版不是确切的版本。您能更具体一点吗?jboss fuse tooling version 8.0.0.Beta1-v20160222-1935-B731我们无法重现完全相同的错误,但发现了一个带有prettyPrint属性的错误。此处跟踪: