java 如何使用POI往word模板的页眉部分写入数据

网上搜索相关信息后,尝试写入数据却报错 请大神帮忙看看

String path1 = file.getAbsolutePath();
            InputStream is2 = new FileInputStream(path1);
            XWPFDocument xwpfDocument = new XWPFDocument(is2);
            List<XWPFHeader> headerList = xwpfDocument.getHeaderList();
            System.out.println(headerList);

图片说明

报错为图片说明

jar包中有ooxml-schemas这个jar包吗