How to resolve these mistakes?

RosterPacket.ItemType.from cannot be resolved

spark-plus/src/org/jivesoftware/spark/ui ContactItem.java line 381 1175677538145 24151

The method disconnect() in the type XMPPConnection is not applicable for the arguments (Presence)

spark-plus/src/org/jivesoftware MainWindow.java line 294 1175677544113 24366

The method isAvailable() is undefined for the type Presence

spark-plus/src/org/jivesoftware/sparkimpl/preference/sounds SoundPlugin.java line 44 1175677527880 23772

The method isAway() is undefined for the type Presence

spark-plus/src/org/jivesoftware/sparkimpl/plugin/chat PresenceChangePlugin.j ava line 75 1175677531215 23860

The type ContactList must implement the inherited abstract method RosterListener.presenceChanged(String)

spark-plus/src/org/jivesoftware/spark/ui ContactList.java line 97 1175677537834 24089

The type NativeBrowserViewer must implement the inherited abstract method WebBrowserListener.windowClose(WebBrowserEvent)

spark-plus/src/org/jivesoftware/spark/component/browser NativeBrowserViewer. java line 29 1175677541149 24252

The type new RosterListener(){} must implement the inherited abstract method RosterListener.presenceChanged(String)

spark-plus/src/org/jivesoftware/spark/component RosterTree.java line 89 1175677541640 24280