Thank you Dan,


I think it is a great add-on and very usefull.



Here is another issue - maybe the one already raised?

When trying to remove a permission from a role I get:




        
                java.lang.IllegalArgumentException
        
                No such method ' getName' or 'isName'
        
                
org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:211)
        
                
org.apache.isis.applib.util.ObjectContracts#equals(ObjectContracts.java:78)




        
                java.lang.NoSuchMethodException
        
                java.lang.String.getName()
        
                java.lang.Class#getMethod(Class.java:1622)
        
                
org.apache.isis.applib.util.Clause#getValueOf(ObjectContracts.java:203)
        
                
org.apache.isis.applib.util.ObjectContracts#equals(ObjectContracts.java:78)


Deleting the entire role is not possible because of dependencies in sql tables 
(?)
Tyring to do that I get:



        
                Unable to save changes. Does similar data already exist, or has 
referenced data been deleted?: Cannot delete or update a parent row: a foreign 
key constraint fails (`isis`.`IsisSecurityApplicationPermission`, CONSTRAINT 
`IsisSecurityApplicationPermission_FK1` FOREIGN KEY (`roleId`) REFERENCES 
`IsisSecurityApplicationRole` (`id`))
        
                �
        
                grtz Johan

Um, not sure. Another issue was also raised on this module, so I'll look at 
this one and that tomorrow. The good news is that, since this is an isisaddon, 
if there is an issue it'll be quick (once fixed) to push out an update. Dan On 
22 October 2014 15:50,  wrote: > Hi Dan, > > > > By taking out the devutils I 
got my app working. > > But when trying to modify the Regular-User Role I get: 
> > > > > > java.lang.NullPointerException > > > > > 
org.isisaddons.module.security.app.feature.ApplicationFeatureViewModel#viewModelClassFor(ApplicationFeatureViewModel.java:59)
 > > > 
org.isisaddons.module.security.app.feature.ApplicationFeatureViewModel#newViewModel(ApplicationFeatureViewModel.java:47)
 > > > > Am I missing something again? > > > > Grtz Johan > > > > > The app 
needs to run against Isis 1.7.0. > > Unfortunately (in implementing @ViewModel) 
I broke backward compatibility > in DomainObjectContainer: > > 
java.lang.NoSuchMethodError: org.apache.isis.applib.DomainObjectContainer. > 
newViewModelInstance(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; > > 
See the migration notes [2]; should be straightforward. > > HTH > Dan > > [2] 
http://isis.apache.org/core/release-notes/migrating-to-1.7.0.html > > > > > > 
On 22 October 2014 11:01, wrote: > > > Oops... > > > > now I get the following 
when using for instance 'me' or 'all users' or > any > > service: > > > > > > > 
> > > > > org.apache.wicket.WicketRuntimeException > > > > Error attaching this 
container for rendering: > > [WebMarkupContainer [Component id = body]] > > > > 
> > > 
org.apache.wicket.MarkupContainer#onBeforeRenderChildren(MarkupContainer.java:1696)
 > > > > > > org.apache.wicket.Component#onBeforeRender(Component.java:3863) > 
> > > > > org.apache.wicket.Component#internalBeforeRender(Component.java:935) 
> > > > > > org.apache.wicket.Component#beforeRender(Component.java:1003) > > > 
> > > > 
org.apache.wicket.MarkupContainer#onBeforeRenderChildren(MarkupContainer.java:1684)
 > > > > > > > > > > > > > > > > 
org.apache.isis.core.metamodel.exceptions.MetaModelException > > > > 
java.lang.NoSuchMethodError: > > > 
org.apache.isis.applib.DomainObjectContainer.newViewModelInstance(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
 > > > > > > > 
org.apache.isis.core.commons.lang.ThrowableExtensions#throwWithinIsisException(ThrowableExtensions.java:60)
 > > > > > > > 
org.apache.isis.core.metamodel.facets.actions.interaction.ActionInvocationFacetForInteractionAbstract#internalInvoke(ActionInvocationFacetForInteractionAbstract.java:376)
 > > > > > > > > etc > > > > > > > > Did I overlook something else? > > > > > > 
> > > > Compiled against Java 7; you are presumably using JDK6. > > > > Cheers 
> > Dan > > > > [1] > > > > > 
http://stackoverflow.com/questions/10382929/unsupported-major-minor-version-51-0
 > > > > > > On 22 October 2014 10:12, wrote: > > > > > Hi, > > > > > > > > > > 
> > I am trying to incorpate the security add-on following Dan's video. > > > > 
> > I get this ERROR: > > > > > > > > > [EnvironmentLoader main ERROR] Shiro 
environment > > > initialization failed > > > > > > 
java.lang.UnsupportedClassVersionError: > > > 
org/isisaddons/module/security/shiro/IsisModuleSecurityRealm : > > Unsupported 
> > > major.minor version 51.0 > > > > > > > > > > > > What could be the 
problem? > > > > > > > > > > > > Greetz (from China), Johan > > > > > > > > > > 
> > > > > > > >

        �

Reply via email to