# Getting Caused by: java.lang.IllegalStateException: HST Services unavailable

**URL:** <https://community.bloomreach.com/t/getting-caused-by-java-lang-illegalstateexception-hst-services-unavailable/1604>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [November 28, 2019, 9:11am UTC](https://community.bloomreach.com/t/getting-caused-by-java-lang-illegalstateexception-hst-services-unavailable/1604 "2019-11-28T09:11:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganeshraju1984](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ganeshraju1984/32/494_2.png) [@ganeshraju1984](https://community.bloomreach.com/u/ganeshraju1984)\
**Post date:** [November 28, 2019, 9:11am UTC](https://community.bloomreach.com/t/getting-caused-by-java-lang-illegalstateexception-hst-services-unavailable/1604/1 "2019-11-28T09:11:01Z")

</div>

Hi All,

we are using Hippo cms 11.2 version and trying to configure CRSIP api.  
After adding pom.xml entries, am getting below exception …

i am getting below exception, please let me know what i have to do to fix this.

Caused by: java.lang.IllegalStateException: HST Services unavailable.

[**INFO**] [talledLocalContainer] at org.onehippo.cms7.crisp.hst.module.CrispHstServices.getModuleComponent(CrispHstServices.java:51)

[**INFO**] [talledLocalContainer] at org.onehippo.cms7.crisp.hst.module.CrispHstServices.getDefaultResourceServiceBroker(CrispHstServices.java:64)

[**INFO**] [talledLocalContainer] at com.lbrands.cms.facade.MasterStyleIdFacade.findDocumentById(MasterStyleIdFacade.java:158)

[**INFO**] [talledLocalContainer] at com.lbrands.cms.facade.MasterStyleIdFacade.getFieldExternalDocuments(MasterStyleIdFacade.java:89)

thanks & regards  
Gaensh

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [November 28, 2019, 8:12pm UTC](https://community.bloomreach.com/t/getting-caused-by-java-lang-illegalstateexception-hst-services-unavailable/1604/2 "2019-11-28T20:12:02Z")

</div>

Hi Ganesh,

If you’re invoking CRISP services in /cms context, you should use `ResourceServiceBroker broker = HippoServiceRegistry.getService(ResourceServiceBroker.class);` instead of using `CrispHstServices`, which starts deprecating the former in v13 as v13 has hst modules in both /cms and /site. So until then, in /cms context, you should get it through `HippoServiceRegistry`.

Could you try that again? Or do you still get `null` from it?

By the way, in that version, the crisp-hst module, loaded in /site webapp, is supposed to register the service to `HippoServiceRegistry`. So if there’s any error while registering the service on startup, you should be able to see error or warning logs in hippo-site.log file.

Regards,

Woonsan

---

<div class="post-metadata">

**Author:** ![ganeshraju1984](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ganeshraju1984/32/494_2.png) [@ganeshraju1984](https://community.bloomreach.com/u/ganeshraju1984)\
**Post date:** [December 3, 2019, 9:10am UTC](https://community.bloomreach.com/t/getting-caused-by-java-lang-illegalstateexception-hst-services-unavailable/1604/3 "2019-12-03T09:10:57Z")

</div>

Thanks Woonsanko, i will try.
