'SQL Java java.lang.String incompatible with [Ljava.lang.Object;
can someone help me with this Exception please and thank you :
java.lang.ClassCastException: java.lang.String incompatible with [Ljava.lang.Object;
String sql = "SELECT b.\"$adaptation\" FROM Address b where FK_AS_STRING('_businessPartner', '/root/Address', b.addressNumber) = ? AND b.bpGoldenId = ? AND b.isStandardAddress = ?";
String addressId = "TT";
String bpGoldenId = "pp";
Query<Tuple> query = dataset.createQuery(sql);
query.setParameter(0, addressId);
query.setParameter(1, bpGoldenId); //Getting error here
query.setParameter(2, true);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|