Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Back to post

Revisions 2

Exception when creating a bean
Exception when creating a bean
Hi, I am tring to create a bean of SymphonyBdk class however during initialization I am getting below exception: > Caused by: com.symphony.bdk.http.api.ApiException: Not allowed to make this call when KeyManager is not registered in the pod I am not sure where I made a mistake as I am basing on another project that is working fine. here are some logs that I am worred about: ``` 2022-03-16 14:59:22.240 DEBUG 2968 --- [ main] c.s.b.c.a.impl.BotAuthenticatorRsaImpl : Start retrieving keyManagerToken using RSA authentication... 2022-03-16 14:59:22.986 DEBUG 2968 --- [ main] com.symphony.bdk.requests.outgoing : status=403, url=https://symphony-km-prelive.intranet.xxx.com:443/relay/pubkey/authenticate, time=439 2022-03-16 14:59:22.991 ERROR 2968 --- [ main] c.s.bdk.core.retry.RetryWithRecovery : An unknown error occurred while trying to connect to https://symphony-km-prelive.intranet.xxx.com:443/relay. Please check below for more information: Not allowed to make this call when KeyManager is not registered in the pod 2022-03-16 14:59:23.018 WARN 2968 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realTimeEventComponent' defined in file [xxx\symphony\sdk\bot\adapter\RealTimeEventComponent.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'prepareInterBotMessageEngine' defined in class path resource [com/xxx/symphony/sdk/bot/engine/configuration/InterBotMessageEngineConfiguration.class]: Unsatisfied dependency expressed through method 'prepareInterBotMessageEngine' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sendMessageServiceImpl' defined in file [xxx\symphony\sdk\bot\service\SendMessageServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'prepareUsersClientProxy' defined in class path resource [com/xxx/symphony/sdk/bot/client/configuration/SymphonyClientRSAConfigurationBdk.class]: Unsatisfied dependency expressed through method 'prepareUsersClientProxy' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService' defined in class path resource [com/symphony/bdk/spring/config/BdkServiceConfig.class]: Unsatisfied dependency expressed through method 'userService' parameter 3; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'botSession' defined in class path resource [com/symphony/bdk/spring/config/BdkCoreConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.symphony.bdk.core.auth.AuthSession]: Factory method 'botSession' threw exception; nested exception is com.symphony.bdk.http.api.ApiRuntimeException: com.symphony.bdk.http.api.ApiException: Not allowed to make this call when KeyManager is not registered in the pod ``` here is my application.yaml file: ```yaml bdk: host: xxx-test.symphony.com bot: username: bot.xxx_dev privateKey: path: "C:/xxx/xxx-privatekey.pem" keyManager: host: symphony-km-prelive.intranet.xxx.com port: 443 agent: host: bbb.zit.xxx.com port: 443 pod: proxy: host: aaa.intranet.xxx.com port: 8080 userName: user password: pass ssl: trustStorePath: "C:/xxx/symphony.truststore" trustStorePassword: changeit ``` I will appreciate any kind of help Thank you in advance Daniel
Hi, I am tring to create a bean of SymphonyBdk class however during initialization I am getting below exception: > Caused by: com.symphony.bdk.http.api.ApiException: Not allowed to make this call when KeyManager is not registered in the pod I am not sure where I made a mistake as I am basing on another project that is working fine. here are some logs that I am worred about: ``` 2022-03-16 14:59:22.240 DEBUG 2968 --- [ main] c.s.b.c.a.impl.BotAuthenticatorRsaImpl : Start retrieving keyManagerToken using RSA authentication... 2022-03-16 14:59:22.986 DEBUG 2968 --- [ main] com.symphony.bdk.requests.outgoing : status=403, url=https://symphony-km-prelive.intranet.xxx.com:443/relay/pubkey/authenticate, time=439 2022-03-16 14:59:22.991 ERROR 2968 --- [ main] c.s.bdk.core.retry.RetryWithRecovery : An unknown error occurred while trying to connect to https://symphony-km-prelive.intranet.xxx.com:443/relay. Please check below for more information: Not allowed to make this call when KeyManager is not registered in the pod 2022-03-16 14:59:23.018 WARN 2968 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realTimeEventComponent' defined in file [xxx\symphony\sdk\bot\adapter\RealTimeEventComponent.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'prepareInterBotMessageEngine' defined in class path resource [com/xxx/symphony/sdk/bot/engine/configuration/InterBotMessageEngineConfiguration.class]: Unsatisfied dependency expressed through method 'prepareInterBotMessageEngine' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sendMessageServiceImpl' defined in file [xxx\symphony\sdk\bot\service\SendMessageServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'prepareUsersClientProxy' defined in class path resource [com/xxx/symphony/sdk/bot/client/configuration/SymphonyClientRSAConfigurationBdk.class]: Unsatisfied dependency expressed through method 'prepareUsersClientProxy' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService' defined in class path resource [com/symphony/bdk/spring/config/BdkServiceConfig.class]: Unsatisfied dependency expressed through method 'userService' parameter 3; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'botSession' defined in class path resource [com/symphony/bdk/spring/config/BdkCoreConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.symphony.bdk.core.auth.AuthSession]: Factory method 'botSession' threw exception; nested exception is com.symphony.bdk.http.api.ApiRuntimeException: com.symphony.bdk.http.api.ApiException: Not allowed to make this call when KeyManager is not registered in the pod ``` here is my application.yaml file: ``` bdk: host: xxx-test.symphony.com bot: username: bot.xxx_dev privateKey: path: "C:/xxx/xxx-privatekey.pem" keyManager: host: symphony-km-prelive.intranet.xxx.com port: 443 agent: host: bbb.zit.xxx.com port: 443 pod: proxy: host: aaa.intranet.xxx.com port: 8080 userName: user password: pass ssl: trustStorePath: "C:/xxx/symphony.truststore" trustStorePassword: changeit ``` I will appreciate any kind of help Thank you in advance Daniel
#enterprise #java #bdk #spring-boot #configuration
#spring-boot-2-4-3 #bdk #java-8
2 years ago
Original
Exception when creating a bean

