Jump to content
  • 0

[help]Noobisherror fix!?


Question

Posted

Hello. i want to add [share]Noobisherror fix!? to my pack but i have 2 problems.

 

1. i can't find this lines

 

Index: com.l2jserver.mmocore.network.SelectorThread.java

 

       if (buf.position() == buf.limit())

       {

-                // should never happen

-                System.err.println("POS ANTES SC.READ(): "+buf.position()+" limit: "+buf.limit());

-                System.err.println("NOOBISH ERROR "+( buf == READ_BUFFER ? "READ_BUFFER" : "temp"));

-                System.exit(0);

+           con.onForcedDisconnection();

+           this.closeConnectionImpl(con);

       }

       try

       {

           result = con.getSocketChannel().read(buf);

       }

 

@@

       else if (result == 0)

       {

-                System.err.println("POS ANTES SC.READ(): "+buf.position()+" limit: "+buf.limit());

-                System.err.println("NOOBISH ERROR "+( buf == READ_BUFFER ? "READ_BUFFER" : "temp"));

-                System.exit(0);

+           con.onForcedDisconnection();

+            this.closeConnectionImpl(con);

       }

 

and second when compiling source

 

    [javac] D:\zborkebi\Equal\Equal-MMOCore\src\org\mmocore\network\SelectorThre
ad.java:304: cannot find symbol
   [javac] symbol  : method onForcedDisconnection()
   [javac] location: class org.mmocore.network.MMOConnection<T>
   [javac]            con.onForcedDisconnection();
   [javac]               ^
   [javac] D:\zborkebi\Equal\Equal-MMOCore\src\org\mmocore\network\SelectorThre
ad.java:305: closeConnectionImpl(java.nio.channels.SelectionKey,org.mmocore.netw
ork.MMOConnection<T>) in org.mmocore.network.SelectorThread<T> cannot be applied
to (org.mmocore.network.MMOConnection<T>)
   [javac]            this.closeConnectionImpl(con);
   [javac]                ^
   [javac] 2 errors

6 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..