Error creating bean with name suncryptographer

Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата (Страница 10 из 15) Форум Рутокен → Вопросы по ЕГАИС → Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата Страницы Назад 1 … 8 9 10 11 12 … 15 Далее Сообщений с 136 по 150 из 216 #136 Ответ от Фатеева Светлана 2022-08-15 […]

Содержание

  1. Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата (Страница 10 из 15)
  2. Сообщений с 136 по 150 из 216
  3. #136 Ответ от Фатеева Светлана 2022-08-15 12:28:56
  4. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  5. #137 Ответ от trivarson 2022-08-25 07:06:09
  6. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  7. Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата (Страница 5 из 15)
  8. Сообщений с 61 по 75 из 216
  9. #61 Ответ от Eduard 2022-02-01 17:50:03
  10. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  11. #62 Ответ от Ксения Шаврова 2022-02-02 08:31:42
  12. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  13. #63 Ответ от Ксения Шаврова 2022-02-02 08:57:01
  14. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  15. #64 Ответ от BatZol 2022-02-02 09:38:53 (2022-02-02 09:39:36 отредактировано BatZol)
  16. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  17. #65 Ответ от Ксения Шаврова 2022-02-02 10:21:56
  18. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  19. #66 Ответ от Ксения Шаврова 2022-02-02 17:03:55
  20. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  21. #67 Ответ от Li 2022-02-03 20:04:12 (2022-02-03 20:04:58 отредактировано Li)
  22. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  23. #68 Ответ от Ксения Шаврова 2022-02-03 21:38:06
  24. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  25. #69 Ответ от Li 2022-02-03 21:43:04
  26. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  27. #70 Ответ от Ксения Шаврова 2022-02-03 21:50:07
  28. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  29. #71 Ответ от Ксения Шаврова 2022-02-04 10:18:51
  30. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  31. #72 Ответ от Li 2022-02-07 10:44:32 (2022-02-07 10:44:50 отредактировано Li)
  32. Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата
  33. УТМ не запускается подпись от ФНС (Страница 1 из 2)
  34. Сообщений с 1 по 15 из 26
  35. #1 Тема от Арт 2022-01-26 19:08:42
  36. УТМ не запускается подпись от ФНС
  37. #2 Ответ от Фатеева Светлана 2022-01-27 10:30:02
  38. Re: УТМ не запускается подпись от ФНС
  39. #3 Ответ от Арт 2022-01-27 14:49:36
  40. Re: УТМ не запускается подпись от ФНС
  41. #4 Ответ от Арт 2022-01-27 14:51:39
  42. Re: УТМ не запускается подпись от ФНС
  43. #5 Ответ от Фатеева Светлана 2022-01-27 15:00:31
  44. Re: УТМ не запускается подпись от ФНС
  45. #6 Ответ от Арт 2022-01-27 15:05:37
  46. Re: УТМ не запускается подпись от ФНС
  47. #7 Ответ от AnnaV 2022-08-19 10:03:52
  48. Re: УТМ не запускается подпись от ФНС
  49. #8 Ответ от Фатеева Светлана 2022-08-19 10:38:25
  50. Re: УТМ не запускается подпись от ФНС
  51. #9 Ответ от AnnaV 2022-08-19 11:31:35
  52. Re: УТМ не запускается подпись от ФНС
  53. #10 Ответ от tasmadeus 2022-08-26 09:05:14
  54. Re: УТМ не запускается подпись от ФНС
  55. #11 Ответ от Фатеева Светлана 2022-08-26 12:20:56
  56. Re: УТМ не запускается подпись от ФНС
  57. #12 Ответ от Феопентов Сергей 2022-09-05 12:02:40
  58. Re: УТМ не запускается подпись от ФНС

Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата (Страница 10 из 15)

Форум Рутокен → Вопросы по ЕГАИС → Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Страницы Назад 1 … 8 9 10 11 12 … 15 Далее

Сообщений с 136 по 150 из 216

#136 Ответ от Фатеева Светлана 2022-08-15 12:28:56

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте, Какжетак,
Воспользуйтесь пожалуйста инструкции.

#137 Ответ от trivarson 2022-08-25 07:06:09

  • trivarson
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте! На этой неделе начали возникать массовые ошибки с УТМ, программа падает через пару секунд после запуска. Прилагаю ниже лог:

2022-08-25 11:00:39,070 INFO org.springframework.boot.SpringApplication —

Java HotSpot(TM) Client VM Oracle Corporation 1.8.0_181 x32
Windows 10 x86 v10.0

2022-08-25 11:00:39,109 INFO org.hibernate.validator.internal.util.Version — HV000001: Hibernate Validator 6.1.6.Final
2022-08-25 11:00:40,039 INFO ru.centerinform.transport.backbone.Transport — Starting Transport using Java 1.8.0_181 on IT-PC-1 with PID 4036 (C:UTMtransporterlibterminal-backbone-4.2.0.jar started by IT-PC-1$ in C:UTMtransporterbin)
2022-08-25 11:00:40,040 INFO ru.centerinform.transport.backbone.Transport — The following profiles are active: prod
2022-08-25 11:00:41,247 INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate — Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2022-08-25 11:00:41,345 INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate — Finished Spring Data repository scanning in 89 ms. Found 11 JPA repository interfaces.
2022-08-25 11:00:42,518 INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer — Tomcat initialized with port(s): 8080 (http)
2022-08-25 11:00:42,530 INFO org.apache.coyote.http11.Http11NioProtocol — Initializing ProtocolHandler [«http-nio-8080»]
2022-08-25 11:00:42,531 INFO org.apache.catalina.core.StandardService — Starting service [Tomcat]
2022-08-25 11:00:42,531 INFO org.apache.catalina.core.StandardEngine — Starting Servlet engine: [Apache Tomcat/9.0.41]
2022-08-25 11:00:42,647 INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] — Initializing Spring embedded WebApplicationContext
2022-08-25 11:00:42,647 INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext — Root WebApplicationContext: initialization completed in 2561 ms
2022-08-25 11:00:43,111 INFO ru.centerinform.transport.pki.key.KeyMaster — Запуск процесса определения библиотеки
2022-08-25 11:00:43,114 INFO ru.centerinform.transport.pki.key.initialize.TokenInitializer — Найдена dll: C:WindowsSysWOW64jcPKCS11-2.dll
2022-08-25 11:00:43,232 INFO ru.centerinform.transport.pki.key.initialize.TokenInitializer — Найдена dll: C:WindowsSysWOW64rtPKCS11ECP.dll
2022-08-25 11:00:43,636 INFO ru.centerinform.transport.pki.key.initialize.TokenInitializer — Найден слот смарт-карты [0:Rutoken ECP ]
2022-08-25 11:00:43,648 INFO ru.centerinform.transport.pki.key.initialize.TokenInitializer — Обновление конфигурации rsaPath: C:WindowsSysWOW64rtPKCS11ECP-replica.dll, gostPath: C:WindowsSysWOW64rtPKCS11ECP.dll, rsaPassword: 12345678, gostPassword: 12345678
2022-08-25 11:00:44,064 INFO ru.centerinform.transport.pki.key.KeyMaster — Найден слот смарт-карты [0:Rutoken ECP ]
2022-08-25 11:00:46,395 INFO ru.centerinform.transport.pki.key.KeyMaster — Используется сертификат SerialNumber: 2fe1fbe500000028c248
2022-08-25 11:00:46,395 INFO ru.centerinform.transport.pki.key.KeyMaster — RSA сертификат: [
[
Version: V3
Subject: CN=030000662215, OU=OU, O=O, L=L, ST=S, C=C
Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11

Key: Sun RSA public key, 2048 bits
modulus: 19354799699491290277835162860318393665863158926412189931280998309354526774756140300858851544007167934577290317670244596244288998827536482510929794800639262991105413446611848147151771005718913082025657559060472490962227051985629879507718507922794301312760138998873863197930963359184540126327243823866500141725182596991475850628908212795917237570314571479074902022684281236816886082402963864792375501979194964166541976685564096166411037700604243207804657797635489000016168996245278865131232251734289424414391707789945153144516056014852210786080600657000995116662649378855232865840221653191031135223384827590247217933247
public exponent: 65537
Validity: [From: Wed Aug 24 14:11:07 NOVT 2022,
To: Thu Aug 24 14:21:07 NOVT 2023]
Issuer: CN=pki.fsrar.ru
SerialNumber: [ 2fe1fbe5 00000028 c248]

Certificate Extensions: 4
[1]: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
AuthorityInfoAccess [
[
accessMethod: caIssuers
accessLocation: URIName: http://pki.fsrar.ru/CertEnroll/pki.fsrar.ru.crt
]
]

[2]: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
0000: 83 31 47 F3 82 C7 41 4C 19 88 AE 3E 2A F1 16 77 .1G. AL. >*..w
0010: 36 E1 44 BC 6.D.
]
]

Источник

Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата (Страница 5 из 15)

Форум Рутокен → Вопросы по ЕГАИС → Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Страницы Назад 1 2 3 4 5 6 7 … 15 Далее

Сообщений с 61 по 75 из 216

#61 Ответ от Eduard 2022-02-01 17:50:03

  • Eduard
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Добрый день. Рутокен ЭЦП 2.0 0. Получили ЭЦП в налоговой. По нему зашел на сайт ЕГАИС. Сформировал и записал ключ FSRAR RSA. Все норм. Но УТМ не запускается. Ошибка:

Caused by: java.lang.IllegalStateException: Список сертификатов пуст
at ru.centerinform.transport.util.a.a(CertificateUtil.java:56)
at ru.centerinform.transport.crypto.SunCryptographer.a(SunCryptographer.java:399)
at ru.centerinform.transport.crypto.SunCryptographer.g(SunCryptographer.java:320)
at ru.centerinform.transport.crypto.SunCryptographer.f(SunCryptographer.java:148)
. 53 common frames omitted
2022-02-01 16:28:05,324 INFO ru.centerinform.transport.backbone.config.DatabaseConfig — Закрытие БД
2022-02-01 16:28:05,355 INFO ru.centerinform.transport.backbone.config.DatabaseConfig — Закрытие базы успешно завершено с кодом: 08006

Большая просьба помочь в решении данной проблемы! anydesk — 891 308 264

#62 Ответ от Ксения Шаврова 2022-02-02 08:31:42

  • Ксения Шаврова
  • Администратор
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Eduard, здравствуйте.
Готовы подключиться.

#63 Ответ от Ксения Шаврова 2022-02-02 08:57:01

  • Ксения Шаврова
  • Администратор
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Eduard, в ходе удаленного подключения обнаружилось, что в файлах УТМ отсутствуют некоторые необходимые библиотеки.
Что было сделано:
1) Обновлены Драйверы Рутокен до последней версии
2) Создана копия старого УТМ, после чего текущий УТМ удален с компьютера
3) Установлена актуальная версия УТМ.

#64 Ответ от BatZol 2022-02-02 09:38:53 (2022-02-02 09:39:36 отредактировано BatZol)

  • BatZol
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Добрый день. Рутокен ЭЦП 2.0 0. Получили ЭЦП в налоговой. По нему зашел на сайт ЕГАИС. Сформировал и записал ключ FSRAR RSA. Все норм. Но УТМ не запускается. Ошибка:
2022-02-02 17:31:00 Apache Commons Daemon procrun stderr initialized.
Exception in thread «main» actory.UnsatisfiedDependencyException: Error creating bean with name ‘certificateInfo’: Unsatisfied dependency expressed through field ‘cryptographerWrapper’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘cryptographerWrapper’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-crypto-4.2.0.jar!/ru/centerinform/transport/crypto/CryptographerWrapper.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sunCryptographer’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: ГОСТ хранилище не содержит подходящего сертификата
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)

для удаленного доступа AnyDesk 285012801

#65 Ответ от Ксения Шаврова 2022-02-02 10:21:56

  • Ксения Шаврова
  • Администратор
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

BatZol, готовы подключиться, разрешите, пожалуйста вход

#66 Ответ от Ксения Шаврова 2022-02-02 17:03:55

  • Ксения Шаврова
  • Администратор
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

BatZol, переустановили УТМ и удалили истекшие ГОСТ-ключи — все заработало

#67 Ответ от Li 2022-02-03 20:04:12 (2022-02-03 20:04:58 отредактировано Li)

  • Li
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Добрый вечер! УТМ не запускается, помогите пожалуйста. Лог транспорта:
Caused by: java.lang.IllegalStateException: ГОСТ хранилище не содержит подходящего сертификата
at ru.centerinform.transport.crypto.SunCryptographer.a(SunCryptographer.java:402)
at ru.centerinform.transport.crypto.SunCryptographer.g(SunCryptographer.java:320)
at ru.centerinform.transport.crypto.SunCryptographer.f(SunCryptographer.java:148)
. 52 common frames omitted
2022-02-03 20:01:29,485 INFO ru.centerinform.transport.backbone.config.DatabaseConfig — Закрытие БД
2022-02-03 20:01:29,517 INFO ru.centerinform.transport.backbone.config.DatabaseConfig — Закрытие базы успешно завершено с кодом: 08006

#68 Ответ от Ксения Шаврова 2022-02-03 21:38:06

  • Ксения Шаврова
  • Администратор
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Li, в ходе удаленного подключения пока не удалось найти проблему.
Предлагаю перенести удаленное подключение на завтра.
Мне потребуется консультация с коллегами.

Очень большая просьба — попробуйте найти другой компьютер для полноценной диагностики устройства Рутокен.
Мы работаем завтра с 10 до 18 по МСК. Во сколько вам будет удобно?

#69 Ответ от Li 2022-02-03 21:43:04

  • Li
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Хорошо. Завтра с 10 удобно

#70 Ответ от Ксения Шаврова 2022-02-03 21:50:07

  • Ксения Шаврова
  • Администратор
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Li, принято, завтра продолжим.

#71 Ответ от Ксения Шаврова 2022-02-04 10:18:51

  • Ксения Шаврова
  • Администратор
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Li, здравствуйте.

Готова подключиться. Включите, пожалуйста, AnyDesk и сообщите id.

#72 Ответ от Li 2022-02-07 10:44:32 (2022-02-07 10:44:50 отредактировано Li)

  • Li
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Готова подключиться. Включите, пожалуйста, AnyDesk и сообщите id.

Добрый день. Можно возобновить работу пожалуйста? anydesk 917487784

Источник

УТМ не запускается подпись от ФНС (Страница 1 из 2)

Форум Рутокен → Вопросы по ЕГАИС → УТМ не запускается подпись от ФНС

Сообщений с 1 по 15 из 26

#1 Тема от Арт 2022-01-26 19:08:42

  • Арт
  • Посетитель
  • Неактивен

УТМ не запускается подпись от ФНС

