You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var rowMapper = new BeanWrapperRowMapper<Player>();
146
+
rowMapper.setTargetType(Player.class);
147
+
return rowMapper;
148
+
}
149
+
----
150
+
151
+
NOTE: When using the `BeanWrapperRowMapper` with the `StreamingXlsxItemReader` it is required to use the `StaticColumnNameExtractor` to provide the column names for mapping purposes. The reason for this is that we cannot read a specific row while streaming the results.
var rowMapper = new BeanWrapperRowMapper<Player>();
195
+
rowMapper.setTargetType(Player.class);
196
+
return rowMapper;
197
+
}
198
+
----
199
+
131
200
== Frequently Asked Questions
132
201
133
202
=== Not able to open large Excel
134
203
When opening large Excel files or Excel files with large amounts of data in a single cell it might fail with an error
135
204
136
-
```
205
+
[source]
206
+
----
137
207
"Unexpected error Tried to allocate an array of length 162,386,364, but the maximum length for this record type is 100,000,000. If the file is not corrupt or large, please open an issue on bugzilla to request increasing the maximum allowable size for this record type. As a temporary workaround, consider setting a higher override value with IOUtils.setByteArrayMaxOverride()"
138
-
```
208
+
----
139
209
140
-
This is due to the maximum lenght for certain datatypes is limited. To prevent this from happening you can use the `IOUtils.setByteArrayMaxOverride()` method to increase the allowed size. It is however important that this is set before anything POI related has been processed/configured.
210
+
This is due to the maximum lenght for certain datatypes is limited. To prevent this from happening you can use the `IOUtils.setByteArrayMaxOverride()` method to increase the allowed size. It is however important that this is set _before_ anything POI related has been processed/configured.
141
211
142
-
Ideally, when using Spring Boot, you can set this before launching the application or by putting this in a `static {}` initializer block of the Spring Batch job configuration.
212
+
Ideally, when using Spring Boot, you can set this before launching the application or by putting this in a `static {}` initializer block of the Spring Batch job configuration.
0 commit comments