来自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
2023-05-26 13:05

满意答案

要在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?)

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 ...

Plone 4中是否有一些注销挂钩?(Is there some logout hook in Plone 4?)

有这些用途的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)

你并不是唯一的一个。 这在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://git...

使用Plone调用grok.View时,self.redirect会导致TypeError(self.redirect causes TypeError when calling grok.View with Plone)

要在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,则包含的ve...

词汇源,函数不可迭代,在Plone 4.1中具有灵巧性(Vocabulary source, function is not iterable, with dexterity in Plone 4.1)

当字段尚未绑定或缺少上下文时,会发生这种情况。 通常,验证将针对“绑定”字段( bound = field.bind(context) )进行,以便您的上下文感知词汇表可以转换为此上下文的静态词汇表。 当它没有发生时,它仍然是一个函数(不用上下文调用)。 我对datagrid小部件设置不太熟悉,无法确定出错的地方,但它似乎在运行中生成小部件,我怀疑它没有正确绑定这些字段。 看一下collective.z3cform.datagridfield.datagridfield模块的DataGridFie...

Plone中的Javascript表单处理问题(Javascript form processing issue in Plone)

我猜你的onsubmit正在被覆盖,永远不会被运行。 不仅仅是TinyMCE使用onsubmit。 而且,你不应该禁止使用tinymce。 TinyMCE应该只影响加载编辑器的页面。 几件事。 首先,验证您的JS没有运行。 使用调试器语句或在其中抛出警报('hi')语句。 接下来,既然有可能还有其他东西使用提交事件,只需使用jQuery来完成你的工作而不是onsubmit属性(onsubmit不是一个很好的方式来做js事件)。 您的JavaScript代码将是这样的: function getQu...

Plone / Grok - 在使用“zopeskel plone”构建的产品中,能否与plone.directives产生冲突?(Plone/Grok - In a product built using “zopeskel plone”, can grok conflict with plone.directives?)

我创建了一个关于我之前为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 considere...

Plone REST API:如何通过对plone进行REST调用来操纵plone上的用户?(Plone REST API: How do I manipulate user on plone by making REST calls on plone?)

plone.restapi仍处于pre-alpha阶段,因此并非所有功能都已实现。 不幸的是,还没有用户/组端点。 如果你现在需要一个,我建议用plone.rest创建你自己的。 或者甚至更好地为plone.restapi创建拉取请求,因此我们可以将其包含在即将发布的版本中。 我在repo上创建了一个功能请求,我们可以跟踪进度: https://github.com/plone/plone.restapi/issues/120 更新:我实现了一个基本的@users端点: https://githu...

Plone plone.app.jquery 1.9.1打破了TinyMCE等?(Plone plone.app.jquery 1.9.1 breaks TinyMCE etc?)

查看您的错误,可能您还必须将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?" (curren...

如何测试进行重定向的帮助程序Grok视图(How to test a helper Grok view that makes a redirect)

我会避免在测试代码中使用事务提交。 测试框架专门用于在每次测试结束时回滚事务。 你的setUp覆盖与此相反。 要检查单元测试中的状态消息,您应该能够执行以下操作: from Products.statusmessages.interfaces import IStatusMessage IStatusMessage(request).show() 这是一个适应请求的适配器。 I would avoid using transaction commits in test code. The tes...

相关文章

更多

[Netty 1] 初识Netty

1. 简介 最早接触netty是在阅读Zookeeper源码的时候,后来看到Storm的消息传输层也由 ...

Netty环境配置

netty是一个java事件驱动的网络通信框架,也就是一个jar包,只要在项目里引用即可。

Netty开发环境配置

最新版本的Netty 4.x和JDK 1.6及更高版本

Netty源码分析

Netty提供异步的、事件驱动的网络应用程序框架和工具,用以快速开发高性能、高可靠性的网络服务器和客户 ...

storm学习之Netty代替ZMQ

整理自 http://www.csdn.net/article/2014-08-04/2821018/ ...

Netty基于流的传输处理

​在TCP/IP的基于流的传输中,接收的数据被存储到套接字接收缓冲器中。不幸的是,基于流的传输的缓冲器 ...

Netty入门实例-时间服务器

Netty中服务器和客户端之间最大的和唯一的区别是使用了不同的Bootstrap和Channel实现

Netty入门实例-使用POJO代替ByteBuf

使用TIME协议的客户端和服务器示例,让它们使用POJO来代替原来的ByteBuf。

在Twitter,Netty 4 GC开销降为五分之一

原文:http://www.infoq.com/cn/news/2013/11/netty4-twit ...

那些年挠头的git

到今天为止,我终于可以不用挠头来探索这个git的使用原理了。。。。 虽然觉得自己的英语还不错,但是之前 ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本