2022-01-26 18:39:28 Apache Commons Daemon procrun stderr initialized.
Exception in thread «main» actory.UnsatisfiedDependencyException: Error creating bean with name ‘apiServicesOrgsController’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-backbone-4.2.0.jar!/ru/centerinform/transport/backbone/http/controller/api/v2/ApiServicesOrgsController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘cryptographerWrapper’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-crypto-4.2.0.jar!/ru/centerinform/transport/crypto/CryptographerWrapper.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sunCryptographer’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: Список сертификатов пуст
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1206)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:923)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144)
at ru.centerinform.transport.backbone.Transport.main(Transport.java:18)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘cryptographerWrapper’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-crypto-4.2.0.jar!/ru/centerinform/transport/crypto/CryptographerWrapper.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sunCryptographer’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: Список сертификатов пуст
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1206)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1367)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1287)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
. 19 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sunCryptographer’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: Список сертификатов пуст
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:429)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1780)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1367)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1287)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
. 33 more
Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: Список сертификатов пуст
at ru.centerinform.transport.crypto.SunCryptographer.f(SunCryptographer.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
. 46 more
Caused by: java.lang.IllegalStateException: Список сертификатов пуст
at ru.centerinform.transport.util.a.a(CertificateUtil.java:56)
at ru.centerinform.transport.crypto.SunCryptographer.a(SunCryptographer.java:399)
at ru.centerinform.transport.crypto.SunCryptographer.g(SunCryptographer.java:320)
at ru.centerinform.transport.crypto.SunCryptographer.f(SunCryptographer.java:148)
. 53 more

#2 Ответ от Фатеева Светлана 2022-01-27 10:30:02

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: УТМ не запускается подпись от ФНС

Здравствуйте, Арт,
Пришлите пожалуйста скриншот «Панели управления Рутокен» на вкладке Сертификаты.

#3 Ответ от Арт 2022-01-27 14:49:36

  • Арт
  • Посетитель
  • Неактивен

Re: УТМ не запускается подпись от ФНС

#4 Ответ от Арт 2022-01-27 14:51:39

  • Арт
  • Посетитель
  • Неактивен

Re: УТМ не запускается подпись от ФНС

#5 Ответ от Фатеева Светлана 2022-01-27 15:00:31

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: УТМ не запускается подпись от ФНС

Есть ли возможность удаленно подключиться к Вашему компьютеру?
Подключиться можем через AnyDesk.
После запуска утилиты сообщите данные для подключения письмом на hotline@rutoken.ru.

#6 Ответ от Арт 2022-01-27 15:05:37

  • Арт
  • Посетитель
  • Неактивен

Re: УТМ не запускается подпись от ФНС

#7 Ответ от AnnaV 2022-08-19 10:03:52

  • AnnaV
  • Посетитель
  • Неактивен

Re: УТМ не запускается подпись от ФНС

Добрый день. не запускается УТМ [2022-08-19 09:49:01] [info] [12168] Apache Commons Daemon procrun finished.

#8 Ответ от Фатеева Светлана 2022-08-19 10:38:25

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: УТМ не запускается подпись от ФНС

Здравствуйте, AnnaV,
Пришлите пожалуйста скриншот «Панели управления Рутокен» на вкладке Сертификаты и файл лога УТМ (по умолчанию находится в директории «C:UTMtransporterltransport_info.log») на почту hotline@rutoken.ru.

#9 Ответ от AnnaV 2022-08-19 11:31:35

  • AnnaV
  • Посетитель
  • Неактивен

Re: УТМ не запускается подпись от ФНС

Фатеева Светлана, отправила на почту

#10 Ответ от tasmadeus 2022-08-26 09:05:14

  • tasmadeus
  • Посетитель
  • Неактивен

Re: УТМ не запускается подпись от ФНС

Здравствуйте. Перестал работать УТМ. Уже переустанавливал и УТМ и Рутокен Драйвер, в логе единственное, на что удалось обратить внимание это — «ошибка инициализации криптопровайдера rsa», но с чем это связано не понятно.

#11 Ответ от Фатеева Светлана 2022-08-26 12:20:56

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: УТМ не запускается подпись от ФНС

Здравствуйте, tasmadeus,
Рекомендуем сократить количество электронных подписей на носителе Рутокен ЭЦП 2.0, так как для стабильной работы УТМ на Рутокене ЭЦП 2.0 должно быть не более 5 электронных подписей. После удаления электронных подписей перезапустите УТМ и проверьте его работу еще раз.
Если ошибка УТМ останется, то пришлите файл лога УТМ (по умолчанию находится в директории «C:UTMtransporterltransport_info.log») на почту hotline@rutoken.ru.

#12 Ответ от Феопентов Сергей 2022-09-05 12:02:40

  • Феопентов Сергей
  • Посетитель
  • Неактивен

Re: УТМ не запускается подпись от ФНС

Добрый день! Нужна помощь. Не запускается УТМ — запускается и сразу вылетает.

Источник

Страницы Назад 1 8 9 10 11 12 15 Далее

Чтобы отправить ответ, нужно авторизоваться или зарегистрироваться

RSS: текущая тема

Сообщений с 136 по 150 из 219

#136 2022-08-15 12:28:56

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте, Какжетак,
Воспользуйтесь пожалуйста инструкции.

#137 Ответ от trivarson 2022-08-25 07:06:09

  • trivarson
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте! На этой неделе начали возникать массовые ошибки с УТМ, программа падает через пару секунд после запуска. Прилагаю ниже лог:

2022-08-25 11:00:39,070 INFO  org.springframework.boot.SpringApplication —

$$   $$  $$$$$$$$  $$      $$
$$ |  $$ | __$$  __| $$$    $$$ |
$$ |  $$ |    $$ |    $$$$  $$$$ |
$$ |  $$ |    $$ |    $$$$$$ $$ |
$$ |  $$ |    $$ |    $$ $$$  $$ |
$$ |  $$ |    $$ |    $$ |$  /$$ |
$$$$$$  |    $$ |    $$ | _/ $$ |
  ______/     __|    __|     __|

                    4.2.0b002427

Java HotSpot(TM) Client VM Oracle Corporation 1.8.0_181 x32       
Windows 10 x86 v10.0   

2022-08-25 11:00:39,109 INFO  org.hibernate.validator.internal.util.Version — HV000001: Hibernate Validator 6.1.6.Final
2022-08-25 11:00:40,039 INFO  ru.centerinform.transport.backbone.Transport — Starting Transport using Java 1.8.0_181 on IT-PC-1 with PID 4036 (C:UTMtransporterlibterminal-backbone-4.2.0.jar started by IT-PC-1$ in C:UTMtransporterbin)
2022-08-25 11:00:40,040 INFO  ru.centerinform.transport.backbone.Transport — The following profiles are active: prod
2022-08-25 11:00:41,247 INFO  org.springframework.data.repository.config.RepositoryConfigurationDelegate — Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2022-08-25 11:00:41,345 INFO  org.springframework.data.repository.config.RepositoryConfigurationDelegate — Finished Spring Data repository scanning in 89 ms. Found 11 JPA repository interfaces.
2022-08-25 11:00:42,518 INFO  org.springframework.boot.web.embedded.tomcat.TomcatWebServer — Tomcat initialized with port(s): 8080 (http)
2022-08-25 11:00:42,530 INFO  org.apache.coyote.http11.Http11NioProtocol — Initializing ProtocolHandler [«http-nio-8080»]
2022-08-25 11:00:42,531 INFO  org.apache.catalina.core.StandardService — Starting service [Tomcat]
2022-08-25 11:00:42,531 INFO  org.apache.catalina.core.StandardEngine — Starting Servlet engine: [Apache Tomcat/9.0.41]
2022-08-25 11:00:42,647 INFO  org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] — Initializing Spring embedded WebApplicationContext
2022-08-25 11:00:42,647 INFO  org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext — Root WebApplicationContext: initialization completed in 2561 ms
2022-08-25 11:00:43,111 INFO  ru.centerinform.transport.pki.key.KeyMaster — Запуск процесса определения библиотеки
2022-08-25 11:00:43,114 INFO  ru.centerinform.transport.pki.key.initialize.TokenInitializer — Найдена dll: C:WindowsSysWOW64jcPKCS11-2.dll
2022-08-25 11:00:43,232 INFO  ru.centerinform.transport.pki.key.initialize.TokenInitializer — Найдена dll: C:WindowsSysWOW64rtPKCS11ECP.dll
2022-08-25 11:00:43,636 INFO  ru.centerinform.transport.pki.key.initialize.TokenInitializer — Найден слот смарт-карты [0:Rutoken ECP     ]
2022-08-25 11:00:43,648 INFO  ru.centerinform.transport.pki.key.initialize.TokenInitializer — Обновление конфигурации rsaPath: C:WindowsSysWOW64rtPKCS11ECP-replica.dll, gostPath: C:WindowsSysWOW64rtPKCS11ECP.dll, rsaPassword: 12345678, gostPassword: 12345678
2022-08-25 11:00:44,064 INFO  ru.centerinform.transport.pki.key.KeyMaster — Найден слот смарт-карты [0:Rutoken ECP     ]
2022-08-25 11:00:46,395 INFO  ru.centerinform.transport.pki.key.KeyMaster — Используется сертификат SerialNumber: 2fe1fbe500000028c248
2022-08-25 11:00:46,395 INFO  ru.centerinform.transport.pki.key.KeyMaster — RSA сертификат: [
[
  Version: V3
  Subject: CN=030000662215, OU=OU, O=O, L=L, ST=S, C=C
  Signature Algorithm: SHA256withRSA, OID = 1.2.840.113549.1.1.11

  Key:  Sun RSA public key, 2048 bits
  modulus: 19354799699491290277835162860318393665863158926412189931280998309354526774756140300858851544007167934577290317670244596244288998827536482510929794800639262991105413446611848147151771005718913082025657559060472490962227051985629879507718507922794301312760138998873863197930963359184540126327243823866500141725182596991475850628908212795917237570314571479074902022684281236816886082402963864792375501979194964166541976685564096166411037700604243207804657797635489000016168996245278865131232251734289424414391707789945153144516056014852210786080600657000995116662649378855232865840221653191031135223384827590247217933247
  public exponent: 65537
  Validity: [From: Wed Aug 24 14:11:07 NOVT 2022,
               To: Thu Aug 24 14:21:07 NOVT 2023]
  Issuer: CN=pki.fsrar.ru
  SerialNumber: [    2fe1fbe5 00000028 c248]

Certificate Extensions: 4
[1]: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
AuthorityInfoAccess [
  [
   accessMethod: caIssuers
   accessLocation: URIName: http://pki.fsrar.ru/CertEnroll/pki.fsrar.ru.crt
]
]

[2]: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
0000: 83 31 47 F3 82 C7 41 4C   19 88 AE 3E 2A F1 16 77  .1G…AL…>*..w
0010: 36 E1 44 BC                                        6.D.
]
]

[3]: ObjectId: 2.5.29.31 Criticality=false
CRLDistributionPoints [
  [DistributionPoint:
     [URIName: http://pki.fsrar.ru/CertEnroll/pki.fsrar.ru.crl]
]]

[4]: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 50 ED AF 0A 1E 19 08 C4   F1 50 65 46 37 74 CE 3A  P……..PeF7t.:
0010: D3 6D FD 44                                        .m.D
]
]

]
  Algorithm: [SHA256withRSA]
  Signature:
0000: 01 6F 74 68 42 D8 D4 3A   4A A3 7A CD 8F 26 40 EB  .othB..:J.z..&@.
0010: 2D A0 BA 0E E1 CE 17 62   54 FF FD 66 ED 92 C0 83  -……bT..f….
0020: 83 20 65 72 59 92 89 AA   A5 65 6F 00 AE 03 B6 15  . erY….eo…..
0030: 4E 21 8A CD 2F 34 FC F7   FC B9 78 A7 7E 48 01 00  N!../4….x..H..
0040: 08 10 B1 23 A6 7F 9E 3A   D7 81 05 51 CE 48 37 CF  …#…:…Q.H7.
0050: 90 74 60 4B 64 7C 7B 12   48 05 65 FC EB A9 80 07  .t`Kd…H.e…..
0060: 1B DE CE B4 4E D5 C8 EE   68 D9 16 1F F0 F1 48 14  ….N…h…..H.
0070: DA 77 96 D8 1A 29 4E 17   C4 9E FD 35 D4 DC D5 C1  .w…)N….5….
0080: BE EC CD 64 BA A5 30 B7   55 44 E9 29 1E 97 A7 7D  …d..0.UD.)….
0090: 32 08 65 AD 71 8C 0F E7   BC 86 C9 59 C0 71 EE 0B  2.e.q……Y.q..
00A0: 11 5A 40 6C 31 26 8E E9   FA 34 17 17 31 EA C1 32  .Z@l1&…4..1..2
00B0: 73 5F 23 63 2B 74 80 E2   B2 47 83 A2 91 AB 19 7A  s_#c+t…G…..z
00C0: A4 5B C4 37 BA B2 9B D0   54 D5 49 B0 F4 EF AF 95  .[.7….T.I…..
00D0: 65 7C 9C F5 DD 03 4A 29   82 E2 BF 42 4C ED AB 78  e…..J)…BL..x
00E0: 9B 1B 7D D0 55 CC 71 6D   4D A7 46 09 D5 B9 FC D2  ….U.qmM.F…..
00F0: 96 AE 86 13 A3 82 09 81   20 60 99 D8 A3 49 CD 86  …….. `…I..

]
2022-08-25 11:00:46,428 INFO  ru.centerinform.transport.pki.key.KeyMaster — Проверка CRL
2022-08-25 11:01:10,077 WARN  org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext — Exception encountered during context initialization — cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘flywayInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unsatisfied dependency expressed through method ‘flywayInitializer’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flywaydb.core.Flyway]: Factory method ‘flyway’ threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseConfig’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-backbone-4.2.0.jar!/ru/centerinform/transport/backbone/config/DatabaseConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘keyMaster’: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
2022-08-25 11:01:10,081 INFO  org.apache.catalina.core.StandardService — Stopping service [Tomcat]
2022-08-25 11:01:10,093 INFO  org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener —

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2022-08-25 11:01:10,112 ERROR org.springframework.boot.SpringApplication — Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘flywayInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unsatisfied dependency expressed through method ‘flywayInitializer’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flywaydb.core.Flyway]: Factory method ‘flyway’ threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseConfig’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-backbone-4.2.0.jar!/ru/centerinform/transport/backbone/config/DatabaseConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘keyMaster’: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1179)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1159)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
    at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144)
    at ru.centerinform.transport.backbone.Transport.main(Transport.java:18)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flywaydb.core.Flyway]: Factory method ‘flyway’ threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseConfig’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-backbone-4.2.0.jar!/ru/centerinform/transport/backbone/config/DatabaseConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘keyMaster’: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1179)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1367)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1287)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
    … 21 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flywaydb.core.Flyway]: Factory method ‘flyway’ threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseConfig’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-backbone-4.2.0.jar!/ru/centerinform/transport/backbone/config/DatabaseConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘keyMaster’: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
    … 35 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseConfig’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-backbone-4.2.0.jar!/ru/centerinform/transport/backbone/config/DatabaseConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘keyMaster’: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1206)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:410)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1179)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1367)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfUnique(DefaultListableBeanFactory.java:2050)
    at org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration.flyway(FlywayAutoConfiguration.java:130)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
    … 36 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘keyMaster’: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:429)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1780)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1367)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1287)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
    … 63 common frames omitted
Caused by: java.lang.OutOfMemoryError: Java heap space
    at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:77)
    at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:62)
    at sun.security.util.DerOutputStream.<init>(DerOutputStream.java:66)
    at sun.security.util.DerValue.toByteArray(DerValue.java:865)
    at sun.security.x509.X509CRLEntryImpl.parse(X509CRLEntryImpl.java:456)
    at sun.security.x509.X509CRLEntryImpl.<init>(X509CRLEntryImpl.java:133)
    at sun.security.x509.X509CRLImpl.parse(X509CRLImpl.java:1160)
    at sun.security.x509.X509CRLImpl.<init>(X509CRLImpl.java:146)
    at sun.security.provider.X509Factory.engineGenerateCRL(X509Factory.java:390)
    at java.security.cert.CertificateFactory.generateCRL(CertificateFactory.java:497)
    at java.lang.invoke.LambdaForm$DMH/11714529.invokeSpecial_LL_L(LambdaForm$DMH)
    at java.lang.invoke.LambdaForm$BMH/15635859.reinvoke(LambdaForm$BMH)
    at java.lang.invoke.LambdaForm$MH/17296416.linkToTargetMethod(LambdaForm$MH)
    at ru.centerinform.transport.pki.a.a.a(CRLController.java:1135)
    at java.lang.invoke.LambdaForm$DMH/26241655.invokeStatic_L_V(LambdaForm$DMH)
    at java.lang.invoke.LambdaForm$BMH/23205555.reinvoke(LambdaForm$BMH)
    at java.lang.invoke.LambdaForm$MH/33119325.linkToTargetMethod(LambdaForm$MH)
    at ru.centerinform.transport.pki.key.KeyMaster.n(KeyMaster.java:166)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:429)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1780)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$226/8669867.getObject(Unknown Source)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

#138 Ответ от Фатеева Светлана 2022-08-25 10:29:50

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте, trivarson,
Воспользуйтесь пожалуйста инструкцией по решению ошибки java.lang.OutOfMemoryError: Java heap space.

#139 Ответ от crazylord 2022-08-25 11:10:33

  • crazylord
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте !
Стоял УТМ на кассе и достаточно долгое время работал нормально. Но вот недавно обратилась управляющая и говорит перестал работать ЕГАИС. Смотрю красный значек в УТМ. Полез в логи и увидел про Java heap space …
пошел сделал все по инструкции (https://fsrar.su/knowledge-base/utm-dlya-egais/484/)… Не помогло. Все равно не хватает памяти. Дай думаю ключ и УТМ поставлю на другой комп в сети , а в РКипере укажу тот комп как транспортный. Поставил на новый комп рутокен драйвера, потом УТМ. Втыкаю ключ и пытаюсь запустить УТМ. Не запускается, в логах пишет что-то про сертификаты. Тут вычитал и скачал утилиту которая что-то с названиями или что-то в этом роде делает с сертификатами. Теперь на сертификаты не ругается а ругается на «ГОСТ хранилище не содержит подходящего сертификата»

подскажите как победить либо первый где Heap Space либо второй где ГОСТ ?

лог со второго компа
2022-08-25 11:04:57 Apache Commons Daemon procrun stderr initialized.
Exception in thread «main» actory.UnsatisfiedDependencyException: Error creating bean with name ‘probeBean’: Unsatisfied dependency expressed through field ‘cryptographerWrapper’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘cryptographerWrapper’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-crypto-4.2.0.jar!/ru/centerinform/transport/crypto/CryptographerWrapper.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sunCryptographer’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: ГОСТ хранилище не содержит подходящего сертификата
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1415)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:608)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:923)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
    at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144)
    at ru.centerinform.transport.backbone.Transport.main(Transport.java:18)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘cryptographerWrapper’ defined in URL [jar:file:/C:/UTM/transporter/lib/terminal-crypto-4.2.0.jar!/ru/centerinform/transport/crypto/CryptographerWrapper.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sunCryptographer’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: ГОСТ хранилище не содержит подходящего сертификата
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1206)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:571)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1367)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1287)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
    … 19 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sunCryptographer’: Invocation of init method failed; nested exception is java.lang.IllegalStateException: java.lang.IllegalStateException: ГОСТ хранилище не содержит подходящего сертификата
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:429)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1780)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1367)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1287)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
    … 32 more
Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: ГОСТ хранилище не содержит подходящего сертификата
    at ru.centerinform.transport.crypto.SunCryptographer.f(SunCryptographer.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
    … 45 more
Caused by: java.lang.IllegalStateException: ГОСТ хранилище не содержит подходящего сертификата
    at ru.centerinform.transport.crypto.SunCryptographer.a(SunCryptographer.java:402)
    at ru.centerinform.transport.crypto.SunCryptographer.g(SunCryptographer.java:320)
    at ru.centerinform.transport.crypto.SunCryptographer.f(SunCryptographer.java:148)
    … 52 more

#140 Ответ от Фатеева Светлана 2022-08-25 12:04:06

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте, crazylord,
Воспользуйтесь пожалуйста инструкции из нашей Базы Знаний.

#141 Ответ от crazylord 2022-08-25 12:51:30 (2022-08-25 12:54:47 отредактировано crazylord)

  • crazylord
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Да. да… ка раз вот этой инструкцией и пользовался. Сначала про сертификаты ругалась. А после этой инструкции теперь на ГОСТ ругается.

UPD Еще раз запустил, ввел пин… Завершено.
Запускаю УТМ и опять про ГОСТ ошобка.

#142 Ответ от Фатеева Светлана 2022-08-25 14:01:44

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

crazylord,
Есть ли возможность удаленно подключиться к Вашему компьютеру через AnyDesk?
После запуска утилиты сообщите ответным письмом на hotline@rutoken.ru о готовности к подключению.

#143 Ответ от crazylord 2022-08-25 15:34:12

  • crazylord
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Фатеева Светлана пишет:

crazylord,
Есть ли возможность удаленно подключиться к Вашему компьютеру через AnyDesk?
После запуска утилиты сообщите ответным письмом на hotline@rutoken.ru о готовности к подключению.

Огромная благодарность за помощь!

#144 Ответ от lisovserg 2022-09-22 17:49:28 (2022-09-22 17:56:57 отредактировано lisovserg)

  • lisovserg
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте. Продлили в ИФНС ключ ЕГАИС, теперь не запускается служба УТМ.
Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: ГОСТ хранилище не содержит подходящего сертификата
Подскажите пожалуйста как решить?
https://forum.rutoken.ru/uploads/images/2022/09/d2d6f7589c4c2879f632b6a2af5d4aca.jpg

#145 Ответ от Фатеева Светлана 2022-09-23 11:34:05

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте, lisovserg,
Рекомендуем сократить количество электронных подписей на носителе Рутокен ЭЦП 2.0, так как для стабильной работы УТМ на Рутокене ЭЦП 2.0 должно быть не более 5 электронных подписей, в том числе ключевых пар без сертификатов. После удаления ключевых пар перезапустите УТМ и проверьте его работу еще раз.

#146 Ответ от margo03 2022-09-26 09:57:02 (2022-09-26 09:59:58 отредактировано margo03)

  • margo03
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Добрый день
Не запускается UTM.
Ошибка инициализации криптобиблиотеки
java.lang.IllegalStateException: ГОСТ хранилище не содержит подходящего сертификата
Можете подсказать, пожалуйста, как с этим бороться?

#147 Ответ от Фатеева Светлана 2022-09-26 10:36:14

  • Фатеева Светлана
  • Техническая поддержка
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Здравствуйте, margo03,
Пришлите пожалуйста скриншот «Панели управления Рутокен» на вкладке Сертификаты и файл лога УТМ (по умолчанию находится в директории «C:UTMtransporterltransport_info.log») на почту hotline@rutoken.ru.

#148 Ответ от margo03 2022-09-26 10:42:21

  • margo03
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Фатеева Светлана пишет:

Здравствуйте, margo03,
Пришлите пожалуйста скриншот «Панели управления Рутокен» на вкладке Сертификаты и файл лога УТМ (по умолчанию находится в директории «C:UTMtransporterltransport_info.log») на почту hotline@rutoken.ru.

Отправила

#149 Ответ от lisovserg 2022-09-27 17:59:19

  • lisovserg
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Фатеева Светлана пишет:

Здравствуйте, lisovserg,
Рекомендуем сократить количество электронных подписей на носителе Рутокен ЭЦП 2.0, так как для стабильной работы УТМ на Рутокене ЭЦП 2.0 должно быть не более 5 электронных подписей, в том числе ключевых пар без сертификатов. После удаления ключевых пар перезапустите УТМ и проверьте его работу еще раз.

Спасибо

#150 Ответ от BatZol 2022-09-29 07:42:42

  • BatZol
  • Посетитель
  • Неактивен

Re: Не запускается УТМ, ГОСТ хранилище не содержит подходящего сертификата

Добрый день. Рутокен ЭЦП 2.0 0. Получили ЭЦП в налоговой. По нему зашел на сайт ЕГАИС. Сформировал и записал ключ FSRAR RSA. Все норм. Но УТМ не запускается. Ошибка:

Caused by: java.lang.IllegalStateException: Список сертификатов пуст
    at ru.centerinform.transport.util.a.a(CertificateUtil.java:102)
    at ru.centerinform.transport.crypto.SunCryptographer.a(SunCryptographer.java:399)
    at ru.centerinform.transport.crypto.SunCryptographer.g(SunCryptographer.java:320)
    at ru.centerinform.transport.crypto.SunCryptographer.f(SunCryptographer.java:148)
    … 80 more

Прошу помощи.

AnyDesk 902399956

Страницы Назад 1 8 9 10 11 12 15 Далее

Чтобы отправить ответ, нужно авторизоваться или зарегистрироваться

I’m using SpringMVC for a web app as well as to inject my sessionFactory for Hibernate.

When I run my application, I get the following error…

Apr 29, 2012 3:18:05 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/bin/jdk1.7.0_03/jre/lib/amd64/server:/usr/bin/jdk1.7.0_03/jre/lib/amd64:/usr/bin/jdk1.7.0_03/jre/../lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Apr 29, 2012 3:18:05 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:spring-security-integration' did not find a matching property.
Apr 29, 2012 3:18:05 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Spring3Hibernate' did not find a matching property.
Apr 29, 2012 3:18:05 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:assessment' did not find a matching property.
Apr 29, 2012 3:18:05 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 29, 2012 3:18:05 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Apr 29, 2012 3:18:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1234 ms
Apr 29, 2012 3:18:05 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 29, 2012 3:18:05 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Apr 29, 2012 3:18:06 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Sun Apr 29 15:18:06 BST 2012]; root of context hierarchy
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/root-context.xml]
INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@64f995bd: defining beans []; root of factory hierarchy
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 282 ms
Apr 29, 2012 3:18:07 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'appServlet'
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization started
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'appServlet-servlet': startup date [Sun Apr 29 15:18:07 BST 2012]; parent: Root WebApplicationContext
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]
INFO : org.springframework.context.annotation.ClassPathBeanDefinitionScanner - JSR-330 'javax.inject.Named' annotation found and supported for component scanning
INFO : org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5b969921: defining beans [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,dataSource,sessionFactory,homeController,userManagementController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.view.ContentNegotiatingViewResolver#0,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@64f995bd
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.assessme.com.controller.HomeController.home(java.util.Locale,org.springframework.ui.Model)
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/userManagement/getUser],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.assessme.com.entity.User org.assessme.com.controller.UserManagementController.data(java.util.Locale,org.springframework.ui.Model)
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/userManagement/],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.Object org.assessme.com.controller.UserManagementController.home(java.util.Locale,org.springframework.ui.Model)
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5b969921: defining beans [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,dataSource,sessionFactory,homeController,userManagementController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.view.ContentNegotiatingViewResolver#0,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@64f995bd
ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManagementController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.assessme.com.service.UserService org.assessme.com.controller.UserManagementController.userService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.assessme.com.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
    at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
    at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
    at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
    at javax.servlet.GenericServlet.init(GenericServlet.java:160)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.assessme.com.service.UserService org.assessme.com.controller.UserManagementController.userService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.assessme.com.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:506)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
    ... 30 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.assessme.com.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:924)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:793)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)
    ... 32 more

I’m not sure why the autoInject isn’t working. I have put all my XML configuration into servlet-context…

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <!-- DispatcherServlet Context: defines this servlet's request-processing 
        infrastructure -->

    <!-- Enables the Spring MVC @Controller programming model -->
    <annotation-driven />

    <!-- Handles HTTP GET requests for /resources/** by efficiently serving 
        up static resources in the ${webappRoot}/resources directory -->
    <resources mapping="/resources/**" location="/resources/" />


    <!-- Resolves views selected for rendering by @Controllers to .jsp resources 
        in the /WEB-INF/views directory -->
    <beans:bean
        class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <beans:property name="prefix" value="/WEB-INF/views/" />
        <beans:property name="suffix" value=".jsp" />
    </beans:bean>

    <beans:bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
        destroy-method="close">
        <beans:property name="driverClassName" value="com.mysql.jdbc.Driver" />
        <beans:property name="url" value="jdbc:mysql://localhost/assessme" />
        <beans:property name="username" value="assessme" />
        <beans:property name="password" value="assessme" />
    </beans:bean>

     <beans:bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    <beans:property name="annotatedClasses">
        <beans:list>
            <beans:value>org.assessme.com.entity.User</beans:value>
        </beans:list>
    </beans:property>
        <beans:property name="dataSource" ref="dataSource" />
        <beans:property name="packagesToScan" value="org.assessme.com.controller.entity" />
        <beans:property name="hibernateProperties">
            <beans:props>
                <beans:prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</beans:prop>
                <beans:prop key="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</beans:prop>
                <beans:prop key="hibernate.show_sql">true</beans:prop>
                <beans:prop key="hibernate.hbm2ddl.auto">update</beans:prop>
            </beans:props>
        </beans:property>
    </beans:bean>

    <context:component-scan base-package="org.assessme.com.controller." />

    <beans:bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
        <beans:property name="mediaTypes">
            <beans:map>
                <beans:entry key="html" value="text/html" />
                <beans:entry key="json" value="application/json" />
            </beans:map>
        </beans:property>
        <beans:property name="defaultViews">
            <beans:list>
                <beans:bean
                    class="org.springframework.web.servlet.view.json.MappingJacksonJsonView">
                    <beans:property name="prefixJson" value="true" />
                </beans:bean>
            </beans:list>
        </beans:property>
    </beans:bean>


</beans:beans>

The code for the userManagementController is…

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

import org.assessme.com.dao.UserDaoImpl;
import org.assessme.com.entity.User;
import org.assessme.com.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/userManagement")
public class UserManagementController {

    private static final Logger logger = LoggerFactory
            .getLogger(HomeController.class);

    @Autowired
    private UserService userService;

    /**
     * Simply selects the home view to render by returning its name.
     */
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public Object home(Locale locale, Model model) {

        logger.info("User management view controller loaded...");

        return "userManagement";
    }

    @RequestMapping(value = "/getUser", method = RequestMethod.GET)
    @ResponseBody
    public User data(Locale locale, Model model) {
        logger.info("getUser controller loaded...");
        User user = userService.getById(1L);
        System.out.println("firstName is " + user.getFirstName());
        return user;

    }

}

The userService is userService.java…

import org.assessme.com.entity.User;

public interface UserService {
    public User getById(Long id);
}

which is used by…

@Service("userService")
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;


    public UserServiceImpl() {
    }

    @Transactional(propagation = Propagation.REQUIRED, readOnly = true)
    public User getById(Long id) {
        return userDao.getById(id);
    }

}

Can anyone give me any pointers? Is there something I need to add to my XML? I’m working off the tutorial on…

http://www.roseindia.net/tutorial/spring/spring3/web/spring-3-mvc-and-hibernate3-example-part3.html

And I don’t see how they autowire

@Autowired
    private ArticleService articleService;

in ArticleController.java

Thanks,

David

The spring boot exception org.springframework.beans.factory.BeanCreationException: Error creating bean with name happens when a problem occurs when the BeanFactory creates a bean. If the BeanFactory encounters an error when creating a bean from either bean definition or auto-configuration, the BeanCreationException will be thrown. The exception Error creating bean with name defined in file happens most of the time in the @Autowired annotation.

If BeanCreationException is found in the spring boot application, the nested exception would reveal the root cause of the exception. There are multiple nested exceptions that trigger BeanCreationException: Error creating bean with name in the spring boot application.

The nested exception will help you to fix BeanCreationException. The following list describes the common root causes that are seen in the nested exception.

NoSuchBeanDefinitionException: No qualifying bean of type

This exception occurs when the bean is not available or defined while auto-wired in another class.

s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘zoo’: Unsatisfied dependency expressed through field ‘lion’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.yawintutor.Lion’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

If the root cause exception is displayed as No qualifying bean of type then follow the link below to resolve this exception.

NoSuchBeanDefinitionException: No qualifying bean of type

NoSuchBeanDefinitionException: No bean named available

This exception happens when you try to access a bean that is not available or is not defined in the spring boot context.

Exception in thread “main” org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘lion1’ available

If the root cause exception is displayed as No qualifying bean of type then follow the link below to resolve this exception.

NoSuchBeanDefinitionException: No bean named available

BeanCurrentlyInCreationException: Error creating bean with name: Requested bean is currently in creation

This exception happens when two beans are in circular dependences with each other.

