You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members.