java.lang.RuntimeException: java.lang.UnsupportedOperationException: You must supply a @OneToMany annotation for roles on class org.mule.galaxy.security.User

MuleSoft JIRA | Todd Wells | 9 years ago
  1. 0

    I replaced my beta1 jar with the beta2 jar and started up. When I tried to log in with admin/admin, I get an big stack trace. I am unable to log in. Status Code: 500 Exception: Stacktrace: java.lang.RuntimeException: java.lang.UnsupportedOperationException: You must supply a @OneToMany annotation for roles on class org.mule.galaxy.security.User at org.mule.galaxy.impl.jcr.UserManagerImpl$1.doInJcr(UserManagerImpl.java:60) at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:76) at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:108) at org.mule.galaxy.impl.jcr.UserManagerImpl.loadUserByUsername(UserManagerImpl.java:47) at org.mule.galaxy.impl.jcr.UserManagerImpl$$FastClassByCGLIB$$cf12993a.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:694) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:629) at org.mule.galaxy.impl.jcr.UserManagerImpl$$EnhancerByCGLIB$$d34a89c2.loadUserByUsername() at org.acegisecurity.providers.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:127) at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:119) at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195) at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:43) at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:74) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:364) at winstone.RequestDispatcher.forward(RequestDispatcher.java:332) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.UnsupportedOperationException: You must supply a @OneToMany annotation for roles on class org.mule.galaxy.security.User at org.mule.galaxy.impl.jcr.CollectionPersister.build(CollectionPersister.java:36) at org.mule.galaxy.impl.jcr.onm.ClassPersister.build(ClassPersister.java:87) at org.mule.galaxy.impl.jcr.onm.AbstractReflectionDao.build(AbstractReflectionDao.java:113) at org.mule.galaxy.impl.jcr.UserManagerImpl$1.doInJcr(UserManagerImpl.java:54) ... 30 more

    MuleSoft JIRA | 9 years ago | Todd Wells
    java.lang.RuntimeException: java.lang.UnsupportedOperationException: You must supply a @OneToMany annotation for roles on class org.mule.galaxy.security.User
  2. 0

    I replaced my beta1 jar with the beta2 jar and started up. When I tried to log in with admin/admin, I get an big stack trace. I am unable to log in. Status Code: 500 Exception: Stacktrace: java.lang.RuntimeException: java.lang.UnsupportedOperationException: You must supply a @OneToMany annotation for roles on class org.mule.galaxy.security.User at org.mule.galaxy.impl.jcr.UserManagerImpl$1.doInJcr(UserManagerImpl.java:60) at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:76) at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:108) at org.mule.galaxy.impl.jcr.UserManagerImpl.loadUserByUsername(UserManagerImpl.java:47) at org.mule.galaxy.impl.jcr.UserManagerImpl$$FastClassByCGLIB$$cf12993a.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:694) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:629) at org.mule.galaxy.impl.jcr.UserManagerImpl$$EnhancerByCGLIB$$d34a89c2.loadUserByUsername() at org.acegisecurity.providers.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:127) at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:119) at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195) at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:43) at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:74) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:364) at winstone.RequestDispatcher.forward(RequestDispatcher.java:332) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.UnsupportedOperationException: You must supply a @OneToMany annotation for roles on class org.mule.galaxy.security.User at org.mule.galaxy.impl.jcr.CollectionPersister.build(CollectionPersister.java:36) at org.mule.galaxy.impl.jcr.onm.ClassPersister.build(ClassPersister.java:87) at org.mule.galaxy.impl.jcr.onm.AbstractReflectionDao.build(AbstractReflectionDao.java:113) at org.mule.galaxy.impl.jcr.UserManagerImpl$1.doInJcr(UserManagerImpl.java:54) ... 30 more

    MuleSoft JIRA | 9 years ago | Todd Wells
    java.lang.RuntimeException: java.lang.UnsupportedOperationException: You must supply a @OneToMany annotation for roles on class org.mule.galaxy.security.User
  3. 0

    Exception cURLing the catalog REST API

    GitHub | 2 years ago | malston
    java.lang.RuntimeException: You must define a @Consumes type on your client method or interface, or supply a default
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception cURLing the catalog REST API

    GitHub | 2 years ago | malston
    java.lang.RuntimeException: You must define a @Consumes type on your client method or interface, or supply a default
  6. 0

    Failure in ActivityLaunch

    Google Groups | 7 years ago | Chris Ross
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.distal.aleboards/com.distal.aleboards.AleBoards}: java.lang.RuntimeException: Binary XML file line #9: You must supply a layout_width attribute.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      java.lang.UnsupportedOperationException: You must supply a @OneToMany annotation for roles on class org.mule.galaxy.security.User

      at org.mule.galaxy.impl.jcr.UserManagerImpl$1.doInJcr()
    2. org.mule.galaxy
      UserManagerImpl$1.doInJcr
      1. org.mule.galaxy.impl.jcr.UserManagerImpl$1.doInJcr(UserManagerImpl.java:60)
      1 frame
    3. org.springmodules.jcr
      JcrTemplate.execute
      1. org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:76)
      2. org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:108)
      2 frames
    4. org.mule.galaxy
      UserManagerImpl.loadUserByUsername
      1. org.mule.galaxy.impl.jcr.UserManagerImpl.loadUserByUsername(UserManagerImpl.java:47)
      1 frame