There appears to be a bug in R1.3.1 of the Health Vault Java SDK.
I successfully managed to write AppSpecific data to Health Vault (verified it using the Microsoft web interface) but having issues retrieving it and I think it's a bug in the com.microsoft.hsg.thing.oxm.jaxb.thing.TypeManager class.
Using thing.getData() for an AppSpecific type ID, I received a NullPointerException in Thing.java. It appears that the "String types" array in TypeManager.java is referencing the wrong class for the AppSpecific type ID. The mapping shows:
however the actual class name in the com.microsoft.hsg.thing.oxm.jaxb.application package is "AppSpecific".
I changed the line above as follows and it seems to be working:
Can this be updated in the SDK?