Soliton and boundary condition induced fractional fermion number