Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • hardcore22: are there any kind of silabsoft servers like back in the days i miss that
      May 25, 2020, 05:44:08 AM
    • Amcora: @ dr house contact me; greetings celien :)
      May 24, 2020, 03:16:21 PM
    • Amcora: Stop shouting around please
      May 24, 2020, 03:13:26 PM
    • iddsyou: PkOwnage OSRSPS [link]  Join us on Discord! [link]  Download: [link]
      May 17, 2020, 11:44:17 AM
    • Decimate Returns: PROJECT DECIMATE RETURNS !! 300+ PLAYERS BACK IN 2012 - NOW WITH ALOT OF UPDATES ! JOIN NOW! [link]
      May 17, 2020, 02:48:19 AM
    • Decimate Returns: PROJECT DECIMATE RETURNS !! 300+ PLAYERS BACK IN 2012 - NOW WITH ALOT OF UPDATES ! JOIN NOW! [link]
      May 17, 2020, 02:48:12 AM
    • Decimate Returns: PROJECT DECIMATE RETURNS !! 300+ PLAYERS BACK IN 2012 - NOW WITH ALOT OF UPDATES ! JOIN NOW! [link]
      May 17, 2020, 02:47:56 AM
    • Decimate Returns: PROJECT DECIMATE RETURNS !! 300+ PLAYERS BACK IN 2012 - NOW WITH ALOT OF UPDATES ! JOIN NOW! [link]
      May 17, 2020, 02:47:49 AM
    • Decimate Returns: PROJECT DECIMATE RETURNS !! 300+ PLAYERS BACK IN 2012 - NOW WITH ALOT OF UPDATES ! JOIN NOW! [link]
      May 17, 2020, 02:47:42 AM
    • Decimate Returns: PROJECT DECIMATE RETURNS !! 300+ BACK IN 2012 - NOW WITH ALOT OF UPDATES ! JOIN NOW! [link]
      May 17, 2020, 02:47:29 AM
    • ragnoroker: BRAND NEW SERVER - PRE EOC - UNIQUE - JOIN TODAY :) - [link]
      May 15, 2020, 11:18:03 AM
    • ragnoroker: BRAND NEW SERVER - PRE EOC - UNIQUE - JOIN TODAY :) - [link]
      May 15, 2020, 11:17:53 AM
    • ragnoroker: BRAND NEW SERVER - PRE EOC - UNIQUE - JOIN TODAY :) - [link]
      May 15, 2020, 11:17:50 AM
    • Decimate Returns: Project Decimate 474 OSRS ; [link]
      May 13, 2020, 07:27:00 PM
    • hardcore22: are there any silabsoft servers left? of the good old days like hackscape
      May 12, 2020, 07:53:18 AM
    • iddsyou: yo guys check out this instagram post #pkownage  [link]
      May 06, 2020, 02:35:58 PM
    • fishingsheep: any servers like project catasrophe or frugoo scape been remade ?
      May 04, 2020, 05:01:00 PM
    • asshole_rule: relmitos the legend
      May 04, 2020, 04:28:54 PM
    • iddsyou: PkOwnage 317 OSRS, Vote4donor, [link] Download now: [link] Discord: [link]
      May 04, 2020, 11:15:11 AM
    • relmitos: is anyone familiar with 317 packet opcodes? Im confused about opcode 3 (wich appears to send wether or not the client window is currently focused). is it safe to ignore?
      May 03, 2020, 08:47:40 AM

    Author Topic: Common Compiler Errors and Runtime Exceptions [ALL COMPILER RELATED ISSUES]  (Read 61291 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,203
    • 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