cancel
Showing results for 
Search instead for 
Did you mean: 

NullPointerException: setting value for CMP EJB with 1:n relationship

Former Member
0 Kudos

Hi all,

I have two CMP Entity EJB with relatioship 1:n.

Setting any value for second entity throws NullPointerException

I'm using SAP NWDS 7.0.16

server-side: sap.com/SAP-JEE 7.00 SP16

So far I've seen [this|; thread, discussing the same problem, but as I understood, SPs higher than SP14 should solve this problem.

Any ideas about this?

Renat

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

nitin_mahajan2
Contributor
0 Kudos

Try n:n relation.

Former Member
0 Kudos

Thanks, Nitin!

n:n relation works fine for me, but I'm still wondering if I could use 1:n relation.

Thanks

Renat

nitin_mahajan2
Contributor
0 Kudos

I think it would depend on your implementation design and code, what relation suits you, however without digging into your design it would not be possible to tell why not 1:n and why n:n works.

Regards,

Nitin

Edited by: Nitin Mahajan on May 28, 2009 7:32 PM