concurred, except that he dissented from the statement that the jurisdiction of the Supreme Court as a court of general jurisdiction must be presumed. The reason for the dissent was, that in respect to foreign corporations the jurisdiction of the Supreme Oourt was a statutory one. Llis remarks clearly show that he considered the allegation in the complaint as to plaintiff’s residence a necessary and material one, and he concluded : “ It is undoubtedly true that if the record had contained evidence showing that this plaintiff was not a resident of this State at the time of the commencement of the action, the court might, at any stage of the action, of its own motion, raise the question and dismiss the action.” Robinson v. Oceanic Steam Navigation Co., 112 N. Y. 315.
In Robinson v. Oceanic Steam Navigation Co., 112 N. Y. 315, the action was brought by a nonresident against a foreign corporation upon a cause of action which had not arisen within this state. The defendant appeared in the action, interposed an answer to the complaint and noticed the cause for trial. Afterwards it made a motion that the summons be vacated and the complaint dismissed on the ground that the court did not have jurisdiction of the action. The Court of Appeals, in discussing the effect of and construing section 1180 of the Code, said: “ The jurisdiction of the courts is defined and limited and absolutely confined to the cases specified; and the word ‘ only ’ may have been, and probably was, inserted after the words ‘ following cases ’ to change the rule as announced in McCormick v. Penn. Cent. R. R. Co., 49 N. Y. 303. * * * It is not sufficient that a nonresident plaintiff should by any service of process or in any other way, obtain jurisdiction of a foreign corporation; but before the action can be maintained, in any court of this state, there must also be jurisdiction of the subject-matter of the action. Jurisdiction of the action cannot be conferred upon the court by any consent or stipulation of the parties. The objection to the jurisdiction in such case may be taken at any stage of the action, and the court may, ex mero motu, at any time, when its attention is called to the facts, refuse to proceed further and dismiss the action.”' Cooley’s Const. Lim. 398; Davidsburgh v. Knickerbocker L. Ins. Co., 90 N. Y. 526.
The doctrine of McCormick v. Penn. Cent. R. R. Co., supra, having thus been held not to be applicable under section 1780, the *117decisions of all the other cases in which it was held that where the court had jurisdiction of the subject-matter of the action, though it arose outside of the state, a foreign corporation by appearing by attorney and answering generally in an action and omitting to plead nonresidence of the plaintiff in abatement and thus conferring jurisdiction of the person, confers jurisdiction to try the issues, have also become inapplicable.
All these cases proceeded upon the theory that the fact of plaintiff’s nonresidence was no part of the subject-matter of the action. But in none of them was jurisdiction of the person conferred by omitting a particular plea, for jurisdiction of the person had been obtained by the service of process. The real question after all was whether the cdurt could take cognizance of the action, or in other words, whether it had jurisdiction of the subject-matter of the action.
By the decision of Robinson v. Oceanic Steam Nav. Co., supra, the fact of plaintiff’s residence, when necessary to the maintenance of the action under section 1780 of the Code, has been made not only a jurisdictional fact but also a constituent element of the subject-matter of every action against a foreign corporation, and it has, moreover, been settled that the objection to the jurisdiction of the court on the ground of plaintiff’s nonresidence may be taken at any stage of the action.
In Paget v. Stevens, 143 N. Y. 173, substantially the same conclusion was reached on the jurisdictional question in an action against a nonresident individual defendant. The question was raised on a motion by defendant Stevens, to set aside the order of publication on the summons, as against him, upon the ground that the action was not one which, upon the facts set forth, was within the jurisdiction of the court. In delivering the opinion of the court, Peckham, J., said: “ * * The Code of Civil Procedure provides in section 438 for the granting of an order directing the service of a summons upon a defendant without the state by publication. Section 439 of the Code provides that the order must be founded upon a verified complaint showing a sufficient cause of action against the defendant to be served, etc. This language does not mean simply a complaint which would withstand a demurrer based upon the ground that it did not state facts sufficient to constitute a cause of action. The cause of action which is sufficient is one against the defendant of which the court can take cognizance. In this case it must be one of *118wMcíl the court has jurisdiction (as to defendant Charles G-. Stevens) upon the assumption that he is a non-resident. This meaning has been adjudged to be the correct one in Bryan v. University Co., 112 N. Y. 382-386. * * * One of the plain* tiffs has not the necessary jurisdictional residence in that city, viz., Rew York) and the objection is not rendered without force by proof that another of the plaintiffs has. Where citizenship or residence is requisite on the part of plaintiffs, it has always been held that the fact must exist in regard to all the plaintiffs. This has been so held in the United States courts in reference to citizenship, and we think it is the plain" meaning of the statute.”
The same view was taken by the Supreme Gourt in the recent cases of Foster v. Electric Heat Regulator Co., 16 Misc. Rep. 147, and Bogert v. Otto Gas Engine Works, 28 App. Div. 463, in which it was expressly held that the omission of a plaintiff to allege in his complaint against a foreign corporation, upon a cause of action, which is not one which a nonresident is expressly permitted to maintain, that at the time of the commencement of the action he was a resident of this state, is a fatal defect.
Section 481 of the Code expressly provides'that the complaint must contain a plain and concise statement of the facts constituting each cause of action, and consequently the fact of plaintiff’s residence at the time of the commencement of the action, when material to enable the court to take cognizance of the action, is one which should not be permitted to be omitted.
Section 499 of the Code is to the effect that a defendant is not to be deemed to have waived the objection to the jurisdiction of the court or the objection that the complaint does not state facts sufficient to constitute a cause of action, because he did not raise it either by demurrer or by answer. Either or both the objections referred to may, therefore, be taken at the trial.
I am, therefore, of the opinion that in the disposition of the appeal in the case at bar, the rule as laid down in the cases of Robinson v. Oceanic Steam Nav. Co.; Foster v. Electric Heat Reg. Co., and Bogert v. Otto Gas Engine Works, should be followed as the latest exposition of the law upon the point under consideration, and that under these decisions and sections 481, 499 and 1780 of the Code of Oivil Procedure it w;as error to deny defendant’s motion for a dismissal of the complaint when made on the ground that the complaint did not state facts sufficient to constitute a cause of action against the defendant and that it was defective for *119want of an allegation that at the time of the commencement of the action the plaintiff was a resident of the State of Hew York. But even if it could still be held upon the authority of some of the earlier cases that, in a case like the present, it is not absolutely necessary that the complaint should allege plaintiff’s residence ini the State, it by no means follows that a plaintiff, after his residence has been drawn in question, may at the trial rest his case without giving any proof that he is a resident and yet give the court jurisdiction. In the case at bar the plaintiff rested without giving any such proof, and in the motions for a dismissal of the complaint at the close of plaintiff’s case, and at the close of the whole case, the defendant, among other grounds urged, repeated the objection.
Both motions were denied and the defendant duly excepted, This clearly constituted error.
Eor the foregoing reasons the judgment should be reversed, and hence it is not deemed “necessary to consider any of the other points urged by the defendant on the appeal, nor is it necessary to notice any difference existing in a case like the case at bar between the jurisdiction of the Oity Court and the jurisdiction of a court of original and general jurisdiction.
Judgment reversed and new trial ordered, with costs to appellant to abide the event.
MacLean and Leventritt, JJ., concur.
Judgment reversed, new trial ordered, with costs to appellant to abide event.