Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

渲染这段html时报错,数组越界 #75

Closed
MrXiao-9527 opened this issue Jul 18, 2023 · 2 comments
Closed

渲染这段html时报错,数组越界 #75

MrXiao-9527 opened this issue Jul 18, 2023 · 2 comments

Comments

@MrXiao-9527
Copy link

<style type="text/css">table{border-collapse:collapse;table-layout:fixed;border-spacing:0;empty-cells:show} .X0{color:rgb(0,0,0);font-family:Times New Roman;font-size:10.0pt;background-color:rgb(255,255,255);border-top-color:000000;border-top-style:solid;border-top-width:1;border-bottom-color:000000;border-bottom-style:solid;border-bottom-width:1;border-left-color:000000;border-left-style:solid;border-left-width:1;border-right-color:000000;border-right-style:solid;border-right-width:1;vertical-align:top;text-align:left;word-wrap:break-word;height:18px;}</style>

Evaluation Warning : The document was created with  Spire.XLS for Java

y=x+
y=x+
y=x+
y=x+
y=x+
平均值
N/A
0.004429 
0.000382 
0.9990 
N/A
SD
0.000188 
0.000792 
0.0006 
%CV
4.24 
207.33 
0.06 
n
21
21
21

下面是报错信息
Caused by: java.lang.ArrayIndexOutOfBoundsException: 8
at org.ddr.poi.html.tag.TableRenderer.renderStart(TableRenderer.java:284) ~[poi-tl-ext-0.4.4-poi5.jar:na]
at org.ddr.poi.html.HtmlRenderContext.renderElement(HtmlRenderContext.java:1307) ~[poi-tl-ext-0.4.4-poi5.jar:na]
at org.ddr.poi.html.HtmlRenderContext.renderNode(HtmlRenderContext.java:1230) ~[poi-tl-ext-0.4.4-poi5.jar:na]
at org.ddr.poi.html.HtmlRenderContext.renderDocument(HtmlRenderContext.java:1221) ~[poi-tl-ext-0.4.4-poi5.jar:na]
at org.ddr.poi.html.HtmlRenderPolicy.doRender(HtmlRenderPolicy.java:160) ~[poi-tl-ext-0.4.4-poi5.jar:na]
at com.deepoove.poi.policy.AbstractRenderPolicy.render(AbstractRenderPolicy.java:66) ~[poi-tl-1.12.1.jar:na]
... 158 common frames omitted

@MrXiao-9527
Copy link
Author

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css">table{border-collapse:collapse;table-layout:fixed;border-spacing:0;empty-cells:show}
.X0{color:rgb(0,0,0);font-family:Times New Roman;font-size:10.0pt;background-color:rgb(255,255,255);border-top-color:000000;border-top-style:solid;border-top-width:1;border-bottom-color:000000;border-bottom-style:solid;border-bottom-width:1;border-left-color:000000;border-left-style:solid;border-left-width:1;border-right-color:000000;border-right-style:solid;border-right-width:1;vertical-align:top;text-align:left;word-wrap:break-word;height:18px;}</style>
  </head>
  <h2 style="color:red">Evaluation&nbsp;Warning&nbsp;:&nbsp;The&nbsp;document&nbsp;was&nbsp;created&nbsp;with&nbsp;&nbsp;Spire.XLS&nbsp;for&nbsp;Java</h2>
  <body>
    <table cellspacing="0">
      <Col width="65px" />
      <Col width="65px" />
      <Col width="65px" />
      <Col width="65px" />
      <Col width="65px" />
      <Col width="65px" />
      <Col width="65px" />
      <Col width="65px" />
      <tr>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">y=x+</font></div>
        </td>
      </tr>
      <tr>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">y=x+</font></div>
        </td>
      </tr>
      <tr>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">y=x+</font></div>
        </td>
      </tr>
      <tr>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">y=x+</font></div>
        </td>
      </tr>
      <tr>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:66px !Important;width:66px;" />
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">y=x+</font></div>
        </td>
      </tr>
      <tr>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">平均值</font></div>
        </td>
        <td ROWSPAN="4" class="X0" style="width:68px;"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">N/A</font></td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">0.004429&nbsp;</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">0.000382&nbsp;</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">0.9990&nbsp;</font></div>
        </td>
        <td COLSPAN="3" ROWSPAN="4" class="X0" style="width:204px;"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">N/A</font></td>
      </tr>
      <tr>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">SD</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">0.000188&nbsp;</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">0.000792&nbsp;</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">0.0006&nbsp;</font></div>
        </td>
      </tr>
      <tr>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">%CV</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">4.24&nbsp;</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">207.33&nbsp;</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">0.06&nbsp;</font></div>
        </td>
      </tr>
      <tr>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">n</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">21</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">21</font></div>
        </td>
        <td class="X0">
          <div style="width:65px"><font style="color:Black;font-family:Times New Roman;font-size:10.0pt;">21</font></div>
        </td>
      </tr>
    </table>
  </body>
</html>

draco1023 added a commit that referenced this issue Jul 18, 2023
@draco1023
Copy link
Owner

请使用0.4.5版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants