Ben Yaakobi
Ben Yaakobi

Reputation: 1658

WRONGTYPE Operation with Redisson Live Objects

I've upgraded my Redisson library to 3.13.2(from 3.11.1) and since then I keep getting WRONGTYPE Operation against a key holding the wrong kind of value as soon as I perform liveObjectService.persist(reporterObject).

I have the following class:

@Getter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@REntity
public class ReporterObject {
    @RId
    private long id;
    private long rId;
    @RIndex
    @Setter
    private long sId;
    @Setter
    private boolean ac;
    @RIndex
    @Setter
    private Long parId;
    private int type;
    private Long pId;
    @Setter
    private ReporterObject parent; // can be null
    @Setter
    private int n_a = 0;
}

What can be the problem then?

Thanks

Upvotes: 1

Views: 282

Answers (1)

Ben Yaakobi
Ben Yaakobi

Reputation: 1658

As @NikitaKoksharov said, flushing the cache does the trick.

Upvotes: 1

Related Questions