cvc-complex-type.3.2.2: атрибут «exceptionType» не может появляться в элементе «throwException» - PullRequest
0 голосов
/ 04 июля 2019

Я пытаюсь бросить исключение на верблюда.Я на версии 2.2.170.redhat-000013.Когда я использую приведенный ниже код весной, DSL

<throwException id="_throwException1" exceptionType="org.mycompany.MyException" message="Test Exception"/>

Дает

Multiple annotations found at this line:
- cvc-complex-type.4: Attribute 'ref' must appear on element 'throwException'.
- cvc-complex-type.3.2.2: Attribute 'exceptionType' is not allowed to appear in element 
 'throwException'.
- cvc-complex-type.3.2.2: Attribute 'message' is not allowed to appear in element 
 'throwException'.

Расположение схемы в моем проекте выглядит следующим образом:

<?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" xsi:schemaLocation="http://www.springframework.org/schema/beans  http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd" >

Синтаксис throwException должен работать согласнодокументацию, пожалуйста, помогите найти ошибку.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...