On Wednesday, the major averages rose on traders' hopes that there would soon be a resolution to the conflict in the Middle East.