Correlation of discrete time periodic sequences
Energy signals (such as an exponentially decaying pulse) are bounded in total energy as time goes to infinity in which case you can use the first definition. Power signals (such as a sine wave) have finite energy over finite time intervals but infinite energy for all time (power is energy/time) so the first equation will not converge in that case.