Subject: Exception for Blob property


Hi Andi, Dan,

I have another issue with Blob's on 1.16.2. If an action called using RO
interface returns a null Blob I get a NPE. I believe somebody noticed
already because when I look at [1] there has been taken care of this
condition. When the action returns a non null value I get an exception
on [2].

Furthermore retrieving a Blob value from an entity directly using a
query like 'tq.executeResultUnique(Blob.class, true, cand.logo)' (action
called trough RO) is not solved by copying the files you mentioned
before. In that case I get an exception:

Creation of SQLExpression for mapping
"org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisBlobMapping"
caused error
Unable to create SQLExpression for mapping of type
"org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisBlobMapping"
since not supported
org.datanucleus.exceptions.NucleusException: Unable to create
SQLExpression for mapping of type
"org.apache.isis.objectstore.jdo.datanucleus.valuetypes.IsisBlobMapping"
since not supported

Any workaround for this too? ;-) Are these known issues or do you want
me to raise an issue for these?

Thanks,
Erik

[1]
https://github.com/apache/isis/blob/master/core/applib/src/main/java/org/apache/isis/schema/utils/CommonDtoUtils.java#L263
[2]
https://github.com/apache/isis/blob/master/core/viewer-restfulobjects-rendering/src/main/java/org/apache/isis/viewer/restfulobjects/rendering/util/OidUtils.java#L51
On 03/14/2018 11:05 AM, Andi Huber wrote: