Its a resistor of 4 W having 22 Ω resistance and the letter J means a tolerance of + or - 10%5%.
A multimeter will give its resistance and if it's faulty it will give no resistance.
The capacitor and the resistor drop the voltage (transformerless power supply) before it's converted to DC by diodes.