Hibernate-Spatial 5.4+ has invalid endian flag issue when save to postgresql

I am working with PostgreSQL 9.1-901-1.jdbc4, hibernate-spatial 5.4.0
I try to save a Point to postgresql table(v 10.10) with postgis(v 2.4) extension. But I am getting the follow error
“hibernate Invalid endian flag value encountered”
However I tried, it doesn’t work.
When I switch the hibernate-spatial to 5.3+, it works.
I think you might have bug with your latest api. Please review that.
Thank you