Thread: I don't get what happened?

Results 1 to 2 of 2
  1. #1 I don't get what happened? 
    Registered Member Versatile's Avatar
    Join Date
    Dec 2014
    Age
    26
    Posts
    433
    Thanks given
    247
    Thanks received
    9
    Rep Power
    9
    ERROR:
    Code:
    INFO: Initializing the loader...
    java.io.EOFException
    	at java.io.DataInputStream.readUnsignedShort(Unknown Source)
    	at java.io.DataInputStream.readUTF(Unknown Source)
    	at java.io.DataInputStream.readUTF(Unknown Source)
    	at com.world.content.clan.ClanChatManager.init(ClanChatManager.java:57)
    	at com.GameLoader.lambda$10(GameLoader.java:86)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Clanchatmanager
    Code:
    public static void init() {
    		try {
    			for (File file : (new File(FILE_DIRECTORY)).listFiles()) {
    				if(!file.exists())
    					continue;
    				DataInputStream input = new DataInputStream(new FileInputStream(file));
    				String name = input.readUTF();
    				String owner = input.readUTF();
    				int index = input.readShort();
    				ClanChat clan = new ClanChat(owner, name, index);
    				clan.setRankRequirements(ClanChat.RANK_REQUIRED_TO_ENTER, ClanChatRank.forId(input.read()));
    				clan.setRankRequirements(ClanChat.RANK_REQUIRED_TO_KICK, ClanChatRank.forId(input.read()));
    				clan.setRankRequirements(ClanChat.RANK_REQUIRED_TO_TALK, ClanChatRank.forId(input.read()));
    				clans[index] = clan;
    				input.close();
    			}
    		} catch (IOException exception) {
    			exception.printStackTrace();
    		}
    	}
    GameLoader
    Code:
    private void executeServiceLoad() {
    		if (GameSettings.MYSQL_ENABLED) {
    			serviceLoader.execute(() -> MySQLController.init());
    		}
    		serviceLoader.execute(() -> ConnectionHandler.init());
    		serviceLoader.execute(() -> PlayerPunishment.init());
    		serviceLoader.execute(() -> RegionClipping.init());
    		serviceLoader.execute(() -> CustomObjects.init());
    		serviceLoader.execute(() -> ItemDefinition.init());
    		serviceLoader.execute(() -> Lottery.init());
    		serviceLoader.execute(() -> GrandExchangeOffers.init());
    		serviceLoader.execute(() -> Scoreboards.init());
    		serviceLoader.execute(() -> WellOfGoodwill.init());
    	        serviceLoader.execute(() -> ClanChatManager.init());
    		serviceLoader.execute(() -> CombatPoisonData.init());
    		serviceLoader.execute(() -> CombatStrategies.init());
    		serviceLoader.execute(() -> NpcDefinition.parseNpcs().load());
    		serviceLoader.execute(() -> NPCDrops.parseDrops().load());
    		serviceLoader.execute(() -> WeaponInterfaces.parseInterfaces().load());
    		serviceLoader.execute(() -> ShopManager.parseShops().load());
    		serviceLoader.execute(() -> DialogueManager.parseDialogues().load());
    		serviceLoader.execute(() -> NPC.init());
    	}
    Update: Well, if anyone has something similar error. I found out it was an error with file saving clanchat on created clan.
    Spoiler for Don't be a deadfool:
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2015
    Posts
    150
    Thanks given
    0
    Thanks received
    7
    Rep Power
    0
    That's pretty much correct your end of error is because you have reached the end of the byte stream for all of the files.
    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

Similar Threads

  1. Replies: 2
    Last Post: 01-30-2013, 03:52 PM
  2. what happens if you don't lift
    By Bells in forum Spam
    Replies: 13
    Last Post: 09-12-2012, 02:40 AM
  3. I don't know what happened
    By Ahrim in forum Music
    Replies: 0
    Last Post: 09-11-2012, 02:32 AM
  4. Replies: 6
    Last Post: 04-25-2011, 11:50 PM
  5. Replies: 2
    Last Post: 08-01-2008, 10:22 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
  •