legacy-knowledge-base
公開されました Sep. 10, 2025

Amazon S3 - レポートの生成により、マルチパート アップロードの失敗エラーが発生する

written-by

Phil Chapman

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay 6.2 および Amazon S3 でレポートを生成できない
  • ヒット マルチパート アップロード エラー CSV ファイル作成時

    シナリオ - 次のエラーが発生する可能性があります。
    multipart upload failed

Environment

  • Liferay ポータル 6.2

解決策

これは、空のファイル (0 バイト) をアップロードするときの S3 API の既知の動作です。 参照: https://github.com/aws/aws-sdk-php/issues/1649

1. この回避策には、Jasper Reports の構成を微調整することが含まれます。 空のファイルを生成するよりも、空のセクションまたはデータのないセクションを作成することをお勧めします。

レポート テンプレートの場合、属性 "
When No Data Type" を "No Data Section" または "All Sections No Detail" に設定します。

スクリーンショットは Jaspersoft Studio 6.9.0 を使用

ジャスパー.PNG

2. データ定義ファイルで、対応するコンポーネントを <jasperReport> タグに追加します。

whenNoDataType="AllSectionsNoDetail"
または
whenNoDataType="NoDataSection"

* <noData></noData> タグにはさらに属性を追加できます。 以下に例を示します。

<noData>
<band height="10">
<staticText>
<reportElement x="" y="" width="" height="" uuid=""/>
<box>
<bottomPen lineWidth="" lineColor=""/>
</box>
<text><![CDATA[message here]]></text>
</staticText>
</band>
</noData>


追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base