Thread: a error not let people logg in.

Results 1 to 6 of 6
  1. #1 a error not let people logg in. 
    Registered Member

    Join Date
    Oct 2009
    Posts
    1,595
    Thanks given
    100
    Thanks received
    50
    Rep Power
    232
    java.lang.arrayindexoutofboundsexception: 699
    at client.dropitem(client.java:9392)
    at client.parseincomingpackets(client.java:16220)
    at client.packetprocess(client.java:17701)
    at playerhandler.process(playerhandler.java:268)
    at process.run(process.java:23)
    at java.lang.thread.run(thread.java:619)


    help me please this block players from logg in and it says error connection to server.


    and this is another erro java.lang.nullpointerexeption
    at client.run(client.java:18175
    at java.lang.thread.run(thread.java:619)

    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2010
    Posts
    40
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    at client.dropitem(client.java:9392)
    client.parseincomingpackets(client.java:16220)
    Post the line
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Oct 2009
    Posts
    1,595
    Thanks given
    100
    Thanks received
    50
    Rep Power
    232
    Quote Originally Posted by cornflakes_ View Post
    at client.dropitem(client.java:9392)
    client.parseincomingpackets(client.java:16220)
    Post the line

    // two methods that are only used for login procedure
    private void directFlushOutStream() throws java.io.IOException {
    out.write(outStream.buffer, 0, outStream.currentOffset);
    outStream.currentOffset = 0; // reset
    }

    public int distanceToPoint(int pointX, int pointY) {
    return (int) Math.sqrt(Math.pow(absX - pointX, 2)
    + Math.pow(absY - pointY, 2));
    }
    public void dropItem(int droppedItem, int slot) {
    // misc.printlnTag("droppeditem ["+playerItems[slot]+"] which is
    // ["+(droppedItem+1)+"]");
    boolean a = true;

    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Dec 2009
    Posts
    833
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    arrayindexoutofboundsexception: 699

    means whatever is in that method and has an interger meaning int i = 600; ect.

    if you exceed over 600 it'll give you an error
    check the method to see if anything is over 699 or if anything is 699
    then change it to the max interger

    like if int i = 600;

    but i was doing clipped(i = 1 < 600)
    i = 699

    then i would get that error and i would have to make it
    clipped(i = 1<600
    i = 600

    get it?
    Reply With Quote  
     

  5. #5  
    Member

    Join Date
    May 2008
    Posts
    1,288
    Thanks given
    50
    Thanks received
    92
    Rep Power
    0
    Quote Originally Posted by back View Post
    arrayindexoutofboundsexception: 699

    means whatever is in that method and has an interger meaning int i = 600; ect.

    if you exceed over 600 it'll give you an error
    check the method to see if anything is over 699 or if anything is 699
    then change it to the max interger

    like if int i = 600;

    but i was doing clipped(i = 1 < 600)
    i = 699

    then i would get that error and i would have to make it
    clipped(i = 1<600
    i = 600

    get it?
    It means what it says.. "Array index out of bounds"
    E.g.
    Code:
    int[] myArray = new int[10];
    And trying to do
    Code:
    myArray[699];
    Post the whole dropItem method.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Dec 2009
    Posts
    833
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    Quote Originally Posted by badreligion View Post
    It means what it says.. "Array index out of bounds"
    E.g.
    Code:
    int[] myArray = new int[10];
    And trying to do
    Code:
    myArray[699];
    Post the whole dropItem method.
    Yeah thats what im trying to say and the int equals to 10

    so if u exceed it using 699 u have to make it 10
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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