java.lang.NumberFormatException: For input string: "okidoki"

Jive Software Open Source | wroot | 6 years ago
  1. 0

    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()); } }

    Jive Software Open Source | 6 years ago | wroot
    java.lang.NumberFormatException: For input string: "okidoki"
  2. 0

    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()); } }

    JIRA | 6 years ago | wroot
    java.lang.NumberFormatException: For input string: "okidoki"
  3. 0

    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()); } }

    Jive Software Open Source | 6 years ago | wroot
    java.lang.NumberFormatException: For input string: "okidoki"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java : convert string value to int

    Stack Overflow | 5 years ago | lamisse
    java.lang.NumberFormatException: For input string: ""
  6. 0

    Aptana 3 - wont load

    Stack Overflow | 4 years ago | Phil Jackson
    java.lang.NumberFormatException: For input string: ""

  1. Handemelindo 6 times, last 6 days ago
  2. bmacedo 2 times, last 1 week ago
  3. MoYapro 1 times, last 2 weeks ago
  4. filpgame 4 times, last 3 weeks ago
  5. silex 6 times, last 1 month ago
32 more registered users
63 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "okidoki"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(Unknown Source)
    2. java.lang.Integer.parseInt(Unknown Source)
    3. java.lang.Integer.parseInt(Unknown Source)
    3 frames
  3. Smack Extensions
    MultiUserChat.getRoomInfo
    1. org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:99)
    2. org.jivesoftware.smackx.muc.MultiUserChat.getRoomInfo(MultiUserChat.java:238)
    2 frames