After the post 6 is formed, an unnecessary portion of the UBM layer is etched away. [0050] As shown in FIG. 7, an encapsulating film 7 is formed by, e.g., molding the entire surface side of the wafer 1 with a resin such as polyimide or epoxy so as to cover the posts, protective films, and conductive layers.