Thread: error

Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1 error 
    Banned
    Join Date
    Sep 2010
    Posts
    883
    Thanks given
    20
    Thanks received
    6
    Rep Power
    0
    got 1 error i cant figure out really

    Code:
    src\server\util\MySQLResultCallable.java:29: cannot find symbol
    symbol  : variable World
    location: class server.util.MySQLResultCallable
                    PoolConnection connection = World.getWorld().getMySQLHandler().g
    etPool(pool).getFreeConnection();
    Code:
    PoolConnection connection = World.getWorld().getMySQLHandler().getPool(pool).getFreeConnection();
    using this database class for connections etc

    http://pastebin.com/NL05G6nU


    so what would that line turn into using my class?
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Sep 2010
    Posts
    883
    Thanks given
    20
    Thanks received
    6
    Rep Power
    0
    bump
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Sep 2010
    Posts
    883
    Thanks given
    20
    Thanks received
    6
    Rep Power
    0
    bump
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Sep 2010
    Posts
    883
    Thanks given
    20
    Thanks received
    6
    Rep Power
    0
    edited topic
    Reply With Quote  
     

  5. #5  
    arrowzftw
    Guest
    Import world....
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Sep 2010
    Posts
    883
    Thanks given
    20
    Thanks received
    6
    Rep Power
    0
    Quote Originally Posted by arrowzftw View Post
    Import world....
    i dont have a class mysqlhandler, i need a complete new line using my database class..

    edit: Database.java is in util folder
    Reply With Quote  
     

  7. #7  
    arrowzftw
    Guest
    Nikki did post mysql pooling

    http://www.rune-server.org/2135109-post1.html

    Just implement onto your server.
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Sep 2010
    Posts
    883
    Thanks given
    20
    Thanks received
    6
    Rep Power
    0
    look, this is the original method its supposed to use

    Code:
    	public PoolConnection getFreeConnection() {
    		PoolConnection c;
    		for(int i = 0; i < pool.size(); i++) {
    			c = pool.get(i);
    			if(c.borrow()) {
    				return c;
    			}
    		}
    		c = new PoolConnection();
    		try {
    			c.setConnection(DriverManager.getConnection(details.get("url"),
    								details.get("user"), details.get("password")));
    		} catch (SQLException e) {
    			e.printStackTrace();
    		}
    		c.borrow();
    		pool.add(c);
    		return c;
    	}
    yet i have my own class for connecting etc which uses this method

    Code:
    	public static void init() throws Exception {
    		LOG.log(Level.INFO, "initiating database connection...");
    		try {
    			FileInputStream fis = new FileInputStream("database.xml");
    			props.loadFromXML(fis);
    		} catch (Exception e) {
    			LOG.log(Level.SEVERE, "error loading database properties", e);
    			throw new Exception("error loading database properties");
    		}
    		connect();
    	}
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Sep 2010
    Posts
    883
    Thanks given
    20
    Thanks received
    6
    Rep Power
    0
    Quote Originally Posted by arrowzftw View Post
    Nikki did post mysql pooling

    http://www.rune-server.org/2135109-post1.html

    Just implement onto your server.
    thats what i am trying to do mate, just getting some errors
    Reply With Quote  
     

  10. #10  
    Member error Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    Does your server have a World class?

    Attached imageAttached image
    Reply With Quote  
     

Page 1 of 3 123 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: 6
    Last Post: 09-15-2010, 04:20 PM
  2. Replies: 4
    Last Post: 07-27-2010, 06:38 PM
  3. Replies: 6
    Last Post: 05-01-2010, 05:18 AM
  4. [ERROR]Extending Emote List[ERROR]
    By Meerster in forum Help
    Replies: 2
    Last Post: 01-19-2010, 05:01 AM
  5. [Error] Perfect range and melee [ERROR]
    By Wallace in forum Help
    Replies: 16
    Last Post: 06-21-2009, 09:56 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •