My 2003 XJ8 had a similar problem and the dealer found it to be an EVAMP issue which they fixed and it has been fine since. I also replaced the gas cap as I was getting a "check gas cap" error when the check engine first appeared. because the fuel system is a closed system, any amount of air entering the system will trigger the error. Hope that helps Cost me about 325 to repair. happy Driving!