Judge to rule on constitutionality of weapons charges