We're updating the issue view to help you get more done. 

MSSQL: The stream value is not the specified length. The specified length was 7, the actual length is 0.

Description

After updating Hibernate from 3.6.2 to 4.1.10, I get the following exception:
The stream value is not the specified length. The specified length was 7, the actual length is 0.

Since this happened in the middle of our application I created a sample application to reproduce this.

I had started a forum topic https://forum.hibernate.org/viewtopic.php?f=1&t=1025471&start=0
but nobody answered, probably it was described too vague.
Now with the example project, the issue can be reproduced very easily.

Environment

MSSQL 2008 RC2, Spring 3.0.5, Jenks, jdk1.7.0_21

Status

Assignee

Lukasz Antoniak

Reporter

Flavio Donzé

Components

Fix versions

Affects versions

4.1.0
4.2.0.Final

Priority

Blocker