Thread: Error: NumberFormatException

Results 1 to 4 of 4
  1. #1 Error: NumberFormatException 
    Registered Member Mudboy's Avatar
    Join Date
    Oct 2016
    Posts
    113
    Thanks given
    16
    Thanks received
    23
    Rep Power
    42
    Delete
    Last edited by Mudboy; 05-05-2020 at 04:24 AM. Reason: Delete
    Reply With Quote  
     

  2. #2  
    Registered Member CapitalCoding's Avatar
    Join Date
    Jul 2011
    Posts
    193
    Thanks given
    30
    Thanks received
    25
    Rep Power
    13
    Quote Originally Posted by Bobby View Post
    Using an older Hyperion 474 client, got this run error and can't seem to find the problem. I thought the error was straightforward when reading it however was sent on a bit of a goose chase. Any help is appreciated, the best help would be to break down how to read the error so I can do it myself and learn for future problems and troubleshooting.

    Using IntelliJ - not sure if that would help if you knew

    Run Error:
    Code:
    Error: NumberFormatException:65 Integer:580 Integer:615 client:185 sun.reflect.NativeMethodAccessorImpl.invoke0 NativeMethodAccessorImpl:62 DelegatingMethodAccessorImpl:43 Method:498 AppMain:147 | java.lang.NumberFormatException: For input string: "0,"
    
    Process finished with exit code 0
    Line 185 in Client.java
    Code:
    			Class37_Sub9_Sub19.anInt3272 = Integer.parseInt(strings[0]);
    Code:
    	public static void main(String[] strings) {
    		try {
    			if ((strings.length ^ 0xffffffff) != -8)
    				Class37_Sub17.method1014(20);
    			Class37_Sub9_Sub19.anInt3272 = Integer.parseInt(strings[0]);
    			if (!strings[1].equals("live")) {
    				if (!strings[1].equals("office")) {
    					if (!strings[1].equals("local"))
    						Class37_Sub17.method1014(20);
    					else
    						Class37_Sub9_Sub17.anInt3219 = 2;
    				} else
    					Class37_Sub9_Sub17.anInt3219 = 1;
    			} else
    				Class37_Sub9_Sub17.anInt3219 = 0;
    			if (!strings[2].equals("live")) {
    				if (strings[2].equals("rc"))
    					Class37_Sub9_Sub13.anInt3141 = 1;
    				else if (!strings[2].equals("wip"))
    					Class37_Sub17.method1014(20);
    				else
    					Class37_Sub9_Sub13.anInt3141 = 2;
    			} else
    				Class37_Sub9_Sub13.anInt3141 = 0;
    			if (strings[3].equals("lowmem"))
    				Class37_Sub8.method746((byte) 119);
    			else if (!strings[3].equals("highmem"))
    				Class37_Sub17.method1014(20);
    			else
    				Class71.method1262((byte) 74);
    			if (!strings[4].equals("free")) {
    				if (!strings[4].equals("members"))
    					Class37_Sub17.method1014(20);
    				else
    					Class37_Sub4_Sub13.aBoolean2791 = true;
    			} else
    				Class37_Sub4_Sub13.aBoolean2791 = false;
    			if (strings[5].equals("english"))
    				Class37_Sub9_Sub25.anInt3382 = 0;
    			else if (!strings[5].equals("german"))
    				Class37_Sub17.method1014(20);
    			else {
    				Class37_Sub18.method1016((byte) 74);
    				Class37_Sub9_Sub8.aClass16_3056 = Class65.aClass16_1225;
    				Class37_Sub9_Sub25.anInt3382 = 1;
    			}
    			if (!strings[6].equals("game0")) {
    				if (strings[6].equals("game1"))
    					Class37_Sub9_Sub36.anInt3579 = 1;
    				else
    					Class37_Sub17.method1014(20);
    			} else
    				Class37_Sub9_Sub36.anInt3579 = 0;
    			Class37_Sub8.aString1940 = Signlink.serverIp; //89.46.37.214
    			
    			client var_client = new client();
    			var_client.method20("runescape", 503, 16,
    					Class37_Sub9_Sub13.anInt3141 + 32, 474, 765, (byte) -72);
    			Class36.aFrame797.setLocation(40, 40);
    		} catch (Exception exception) {
    			Class37_Sub9_Sub3.method768(-49, null, exception);
    		}
    		anInt1720++;
    	}
    After reading that I went to check Class37_Sub9_Sub19.anInt3272...
    Code:
    		anInt3272 = 1;
    Code:
    static {
    		aClass16_3252 = Class37_Sub2.crateRSString((byte) 102, "Close");
    		aClass16_3260 = Class37_Sub2
    				.crateRSString((byte) 108, "Loading config )2 ");
    		anInt3258 = 0;
    		aClass16_3269 = Class37_Sub2.crateRSString((byte) 124, "titlebutton");
    		anIntArray3271 = new int[128];
    		anInt3272 = 1;
    		aClass16_3273 = aClass16_3260;
    		aClass16_3257 = Class37_Sub2.crateRSString((byte) 108, "(Udns");
    		anInt3274 = 0;
    		aClass16_3255 = aClass16_3252;
    		anInt3248 = 1;
    		aClass16_3261 = aClass16_3254;
    	}
    From what I understand is an int isn't being given, which from as far as I've gotten it is an int, or I'm just too tired and need sleep.

    Cheers!
    0, can't be parse to int
    Before:
    Class37_Sub9_Sub19.anInt3272 = Integer.parseInt(strings[0]);

    Cheap fix
    String fix = string[0].replace(",", "");
    Class37_Sub9_Sub19.anInt3272 = Integer.parseInt(fix);
    Attached image
    Reply With Quote  
     

  3. #3  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Just edit your run config and remove the ,

    Attached image

    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member Mudboy's Avatar
    Join Date
    Oct 2016
    Posts
    113
    Thanks given
    16
    Thanks received
    23
    Rep Power
    42
    Quote Originally Posted by S Quare Quxx View Post
    Just edit your run config and remove the ,
    Perfect! I didn't even think about it because it looked so normal to me and I didn't even think about it because I separated each argument with ,
    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: 0
    Last Post: 11-10-2011, 02:39 AM
  2. Same error over and over?!!
    By phantomphreak in forum Tutorials
    Replies: 4
    Last Post: 09-28-2007, 01:20 AM
  3. [HELP]Render Error
    By Big J in forum General
    Replies: 3
    Last Post: 07-30-2007, 01:01 AM
  4. Error. Please reboot me :)
    By Inside Sin in forum Showcase
    Replies: 4
    Last Post: 05-13-2007, 03:39 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
  •