question
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: question

  1. #1
    Join Date
    Nov 2010
    Posts
    2

    question

    dear moderators,
    is it possible to write what is wrong with my thread? Since 2 days I try to publish my question, becouse I need urgent help with my project. Since then thread is not published.
    Will wait for your answer if it is possible

  2. #2
    Join Date
    Nov 2010
    Posts
    2

    Re: question

    Hello,
    I am sorry for this newbie question, but I am a newbie I hope here will recieve help about my problem. So, I am trying to rewrite common files for my game server.
    Codes can be found here
    https://code.google.com/p/aion-java/source/list

    LJ-Commons have a problem with compile. Originaly directory structire is

    /src/com/aionemu/
    /src/com/aionengine/

    So if structure is like that, compile is ok. I decide to make one folder with name /aionjava/
    and directory structure become like that:

    /src/com/aionjava/

    After that relocate path in java files and also packages too to look like that
    package com.aionjava.commons.callbacks;
    and etc.

    After all that, on compile I recieve error:

    Code:
      [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\Acceptor.java:102: create(java.nio.channels.SocketChannel,boolean) in com.aionjava.commons.network.ConnectionFactory cannot be applied to (java.nio.channels.SocketChannel,com.aionjava.commons.network.Dispatcher)
        [javac]         factory.create(socketChannel, dispatcher);
        [javac]                ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\PacketProcessor.java:66: type parameter T is not within its bound
        [javac]     private final List<BaseClientPacket<T>> packets = new LinkedList<BaseClientPacket<T>>();
        [javac]                                         ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\PacketProcessor.java:66: type parameter T is not within its bound
        [javac]     private final List<BaseClientPacket<T>> packets = new LinkedList<BaseClientPacket<T>>();
        [javac]                                                                                       ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\PacketProcessor.java:148: type parameter T is not within its bound
        [javac]     public final void executePacket(BaseClientPacket<T> packet) {
        [javac]                                                      ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\PacketProcessor.java:165: type parameter T is not within its bound
        [javac]     private BaseClientPacket<T> getFirstAviable() {
        [javac]                              ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\PacketProcessor.java:170: type parameter T is not within its bound
        [javac]             ListIterator<BaseClientPacket<T>> it = packets.listIterator();
        [javac]                                           ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\PacketProcessor.java:172: type parameter T is not within its bound
        [javac]                 BaseClientPacket<T> packet = it.next();
        [javac]                                  ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\PacketProcessor.java:194: type parameter T is not within its bound
        [javac]             BaseClientPacket<T> packet = null;
        [javac]                              ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\Server.java:70: cannot find symbol
        [javac] symbol  : constructor Acceptor(java.lang.String,java.nio.channels.ServerSocketChannel,com.aionjava.commons.network.ConnectionFactory,int,int,boolean,int,int,int,int,boolean)
        [javac] location: class com.aionjava.commons.network.Acceptor
        [javac]             acceptor = new Acceptor("server-" + config.name.replace(" ", "-").toLowerCase() + "-acceptor", ssc, config.factory, config.readThreads, config.writeThreads, config.enableWorkers, config.workerThreads, config.bufferCount, config.readTries, config.writeTries, config.debugEnabled);
        [javac]                        ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\Server.java:71: cannot find symbol
        [javac] symbol  : method setDaemon(boolean)
        [javac] location: class com.aionjava.commons.network.Acceptor
        [javac]             acceptor.setDaemon(false);
        [javac]                     ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\Server.java:72: cannot find symbol
        [javac] symbol  : method start()
        [javac] location: class com.aionjava.commons.network.Acceptor
        [javac]             acceptor.start();
        [javac]                     ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\Server.java:94: cannot find symbol
        [javac] symbol  : method join()
        [javac] location: class com.aionjava.commons.network.Acceptor
        [javac]             acceptor.join();
        [javac]                     ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\Server.java:110: cannot find symbol
        [javac] symbol  : method manage(com.aionjava.commons.network.Connection)
        [javac] location: class com.aionjava.commons.network.Acceptor
        [javac]         acceptor.manage(c);
        [javac]                 ^
        [javac] D:\Server projects\svn\trunk\AJ-Commons\src\com\aionjava\commons\network\Server.java:115: cannot find symbol
        [javac] symbol  : method close()
        [javac] location: class com.aionjava.commons.network.Acceptor
        [javac]             acceptor.close();
        [javac]                     ^
        [javac] 14 errors
    I do not know what to do. Please, need help with that problem.
    Thank you in advance!

  3. #3
    Join Date
    May 2006
    Location
    UK
    Posts
    4,474

    Re: question

    is it possible to write what is wrong with my thread? Since 2 days I try to publish my question, becouse I need urgent help with my project. Since then thread is not published.
    Do you mean apart from this one, this one and this one?

    So if structure is like that, compile is ok. I decide to make one folder with name /aionjava/
    and directory structure become like that:

    /src/com/aionjava/
    Why?

    Without the code it's impossible to say exactly what is wrong. Have you changed the import statements to match the new packages?
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center