cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Aspect get no value in web

chapeaurouge
Champ in-the-making
Champ in-the-making
Hello all,

I am using the webservices to create a document containing the TITLED aspect, and a custom aspect of mine, with 10 properties.

While the document gets created, the aspects get added, my aspect properties values are not being displayed in the web interface (the NamedValue do have the right values in them etc)

Running my code in the Eclipse debugger, once I get to the executing of the CML update (WebServiceFactory.getRepositoryService().update(cml):smileywink:, the debugger tells me that an InvocationTargetException is thrown, with arg0 cause being NullPointerException, containing another nested NPE, etc… This everytime it calls NamedValue class getValues() function on one of my aspect property. There is no details, however… and I have no idea why Smiley Sad Right before that, I can see my variable is populated with the intended data.

Does anyone know what this is?

Thank you.

fred
1 REPLY 1

chapeaurouge
Champ in-the-making
Champ in-the-making
Found out why…

I had this, ie:

paoProps[1] = Utils.createNamedValue(biModel.PROP_PAO_ACCT_DATE, "2007-04-01T00:00:00.000-05:00");

Had to be

paoProps[1] = Utils.createNamedValue(Constants.createQNameString(biModel.NAMESPACE_BI_CONTENT_MODEL, biModel.PROP_PAO_ACCT_DATE)

Works now Smiley Happy