Ошибки профиля пула в Mule FTP 1.4.1 Connector - PullRequest
0 голосов
/ 03 октября 2019

Я использую FTP-соединитель для чтения файла CSV. Приложение является примером приложения из Exchange на ftp.devrel.mulesoft.com.

Все работает нормально, когда «Профиль пула» в настройке FTP установлен на «Использовать конфигурацию пула соединений по умолчанию». Тестовое соединение успешно завершено.

Если я изменил «Профиль пула» на «Редактировать встроенный» и сохранил все настройки по умолчанию, проверка подключения завершится с ошибкой:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'FTP_Config': 
Cannot create inner bean '(inner bean)#3393fd09' of type [org.mule.runtime.module.extension.internal.config.dsl.connection.ConnectionProviderObjectFactory$$EnhancerByCGLIB$$fc09cb67] while setting bean property 'connectionProviderResolver'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3393fd09': Cannot create inner bean '(inner bean)#52e62e2e' of type [org.mule.runtime.api.config.PoolingProfile] while setting bean property 'poolingProfile'; 
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name '(inner bean)#52e62e2e': Unsatisfied dependency expressed through constructor parameter 3: Could not convert argument value of type [null] to required type [int]: Failed to convert value of type 'null' to required type 'int'; 
nested exception is java.lang.IllegalArgumentException: Cannot convert value of type 'null' to required type 'int': PropertyEditor [org.springframework.beans.propertyeditors.CustomNumberEditor] returned inappropriate value of type 'null'

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'FTP_Config': Cannot create inner bean '(inner bean)#3393fd09' of type [org.mule.runtime.module.extension.internal.config.dsl.connection.ConnectionProviderObjectFactory$$EnhancerByCGLIB$$fc09cb67] while setting bean property 'connectionProviderResolver'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3393fd09': Cannot create inner bean '(inner bean)#52e62e2e' of type [org.mule.runtime.api.config.PoolingProfile] while setting bean property 'poolingProfile'; 
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name '(inner bean)#52e62e2e': Unsatisfied dependency expressed through constructor parameter 3: Could not convert argument value of type [null] to required type [int]: Failed to convert value of type 'null' to required type 'int'; 
nested exception is java.lang.IllegalArgumentException: Cannot convert value of type 'null' to required type 'int': PropertyEditor [org.springframework.beans.propertyeditors.CustomNumberEditor] returned inappropriate value of type 'null'
        at
...