0

Apache poi 3.7 がデプロイされ、サーバーで次のエラーが発生する環境があります。

例外が発生しました: java.lang.NoSuchFieldError: org.apache.poi.ss.formula.FormulaParser.Term(FormulaParser.java:1431) のインスタンス。. .

main でコードを試すと、正常に動作します

ここに例外が発生する行があります

sumcell.setCellFormula("(H"+frow+"*I"+frow+")+(K"+frow+"*L"+frow+")+M"+frow+"+N"+frow); SUM関数を使ってみましたがエラー

4

1 に答える 1

1

This is covered in the Apache POI FAQ. You have two different copies of Apache POI on your classpath, which doesn't work. You need to ensure you only have one copy, which I'd suggest be POI 3.9 as it has lots of bug fixes since 3.7.

I'd strongly suggest you read through the POI FAQ Entry on NoSuchFieldError and follow the instructions there to track down and remove the duplicate older jar.

于 2013-01-24T07:08:59.543 に答える