s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘department’ defined in file [/SpringBootBean/target/classes/com/yawintutor/Department.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘lion’ defined in file [/SpringBootBean/target/classes/com/yawintutor/Lion.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘tiger’ defined in file [/SpringBootBean/target/classes/com/yawintutor/Tiger.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘lion’: Requested bean is currently in creation: Is there an unresolvable circular reference?

If the root cause exception is displayed as Requested bean is currently in creation then follow the link below to resolve this exception.

BeanCurrentlyInCreationException: Error creating bean with name: Requested bean is currently in creation

NoUniqueBeanDefinitionException: No qualifying bean of type available: expected single matching bean but found

This exception occurs when the bean is auto-wired that matches two or more loaded beans in the spring boot application context.

s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘zoo’: Unsatisfied dependency expressed through field ‘animal’; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type ‘com.yawintutor.Animal’ available: expected single matching bean but found 2: lion,tiger

If the root cause exception is displayed as expected single matching bean but found then follow the link below to resolve this exception.

NoUniqueBeanDefinitionException: No qualifying bean of type available: expected single matching bean but found

BeanInstantiationException: Failed to instantiate: No default constructor found

If the default constructor is not found while auto-wiring the bean, the exception below will be thrown.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘department’ defined in file [SpringBootBean/target/classes/com/yawintutor/Department.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.yawintutor.Department]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.yawintutor.Department.

If the root cause exception is displayed as No default constructor found then follow the link below to resolve this exception.

BeanInstantiationException: Failed to instantiate: No default constructor found

BeanInstantiationException: Failed to instantiate: Constructor threw exception

If the default constructor throws an exception while auto-wiring the bean, the exception below will be thrown.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘department’ defined in file [/SpringBootBean/target/classes/com/yawintutor/Department.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.yawintutor.Department]: Constructor threw exception; nested exception is java.lang.NullPointerException

If the root cause exception is displayed as Constructor threw exception then follow the link below to resolve this exception.

BeanInstantiationException: Failed to instantiate: Constructor threw exception

BeanInstantiationException: Failed to instantiate: Factory method threw exception

If the bean is not available, try to create and load using the abstract class name and bean factory. The beans are not going to instantiate. In this case, the exception below will be thrown.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘animal’ defined in class path resource [com/yawintutor/SpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.yawintutor.AbstractAnimal]: Factory method ‘animal’ threw exception; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘abstractAnimal’ available

If the root cause exception is displayed as Factory method threw exception then follow the link below to resolve this exception.

BeanInstantiationException: Failed to instantiate: Factory method threw exception

If you find some other type of BeanCreationException, please add it to the comments section, we will provide you with the solution.

Добрый день, столкнулся с проблемой — Error creating bean with name ‘entityManagerFactory’. Не могу понять, как ее разрешить.
Скажите, какую еще информацию необходимо предоставить.
Спасибо

Tomcat localhost log:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in web.config.HibernateConfig: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1794)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
		at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
		at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)
		at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
		at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
		at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1109)
		at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
		at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
		at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
		at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
		at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
		at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4676)
		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5139)
		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
		at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1727)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:498)
		at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:288)
		at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
		at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
		at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:456)
		at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:405)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:498)
		at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:288)
		at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
		at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
		at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
		at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
		at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
		at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
		at java.security.AccessController.doPrivileged(Native Method)
		at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)
		at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:498)
		at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
		at sun.rmi.transport.Transport$1.run(Transport.java:200)
		at sun.rmi.transport.Transport$1.run(Transport.java:197)
		at java.security.AccessController.doPrivileged(Native Method)
		at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
		at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
		at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
		at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
		at java.security.AccessController.doPrivileged(Native Method)
		at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
		at java.lang.Thread.run(Thread.java:748)
	Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
		at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275)
		at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
		at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
		at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:152)
		at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)
		at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)
		at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
		at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:176)
		at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:118)
		at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1224)
		at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1255)
		at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58)
		at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)
		at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391)
		at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:378)
		at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790)
		... 59 more

What is Bean Creation exception?-error creating bean with name

error creating bean with name,What is Bean Creation exception?,What is unsatisfied dependency exception?,Is org Springframework beans factory,NoSuchBeanDefinitionException?,How do I create a new bean?,error creating bean with name defined in file,error creating bean,with name spring boot,error creating bean with name'configurationpropertiesbeans',

error creating bean with name,What is Bean Creation exception?,What is unsatisfied dependency exception?,Is org Springframework beans factory,NoSuchBeanDefinitionException?,How do I create a new bean?,error creating bean with name defined in file,error creating bean,with name spring boot,error creating bean with name’configurationpropertiesbeans’,

If you’re mistreatment the Spring framework in your Java application and obtaining this error throughout startup it means Spring isn’t able to initialize the bean X and add it into its application context, Why? There might be multiple reasons sort of a typographical error on the spring bean name. Let’s take a more in-depth examine the stack trace to search out out the $64000 reason:

BeanInstantiationException: couldn’t instantiate bean category [X]: No default builder found; nested exception is java.lang.NoSuchMethodException: X.()

Here X is that the category, that is asserted as Spring bean. The error clearly says that the default builder isn’t gift at school X.

By default, Spring can attempt to instantiate beans by job the default or no-argument constructor and if it does not notice the default, no-argument builder then it’s ineffectual to initialize the bean and thus it throws the BeanInstantiationException during startup,additionally appended into stack trace as NoSuchMethodException.

If you bear in mind, Java by default adds a default builder in each category however several programmers do not know that it solely will that if you do not have any builder within the category if by any probability you’ve got outlined a builder that takes a parameter, then Java won’t add it.

This is conjointly one among the explanations I suggest always add a default builder within the Java category, notwithstanding whether or not you’ve got additional constructors or not. Java permits builder overloading and you must cash in of that.

I conjointly counsel you undergo a comprehensive Spring on-line coaching course to grasp however Spring works, however it instantiates objects, wherever will it keep the item reference, dependency injection, IOC instrumentation, and far additional.

If you wish a recommendation then I counsel you be part of one among the courses during this list of best Spring courses for Java developers. It’s one among the foremost up-to-date resources to be told in Spring and covers Spring five.0 and Reactive Programming yet. 

error creating bean with name,What is Bean Creation exception?,What is unsatisfied dependency exception?,Is org Springframework beans factory,NoSuchBeanDefinitionException?,How do I create a new bean?,error creating bean with name defined in file,error creating bean,with name spring boot,error creating bean with name'configurationpropertiesbeans',

error creating bean with name,What is Bean Creation exception?,What is unsatisfied dependency exception?,Is org Springframework beans factory,NoSuchBeanDefinitionException?,How do I create a new bean?,error creating bean with name defined in file,error creating bean,with name spring boot,error creating bean with name'configurationpropertiesbeans',

error creating bean with name,What is Bean Creation exception?,What is unsatisfied dependency exception?,Is org Springframework beans factory,NoSuchBeanDefinitionException?,How do I create a new bean?,error creating bean with name defined in file,error creating bean,with name spring boot,error creating bean with name'configurationpropertiesbeans',

Btw, if you’re mistreatment XML based mostly configuration then certify you’re mistreatment the proper builder on your config.

. It does not say something concerning the error, that is why you wish to appear at the nested exception to search out the particular cause.

For example, during this case, the nested error was BeanInstantiationException, that indicates the internal representation of a bean unsuccessful.

You should continuously concentrate to elaborated stack trace because it conjointly carries the violative bean category and reason like during this case, it absolutely was making an attempt to instantiate bean by invoking default builder and could not notice it.

By observing the error, you’ll conclude that whether or not you wish to feature a default builder or Spring is invoking a wrong constructor, which implies a missing config somehow.

Sometimes BeanInstantiationException is conjointly throwing in Spring isn’t able to notice the bean category within the classpath. that point you’ll see either NoClassDefFoundError or ClassNotFoundException as a nested exception within the stack trace.

1. Overview

In this tutorial, we’ll discuss the Spring org.springframework.beans.factory.BeanCreationException. It’s a very common exception thrown when the BeanFactory creates beans of the bean definitions, and encounteres a problem. This article will explore the most common causes of this exception, along with the solutions.

2. Cause: org.springframework.beans.factory.NoSuchBeanDefinitionException

By far, the most common cause of the BeanCreationException is Spring trying to inject a bean that doesn’t exist in the context.

For example, BeanA is trying to inject BeanB:

@Component
public class BeanA {

    @Autowired
    private BeanB dependency;
    ...
}

If a BeanB isn’t found in the context, then the following exception will be thrown (Error Creating Bean):

Error creating bean with name 'beanA': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private com.baeldung.web.BeanB cpm.baeldung.web.BeanA.dependency; 
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: 
No qualifying bean of type [com.baeldung.web.BeanB] found for dependency: 
expected at least 1 bean which qualifies as autowire candidate for this dependency. 
Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

To diagnose this type of issue, we’ll first make sure the bean is declared:

  • either in an XML configuration file using the <bean /> element
  • or in a Java @Configuration class via the @Bean annotation
  • or is annotated with @Component, @Repository, @Service, @Controller, and classpath scanning is active for that package

We’ll also check that Spring actually picks up the configuration files or classes, and loads them into the main context.

3. Cause: org.springframework.beans.factory.NoUniqueBeanDefinitionException

Another similar cause for the bean creation exception is Spring trying to inject a bean by type, namely by its interface, and finding two or more beans implementing that interface in the context.

For example, BeanB1 and BeanB2 both implement the same interface:

@Component
public class BeanB1 implements IBeanB { ... }
@Component
public class BeanB2 implements IBeanB { ... }

@Component
public class BeanA {

    @Autowired
    private IBeanB dependency;
    ...
}

This will lead to the following exception being thrown by the Spring bean factory:

Error creating bean with name 'beanA': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private com.baeldung.web.IBeanB com.baeldung.web.BeanA.b; 
nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: 
No qualifying bean of type [com.baeldung.web.IBeanB] is defined: 
expected single matching bean but found 2: beanB1,beanB2

4. Cause: org.springframework.beans.BeanInstantiationException

4.1. Custom Exception

Next in line is a bean that throws an exception during its creation process. A simplified example to easily understand the problem is throwing an exception in the constructor of the bean:

@Component
public class BeanA {

    public BeanA() {
        super();
        throw new NullPointerException();
    }
    ...
}

As expected, this will lead to Spring failing fast with the following exception:

Error creating bean with name 'beanA' defined in file [...BeanA.class]: 
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: 
Could not instantiate bean class [com.baeldung.web.BeanA]: 
Constructor threw exception; 
nested exception is java.lang.NullPointerException

4.2. java.lang.InstantiationException

Another possible occurence of the BeanInstantiationException is defining an abstract class as a bean in XML; this has to be in XML because there’s no way to do it in a Java @Configuration file, and classpath scanning will ignore the abstract class:

@Component
public abstract class BeanA implements IBeanA { ... }

Here’s the XML definition of the bean:

<bean id="beanA" class="com.baeldung.web.BeanA" />

This setup will result in a similar exception:

org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'beanA' defined in class path resource [beansInXml.xml]: 
Instantiation of bean failed; 
nested exception is org.springframework.beans.BeanInstantiationException: 
Could not instantiate bean class [com.baeldung.web.BeanA]: 
Is it an abstract class?; 
nested exception is java.lang.InstantiationException

4.3. java.lang.NoSuchMethodException

If a bean has no default constructor, and Spring tries to instantiate it by looking for that constructor, this will result in a runtime exception:

@Component
public class BeanA implements IBeanA {

