Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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

Former Community Member

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!