You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by "Ben.H" <be...@accenturefederal.com> on 2018/11/05 18:22:11 UTC

Issue create a new group with a typeextenstion

I am creating a new group in java.  Like so:

		JPAGroup group = new JPAGroup();
		group.setName(groupName);
		group.setRealm(realm);

		JPATypeExtension extension = new JPATypeExtension();
		extension.setGroup(group); 
		extension.add(anyTypeClassDao.find("application"));
		group.add(extension);

		return groupDao.save(group);

This all saves without an exception.  However, when I go to the group view
page in the console, there is a NPE being thrown.  I have no idea what the
issue is.  When looking in the database; the only difference that I can find
was that the typeextension did not have an anytype_id on the record.  I do
not believe this is the problem as when I manually entered it into the
database I still had the issue.

--
Sent from: http://syncope-user.1051894.n5.nabble.com/