powered by Jive Software

Search in Spark returning Error

I had a problem with search, and decided to upgrade to the latest 3.5.0 openfire which did not help.

When typing a name in the search of Spark ver 3.5.7 or 3.5.8 I get an error: “Unable to contact serch service.” (twice)

I get no errors on openfire admin console. The Search plugin is loaded (ver 1.4.2). I have tried stop start/reload and I still get the error. I am connecting to AD for user authentication.

The error in Spark log is:

SEVERE: Unable to load search services.

service-unavailable(503)

at org.jivesoftware.smackx.search.UserSearch.getSearchForm(UserSearch.java:78)

at org.jivesoftware.smackx.search.UserSearchManager.getSearchForm(UserSearchManage r.java:67)

at org.jivesoftware.sparkimpl.search.users.SearchForm.<init>(SearchForm.java :55)

at org.jivesoftware.sparkimpl.search.users.UserSearchForm.showService(UserSearchFo rm.java:177)

at org.jivesoftware.sparkimpl.search.users.UserSearchForm.<init>(UserSearchF orm.java:76)

at org.jivesoftware.sparkimpl.search.users.UserSearchService.processQuery(UserSear chService.java:67)

at org.jivesoftware.sparkimpl.search.users.UserSearchService.access$200(UserSearch Service.java:32)

at org.jivesoftware.sparkimpl.search.users.UserSearchService$1.finished(UserSearch Service.java:50)

at org.jivesoftware.spark.util.SwingWorker$2$1.run(SwingWorker.java:136)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Any help would be apreciated.

Thanks

What’s you server’s name in Server Settings? And what are you filling in in Server filed in Spark login screen?

The server name is fdlxrd01.properhost.com and originally my hostname in spark was fdlxrd01, but I have changed it to fdlxrd01.properhost.com after reading the forums and seeing someone else with a similar problem.

Search works in openfire admin console.

Here is my openfire.xml file

<jive>

<adminConsole>

<port>9090</port>

<securePort>9091</securePort>

</adminConsole>

<admin>

<!-- <authorizedJIDs></authorizedJIDs> -->

<authorizedUsernames>mradmin</authorizedUsernames>

</admin>

<locale>en</locale>

<connectionProvider>

<className>org.jivesoftware.database.EmbeddedConnectionProvider</classN ame>

</connectionProvider>

<ldap>

<host>nccads02.properhost.com</host>

<port>389</port>

<baseDN>DC=properhost,DC=com</baseDN>

<adminDN>CN=Service User,OU=Service Accounts,OU=Users,OU=Corp,DC=properhost,DC=com</adminDN> Note space in CN

<adminPassword>XXXXXXXX</adminPassword>

<connectionPoolEnabled>true</connectionPoolEnabled>

<sslEnabled>false</sslEnabled>

<ldapDebugEnabled>false</ldapDebugEnabled>

<autoFollowReferrals>false</autoFollowReferrals>

<usernameField>sAMAccountName</usernameField>

<searchFilter>(objectClass=organizationalPerson)</searchFilter>

<vcard-mapping><![CDATA[<vCard xmlns=“vcard-temp”>

<N>

<GIVEN></GIVEN>

</N>

<EMAIL>

<INTERNET/>

<USERID></USERID>

</EMAIL>

<FN></FN>

<ADR>

<HOME/>

<STREET></STREET>

<PCODE></PCODE>

<CTRY></CTRY>
</ADR>
<ADR>
<WORK/>
<STREET></STREET>
<LOCALITY></LOCALITY>
<REGION></REGION>
<PCODE></PCODE>
<CTRY></CTRY>

</ADR>

<TEL>

<HOME/>

<VOICE/>

<NUMBER></NUMBER>

</TEL>

<TEL>

<HOME/>

<CELL/>

<NUMBER></NUMBER>
</TEL>
<TEL>
<WORK/>
<VOICE/>
<NUMBER></NUMBER>
</TEL>
<TEL>
<WORK/>
<CELL/>
<NUMBER></NUMBER>

</TEL>

<TEL>

<WORK/>

<FAX/> <NUMBER></NUMBER>

</TEL>

<TEL>

<WORK/>

<PAGER/>

<NUMBER></NUMBER>

</TEL>

<TITLE></TITLE>

<ORG>

<ORGUNIT></ORGUNIT>

</ORG>

</vCard>]]></vcard-mapping>

<nameField>cn</nameField>

<emailField>mail</emailField>

<groupNameField>cn</groupNameField>

<groupMemberField>member</groupMemberField>

<groupDescriptionField>description</groupDescriptionField>

<posixMode>false</posixMode>

<groupSearchFilter>(objectClass=group)</groupSearchFilter>

</ldap> <provider>

<vcard>

<className>org.jivesoftware.openfire.ldap.LdapVCardProvider</className& gt;

</vcard>

<user>

<className>org.jivesoftware.openfire.ldap.LdapUserProvider</className&g t;

</user>

<auth>

<className>org.jivesoftware.openfire.ldap.LdapAuthProvider</className&g t;

</auth>

<group>

<className>org.jivesoftware.openfire.ldap.LdapGroupProvider</className& gt;

</group>

</provider>

<setup>true</setup>

<log>

<debug>

<enabled>false</enabled>

</debug>

</log>

</jive>

Did you ever resolve this issue? I am having the exact same problem, can’t get search to work. Have not yet found a resolution.