We imagine the ladder moving from left to right.
The problem here is that objects are not infinitely rigid. We model the barn doors and the ladder as springs. However, we'll model the barn doors are much stiffer springs than the ladder so we can treat them, again, as infinitely rigid.
So we now think of the ladder as a spring. In both the ladder frame and the barn frame the spring is at its natural extension length even though this length is different in the two frames.
In the barns frame the ladder-spring will enter the barn, and there is a span of time when the ladder is wholly contained within the barn. Suppose when this span of time starts both barn doors are closed and remain closed.
After a short period of time the ladder will hit the right wall of the barn and the right end of the ladder spring will stop instantaneously. The left end of the ladder will still keep moving to the right because no forces have yet acted on it.
There will then be a period of time where the size of the ladder is shrinking even more as the right end is stuck against the right barn door, but the left end is still travelling right. However, now the spring is compressing below its equilibrium length so there starts to appear a leftward force slowing down the left end of the ladder.
This is where the picture gets quantitatively fuzzy for me, I don't really know how to describe relativistic springs. I also have a hard time describing accelerations, even in special relativity, since I'm not an expert.
The final state of the system will be a ladder which is not moving and whose right end is stuck against the right wall of the barn and whose left end is stuck against the left wall of the barn. The spring is now compressed because, with the spring at rest, its new equilibrium length is longer than the barn.
How exactly it gets to this state I'm not clear on. In the ladder's frame of reference (which is non-inertial...) it begins at its equilibrium length, it then has a barn wall fly into it at high velocity which must compress it, then it begins to re-expand, but before it can get back to its equilibrium length it gets squished in by the left barn wall from behind.
But this is the story and resolution to the paradox. In short: The ladder-spring crashes into the right wall and a sound wave propagates through the ladder-spring causing it to slow down and compress, with the end result being a compressed spring trapped between the two barn walls.