无法访问Solr服务器。(The Solr server could not be reached. Further data is therefore unavailable)
我安装了solr 5.4.0,在我的drupal站点上启用了模块search_api和search_api_solr。 当我试图添加搜索服务器时,它正在添加但是
连接:无法访问Solr服务器。 因此无法获得更多数据。
Solr服务器URI是(没有空格)
SOLR服务器URI:http:// drupal_learning:8983 / solr
但是,当我试图点击该链接时,它会将我发送给我
浏览器给我一个错误:
404 Not Found Get#overlay-context =
但是,如果我尝试通过在地址行中输入http:// drupal_learning:8983 / solr ,那就没关系了。 我是否需要以某种方式更改Solr Server URI或执行其他操作?
I installed solr 5.4.0, enabled modules search_api and search_api_solr on my drupal site. When I'm trying to add search server it's adding but
CONNECTION: The Solr server could not be reached. Further data is therefore unavailable.
The Solr Server URI is(without space)
SOLR SERVER URI: http: //drupal_learning:8983/solr
But when I'm trying to click that link it sends me to
And browser gives me an error:
404 Not Found Get #overlay-context=
But if I try to go to http://drupal_learning:8983/solr by typing it in addressline it's OK. Do I need to change somehow Solr Server URI or do smth else?
原文:https://stackoverflow.com/questions/34608334
最满意答案
因为您不会将Presence数据包发送到服务器。 在组装完Presence数据包之后,您需要发送它。 例如:
Presence p = new Presence(available, "I am busy", 42, Mode.dnd); connection.sendStanza(p);
另请参阅: Smack - 入门; “读写包”部分
Because you don't send the Presence packet to the server. After you have assembled your Presence packet you need to send it. For example:
Presence p = new Presence(available, "I am busy", 42, Mode.dnd); connection.sendStanza(p);
See also: Smack - Getting Started; section "Reading and Writing Packets"
相关问答
更多-
smack消息发送状态(smack message sent status)[2022-04-29]
private void acknowledgementFromServer(final Message message) throws StreamManagementException.StreamManagementNotEnabledException { if (connection != null && connection.isSmEnabled()) { connection.addStanzaIdAcknowledgedListener(messag ... -
因为您不会将Presence数据包发送到服务器。 在组装完Presence数据包之后,您需要发送它。 例如: Presence p = new Presence(available, "I am busy", 42, Mode.dnd); connection.sendStanza(p); 另请参阅: Smack - 入门; “读写包”部分 Because you don't send the Presence packet to the server. After you have assembled ...
-
Phoenix.Presence文档可在此处获取: https : //hexdocs.pm/phoenix/1.2.0-rc.1/Phoenix.Presence.html 您始终可以遵循http://hexdocs.pm/
/ / .html的hexdocs约定来查找所需内容。 希望这可以帮助! The Phoenix.Presence docs are available here: https://hexdocs.pm/phoenix/1.2.0-rc. ... -
为了在xmpp中工作状态,两个用户应该互相订阅。 发件人方面: Presence presence = new Presence(Presence.Type.subscribe); presence.setTo(receiverJid); connection.sendPacket(presence); 接收方: Presence subscribed = new Presence(Presence.Type.subscribed); subscribed.setTo(senderJid); connec ...
-
您可以使用getAccountAttribute通过AccountManager获取当前用户的名称,然后指定属性的名称。 在这种情况下,它是名称“。这是用于简单打印当前用户名称的代码 System.out.println("name = " + connection.getAccountManager().getAccountAttribute("name")); 关于你的第二个问题,你当然可以通过使用roster.getPresence了解其他用户在你的名册中的存在。 这是一个简单的循环来说明这种方法的 ...
-
我一直试图解决一个类似的问题,即名单上没有更新接受朋友的请求。 步骤如下: - 使用Presence类型作为订阅发送好友请求 另一方面,在接受朋友的请求的同时,发送订阅的存在类型 在接收到订阅的Presence分组时,发回另一个订阅的分组。 服务器的名单列表会立即通过订阅类型更新为两者,但名单条目不会。 此外,名册的订阅模式设置为手动 ,它还附加了PacketListener。 请问您能解决这个问题吗? 这将是非常有帮助的。 感谢和问候,Vaidehi I have been trying to resol ...
-
xmpp(smack和openfire)获取用户组的注册状态?(xmpp (smack and openfire) get registration state of group of users?)[2022-05-15]
要确定注册用户(就像Whatsapp一样),您只需在服务器上发布用户联系人,然后就可以检查用户表中存在哪些联系人(用新电话号码输入新用户的表)。 根据这些数据,您可以使用在您的服务上注册的电话号码回复您的应用程序,并且可以在移动应用程序中向用户显示这些电话号码。 To determine registered users (just like Whatsapp) you can simply post contact's of user on your server and there you can ch ... -
我使用自己的openfire服务器在android中使用asmack,并且存在工作正常。 我认为它的Facebook有点相关,因为即使在Facebook网站上,有时你会看到一个人在线并开始聊天,它最终会将状态更改为离线状态。 尝试删除或添加一个朋友,看看你的名册是否有效,显示更新的方法列表中的日志。 如果条目立即更新,则意味着这是与Facebook相关的问题。 I am using asmack in android using my own openfire server and the presence ...
-
您可以通过OnRosterItem事件获得联系人列表。 每次接触都会触发一次此事件。 默认情况下,将所有联系人视为脱机 对于所有在线联系人,您将获得OnPresence活动。 You get your contact list over the OnRosterItem event. This event fires once for every contact. Consider all contacts as offline by default. For all online contacts you ...
-
Smack没有出席(Smack not getting presence)[2022-03-09]
kk到目前为止,对于其他任何人我都明白了。 我在我的客户端将订阅模式设置为手动。 然后,当收到订阅请求时,我回复订阅的数据包,并向订阅者发送订阅数据包给我。 谢谢:Yul,他的评论给了我一个提示。 kk so far, for anyone else I figured it out. I made the subscription mode to manual in my client. Then when receiving a subscribe request I replied with subs ...