Dynamics of one-dimensional Josephson-junction arrays