Thread: SEVERE: An error occurred

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 SEVERE: An error occurred 
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    Jimmy is a boss for helping!
    Reply With Quote  
     

  2. #2  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    bumpz please help
    Reply With Quote  
     

  3. #3  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    bump
    Reply With Quote  
     

  4. #4  


    Major's Avatar
    Join Date
    Jan 2011
    Posts
    2,997
    Thanks given
    1,293
    Thanks received
    3,556
    Rep Power
    5000
    Post your event class.
    Reply With Quote  
     

  5. #5  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    Quote Originally Posted by Major View Post
    Post your event class.
    Code:
    package server.event;
    
    /**
     * Represents a task that is executed in the future, once or periodically.
     * @author Graham Edgecombe
     *
     */
    public abstract class Event {
    	
    	/**
    	 * The delay, in milliseconds.
    	 */
    	private long delay;
    	
    	/**
    	 * The running flag.
    	 */
    	private boolean running = true;
    	
    	/**
    	 * Creates an event with the specified delay.
    	 * @param delay The delay.
    	 */
    	public Event(long delay) {
    		this.delay = delay;
    	}
    	
    	/**
    	 * Gets the event delay.
    	 * @return The delay, in milliseconds.
    	 */
    	public long getDelay() {
    		return delay;
    	}
    	
    	/**
    	 * Sets the event delay.
    	 * @param delay The delay to set.
    	 * @throws IllegalArgumentException if the delay is negative.
    	 */
    	public void setDelay(long delay) {
    		if(delay < 0) {
    			throw new IllegalArgumentException("Delay must be positive.");
    		}
    		this.delay = delay;
    	}
    	
    	/**
    	 * Checks if the event is running.
    	 * @return <code>true</code> if the event is still running, <code>false</code> if not.
    	 */
    	public boolean isRunning() {
    		return running;
    	}
    	
    	/**
    	 * Stops the event from running in the future.
    	 */
    	public void stop() {
    		running = false;
    	}
    	
    	/**
    	 * The execute method is called when the event is run. The general contract
    	 * of the execute method is that it may take any action whatsoever.
    	 */
    	public abstract void execute();
    
    }
    thats my event
    Reply With Quote  
     

  6. #6  
    محمد

    Jamili's Avatar
    Join Date
    Jun 2010
    Posts
    405
    Thanks given
    93
    Thanks received
    249
    Rep Power
    307
    Try deleting all your .Class files, and then re-compiling.

    Spoiler for Honorable mentions:

    Quote Originally Posted by JRFisher View Post
    Dude, learn yourself, it took me 17 months of continuous research to learn how to import a project.
    Quote Originally Posted by Pollution View Post
    When? And Idiot, I'm using a oldschool, it's not easy to get the command for an oldschool, retard c u.
    Quote Originally Posted by Waj_Assif View Post
    I sayin u dont contribute never aall u do is finna tryin attack ppl and always finna start fights .......
    Quote Originally Posted by Kris View Post
    You must be one of those slower breeds.
    Quote Originally Posted by Gandalf View Post
    Just piss off ploter hacker fella dumb fuck. Your a donor to a rsps community, I'm a Mainowner to a Private Server thats 7+ Years old. Lmfao kid, get a life. Don't let my name come out of your mouth again. Or it wont end nicely for you. Understand me big boy?
    Quote Originally Posted by Tojad View Post
    What do you know about Public Void and int without this [] is only 1 integer, why?
    Reply With Quote  
     

  7. #7  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    bumpz
    Reply With Quote  
     

  8. #8  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,895
    Thanks given
    1,564
    Thanks received
    2,624
    Rep Power
    5000
    Delay can't be -1, it must be 0 higher
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member
    Emily's Avatar
    Join Date
    Jul 2010
    Age
    30
    Posts
    622
    Thanks given
    67
    Thanks received
    215
    Rep Power
    271
    Your event class clearly says:
    Code:
    if(delay < 0) {
    			throw new IllegalArgumentException("Delay must be positive.");
    		}
    Which is equal to your 'error'.

    Find what delay you are setting as negative.
    Last edited by Emily; 12-26-2011 at 04:46 AM. Reason: Grammar error.
    Reply With Quote  
     

  11. Thankful user:


  12. #10  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    I know, and the error brought me to fightpits... and I said when I "entered game" in fightpits this occurred. I even said about the gameTimer thing in my post
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 1
    Last Post: 03-30-2009, 12:59 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •