weimingtom / darkstar-as3

Automatically exported from code.google.com/p/darkstar-as3
1 stars 0 forks source link

Client Sample Code Problem #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure the issue result from the libaray or my mistake,

I wanna help to deal with my problem~

1. I use the sample client code in my flex project, and publish it to 
Tomcat Server in Eclipse.
2. I start my Dark Server program whose function is to send back what 
client says.
3. I use my browser IE 7.0, firefox 3.0 to run the flex program, but I 
never go to 'online' penal after I click login. Server program doesn't  
even receive the login request.
But when I run the .swf file which complied in output folder with Adobe 
Flex Player 9.0, I can login successfully!

The product version is 0.9.8

I don't know where goes wrong. Can you help me with this? Thx :)

Original issue reported on code.google.com by jicheng...@gmail.com on 15 Feb 2009 at 7:07

GoogleCodeExporter commented 9 years ago
I think it happens the same to me.

I didn't try it with Adobe Flex Player 9.0 though. 

The FINE logging from the darkstar server is pasted below. It claims about a 
message
that is incomplete. 

05-jul-2009 23:08:37 sun.rmi.server.UnicastRef newCall
FINA: RMI RenewClean-[127.0.0.1:52340]: get connection
05-jul-2009 23:08:37 sun.rmi.transport.tcp.TCPChannel createConnection
FINA: RMI RenewClean-[127.0.0.1:52340]: create connection
05-jul-2009 23:08:37 sun.rmi.transport.proxy.RMIMasterSocketFactory createSocket
FINA: RMI RenewClean-[127.0.0.1:52340]: host: 127.0.0.1, port: 52340
05-jul-2009 23:08:37 sun.rmi.server.UnicastRef newCall
FINA: RMI RenewClean-[127.0.0.1:52340]: get connection
05-jul-2009 23:08:37 sun.rmi.transport.tcp.TCPChannel createConnection
FINA: RMI RenewClean-[127.0.0.1:52340]: create connection
05-jul-2009 23:08:37 sun.rmi.transport.proxy.RMIMasterSocketFactory createSocket
FINA: RMI RenewClean-[127.0.0.1:52340]: host: 127.0.0.1, port: 52340
05-jul-2009 23:08:37 sun.rmi.server.UnicastRef newCall
FINA: RMI RenewClean-[127.0.0.1:52340]: get connection
05-jul-2009 23:08:37 sun.rmi.transport.tcp.TCPChannel createConnection
FINA: RMI RenewClean-[127.0.0.1:52340]: create connection
05-jul-2009 23:08:37 sun.rmi.transport.proxy.RMIMasterSocketFactory createSocket
FINA: RMI RenewClean-[127.0.0.1:52340]: host: 127.0.0.1, port: 52340
05-jul-2009 23:08:37 com.sun.sgs.impl.kernel.TaskSchedulerImpl$TaskRunner run
FINA: Running a non-transactional task
05-jul-2009 23:08:38 sun.rmi.server.UnicastRef newCall
FINA: RMI RenewClean-[127.0.0.1:37248]: get connection
05-jul-2009 23:08:38 sun.rmi.transport.tcp.TCPChannel createConnection
FINA: RMI RenewClean-[127.0.0.1:37248]: create connection
05-jul-2009 23:08:38 sun.rmi.transport.proxy.RMIMasterSocketFactory createSocket
FINA: RMI RenewClean-[127.0.0.1:37248]: host: 127.0.0.1, port: 37248
05-jul-2009 23:08:38 sun.rmi.server.UnicastRef newCall
FINA: RMI RenewClean-[127.0.0.1:44122]: get connection
05-jul-2009 23:08:38 sun.rmi.transport.tcp.TCPChannel createConnection
FINA: RMI RenewClean-[127.0.0.1:44122]: create connection
05-jul-2009 23:08:38 sun.rmi.transport.proxy.RMIMasterSocketFactory createSocket
FINA: RMI RenewClean-[127.0.0.1:44122]: host: 127.0.0.1, port: 44122
05-jul-2009 23:08:38 com.sun.sgs.impl.kernel.TaskSchedulerImpl$TaskRunner run
FINA: Running a non-transactional task
05-jul-2009 23:08:38 com.sun.sgs.impl.kernel.TaskSchedulerImpl$TaskRunner run
FINA: Running a non-transactional task
05-jul-2009 23:08:38 com.sun.sgs.impl.kernel.TaskSchedulerImpl$TaskRunner run
FINA: Running a non-transactional task
05-jul-2009 23:08:39 com.sun.sgs.impl.kernel.TaskSchedulerImpl$TaskRunner run
FINA: Running a non-transactional task
05-jul-2009 23:08:39 com.sun.sgs.impl.kernel.TaskSchedulerImpl$TaskRunner run
FINA: Running a non-transactional task
05-jul-2009 23:08:40 com.sun.sgs.impl.kernel.TaskSchedulerImpl$TaskRunner run
FINA: Running a non-transactional task
05-jul-2009 23:08:40 com.sun.sgs.impl.kernel.TaskSchedulerImpl$TaskRunner run
FINA: Running a non-transactional task
05-jul-2009 23:08:41 com.sun.sgs.impl.kernel.TaskSchedulerImpl$TaskRunner run
FINA: Running a non-transactional task
05-jul-2009 23:08:41
com.sun.sgs.impl.service.session.ClientSessionHandler$ConnectedReadHandler 
completed
FINA: Read completion exception
com.sun.sgs.impl.service.session.AsynchronousMessageChannel@1670cc6
java.util.concurrent.ExecutionException: java.io.EOFException: The message was 
incomplete
    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
    at java.util.concurrent.FutureTask.get(FutureTask.java:83)
    at com.sun.sgs.impl.nio.IoFutureTask.getNow(IoFutureTask.java:91)
    at
com.sun.sgs.impl.service.session.ClientSessionHandler$ConnectedReadHandler.compl
eted(ClientSessionHandler.java:630)
    at
com.sun.sgs.impl.nio.DelegatingCompletionHandler.done(DelegatingCompletionHandle
r.java:239)
    at
com.sun.sgs.impl.service.session.AsynchronousMessageChannel$Reader.done(Asynchro
nousMessageChannel.java:180)
    at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
    at
com.sun.sgs.impl.nio.DelegatingCompletionHandler.completed(DelegatingCompletionH
andler.java:136)
    at com.sun.sgs.impl.nio.AsyncGroupImpl$CompletionRunner.run(AsyncGroupImpl.java:161)
    at com.sun.sgs.impl.nio.Reactor$ReactiveAsyncKey.runCompletion(Reactor.java:850)
    at com.sun.sgs.impl.nio.Reactor$PendingOperation$1.done(Reactor.java:627)
    at java.util.concurrent.FutureTask$Sync.innerSet(FutureTask.java:251)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at com.sun.sgs.impl.nio.Reactor$PendingOperation.selected(Reactor.java:560)
    at com.sun.sgs.impl.nio.Reactor$ReactiveAsyncKey.selected(Reactor.java:789)
    at com.sun.sgs.impl.nio.Reactor.performWork(Reactor.java:321)
    at com.sun.sgs.impl.nio.ReactiveChannelGroup$Worker.run(ReactiveChannelGroup.java:268)
    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)
Caused by: java.io.EOFException: The message was incomplete
    at
com.sun.sgs.impl.service.session.AsynchronousMessageChannel$Reader.implCompleted
(AsynchronousMessageChannel.java:210)
    at
com.sun.sgs.impl.nio.DelegatingCompletionHandler.completed(DelegatingCompletionH
andler.java:129)
    ... 13 more

hope this helps. 

Original comment by csie...@gmail.com on 5 Jul 2009 at 9:11