High gas prices the first three months of the year allowed Exxon Mobil to post huge earnings, but they were short of both year-earlier results and forecasts.