org.apache.poi.hssf.record.RecordInputStream$LeftoverDataException: Initialisation of record 0x1D left 1 bytes remaining still to be read. at org.apache.poi.hssf.record.RecordInputStream.hasNextRecord(RecordInputStream.java:
156) at org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:
231) at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:
443) ...
What I have done for the moment is modify the hasNextRecord() method of the RecordInputStream>But perhaps an experienced POI developer will have a better>
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook at Main.main(Main.java:
10) at SMain.main(SMain.java:
6)
Caused by: java.lang.ClassNotFoundException: org.apache.poi.hssf.usermodel.HSSFWorkbook
at java.net.URLClassLoader.findClass(URLClassLoader.java:
381) at java.lang.ClassLoader.loadClass(ClassLoader.java:
424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
331) at java.lang.ClassLoader.loadClass(ClassLoader.java:
357) ...
2 more
说明并没有找到poi的信息。
而如果调用succ()函数,则不报错正常执行。
public>
public static void main(String[] args) { Main.succ();
}
You must make it clear the the file has been changed. The easiest way is to simply add your copyright after the original ones:
Modifications copyright (C)
2013 <your company/name> If you did the modifications on behalf of your company, then that is in most cases also the name that you must put on the copyright notice
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing
permissions and limitations under the License.
====================================================================
*/
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets
"[]"
replaced with your own>'t include the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or> same "printed page" as the copyright notice for easier
identification within third-party archives.
Apache POI includes subcomponents with separate copyright notices and
license terms. Your use of these subcomponents is subject to the terms
and conditions of the following licenses:
Office Open XML schemas (ooxml
-schemas-1.1.jar)
The Office Open XML schema definitions used by Apache POI are
a part of the Office Open XML ECMA Specification (ECMA
-376, [1]). As defined in section
9.4 of the ECMA bylaws [2], this specification is available to all interested parties without restriction:
.......
.......