Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • rooneyscape: apocalypse add me on discord - noxin#8914
      Today at 03:50:21 AM
    • apocalypsePK: to code for them
      April 02, 2020, 04:06:46 PM
    • apocalypsePK: 10years since i logged onto this forum anyone got any decent ps that needs a unigrad
      April 02, 2020, 04:06:42 PM
    • ragnoroker: BRAND NEW SERVER 6 HOURS OLD - RELIVE YOUR CHILDHOOD -[link]
      March 30, 2020, 09:17:02 PM
    • ragnoroker: BRAND NEW SERVER 6 HOURS OLD - RELIVE YOUR CHILDHOOD -[link]
      March 30, 2020, 09:16:51 PM
    • Themaxer: I need the starter pack please. Can someone pass me the link?
      March 28, 2020, 12:21:32 PM
    • Themaxer: Hi
      March 28, 2020, 12:19:26 PM
    • drubrkletern: whats happenin forum
      March 26, 2020, 10:14:36 PM
    • Lin: we're all old now
      March 24, 2020, 10:37:19 PM
    • wildskiller: wtf has happened to this forum
      March 24, 2020, 09:13:45 AM
    • rune-list: mistexps.com - #1 rsps with raids 1, raids 2, custom raids, new content, and more!
      March 21, 2020, 12:11:55 PM
    • ranger squad: I also miss u fags
      March 16, 2020, 04:50:33 AM
    • asshole_rule: miss u fags
      March 15, 2020, 10:08:18 AM
    • drubrkletern: damn... i wonder what the #1 CUSTOM RSPS of 2020 is ..
      March 14, 2020, 01:28:41 PM
    • rune-list: mistexps.com mistex rsps #1 custom & osrs rsps of 2020
      March 12, 2020, 11:42:49 AM
    • SuperNativeZ: GALAXY #1 UNIQUE CUSTOM RSPS of 2020 [link][link][link]
      March 11, 2020, 01:30:32 PM
    • SuperNativeZ: GALAXY #1 UNIQUE CUSTOM RSPS of 2020 [link][link][link]
      March 11, 2020, 01:30:28 PM
    • SuperNativeZ: GALAXY #1 UNIQUE CUSTOM RSPS of 2020 [link][link][link]
      March 11, 2020, 01:30:24 PM
    • SuperNativeZ: GALAXY #1 UNIQUE CUSTOM RSPS of 2020 [link][link][link]
      March 11, 2020, 01:30:20 PM
    • SuperNativeZ: GALAXY #1 UNIQUE CUSTOM RSPS of 2020 [link][link][link]
      March 11, 2020, 01:30:14 PM

    Author Topic: Common Compiler Errors and Runtime Exceptions [ALL COMPILER RELATED ISSUES]  (Read 60705 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineLonelySouls

    • Member
    • **
    • Posts: 61
    • Thanks: +0/-0
      • View Profile
    I have this error, is anyone able to give me any suggestions to help? Thanks

    ERROR! THREAD NAME: mainjava.lang.NumberFormatException: For input string: ""

       at java.lang.NumberFormatException.forInputString(Unknown Source)
       at java.lang.Integer.parseInt(Unknown Source)
       at java.lang.Integer.parseInt(Unknown Source)
       at com.rs.utils.NPCSpawns.loadSpawns(NPCSpawns.java:40)
       at com.rs.Launcher.main(Launcher.java:90)
    Renown Programmer  ||Respected Member||Web Developer
    Runescape Gambling

    OfflineDeathsChaos9

    • Skype: deathschaos9
    • Global Moderator
    • *****
    • *
    • Posts: 7,442
    • Thanks: +0/-0
      • View Profile
    *JESUS*, the NumberFormatException is a runtime error and is thrown when attempting to convert a string into a number when the string is not numeric. In this case, you are trying to turn an empty string into a number which of course is impossible. I can't tell you exactly what the problem is but I can tell you that there appears to be missing data in the file that loads NPCs. If you've recently edited that file go back and make sure that the new line(s) you added contain the correct amount of data.

     
    Peace isn't merely the absence of conflict, but the presence of justice.

    OfflineJustin Bieber

    • Member
    • ****
    • Posts: 2,941
    • Thanks: +0/-0
      • View Profile
    *JESUS*, the NumberFormatException is a runtime error and is thrown when attempting to convert a string into a number when the string is not numeric. In this case, you are trying to turn an empty string into a number which of course is impossible. I can't tell you exactly what the problem is but I can tell you that there appears to be missing data in the file that loads NPCs. If you've recently edited that file go back and make sure that the new line(s) you added contain the correct amount of data.

     
    It's a runtime exception, not error. Error is generally used only internally by the JVM, to signal situations (e.g. out of memory) from which you can not recover.

    OfflineDeathsChaos9

    • Skype: deathschaos9
    • Global Moderator
    • *****
    • *
    • Posts: 7,442
    • Thanks: +0/-0
      • View Profile
    I know, the threads title reinforces that. No idea why I put error.
    Peace isn't merely the absence of conflict, but the presence of justice.

    OfflineZen-Birth

    • First Time Poster
    • *
    • Posts: 4
    • Thanks: +0/-0
      • View Profile
    Can anyone help me with a "java.net.UnknownHostException:" error?

    Offlinedoom_j

    • i like the company of men
    • Member
    • ****
    • *
    • Posts: 7,205
    • Thanks: +0/-0
      • View Profile
    Can anyone help me with a "java.net.UnknownHostException:" error?

    What is the ip you used.
    [12:18:14 21:04:45]<<Tom>>i dont care about your rights
    [12:18:14 21:04:49] <<Tom>> you have NO RIGHTS

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal