netty websocket服务ie报证书错误 40C

netty提供的websocket服务,采用SSL安全协议。证书库使用的是tomcat.keystore。证书无效。现在问题是,无效证书在chrome,opera,safari下可以正常访问wss协议下的websocket,在IE,edge,firefox下无法访问 握手不成功 。使用的是tomcat提供的websocket,没有问题。现在需要采用netty实现的websocket

3个回答

能解决的额外给报酬,急

现在需要使用netty提供的websocket服务 ,解决证书在 IE,edge,firefox下无法访问 握手不成功的问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
基于netty的websocket服务
我们下面则将一些实际场景都添加进去,比如用户身份的验证,游客只能浏览不能发言,多房间(频道)的聊天。 该博客非常适合 Java 新手,非常适合作为学习 Java 的切入点,不需要考虑tomcat、spring、mybatis等。 唯一的知识点就是 maven 的基础使用。 ├── WebSocketServer.java                启动服务器端口监听 ├── WebSo
IE报不支持for in错误……
在做省市区商业区联动,一直用非IE测试,都没问题rn刚用IE看了下,居然报不支持for in:不支持该方法,有人碰到过么?rnrn数据结构大概如下,精简过了rn我精简出来的倒是能运行了,可是结果大出我意料,只有每个市的最后一个区,这是咋回事??rn[code=HTML]rnrnrnrn rn 无标题文档rnrnrn rnrnrnrn[/code]
tomcat支持的websocket服务
首发:个人博客 在tomcat7之后的版本,写个websocket服务程序非常容易—— 如以下代码所示,当客户端建立了一个连接并发送了一些什么内容到服务器,服务器将每隔两秒返回一个字符串“world”。 之所以演示每两秒返回一次是为了说明这是长连接而不是短连接。 import java.io.IOException; import javax.websocket.OnMess
netty3实现的websocket服务
此项目是学习的目的,使用netty3实现了websocket服务器和简单的web server。通过研读netty的源代码并自己动手写DEMO,能快速领悟netty的原理以及开发基于netty的项目
【Netty】实现Netty4的web socket服务,比如聊天室的原型
业务需要实现一个web socket,没考虑Tomcat,Tomcat那个容量简直惨不忍睹,居然还有人推荐用。 基本是照着官方样例来的: server入口 http://netty.io/4.0/xref/io/netty/example/http/websocketx/server/WebSocketServer.html 服务加载的channel生成器 http://netty.io
Websocket服务端的问题
请问想服务端接收数据,然后保存或者备份之后再转发。可以实现吗?
python版本的websocket服务
python写的简单websocket服务例子: # coding=utf-8 import socket import threading import struct import sys import base64 import hashlib def InitWebSocketServer(): sock = socket.socket(socket.AF_INET, soc
系统在IE下报c00ce56e错误
baidu出的结果是js返回的编码有问题,用chrmoe调试一看,果然: Content-Type:text/html;charset=UTF8 这里返回UTF8是不对的,反过来找程序是什么地方设置的该response header,找到是项目的web.xml中配置了org.springframework.web.filter.CharacterEncodingFilter,编码设置成了U
springmvc+jquery easyui在IE下报的错误
严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.IllegalStateException: getOutputStream() has already been called for this responsern at org.apache.catalina.connector.Response.getWriter(Response.java:611)rn at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)rn at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)rn at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)rn at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)rn at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180)rn at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)rn at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)rn at org.apache.jsp.error_005fall_jsp._jspService(error_005fall_jsp.java:168)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)rn at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)rn at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:229)rn at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)rn at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rn2012-9-4 8:44:52 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet spring threw exceptionrnjava.lang.IllegalStateException: getOutputStream() has already been called for this responsern at org.apache.catalina.connector.Response.getWriter(Response.java:611)rn at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)rn at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)rn at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)rn at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)rn at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:180)rn at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)rn at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)rn at org.apache.jsp.error_005fall_jsp._jspService(error_005fall_jsp.java:168)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)rn at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)rn at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)rn at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:229)rn at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)rn at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1180)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rn2012-9-4 8:44:52 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet jsp threw exceptionrnrn在IE8下向后台请求数据会报以上错误,firefox或google浏览器下没有这个问题rndatagrid是以post方式请求数据的
javaScript报IE错误的原因
我用javascript对页面控件进行样式的设置,还包括disabled等的设置。rn跑起来没有什么问题,不过经常会报IE错误,IE就自动关了,我的开发环境是.net2003,web编程。开始我以为是语句rnif(document.Form1.chkNoritsugiken3.checked==true)的问题,改称rnif(document.Form1.chkNoritsugiken3.checked)后,windows xp系统没有问题了,但windows 2000的系统还是经常会出现,我怀疑是javascript的版本或是IE版本冲突rn,有什么解决办法吗?有什么“相对危险的语句”不用就可以解决的吗?我的mail是naoh0717@163.com,大家帮帮忙。
socket服务如何与netty的http服务兼容
[b]介绍:[/b]rn公司是做通信项目的,功能模块划分大致这样。rn终端设备<---------->服务平台<------------>监管平台rn需求rn监管平台通过http请求下发某个指令到服务平台再通过服务平台转发给终端设备。rn然而服务平台是用的java.net.Serversocket写的的,服务平台与监管平台之间是没有链接的(通过扫库的方式把制定指令下发)rn弊端:扫库这种方式数据量小还好,大了很慢。(我们用的非内存数据库)rn解决方式:在服务平台新增Http服务(服务平台发布方式是一个个jar包发布的),首先想到了当前比较火的netty,netty支持多种decode & encode很方便rnrn[b]遇到的问题:[/b]rnnetty写的http服务开启的时候,原先的所有的socket服务都没有开启(好几个socket服务)。rn然后尝试了关闭netty写的http服务一切启动正常,看了http服务启动日志,没什么严重的错误。rn想请问大家有没有遇到过类似的问题。rnrn下面是netty的日志:rn2017-07-27 11:21:45,910 [DEBUG] io.netty.util.internal.logging.InternalLoggerFactory - Using Log4J as the default logging frameworkrn2017-07-27 11:21:45,912 [DEBUG] io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 32rn2017-07-27 11:21:45,924 [DEBUG] io.netty.util.internal.PlatformDependent - -Dio.netty.noUnsafe: falsern2017-07-27 11:21:45,934 [DEBUG] io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: availablern2017-07-27 11:21:45,935 [DEBUG] io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: availablern2017-07-27 11:21:45,935 [DEBUG] io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: availablern2017-07-27 11:21:45,936 [DEBUG] io.netty.util.internal.PlatformDependent0 - direct buffer constructor: availablern2017-07-27 11:21:45,936 [DEBUG] io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, truern2017-07-27 11:21:45,936 [DEBUG] io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.(long, int): availablern2017-07-27 11:21:45,937 [DEBUG] io.netty.util.internal.Cleaner0 - java.nio.ByteBuffer.cleaner(): availablern2017-07-27 11:21:45,937 [DEBUG] io.netty.util.internal.PlatformDependent - Java version: 6rn2017-07-27 11:21:45,938 [DEBUG] io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: availablern2017-07-27 11:21:45,938 [DEBUG] io.netty.util.internal.PlatformDependent - -Dio.netty.noJavassist: falsern2017-07-27 11:21:45,938 [DEBUG] io.netty.util.internal.PlatformDependent - Javassist: unavailablern2017-07-27 11:21:45,938 [DEBUG] io.netty.util.internal.PlatformDependent - You don't have Javassist in your class path or you don't have enough permission to load dynamically generated classes. Please check the configuration for better performance.rn2017-07-27 11:21:45,939 [DEBUG] io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)rn2017-07-27 11:21:45,939 [DEBUG] io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)rn2017-07-27 11:21:45,939 [DEBUG] io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: falsern2017-07-27 11:21:45,939 [DEBUG] io.netty.util.internal.PlatformDependent - io.netty.maxDirectMemory: 3746955264 bytesrn2017-07-27 11:21:45,973 [DEBUG] io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: falsern2017-07-27 11:21:45,973 [DEBUG] io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512rn2017-07-27 11:21:45,974 [DEBUG] io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: availablern2017-07-27 11:21:46,020 [DEBUG] io.netty.channel.DefaultChannelId - -Dio.netty.processId: 18660 (auto-detected)rn2017-07-27 11:21:46,022 [DEBUG] io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: falsern2017-07-27 11:21:46,022 [DEBUG] io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: falsern2017-07-27 11:21:46,025 [DEBUG] io.netty.util.NetUtil - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%1)rn2017-07-27 11:21:46,026 [DEBUG] io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 128rn2017-07-27 11:21:46,028 [DEBUG] io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 00:0c:29:ff:fe:30:aa:fa (auto-detected)rn2017-07-27 11:21:46,030 [DEBUG] io.netty.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier: 0x4ed9e18c8d2f21c9rn2017-07-27 11:21:46,039 [DEBUG] io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simplern2017-07-27 11:21:46,039 [DEBUG] io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.maxRecords: 4rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 32rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 32rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192rn2017-07-27 11:21:46,065 [DEBUG] io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: truern2017-07-27 11:21:46,078 [DEBUG] io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooledrn2017-07-27 11:21:46,078 [DEBUG] io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536rn2017-07-27 11:21:46,078 [DEBUG] io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384rnrn
基于tomcat8实现websocket服务
/** * tomcat8 websocket * Created by aiyaoxin on 2018/1/23 15:44 */ @ServerEndpoint(value = "/websocket", configurator = HttpSessionConfigurator.class) public class MyWebSocket { private stati
python 安装模块报ssl证书错误
[root@node01 ~]# python Python 2.7.3 (default, Jul 20 2017, 18:40:16) [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &amp;gt;&amp;gt...
python如何创建websocket服务
python如何创建websocket服务服务端客户端 服务端 &gt;&gt;&gt; class WSserver(): async def handle(self,websocket,path): recv_msg = await websocket.recv() print("i received %s" %recv_msg) await websocket.send('se...
Spring3如何集成WebSocket服务
Spring3没有提供原生的对于websocket的支持,但是如果你的项目的架构基础都是spring3(出于种种原因迟迟无法升级到spring4),但是又想集成websocket的服务,怎么办?有办法解决吗?当然可以啦 既然没有原生的支持,那么为什么我们不直接自己写一个实现呢?于是说干就干, 首先我们需要实现websocket的协议,这个协议的具体我就不说了,想了解的朋友可以自己在百度上谷歌一
swoole创建一个websocket服务
swoole是PHP的异步、并行、高性能网络通信引擎。在该课程从swoole的扩展开始到如何使用swoole来处理websocket,以及如何使用nginx来代理websocket的请求。在其中还讲解了wss安全ws协议的配置及使用方法。
socket服务端的错误,帮忙看看.
我用C#写的socket服务器端,客户端是别人用Delhpi写的,两者用winsock通讯。rnrn现在测试用大量客户端连接服务端,出现大量错误:rn[code=C#]rn13:49:54 MBoxSocketServer.OnRecieve异常:System.Net.Sockets.SocketException: 由于以前的关闭调用,套接字在那个方向已经关闭,发送或接收数据的请求没有被接受。rn 在 System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)rn 在 MBoxServer.MBoxSocketServer.OnRecieve(IAsyncResult IR)rn[/code]rnrn高手帮忙看看是因为什么原因,谢谢!rnrn代码如下:rn[code=C#]rn//异步接收数据rn private void OnRecieve(IAsyncResult IR)rn rn if (sNo >= 2000000000) //防止溢出rn sNo = 1;rn elsern sNo++;rnrn string sRemote = "";rn RCommDataBlock rcdb = new RCommDataBlock();rn RCommDataBlock rcdb1 = new RCommDataBlock();rn Socket RecSocket = (Socket)IR.AsyncState;rn sRemote = RecSocket.RemoteEndPoint.ToString();rn tryrn rn //Console.WriteLine("");rn //Console.WriteLine("MBoxSocketServer.OnRecieve:接收到请求 (" + sNo.ToString() + ") " + DateTime.Now.ToString("HH:mm:ss"));rn rn int isize = RecSocket.EndReceive(IR);rnrn rcdb = Buff2Block(InfoBuff);rn rn //*调试信息*rn CommUnits.PrintBlock(rcdb);rnrn ClientData UserSession;rn if (htSession.Contains(sRemote))rn UserSession = (ClientData)htSession[sRemote];rn elsern throw new Exception("没有找到该客户端的ClientData!");rnrnrn //****调用业务处理***********************rn MainUnit mu = new MainUnit();rn rcdb1 = mu.DoWork(rcdb, UserSession);rn //***************************************rnrnrn byte[] returnbuff = new byte[buffsize];rn returnbuff = Block2Buff(rcdb1);rn //Console.WriteLine("MBoxSocketServer.OnRecieve:return!");rn RecSocket.Send(returnbuff);rnrn if ((isize == 0))rn rn RecSocket.Shutdown(SocketShutdown.Both);rn RecSocket.Disconnect(false);rn rnrn InfoBuff = new byte[buffsize];rnrn RecSocket.BeginReceive(InfoBuff, 0, InfoBuff.Length, SocketFlags.None, OnRecieve, RecSocket);rn rn catch (SocketException er)rn rn if (er.ErrorCode == 10054 || er.ErrorCode == 10053)rn rn htSession.Remove(sRemote);rn //Console.WriteLine("");rn //Console.WriteLine("MBoxSocketServer.OnRecieve:连接已中断!");rn CommUnits.WriteLog("MBoxSocketServer.OnRecieve:连接已中断!");rn rn else rn //Console.WriteLine("MBoxSocketServer.OnRecieve异常:" + er.ToString());rn CommUnits.WriteLog("MBoxSocketServer.OnRecieve异常:" + er.ToString());rn rn rn[/code]
易语言WebSocket服务源吗
易语言WebSocket服务源码,上图左图为WEB页面,打开WEB页面前需要先运行易语言服务端,要修改连接地址直接编辑htm文件的IP地址即可,服务端的接收信息会在调试窗口输出。.rar
使用php创建WebSocket服务
执行方法: 首先先修改server.php与index.html的ip 通过命令行执行 [php路径]\php.exe "[文件路径]\server.php" 然后通过浏览器打开index.html server.php <?php include 'websocket.class.php'; $config=array( 'address'=>'192.168.0.20
IE 浏览器证书错误常见问题解答
有时,你将看到下表的错误消息,比如,此网站的安全证书已经被吊销等等,说明网站的安全证书有问题。 站点的证书允许 Internet Explorer 与站点建立安全连接。 SSL证书出现错误有时是证书本身存在问题或 Web 服务器对证书的使用有问题时出现。 Internet Explorer 通过向用户发出有关证书错误的警告,可帮助用户提高安全警觉,确保信息更安全。 证书错误意味着什么?
ie报的这个错误看不懂是什么
錯誤類型:rnADODB.Recordset (0x800A0CC1)rnItem cannot be found in the collection corresponding to the requested name or ordinal.rn/hr/hr/insertRecord.asp, line 73rn
IE不能打开,报内存错误!!求救
我的IE浏览器不能打开,双击后报内存错误!!点确定后要让重新启动,好郁闷啊!求救,我都没有办法做东西了
https IE 下导出excel报400的错误
最近项目中需要导出excel,在本地环境中测试通过后,部署到服务器上,在谷歌、火狐浏览器上是正常的,在IE下就报如下图错误:出现此问题的原因是当时因为偷懒,在前台就把导出的文件名传输到后台,然后https网站可能在传输时IE浏览器不支持这种情况下把前台传输的中文名称更换为英文名称,或者传输标识到后台判断返回中文名称。...
ie报SCRIPT16389: 未指明的错误。
前辈们,本人在写网页动画时用了velocity.js这个插件,在火狐和谷歌运行没问题,但在IE运行时报“SCRIPT16389: 未指明的错误”,请问怎么解决?
ie报参数无效错误原因
rn rnrnrnrnjs中有一句rnrn具体这一行 document.getElementById("scon").style.top = -y * result + "px";rnrnrn谷歌,火狐都正确的
javaScript报IE错误(eventID:1000)
我在asp.net程程序里面写了javascript程序。结果不定期报IE错误,如下:rnThe description for Event ID ( 1000 ) in Source ( Microsoft Internet Explorer ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: iexplore.exe, 6.0.2800.1106, mshtml.dll, 6.0.2800.1561, 000a3bdb.rnData:rn0000: 41 70 70 6c 69 63 61 74 Applicatrn0008: 69 6f 6e 20 46 61 69 6c ion Failrn0010: 75 72 65 20 20 69 65 78 ure iexrn0018: 70 6c 6f 72 65 2e 65 78 plore.exrn0020: 65 20 36 2e 30 2e 32 38 e 6.0.28rn0028: 30 30 2e 31 31 30 36 20 00.1106 rn0030: 69 6e 20 6d 73 68 74 6d in mshtmrn0038: 6c 2e 64 6c 6c 20 36 2e l.dll 6.rn0040: 30 2e 32 38 30 30 2e 31 0.2800.1rn0048: 35 36 31 20 61 74 20 6f 561 at orn0050: 66 66 73 65 74 20 30 30 ffset 00rn0058: 30 61 33 62 64 62 0d 0a 0a3bdb..rn是我用了什么特殊的语法了吗?rn什么时候会报这个错误,大家帮帮忙吧
uploadify在ie和火狐报406错误
在使用uploadify上传时,用chrome是正常的,使用ie和火狐就报406错误。 项目使用springmvc,上传返回使用@ResponseBody 将@ResponseBody注解去掉。 使用response返回,解决问题 response.setContentType("application/json; charset=UTF-8"); response.getWri
form表单ie下文件上传submit报 “拒绝访问”错误
最近碰到个问题,上传文件的时候,在IE下总是传不了,但FireFox和Chrome下则可以上传。发现是$(form).submit();时出错了(“拒绝访问”)。 原来是因为IE下 file表单控件,不能用js控制打开文件选择器(就是只能点击file本身,不能通过js调用file.click方式),否则会报 “拒绝访问”。 所以,通过将file设置为透明(position:absolute;...
IE 报500内部务器错误....
win2000+IIS5 rnrn写的的ASP代码在本机上没有问题..在服务器上测试,其中有一个页面出500错误..rn///////////////////////////////////////////////////////////////rn请尝试以下操作:rnrn打开 192.168.0.50 主页,然后查找指向您感兴趣信息的链接。 rn单击刷新按钮,或以后再试。rnrn单击搜索,寻找 Internet 上的信息。 rn也可查看相关站点列表。 rnrnrnrnrnHTTP 500 - 内部服务器错误 rnInternet Explorer rnrn////////////////////////////////////////////////////////rn 另外的都没问题...rnrn在IE里边 internet选项---高级---显示友好http错误信息 前边的勾去掉,就可以正常了...rnrn哪位高手碰到过这个问题啊...我服务器是新装的..rnrn问题解决http://community.csdn.net/Expert/topic/3516/3516999.xml?temp=.6325495rn这个贴子也结贴........
IE网页报“拒绝访问”的错误??是什么错?
我做了一个下载XML的页面,可下载一次后,在点网页上任何地方,例如按钮,才报“拒绝访问”的错误。rnrn刷新一下此页,就好了。
java netty之报内存泄露bug。
解决方法: netty加这个方法,不会报内存泄露错误 ctx.writeAndFlush(response).addListener(ChannelFutureListener.CLOSE);  
基于SignalR的WebSocket服务的RTP视频
基于SignalR的WebSocket服务的RTP视频,chrome浏览器中无插件访问电脑摄像头。
我的web应用在tomcat7下报如下错误
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.rnSLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]rnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rnlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.rnAug 07, 2015 6:20:00 PM org.apache.catalina.core.StandardContext startInternalrn[color=#FF0000]SEVERE: Error listenerStart[/color]rnAug 07, 2015 6:20:00 PM org.apache.catalina.core.StandardContext startInternalrnSEVERE: Context [] startup failed due to previous errorsrnAug 07, 2015 6:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn[color=#FF0000]SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.[/color]rnAug 07, 2015 6:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrnSEVERE: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.rnAug 07, 2015 6:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn关键信息已标注红色,我应用的情况是web.xml只加载了springMVC。没有加载任何jdbc的东西。从日志来说是程序启动的时候注册了jdbc驱动,然后应用关闭时无法注销jdbc驱动。这里面有两个问题。rn1.我的web应用为什么会无缘无故关闭?rn2.关闭时为什么还要注销jdbc驱动?
hpunix下发布WEB程序报JSP错误
Parsing of JSP File '/index.jsp' failed:rn--------------------------------------------------------------------------------rn /index.jsp(2): Could not parse deployment descriptor: org.xml.sax.SAXException: [HTTP:101248][ServletContext(id=26485366,name=gwc,context-path=/gwc)]: Deployment descriptor "/WEB-INF/tlds/qamer-html.tld" is malformed. Check against the DTD: An invalid XML character (Unicode: 0xd8ec) was found in the element content of the document. (line 221, column 24).rnprobably occurred due to an error in /index.jsp line 2:rn<%@ include file="/Preamble.jspf"%> rn--------------------------------------------------------------------------------rnMon Sep 17 08:54:31 CST 2007 rnrnhpunix weblogic814 这是什么错误啊,大家帮帮忙.
求解,WEB接口在Tomcat下报的错误
把web接口 加入到Tomcat/webapps下面以后, 运行bin/startup.batrn 报错:rn com.microsoft.sqlserver.jdbc.SQLServerException:无法更改表'tr_selected_lesson'rn 因为数据库'XXX'中不存在此表rn rn 访问这个web接口的时候显示:rn rn HTTP Status 404 - /HrSyncService/rn type Status reportrn message /HrSyncService/rn description The requested resource (/HrSyncService/) is not available.rn Apache Tomcat/5.5.16rn rn rn 我查边这个接口也没发现有这个表的应用,我在数据库中建立这个表 依然不行。rn rn 急
ie证书常见问题汇总
笔记
关于IE中的证书
怎样把自己产生的证书(公钥长度1024位以上)到入导IE中?rn编程实现?rnhow to?rnthanks..rn
使用spring-websocket包搭建websocket服务
使用spring-websocket包搭建websocket服务 http://blog.csdn.net/zsg88/article/details/76862495 ,代码实例
Socket服务随web启动而启动
  1.配置web.xml 在xml中添加以下内容                 SocketPort         30000                 Socket服务随web启动而启动         com.xiaotao.socket.listener.ServerSocketListener     2.编写监听 Li
在C#源码中使用WebSocket服务发送消息
项目中遇到一个需求,需要通过后台发送日志信息到Websocket服务器,然后退过该服务器将消息转发到所有连接到该 页面的网页。现在遇到 的问题是在win7的环境下是不能使用微软自带websocke的类。 1.首先尝试使用webClient ,没有成功。不能解析ws协义。 2.使用httpresponse也宣告失败。 3.使用SuperSocket,但发现都是针对服务器的。没有类似通过C#代码
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数