来自netty git repository的netty安全聊天示例中的编译错误(Compilation error in netty secure chat example from netty git repository)
我将以下netty示例地址中的所有类复制到我的java项目中: https : //github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/securechat
我从这个文件中添加了所有的jar(没有包含源代码的jar): http : //dl.bintray.com/netty/downloads/netty-4.0.27.Final.tar.bz2
但是我的类中有编译错误,因为在上面地址的jar中找不到SslContextBuilder类。
您是否会告诉我是否跳过包含SslContextBuilder类的jar或者是使用SslContextBuilder类的正确上下文来处理安全聊天的代码示例。
最诚挚的问候,Aurelian
I copied into my java project all the classes from the following netty example address: https://github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/securechat
and I added all the jars (without the jars that contain source code) from this file: http://dl.bintray.com/netty/downloads/netty-4.0.27.Final.tar.bz2
However I have compilation errors in my classes because the SslContextBuilder class cannot be found inside the jars from the above address.
Would you tell me if i skipped a jar which contains the SslContextBuilder class or which is the right context to use the SslContextBuilder class in order to work the examples of code for the secure chat.
Best Regards, Aurelian
原文:https://stackoverflow.com/questions/29661753
最满意答案
要在Zope2平台上使用Grok(由Plone使用),您需要安装正确版本的
five.grok
软件包 。Grok是针对Zope Toolkit开发的,而ZTK中的发布者套件与Zope2发布者提供的API有略微不同。
five.grok
桥梁的区别。 但是你需要有正确的版本才能进行正确的匹配。对于Plone 4.1(Zope 2.13),请确保使用
five.grok
1.3.1或更高版本:
- 修复重定向方法以正常工作。 与Zope 3不同,它不支持可信。
如果您要升级到Plone 4.2,则包含的versions.cfg文件中将包含正确的版本引脚。
To use Grok on the Zope2 platform (used by Plone), you need to install the correct version of the
five.grok
package.Grok is developed against the Zope Toolkit, and the publisher package in the ZTK has a slightly different API than what the Zope2 publisher offers.
five.grok
bridges that difference. But you need to have the right version to make the correct match.For Plone 4.1 (Zope 2.13), make sure you use
five.grok
version 1.3.1 or newer:
- Fix the redirect method to properly work. Unlike in Zope 3, it doesn't support trusted.
If you were to upgrade to Plone 4.2, the right version pin is included in the included versions.cfg file.
相关问答
更多-
是否可以使用five.grok在Plone 4.1中注册portlet?(Is it possible to use five.grok to register portlets in Plone 4.1?)[2019-11-17]
five.grok不支持portlet。 如果需要,您需要在附加软件包中实现一个grokker。 有关自定义grokkers的一些示例,请参阅plone.directives.form。 five.grok does not have support for portlets. If you want it, you would need to implement a grokker in an add-on package. See plone.directives.form for some examp ... -
有这些用途的Products.PlonePAS.events.UserLoggedOutEvent 。 作为一个例子,它在Plone插件开发者指南的活动部分进行了解释 There is the Products.PlonePAS.events.UserLoggedOutEvent for such purposes. As an example, it is explained at the Events Section of the Plone Addon Developer Guide
-
CalendarWidget打破了Plone 4.2.4 + PloneFormGen(CalendarWidget broken on Plone 4.2.4 + PloneFormGen)[2022-12-21]
你并不是唯一的一个。 这在Products.Archetypes的master上修复,以提供默认值: https : //github.com/plone/Products.Archetypes/blob/master/CHANGES.txt 要求发布或从repo的克隆中运行。 You're not the only one. This is fixed on master of Products.Archetypes to provide a default value: https://github.c ... -
要在Zope2平台上使用Grok(由Plone使用),您需要安装正确版本的five.grok软件包 。 Grok是针对Zope Toolkit开发的,而ZTK中的发布者套件与Zope2发布者提供的API有略微不同。 five.grok桥梁的区别。 但是你需要有正确的版本才能进行正确的匹配。 对于Plone 4.1(Zope 2.13),请确保使用five.grok 1.3.1或更高版本: 修复重定向方法以正常工作。 与Zope 3不同,它不支持可信。 如果您要升级到Plone 4.2,则包含的version ...
-
词汇源,函数不可迭代,在Plone 4.1中具有灵巧性(Vocabulary source, function is not iterable, with dexterity in Plone 4.1)[2022-03-10]
当字段尚未绑定或缺少上下文时,会发生这种情况。 通常,验证将针对“绑定”字段( bound = field.bind(context) )进行,以便您的上下文感知词汇表可以转换为此上下文的静态词汇表。 当它没有发生时,它仍然是一个函数(不用上下文调用)。 我对datagrid小部件设置不太熟悉,无法确定出错的地方,但它似乎在运行中生成小部件,我怀疑它没有正确绑定这些字段。 看一下collective.z3cform.datagridfield.datagridfield模块的DataGridField.ge ... -
我猜你的onsubmit正在被覆盖,永远不会被运行。 不仅仅是TinyMCE使用onsubmit。 而且,你不应该禁止使用tinymce。 TinyMCE应该只影响加载编辑器的页面。 几件事。 首先,验证您的JS没有运行。 使用调试器语句或在其中抛出警报('hi')语句。 接下来,既然有可能还有其他东西使用提交事件,只需使用jQuery来完成你的工作而不是onsubmit属性(onsubmit不是一个很好的方式来做js事件)。 您的JavaScript代码将是这样的: function getQueryVa ...
-
我创建了一个关于我之前为plone.org写过的howto的要点: https://gist.github.com/tisto/4ef1f6c7b445faf6ad73 这被认为是最近的最佳做法。 不建议再使用grok。 I created a gist with a howto that I wrote for plone.org some time ago: https://gist.github.com/tisto/4ef1f6c7b445faf6ad73 This is considered bes ...
-
plone.restapi仍处于pre-alpha阶段,因此并非所有功能都已实现。 不幸的是,还没有用户/组端点。 如果你现在需要一个,我建议用plone.rest创建你自己的。 或者甚至更好地为plone.restapi创建拉取请求,因此我们可以将其包含在即将发布的版本中。 我在repo上创建了一个功能请求,我们可以跟踪进度: https://github.com/plone/plone.restapi/issues/120 更新:我实现了一个基本的@users端点: https://github.com ...
-
Plone plone.app.jquery 1.9.1打破了TinyMCE等?(Plone plone.app.jquery 1.9.1 breaks TinyMCE etc?)[2022-12-16]
查看您的错误,可能您还必须将plone.app.jquerytools更新为Plone 4.3使用的版本(请参阅http://dist.plone.org/release/4.3.2/versions.cfg )。 NBB:不过我觉得Plone 4.2并没有正式支持jQuery 1.9。 In answer to the question "How can i use plone.app.jquery 1.9.1 with the latest version of Plone?" (currently 4 ... -
我会避免在测试代码中使用事务提交。 测试框架专门用于在每次测试结束时回滚事务。 你的setUp覆盖与此相反。 要检查单元测试中的状态消息,您应该能够执行以下操作: from Products.statusmessages.interfaces import IStatusMessage IStatusMessage(request).show() 这是一个适应请求的适配器。 I would avoid using transaction commits in test code. The test fra ...