Hi, I am tring to create a bean of SymphonyBdk class however during initialization I am getting below exception: > Caused by: com.symphony.bdk.http.api.ApiException: Not allowed to make this call when KeyManager is not registered in the pod I am not sure where I made a mistake as I am basing on another project that is working fine. here are some logs that I am worred about: ``` 2022-03-16 14:59:22.240 DEBUG 2968 --- [ main] c.s.b.c.a.impl.BotAuthenticatorRsaImpl : Start retrieving keyManagerToken using RSA authentication... 2022-03-16 14:59:22.986 DEBUG 2968 --- [ main] com.symphony.bdk.requests.outgoing : status=403, url=https://symphony-km-prelive.intranet.xxx.com:443/relay/pubkey/authenticate, time=439 2022-03-16 14:59:22.991 ERROR 2968 --- [ main] c.s.bdk.core.retry.RetryWithRecovery : An unknown error occurred while trying to connect to https://symphony-km-prelive.intranet.xxx.com:443/relay. Please check below for more information: Not allowed to make this call when KeyManager is not registered in the pod 2022-03-16 14:59:23.018 WARN 2968 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realTimeEventComponent' defined in file [xxx\symphony\sdk\bot\adapter\RealTimeEventComponent.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'prepareInterBotMessageEngine' defined in class path resource [com/xxx/symphony/sdk/bot/engine/configuration/InterBotMessageEngineConfiguration.class]: Unsatisfied dependency expressed through method 'prepareInterBotMessageEngine' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sendMessageServiceImpl' defined in file [xxx\symphony\sdk\bot\service\SendMessageServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'prepareUsersClientProxy' defined in class path resource [com/xxx/symphony/sdk/bot/client/configuration/SymphonyClientRSAConfigurationBdk.class]: Unsatisfied dependency expressed through method 'prepareUsersClientProxy' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService' defined in class path resource [com/symphony/bdk/spring/config/BdkServiceConfig.class]: Unsatisfied dependency expressed through method 'userService' parameter 3; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'botSession' defined in class path resource [com/symphony/bdk/spring/config/BdkCoreConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.symphony.bdk.core.auth.AuthSession]: Factory method 'botSession' threw exception; nested exception is com.symphony.bdk.http.api.ApiRuntimeException: com.symphony.bdk.http.api.ApiException: Not allowed to make this call when KeyManager is not registered in the pod ``` here is my application.yaml file: ``` bdk: host: xxx-test.symphony.com bot: username: bot.xxx_dev privateKey: path: "C:/xxx/xxx-privatekey.pem" keyManager: host: symphony-km-prelive.intranet.xxx.com port: 443 agent: host: bbb.zit.xxx.com port: 443 pod: proxy: host: aaa.intranet.xxx.com port: 8080 userName: user password: pass ssl: trustStorePath: "C:/xxx/symphony.truststore" trustStorePassword: changeit ``` I will appreciate any kind of help Thank you in advance Daniel
#spring-boot-2-4-3 #bdk #java-8