Wrongtype Operation with Redisson Live Objects

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

2

1 Answer

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.