+ Reply to Thread
Results 1 to 3 of 3

Thread:

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I tried the Flex & Electrosever sample at

    http://www.blog.rivello.org/creating...-in-59-minutes

    but I'm having some basic problems... In the log window, I get....

    "Attempting Login As: user_90
    Login Accepted As: user_90
    Attempting CreateRoomRequest to: Newbies Room
    onJoinRoomEvent()
    showUserList()
    initInteractivity()"

    ..and nothing happens.

    If It try a 'Chat Input' message...

    Chat Log then says...

    "Disconnection Accepted"

    and the Java spew from ElectroServer is...

    21:25:16,930 [main] INFO DisplayLogger -
    -=-=-=-=-=-=-=-
    Starting ElectroServer 4.0.6
    Go to http://www.electro-server.com/ for the newest version.
    -=-=-=-=-=-=-=-
    Computer Information
    Operating System: Windows Vista
    Operating System Architecture: x86
    Processors Available: 8
    Memory Available: 63Mb
    -=-=-=-=-=-=-=-
    Virtual Machine Information
    Virtual Machine Vendor: Sun Microsystems Inc.
    Virtual Machine Version: 1.6.0_03


    21:25:21,033 [pool-1-thread-1] INFO DisplayLogger -
    -=-=-=-=-=-=-=-
    ElectroServer has started successfully
    21:25:33,942 [AnonymousIoService-8] WARN com.electrotank.electroserver4.servers
    .gateway.ClientIoHandler - ClientIoHandler.exceptionCaught
    java.lang.NumberFormatException: For input string: "17Se"
    at java.lang.NumberFormatException.forInputString(Unk nown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at com.electrotank.electroserver4.protocol.text.Messa geStringReader.next
    Integer(MessageStringReader.java:44)
    at com.electrotank.electroserver4.protocol.text.Messa geStringReader.next
    PrefixedString(MessageStringReader.java:36)
    at com.electrotank.electroserver4.protocol.codecs.sha red.ClientSendPubli
    cMessageCodec.decode(ClientSendPublicMessageCodec. java:55)
    at com.electrotank.electroserver4.protocol.codecs.ext ernal.PrefixingMess
    ageCodecDecorator.decode(PrefixingMessageCodecDeco rator.java:56)
    at com.electrotank.electroserver4.protocol.ProtocolFi lter.messageReceive
    d(ProtocolFilter.java:119)
    at org.apache.mina.common.support.AbstractIoFilterCha in.callNextMessageR
    eceived(AbstractIoFilterChain.java:299)
    at org.apache.mina.common.support.AbstractIoFilterCha in.access$1100(Abst
    ractIoFilterChain.java:53)
    at org.apache.mina.common.support.AbstractIoFilterCha in$EntryImpl$1.mess
    ageReceived(AbstractIoFilterChain.java:648)
    at org.apache.mina.common.IoFilterAdapter.messageRece ived(IoFilterAdapte
    r.java:80)
    at org.apache.mina.common.support.AbstractIoFilterCha in.callNextMessageR
    eceived(AbstractIoFilterChain.java:299)
    at org.apache.mina.common.support.AbstractIoFilterCha in.access$1100(Abst
    ractIoFilterChain.java:53)
    at org.apache.mina.common.support.AbstractIoFilterCha in$EntryImpl$1.mess
    ageReceived(AbstractIoFilterChain.java:648)
    at org.apache.mina.filter.codec.support.SimpleProtoco lDecoderOutput.flus
    h(SimpleProtocolDecoderOutput.java:58)
    at org.apache.mina.filter.codec.ProtocolCodecFilter.m essageReceived(Prot
    ocolCodecFilter.java:174)
    at org.apache.mina.common.support.AbstractIoFilterCha in.callNextMessageR
    eceived(AbstractIoFilterChain.java:299)
    at org.apache.mina.common.support.AbstractIoFilterCha in.access$1100(Abst
    ractIoFilterChain.java:53)
    at org.apache.mina.common.support.AbstractIoFilterCha in$EntryImpl$1.mess
    ageReceived(AbstractIoFilterChain.java:648)
    at org.apache.mina.filter.executor.ExecutorFilter.pro cessEvent(ExecutorF
    ilter.java:219)
    at org.apache.mina.filter.executor.ExecutorFilter$Pro cessEventsRunnable.
    run(ExecutorFilter.java:263)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(Unknown Source
    )
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
    at org.apache.mina.util.NamePreservingRunnable.run(Na mePreservingRunnabl
    e.java:51)
    at java.lang.Thread.run(Unknown Sou

  2. #2
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,219
    Thanks
    80
    Thanked 1,087 Times in 1,076 Posts
    My first guess is that the client is using a different version of the API than 4.0.6. Try downloading the zip file from http://es-wiki.com/images/0/05/Es4api.zip, then recompile your client using the correct API (AS2 or AS3).

    You may also want to try some of the simpler tutorials on the ES4 wiki first.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  3. #3
    Junior Member
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yup, that was it - i used teh current client components and it worked. Doh!

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts