java.lang.NumberFormatException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help 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.lang.NumberFormatException: For input string: "okidoki" at org.jivesoftware.smackx.muc.RoomInfo.<init>(RoomInfo.java:99)
    No Bugmate found.