youngyudentand / comet4j Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/comet4j
Automatically exported from code.google.com/p/comet4j
长连接工作模式下,服务器发送速度过快时,客户端对产生JS
ON转换异常
Original issue reported on code.google.com by [email protected]
on 10 Mar 2011 at 4:21
我在while循环中,每次休眠500毫秒
while (while_flag1) {
try{
Thread.sleep(CHANNEL2_SLEEP);
}
catch(Exception e){
}
//添加监听器
CometEngine engine = CometContext.getInstance().getEngine();
engine.sendToAll("mychannal","数据2");
}
因为频率较快,所有运行大概几个小时后就报错:内存泄露
org.apache.jk.common.ChannelSocket processConnection
严重: Error, processing connection
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:628)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:585)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:693)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)
2014-1-18 21:12:11 org.apache.coyote.http11.Http11NioProcessor process
严重: Error processing request
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at java.io.StringWriter.write(StringWriter.java:95)
at java.io.PrintWriter.write(PrintWriter.java:412)
at java.io.PrintWriter.write(PrintWriter.java:429)
at java.io.PrintWriter.print(PrintWriter.java:559)
at java.io.PrintWriter.println(PrintWriter.java:695)
at java.lang.Throwable.printStackTrace(Throwable.java:512)
at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:72)
at org.apache.juli.FileHandler.publish(FileHandler.java:158)
at java.util.logging.Logger.log(Logger.java:458)
at java.util.logging.Logger.doLog(Logger.java:480)
at java.util.logging.Logger.logp(Logger.java:680)
at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:167)
at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:135)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:329)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:720)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2262)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Original issue reported on code.google.com by [email protected]
on 23 Jan 2014 at 3:12
您好!
我按照demo 里面的HelloWorld 示例
新建了一个相同的demo,同时有两个连接的时候,后台就会报�
��样的错误:
2012-9-15 17:44:19 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor run
严重:
java.lang.NullPointerException
at org.apache.coyote.http11.InternalNioOutputBuffer.recycle(InternalNioOutputBuffer.java:351)
at org.apache.coyote.http11.Http11NioProcessor.recycle(Http11NioProcessor.java:1007)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.release(Http11NioProtocol.java:643)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.event(Http11NioProtocol.java:679)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2262)
at org.apache.tomcat.util.net.NioEndpoint.processSocket(NioEndpoint.java:1273)
at org.apache.tomcat.util.net.NioEndpoint$Poller.cancelledKey(NioEndpoint.java:1539)
at org.apache.tomcat.util.net.NioEndpoint$Poller.processKey(NioEndpoint.java:1658)
at org.apache.tomcat.util.net.NioEndpoint$Poller.timeout(NioEndpoint.java:1832)
at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1576)
at java.lang.Thread.run(Thread.java:619)
Original issue reported on code.google.com by [email protected]
on 15 Sep 2012 at 9:50
如果想运行在Weblogic、Jboss、Websphere这些服务器上该怎么办?�
��不是Come4j这种技术就不能用了?又得回到Ajax轮询这种方式?
Original issue reported on code.google.com by [email protected]
on 22 Apr 2014 at 2:03
i use tomcat 6.0.33 and comet4j . first time i install comet4j-tomcat6-demo.war
successfully. but when i restart tomcat service. tomcat start crash even login
tomcat homepage(http://localhost:8080). i have to remove comet4j-tomcat6-demo
manual then restart tomcat and reinstall again. what is the problem ?
Original issue reported on code.google.com by [email protected]
on 25 Oct 2011 at 6:32
What steps will reproduce the problem?
1. Install firefox 11
2. Push the following data to browser
{"sender":"free51","senderid":"25517","d":"Chrome","text":"aaa","attach":[],"mid
":"24648-25517-30","date":"1333866053652"}
3. Browser has an error as follwing:
JSON转换异常:{time:1333866054401,data:"{\"sender\":\"free51\",\"senderid\":\
"25517\",\"d\":\"Chrome\",\"text\":\"aaa\",\"attach\":[],\"mid\":\"24648-25517-3
0\",\"date\":\"13338
What is the expected output? What do you see instead?
The expected output is incorrect. Seems Firefox 11 has truncated some data.
Chrome works pretty well.
What version of the product are you using? On what operating system?
Latest version. Firefox 11 on windows XP
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 8 Apr 2012 at 6:29
Comet4j Just only support running Tomcat6 or Tomcat6 services?
If other servers, such as 'Weblogic、Websphere、Jboss', do not know whether
to support?
What should I do?
Original issue reported on code.google.com by [email protected]
on 22 Apr 2014 at 1:58
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 8 Apr 2011 at 7:57
How to know sending result? suceess or failure.
客户端在连接成功后,又关闭了浏览器,这时发送给该客户��
�的消息肯定不成功,怎么判断发送不成功,以便进行记录,�
��次再重复给客户端发送该消息。
Original issue reported on code.google.com by [email protected]
on 14 Nov 2014 at 7:59
因为目前大多的反向代理不支持与后端源服务器进行长连接��
�理,所以若将comet4j部署在后端源服务器上,连接工作模式将
失效。这种情况可使用长连接工作模式。
Original issue reported on code.google.com by [email protected]
on 14 Mar 2011 at 1:20
如果某个jsp页面是用struts的action进行跳转的,在该页面中使��
�comet4J无法生效,请问有没有解决办法(访问路径如:http://lo
calhost:8080/test/test.action)。
如果直接是进入某个页面,则该页面中使用comet4j则可以。
Original issue reported on code.google.com by [email protected]
on 28 Feb 2012 at 3:10
长连接模式下,如果始终都能在超时时间内接收到一条信息��
�就无法清除responseText。
Original issue reported on code.google.com by [email protected]
on 10 Mar 2011 at 6:08
Comet4J-0.1.0 Tomcat6-Demo 现在能够支持分布式消息推送吗
RoadMap 中V0.1.1有提到相关文档,什么时候更新啊
Original issue reported on code.google.com by [email protected]
on 24 Apr 2012 at 3:42
<html><head><title>Apache Tomcat/6.0.35 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-s
ize:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-s
ize:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-s
ize:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px
;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 405 - HTTP method GET is not supported by this
URL</h1><HR size="1" noshade="noshade"><p><b>type</b> Status
report</p><p><b>message</b> <u>HTTP method GET is not supported by this
URL</u></p><p><b>description</b> <u>The specified HTTP method is not allowed
for the requested resource (HTTP method GET is not supported by this
URL).</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/6.0.35</h3></body></html>
Original issue reported on code.google.com by [email protected]
on 11 Sep 2012 at 12:36
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.