error to resolve: expected a character buffer object