But, I don't want to use one of this on my final circuit so I made a circuit and I changed the BSS138 with a 2N2222 because I don't want to do SMD soldering. So, my question is: is it safe?
Well, a MOSFET is not exactly interchangeable with a BJT, but you've got the right idea. I would move the 10k resistor to be in series with the transistor base, and then connected to +3.3V.
--
The Gadget Shield: accelerometer, RGB LED, IR transmit/receive, speaker, microphone, light sensor, potentiometer, pushbuttons
It sounds like you have connected to an output on the XBee instead of an input.
Try disconnecting RX3V from the circuit then you should measure ~2.5V at the center of the two resistors. Then, check your wiring and see what's going on with that RX3V pin and why it's an output instead of an input.
--
The Aussie Shield: breakout all 28 pins to quick-connect terminals