    public BeanA(final String name) {
        super();
        System.out.println(name);
    }
}

When the classpath scanning mechanism picks up this bean, the failure will be:

Error creating bean with name 'beanA' defined in file [...BeanA.class]: Instantiation of bean failed; 
nested exception is org.springframework.beans.BeanInstantiationException: 
Could not instantiate bean class [com.baeldung.web.BeanA]: 
No default constructor found; 
nested exception is java.lang.NoSuchMethodException: com.baeldung.web.BeanA.<init>()

A similar exception, but harder to diagnose, may occur when the Spring dependencies on the classpath don’t have the same version. This kind of version incompatibility may result in a NoSuchMethodException because of API changes. The solution to such a problem is to make sure all Spring libraries have the exact same version in the project.

5. Cause: org.springframework.beans.NotWritablePropertyException

Yet another possiblity is defining a bean, BeanA, with a reference to another bean, BeanB, without having the corresponding setter method in BeanA:

@Component
public class BeanA {
    private IBeanB dependency;
    ...
}
@Component
public class BeanB implements IBeanB { ... }

Here’s  the Spring XML Configuration:

<bean id="beanA" class="com.baeldung.web.BeanA">
    <property name="beanB" ref="beanB" />
</bean>

Again, this can only occur in XML Configuration because when using Java @Configuration, the compiler will make this issue impossible to reproduce.

Of course, in order to solve this issue, we need to add the setter for IBeanB:

@Component
public class BeanA {
    private IBeanB dependency;

    public void setDependency(final IBeanB dependency) {
        this.dependency = dependency;
    }
}

6. Cause: org.springframework.beans.factory.CannotLoadBeanClassException

Spring throws this exception when it can’t load the class of the defined bean. This may occur if the Spring XML Configuration contains a bean that simply doesn’t have a corresponding class. For example, if class BeanZ doesn’t exist, the following definition will result in an exception:

<bean id="beanZ" class="com.baeldung.web.BeanZ" />

The root cause of the ClassNotFoundException and the full exception in this case is:

nested exception is org.springframework.beans.factory.BeanCreationException: 
...
nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: 
Cannot find class [com.baeldung.web.BeanZ] for bean with name 'beanZ' 
defined in class path resource [beansInXml.xml]; 
nested exception is java.lang.ClassNotFoundException: com.baeldung.web.BeanZ

7. Children of BeanCreationException

7.1. The org.springframework.beans.factory.BeanCurrentlyInCreationException

One of the subclasses of BeanCreationException is the BeanCurrentlyInCreationException. This usually occurs when using constructor injection, for example, in a case of circular dependencies:

@Component
public class BeanA implements IBeanA {
    private IBeanB beanB;

    @Autowired
    public BeanA(final IBeanB beanB) {
        super();
        this.beanB = beanB;
    }
}
@Component
public class BeanB implements IBeanB {
    final IBeanA beanA;

    @Autowired
    public BeanB(final IBeanA beanA) {
        super();
        this.beanA = beanA;
    }
}

Spring won’t be able to resolve this kind of wiring scenario and the end result will be:

org.springframework.beans.factory.BeanCurrentlyInCreationException: 
Error creating bean with name 'beanA': 
Requested bean is currently in creation: Is there an unresolvable circular reference?

The full exception is very verbose:

org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'beanA' defined in file [...BeanA.class]: 
Unsatisfied dependency expressed through constructor argument with index 0 
of type [com.baeldung.web.IBeanB]: : 
Error creating bean with name 'beanB' defined in file [...BeanB.class]: 
Unsatisfied dependency expressed through constructor argument with index 0 
of type [com.baeldung.web.IBeanA]: : 
Error creating bean with name 'beanA': Requested bean is currently in creation: 
Is there an unresolvable circular reference?; 
nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: 
Error creating bean with name 'beanA': 
Requested bean is currently in creation: 
Is there an unresolvable circular reference?; 
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'beanB' defined in file [...BeanB.class]: 
Unsatisfied dependency expressed through constructor argument with index 0 
of type [com.baeldung.web.IBeanA]: : 
Error creating bean with name 'beanA': 
Requested bean is currently in creation: 
Is there an unresolvable circular reference?; 
nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: 
Error creating bean with name 'beanA': 
Requested bean is currently in creation: Is there an unresolvable circular reference?

7.2. The org.springframework.beans.factory.BeanIsAbstractException

This instantiation exception may occur when the Bean Factory attempts to retrieve and instantiate a bean that was declared as abstract:

public abstract class BeanA implements IBeanA {
   ...
}

We declare it in the XML Configuration as:

<bean id="beanA" abstract="true" class="com.baeldung.web.BeanA" />

If we try to retrieve BeanA from the Spring Context by name, like when instantiating another bean:

@Configuration
public class Config {
    @Autowired
    BeanFactory beanFactory;

    @Bean
    public BeanB beanB() {
        beanFactory.getBean("beanA");
        return new BeanB();
    }
}

This will result in the following exception:

org.springframework.beans.factory.BeanIsAbstractException: 
Error creating bean with name 'beanA': Bean definition is abstract

And the full exception stacktrace:

org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'beanB' defined in class path resource 
[org/baeldung/spring/config/WebConfig.class]: Instantiation of bean failed; 
nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: 
Factory method 
[public com.baeldung.web.BeanB com.baeldung.spring.config.WebConfig.beanB()] threw exception; 
nested exception is org.springframework.beans.factory.BeanIsAbstractException: 
Error creating bean with name 'beanA': Bean definition is abstract

8. Conclusion

In this article, we learned how to navigate the variety of causes and problems that may lead to a BeanCreationException in Spring, as well as developed a good grasp on how to fix all of these problems.

The implementation of all the exception examples can be found in the github project. This is an Eclipse based project, so it should be easy to import and run as it is.

Get started with Spring 5 and Spring Boot 2, through the Learn Spring course:

>> THE COURSE

Disclosure: This article may contain affiliate links. When you purchase, we may earn a small commission.

The Spring framework is one of the most popular frameworks for developing Java applications. Apart from many goodies, it also provides a DI and IOC container that initializes objects and their dependencies and assembles them together. The Java classes created and maintained by Spring are called Spring bean. At the startup, when the Spring framework initializes the system by creating objects and their dependencies depending upon @Autowired annotation or spring configuration XML file, it throws «org.springframework.beans.factory.BeanCreationException: Error creating a bean with name X» error if it is not able to instantiate a particular Spring bean.

There could be numerous reasons why Spring could not able to create a bean with name X, but clue always lies on the detailed stack trace. This error always has some underlying cause e.g. a ClassNotFoundException or a NoClassDefFoundError, which potentially signal a missing JAR file in the classpath.

In short, you should always give a detailed look at the stack trace of your error message and find out the exact cause of «org.springframework.beans.factory.BeanCreationException: Error creating a bean with name» error. The solution would vary accordingly. Btw,  If you are curious about how dependency injection works in Spring and how Spring initializes and wires dependencies together, you should read the first few recipes of Spring Recipes book, where you will find a good explanation of IOC and DI containers.

In this article, I’ll share two of the most common reasons for «org.springframework.beans.factory.BeanCreationException: Error creating a bean with name» error in Spring-based Java application and their solutions. These are just based on my limited experience with using Spring framework in core Java application and Java web application if you have come across any other reasons for BeanCreationException in Spring, don’t forget to share with us in comments.

By the way, if you are new to the Spring framework then I also suggest you join a comprehensive and up-to-date course to learn Spring in depth. If you need recommendations, I highly suggest you take a look at these best Spring Framework courses, one of the comprehensive and hands-on resource to learn modern Spring. It’ also the most up-to-date and covers Spring 5. It’s also very affordable and you can buy in just $10 on Udemy sales which happen every now and then.

1) No default constructor on Spring Bean

One of the common mistakes Java programmers make is they forget to define a no-argument constructor in their Spring Bean. If you remember, a spring bean is nothing but a Java class instantiated and managed by Spring. If you also remember, Java compiler adds a default no-argument constructor if you don’t define any, but if you do then it will not insert. It becomes the developer’s responsibility.

Many Java programmer defines a constructor which accepts one or two-argument and forget about the default no-argument constructor, which result in org.springframework.beans.factory.BeanCreationException: Error creating bean with the name at runtime as shown below:

ERROR: org.springframework.web.servlet.DispatcherServlet — Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘InterestRateController’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.abc.project.model.service.InterestRateServiceImpl com.abc.project.controller.InterestRateController.InterestRateServ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘InterestRateServiceImpl’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.abc.project.model.service.InterestRateServiceImpl.setInterestRateDAO(com.abc.project.model.dao.InterestRateDAO); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘InterestRateDAO’ defined in file [C:Userszouhairworkspace.metadata.pluginsorg.eclipse.wst.server.coretmp1wtpwebappsTESTERWEB-INFclassescomabcprojectmodeldaoInterestRateDAO.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.abc.project.model.dao.InterestRateDAO]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.abc.project.model.dao.InterestRateDAO.()
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)

The most important line in this stack trace is

«No default constructor found; nested exception is java.lang.NoSuchMethodException: com.abc.project.model.dao.InterestRateDAO.()»

which is often overlooked by Java programmers.

2) Spring Bean dependent on third party library

If your Spring bean is using a third party library and that library is not available in the classpath at runtime, Spring will again throw
«org.springframework.beans.factory.BeanCreationException: Error creating a bean with name» error. When you look at the stack trace just look for the «Caused By» keyword, this often gives clues about the real error which is causing the problem. Sometimes this can be a ClassNotFoundException while other times a NoClassDefFoundError.

Here is a code snippet which defines beans in Spring configuration and how one single bean is used as a dependency for several other beans. The bean is created and maintained by the Spring IOC container.

That’s all about how to resolve org.springframework.beans.factory.BeanCreationException: Error creating a bean with the name in Java. As I said, most of the time the clue of the root cause lies in the nested exception. You should always pay attention to the «Caused By» keyword. As I said before, this list is by no means complete and these are just a couple of reasons from numerous others which cause this problem. If you come across any other reasons in your project then please share with us.

