Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

NPE in JavaAdpater

Avatar

Level 2

Hello all,

This is a more precise question than my other one : http://forums.adobe.com/message/3462732#3462732

Can someone tell me what the causes can be that I get a NullPointer Exception in  flex.data.adapters.JavaAdapter which ships with Adobe LCDS 3.1?

Log :

I really need to go on on this one.

The other question is left open to be able to post the entire solution when it is done

Thank you in advance!

2 Replies

Avatar

Level 3

Hi

Looks like the DataServiceTransaction is null.

Before you begin interacting with a DMS destination, you need to start a DataServiceTransaction using DST.begin() http://help.adobe.com/en_US/LiveCycleDataServicesES/3.1/Javadoc/flex/data/DataServiceTransaction.htm...

After you are done, you should use commit() or rollback() to finish the transaction as applicable.

Regards,

Ashish Vashisht

Avatar

Level 2

[Ashish Vashisht : reply to this so that I can give you the correct answer points]

This was the problem, effectively. I had to code a bit more to get it working (compared to the doc examples...) :

Super-thanks, anyways!