Buggy code:
public class XMPPPresenceSharedObject implements ISharedObject , IAccountManager { public static Trace trace = Trace . create ( "xmpppresencesharedobject" ) ; ISharedObjectConfig config = null ; XMPPConnection connection = null ; AccountManager accountManager = null ; Vector messageListeners = new Vector ( ) ; Vector presenceListeners = new Vector ( ) ; Vector sharedObjectMessageListeners = new Vector ( ) ; Vector subscribeListeners = new Vector ( ) ; protected void addPresenceListener ( IPresenceListener listener ) { } protected void removePresenceListener ( IPresenceListener listener ) { } protected void addMessageListener ( IMessageListener listener ) { } protected void removeMessageListener ( IMessageListener listener ) { } protected void addSharedObjectMessageListener ( ISharedObjectMessageListener listener ) { } protected void removeSharedObjectMessageListener ( ISharedObjectMessageListener listener ) { } protected void addSubscribeListener ( ISubscribeListener listener ) { } protected void removeSubscribeListener ( ISubscribeListener listener ) { } protected String canonicalizePresenceFrom ( String from ) { } protected void debug ( String msg ) { } protected void disconnect ( ) { } public void dispose ( ID containerID ) { } protected void dumpStack ( String msg , Throwable e ) { } protected void fireContainerDeparted ( ID departed ) { } protected void fireContainerJoined ( ID containerJoined ) { } protected void fireMessage ( ID from , ID to , IMessageListener . Type type , String subject , String body ) { } protected void firePresence ( ID fromID , IPresence presence ) { } protected void fireSubscribe ( ID fromID , IPresence presence ) { } protected void fireSetRosterEntry ( IRosterEntry entry ) { } protected void fireRosterEntry ( IRosterEntry entry ) { } protected void fireSharedObjectMessage ( ISharedObjectMessageEvent event ) { } public Object getAdapter ( Class clazz ) { } protected XMPPConnection getConnection ( ) { } protected ISharedObjectContext getContext ( ) { } protected String getUserNameFromXMPPAddress ( XMPPID userID ) { } protected void handleContainerDepartedEvent ( ISharedObjectContainerDepartedEvent event ) { } protected void handleDeactivatedEvent ( ISharedObjectDeactivatedEvent event ) { } public void handleEvent ( Event event ) { } public void handleEvents ( Event [ ] events ) { } protected void handleIQEvent ( IQEvent evt ) { } protected void handleJoin ( ISharedObjectContainerJoinedEvent event ) { } protected void handleMessageEvent ( MessageEvent evt ) { } protected void handlePresenceEvent ( PresenceEvent evt ) { } protected void handleRoster ( Roster roster ) { } public void init ( ISharedObjectConfig initData ) throws SharedObjectInitException { } protected ID makeIDFromName ( String name ) { ID result = null ; try { <START_BUG> result = IDFactory . makeID ( PROTOCOL , new Object [ ] { name } ) ; <END_BUG> return result ; } catch ( Exception e ) { dumpStack ( "Exception<seq2seq4repair_space>in<seq2seq4repair_space>makeIDFromName" , e ) ; return null ; } } protected InterestType makeInterestType ( RosterPacket . ItemType itemType ) { } protected Type makeMessageType ( Message . Type type ) { } protected IPresence makeIPresence ( Presence xmppPresence ) { } protected Presence makePresence ( IPresence ipresence ) { } protected Mode makeIPresenceMode ( Presence xmppPresence ) { } protected Mode makePresenceMode ( IPresence ipresence ) { } protected Type makeIPresenceType ( Presence xmppPresence ) { } protected Type makePresenceType ( IPresence ipresence ) { } protected IRosterEntry makeRosterEntry ( RosterEntry entry ) { } protected IRosterEntry makeRosterEntry ( RosterPacket . Item entry ) { } protected IRosterGroup makeRosterGroup ( RosterGroup grp ) { } protected IRosterGroup makeRosterGroup ( String grp ) { } protected void setConnection ( XMPPConnection connection ) { } public void changePassword ( String newpassword ) throws ECFException { } public void createAccount ( String username , String password , Map attributes ) throws ECFException { } public void deleteAccount ( ) throws ECFException { } public String getAccountInstructions ( ) { } public String [ ] getAccountAttributeNames ( ) { } public Object getAccountAttribute ( String name ) { } public boolean supportsCreation ( ) { } }

Fix:
result = IDFactory . getDefault ( ) . makeID ( PROTOCOL , new Object [ ] { name } ) ;