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
Answered
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

Votes Newest

Answers


I assume this is for your enterprise test pod and not the developer sandbox (develop2.symphony.com).
This looks to be either a configuration issue or an environmental issue.

Can you please verify the individual entries match your on-premise setup:

  • Pod hostname
  • Key Manager hostname and port
  • API Agent hostname and port
  • Proxy server hostname, port and credentials
  • Truststore contains all signing certs served from the hosts above

If these are all accurate, please contact Symphony's support desk at support@symphony.com where your specific configuration can be discussed. From the error message, this is unlikely to be a BDK or code-related issue so probably worth troubleshooting your environment with the support desk.

  
  
Posted 2 years ago
Yong Sheng Tan
39 × 2 Administrator
10K Views
1 Answer
2 years ago
2 years ago
Tags