A debt account can be bought and sold, and the fact that your debt passed through several hands before landing with the present collection agent is irrelevant.
I am confused by the chain of events in your message. You stated that a collection agent "filed a judgment" on you. I do not know what that means. Does that mean that the collection agent filed a lawsuit against you? Or do you mean that the collection agent OBTAINED a judgment from a court regarding this debt?
If the statute of limitations has passed on the debt, the collection agent has the right to file a lawsuit from you to obtain a judgment. If the statute of limitations has passed, it is up to you the debtor to raise this defense in the trial. Talk to the judge before the hearing is not sufficient. You must raise the defense in the trial or hearing for the defense to be effective.
Whether an account appears on your credit report has no bearing on the creditor's right to sue a debtor to obtain a judgment and the ability to take action to collect the debt.
I urge you to consult with an attorney in your state with your questions, who will be able to review your entire situation and give you advice that is specific to your situation and the rules in your state.
Go to the following link to learn more about your rights as a consumer in the collections process.
I hope this information helps you Find. Learn. Save.