See java - "Unexpected invocation state 0" error in Wildfly - Stack Overflow.
Comments suggested it's a bug so I'm posting here to ask about this.