I'm saying that he attempted to cast a spell with the javelin in hand, which means that the spell would fizzle, which is not actually an illegal action, the rest of his actions are also completely, which means that he would charge, and I would get hit, but that he would not have the damage increase the spell represents.