java.lang.NumberFormatException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Java does not handle IPv6 nameservers before 1.8.0_60. Upgrade to the latest JVM.


rp
tip

This is a bug in Wise, updating to v4.10 seems to solve the problem.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • It works fine with igniterealtime.org and other servers using standalone db. But with embedded database there is an issue that Openfire is sending room's topic as an occupants counter (older Spark version showing n/a in occupants column). Latest Spark versions are not showing rooms at all in this scenario, therefor marking this as Major as embedded database users will not see they rooms after they upgrade to Spark 2.6.0. Spark log: Apr 29, 2011 6:25:06 AM org.jivesoftware.spark.util.log.Log error SEVERE: Error setting up GroupChatTable java.lang.NumberFormatException: For input string: "okidoki" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:99) at org.jivesoftware.smackx.muc.MultiUserChat.getRoomInfo(MultiUserChat.java:238) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser.isPasswordProtected (ConferenceRoomBrowser.java:865) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser.addRoomToTable(Conf erenceRoomBrowser.java:805) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser.access$700(Conferen ceRoomBrowser.java:91) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser$10.finished(Confere nceRoomBrowser.java:513) at org.jivesoftware.spark.util.SwingWorker$2$1.run(SwingWorker.java:148) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Apr 29, 2011 6:25:08 AM org.jivesoftware.spark.util.log.Log error Explanation: looks like your server is messed up, its sending the roomtopic as roomOccupantcount, as far as i have understood your posts is "okidoki" the roomtopic? java.lang.NumberFormatException: For input string: "okidoki" at org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:99) in roominfo @ line 99 in red: RoomInfo(DiscoverInfo info) { super(); this.room = info.getFrom(); // Get the information based on the discovered features this.membersOnly = info.containsFeature("muc_membersonly"); this.moderated = info.containsFeature("muc_moderated"); this.nonanonymous = info.containsFeature("muc_nonanonymous"); this.passwordProtected = info.containsFeature("muc_passwordprotected"); this.persistent = info.containsFeature("muc_persistent"); // Get the information based on the discovered extended information Form form = Form.getFormFrom(info); if (form != null) { FormField descField = form.getField("muc#roominfo_description"); this.description = descField == null ? "" : descField.getValues().next(); FormField subjField = form.getField("muc#roominfo_subject"); this.subject = subjField == null ? "" : subjField.getValues().next(); FormField occCountField = form.getField("muc#roominfo_occupants"); this.occupantsCount = occCountField == null ? -1 : Integer.parseInt(occCountField.getValues() .next()); } }
    via by wroot,
  • It works fine with igniterealtime.org and other servers using standalone db. But with embedded database there is an issue that Openfire is sending room's topic as an occupants counter (older Spark version showing n/a in occupants column). Latest Spark versions are not showing rooms at all in this scenario, therefor marking this as Major as embedded database users will not see they rooms after they upgrade to Spark 2.6.0. Spark log: Apr 29, 2011 6:25:06 AM org.jivesoftware.spark.util.log.Log error SEVERE: Error setting up GroupChatTable java.lang.NumberFormatException: For input string: "okidoki" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:99) at org.jivesoftware.smackx.muc.MultiUserChat.getRoomInfo(MultiUserChat.java:238) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser.isPasswordProtected (ConferenceRoomBrowser.java:865) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser.addRoomToTable(Conf erenceRoomBrowser.java:805) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser.access$700(Conferen ceRoomBrowser.java:91) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser$10.finished(Confere nceRoomBrowser.java:513) at org.jivesoftware.spark.util.SwingWorker$2$1.run(SwingWorker.java:148) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Apr 29, 2011 6:25:08 AM org.jivesoftware.spark.util.log.Log error Explanation: looks like your server is messed up, its sending the roomtopic as roomOccupantcount, as far as i have understood your posts is "okidoki" the roomtopic? java.lang.NumberFormatException: For input string: "okidoki" at org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:99) in roominfo @ line 99 in red: RoomInfo(DiscoverInfo info) { super(); this.room = info.getFrom(); // Get the information based on the discovered features this.membersOnly = info.containsFeature("muc_membersonly"); this.moderated = info.containsFeature("muc_moderated"); this.nonanonymous = info.containsFeature("muc_nonanonymous"); this.passwordProtected = info.containsFeature("muc_passwordprotected"); this.persistent = info.containsFeature("muc_persistent"); // Get the information based on the discovered extended information Form form = Form.getFormFrom(info); if (form != null) { FormField descField = form.getField("muc#roominfo_description"); this.description = descField == null ? "" : descField.getValues().next(); FormField subjField = form.getField("muc#roominfo_subject"); this.subject = subjField == null ? "" : subjField.getValues().next(); FormField occCountField = form.getField("muc#roominfo_occupants"); this.occupantsCount = occCountField == null ? -1 : Integer.parseInt(occCountField.getValues() .next()); } }
    via by wroot,
  • It works fine with igniterealtime.org and other servers using standalone db. But with embedded database there is an issue that Openfire is sending room's topic as an occupants counter (older Spark version showing n/a in occupants column). Latest Spark versions are not showing rooms at all in this scenario, therefor marking this as Major as embedded database users will not see they rooms after they upgrade to Spark 2.6.0. Spark log: Apr 29, 2011 6:25:06 AM org.jivesoftware.spark.util.log.Log error SEVERE: Error setting up GroupChatTable java.lang.NumberFormatException: For input string: "okidoki" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:99) at org.jivesoftware.smackx.muc.MultiUserChat.getRoomInfo(MultiUserChat.java:238) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser.isPasswordProtected (ConferenceRoomBrowser.java:865) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser.addRoomToTable(Conf erenceRoomBrowser.java:805) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser.access$700(Conferen ceRoomBrowser.java:91) at org.jivesoftware.spark.ui.conferences.ConferenceRoomBrowser$10.finished(Confere nceRoomBrowser.java:513) at org.jivesoftware.spark.util.SwingWorker$2$1.run(SwingWorker.java:148) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Apr 29, 2011 6:25:08 AM org.jivesoftware.spark.util.log.Log error Explanation: looks like your server is messed up, its sending the roomtopic as roomOccupantcount, as far as i have understood your posts is "okidoki" the roomtopic? java.lang.NumberFormatException: For input string: "okidoki" at org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:99) in roominfo @ line 99 in red: RoomInfo(DiscoverInfo info) { super(); this.room = info.getFrom(); // Get the information based on the discovered features this.membersOnly = info.containsFeature("muc_membersonly"); this.moderated = info.containsFeature("muc_moderated"); this.nonanonymous = info.containsFeature("muc_nonanonymous"); this.passwordProtected = info.containsFeature("muc_passwordprotected"); this.persistent = info.containsFeature("muc_persistent"); // Get the information based on the discovered extended information Form form = Form.getFormFrom(info); if (form != null) { FormField descField = form.getField("muc#roominfo_description"); this.description = descField == null ? "" : descField.getValues().next(); FormField subjField = form.getField("muc#roominfo_subject"); this.subject = subjField == null ? "" : subjField.getValues().next(); FormField occCountField = form.getField("muc#roominfo_occupants"); this.occupantsCount = occCountField == null ? -1 : Integer.parseInt(occCountField.getValues() .next()); } }
    via by wroot,
  • java : convert string value to int
    via Stack Overflow by lamisse
    ,
  • GWT call Axis2 on Tomcat doesn't work
    via Stack Overflow by nap.gab
    ,
  • Aptana 3 - wont load
    via Stack Overflow by Phil Jackson
    ,
  • Splash stuck at "Load Maps..."
    via freemind by tachyx
    ,
  • program does not run, simple java prgram
    via by Biran Quach,
  • Error while running mixed load
    via by Salil Wagh,
    • java.lang.NumberFormatException: For input string: "okidoki" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:99) at org.jivesoftware.smackx.muc.MultiUserChat.getRoomInfo(MultiUserChat.java:238)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    233 more bugmates