首页 \ 问答 \ 无法访问Solr服务器。(The Solr server could not be reached. Further data is therefore unavailable)

无法访问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

但是,当我试图点击该链接时,它会将我发送给我

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

http://drupal_learning:8983/solr/#overlay-context=

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
更新时间:2023-02-14 13:02

最满意答案

因为您不会将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"

相关问答

更多
  • 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 ...
  • 要确定注册用户(就像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 ...
  • 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 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)