If Team Rocket grunts fail to appear in the Cerulean Gym in Pokémon SoulSilver, you are likely experiencing a script trigger glitch. Try these steps in order:
Walk into every corner and behind the statue; sometimes the NPCs spawn in a slightly offset position.
Exit the gym completely (return to Cerulean City) and re-enter. This often resets the event trigger.
Save your game inside the gym, then turn the console off and on (or close and reopen the emulator). Load the save and check again.
If you have a save file from before entering Cerulean City, load it and approach the gym again.
If you are using Action Replay or similar codes, disable them. Codes that modify map scripts or NPC visibility can break this event.
If none of these work, the save file may be corrupted. Searching forums for "SoulSilver Cerulean Gym Team Rocket glitch" may yield a specific script fix or an Action Replay code to force the event.