cannot export to GeoPackage when GeoServer feature type has Boolean attribute

Description

This issue was already reported here https://osgeo-org.atlassian.net/browse/GEOT-5483

But I'm still seeing the issue with the 18.1 version. I found the error by trying to export a GeoPackage using WFS. My url looks something like this:

https://my.domain.com/geoserver/geonode/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=geonode:ogrgeojson_8b0dc300&maxFeatures=50&outputFormat=geopackage

Here's the stacktrace I'm seeing in the GeoServer logs after enabling the GeoTools developer logging

Environment

GeoServer version 2.12.1
GeoTools version 18.1 (rev 306cf3bdde1bee0110dc1c3ba77819f1e294a45b)

Status

Assignee

Unassigned

Reporter

Marc Cenac

Triage

Fix versions

Affects versions

Priority

Medium
Configure