Other Java Spring articles you may like to explore

  • Spring HelloWorld example using Dependency Injection (tutorial)
  • Difference between Setter and Constructor Injection in Spring? (answer)
  • Difference between BeanFactory and ApplicationContext in Spring? (answer)
  • How to call stored procedures using the Spring framework in Java? (example)
  • What is the bean scope in the Spring framework? (answer)
  • How to implement LDAP authentication using Spring Security? (example)
  • How to implement RBAC (Role-based access control) using Spring? (tutorial)
  • How to limit the number of user sessions using Spring Security? (solution)
  • 5 Books to Learn Spring Framework (books)
  • How to use JDBC database connection pooling with Spring? (tutorial)

P.S. — If you want to learn how to develop RESTful Web Service using Spring MVC in-depth, I suggest you join these free Spring Framework courses. One of the best courses to learn REST with Spring MVC. 

In this post, we will see the possible reasons and fixes for the ‘Error creating bean with name entityManagerFactory defined in class path resource : Invocation of init method failed’ error.

Spring Data JPA Interview Questions and Answers

You may encounter this error if you are using JPA in your application. This error indicates that we have something wrong in the database configuration and the EntityManagerFactory is not getting created. There can be multiple reasons for this exception.

Note – Try to look into the bottom of error stack trace that will help you to figure out the exact root cause of this exception.

Let’s see how to fix the Error creating bean with name entityManagerFactory defined in class path resource : Invocation of init method failed error.

1. Check your database configuration. Make sure you have provided proper database details(check for the database name, username, password, and other configuration). For example, if we provide the wrong database name that doesn’t exist in MySQL DB we will get this error. Also if we pro

spring.datasource.url=jdbc:mysql://localhost:3306/springbootcrudexample
spring.datasource.username=root
spring.datasource.password=root
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
server.port = 9091

Note – For Postgres and Oracle database configuration check this post.

2. Make sure you are using @ID annotation with the primary key field in your entity class. For example below code will throw org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ error.

@Entity
public class Student implements Serializable {
    //@Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @Column(name = "name")
    private String name;

    @Column(name = "roll_number")
    private String rollNumber;

    @Column(name = "university")
    private String university;
}

3. If you have defined dialect in application.properties file, make sure you are using the correct dialect.

For example, below will not work and throw the error.

spring.jpa.properties.hibernate.dialect =  org.hibernate.dialect.MySQL9Dialect

The dialect name should org.hibernate.dialect.MySQL8Dialect

4. If you are trying to connect remote databases using some IPs, make sure it is up and running and accessible.

5. If you have an older application(not using Spring Boot and Spring Data JPA) try to add the below maven dependency in pom.xml.

<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>4.1.4.Final</version>
</dependency>

and

<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-entitymanager</artifactId>
    <version>5.2.3.Final</version>
</dependency>

6. If you are using Java 9, you may end up with org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ error.

Add the below dependency in your pom.xml.

<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.3.0</version>
</dependency>

7. You may encounter this exception if you have association mapping between entities. Make sure you are using proper mapping for your entities.

  • One To One unidirectional mapping – See an example here.
  • One To One Bidirectional mapping – See an example here.
  • One To Many unidirectional mapping – See an example here.
  • One To Many Bidirectional mapping – See an example here.
  • One To Many Bidirectional Using Join Table(Third table) – See an example here.
  • Many To one unidirectional mapping – See an example here.
  • Many To Many mapping – See an example here.

8. Go through the error stack trace and try to find out the root cause.

For example, if we have the wrong dialect value configured we can get it in the exception stack trace.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) ~[spring-beans-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~[spring-beans-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1109) ~[spring-context-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) ~[spring-context-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.1.RELEASE.jar:2.3.1.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) [spring-boot-2.3.1.RELEASE.jar:2.3.1.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) [spring-boot-2.3.1.RELEASE.jar:2.3.1.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.3.1.RELEASE.jar:2.3.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.3.1.RELEASE.jar:2.3.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) [spring-boot-2.3.1.RELEASE.jar:2.3.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.3.1.RELEASE.jar:2.3.1.RELEASE]
at com.netsurfingzone.main.SpringMain.main(SpringMain.java:14) [classes/:na]
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:152) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:176) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:118) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1224) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1255) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) ~[spring-orm-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391) ~[spring-orm-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:378) ~[spring-orm-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) ~[spring-orm-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855) ~[spring-beans-5.2.7.RELEASE.jar:5.2.7.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792) ~[spring-beans-5.2.7.RELEASE.jar:5.2.7.RELEASE]
… 17 common frames omitted
Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.dialect.MySQL9Dialect] as strategy [org.hibernate.dialect.Dialect]
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:156) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:239) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:183) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:170) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:164) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:74) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:51) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
… 34 common frames omitted
Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [org.hibernate.dialect.MySQL9Dialect]
at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:133) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:152) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
… 44 common frames omitted
Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.dialect.MySQL9Dialect
at org.hibernate.boot.registry.classloading.internal.AggregatedClassLoader.findClass(AggregatedClassLoader.java:210) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_251]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_251]
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_251]
at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_251]
at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:130) ~[hibernate-core-5.4.17.Final.jar:5.4.17.Final]
… 45 common frames omitted

9. If you are using JDK 11 and higher version try to add the below dependency.

<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.2.11</version>
</dependency>
<dependency>
    <groupId>com.sun.xml.bind</groupId>
    <artifactId>jaxb-core</artifactId>
    <version>2.2.11</version>
</dependency>
<dependency>
    <groupId>com.sun.xml.bind</groupId>
    <artifactId>jaxb-impl</artifactId>
    <version>2.2.11</version>
</dependency>
<dependency>
    <groupId>javax.activation</groupId>
    <artifactId>activation</artifactId>
    <version>1.1.1</version>
</dependency>

Below source code is responsible for this exception.

Error creating bean with name entityManagerFactory defined in class path resource : Invocation of init method failed

Hope this tutorial helps to fix org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in class path resource.

Other spring data JPA examples.

  • Spring Data JPA CrudRepository findById()
  • Spring Data findById() Vs getOne()
  • Spring Data JPA JpaRepository getOne()
  • Spring Data CrudRepository saveAll() and findAll().
  • Spring Data CrudRepository existsById()
  • Spring Data JPA delete() vs deleteInBatch()
  • Spring Data JPA deleteAll() Vs deleteAllInBatch()
  • Spring Data JPA JpaRepository deleteAllInBatch()
  • Spring Data JPA deleteInBatch() Example
  • Spring Data JPA JpaRepository saveAndFlush() Example
  • Spring Data JPA CrudRepository count() Example
  • Spring Data JPA CrudRepository delete() and deleteAll()
  • Spring Data JPA CrudRepository deleteById() Example
  • CrudRepository findAllById() Example Using Spring Boot
  • Spring Data CrudRepository save() Method.
  • Sorting in Spring Data JPA using Spring Boot.
  • Spring Data JPA example using spring boot.
  • Spring Data JPA and its benefit.

If you are using the Spring framework in your Java application and getting this error during startup it means Spring is not able to initialize the bean X and add it into its application context, Why? There could be multiple reasons like a typo on the spring bean name. Let’s take a closer look at the stack trace to find out the real reason:

BeanInstantiationException: Could not instantiate bean class [X]: No default constructor found; nested exception is java.lang.NoSuchMethodException: X.()

Here X is the class, which is declared as Spring bean. The error clearly says that the default constructor is not present in class X.

By default, Spring will try to instantiate beans by calling the default or no-argument constructor and if it doesn’t find the default, no-argument constructor then it is not able to initialize the bean and hence it throws the BeanInstantiationException during startup, the real reason is also appended into stack trace as NoSuchMethodException.

If you remember, Java by default adds a default constructor in every class but many programmers don’t know that it only does that if you don’t have any constructor in the class if by any chance you have defined a constructor which takes a parameter, then Java will not add it.

This is also one of the reasons I suggest always add a default constructor in the Java class, no matter whether you have more constructors or not. Java allows constructor overloading and you should take advantage of that.

I also suggest you go through a comprehensive Spring online training course to understand how Spring works, how it instantiates objects, where does it keep the object reference, dependency injection, IOC container, and much more.

If you need a recommendation then I suggest you join one of the courses in this list of best Spring courses for Java developers. It’s one of the most up-to-date resources to learn in Spring and covers Spring 5.0 and Reactive Programming as well. 

How to solve Error creating bean with name X [Java Spring]

Now, it depends on how you are instructing Spring to instantiate your bean? If you are using auto-wiring like @Autowired annotation, and you also have a suitable constructor define then just annotated that with @Autwired annotation, as shown below:

public class X{
private D d;

@Autowired
public X(Y dependency){
this.d = depenency;
}

}

Your problem will be solved.

Btw, if you are using XML based configuration then make sure you are using the right constructor on your config.

Also, as per Spring Java documentation, A BeanCrationException is thrown when a BeanFactory encounters an error while attempting to create a bean from bean definition. It doesn’t say anything about the error, that’s why you need to look at the nested exception to find the actual cause.

For example, in this case, the nested error was BeanInstantiationException, which indicates the instantiation of a bean failed.

You should always pay attention to detailed stack trace as It also carries the offending bean class and reason like in this case, it was trying to instantiate bean by invoking default constructor and couldn’t find it.

By looking at the error, you can conclude that whether you need to add a default constructor or Spring is invoking a wrong constructor, which means a missing config somehow.

Sometimes BeanInstantiationException is also throwing in Spring is not able to find the bean class in the classpath. That time you will see either NoClassDefFoundError or ClassNotFoundException as a nested exception in the stack trace.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Error creating bean with name router function mapping
  • Error creating bean with name resource handler mapping
  • Error creating bean with name kafkalistenercontainerfactory
  • Error creating bean with name defined in file
  • Error creating bean with name controller

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии