grouper-users - Re: [grouper-users] RE: Still having trouble getting WS-SCIM to work.
Subject: Grouper Users - Open Discussion List
List archive
- From: Vivek Sachdeva <>
- To: Bryan Wooten <>
- Cc: "" <>
- Subject: Re: [grouper-users] RE: Still having trouble getting WS-SCIM to work.
- Date: Wed, 13 Jun 2018 09:27:07 -0700
- Ironport-phdr: 9a23:mw+KnhKbdRfF4qK5/dmcpTZWNBhigK39O0sv0rFitYgfI/zxwZ3uMQTl6Ol3ixeRBMOHs68C07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwVFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QKsqUjq+8ahkVB7oiD8GNzEn9mHXltdwh79frB64uhBz35LYbISTOfFjfK3SYMkaSHJDUcZfVyJPDICyYZYRAeUdJutYtZXxqkEUoBeiGQWhBuXiwSJIiH/s2q061vwsHg7H3Aw+Ad0Os2nfosjvO6gOUeC60bfHzSvZYPhL3jry9pLIcg4gofGSQ71wctHRxlMzGAPFk1qft5LlMCmO2+QCtmiU9etgVea1h2E7rAFxpyGiy8ExgYfHgYIVz0rL9SR/wIstKt24Ukl7YcO8EJROrSGWLZF5Qts6Q21wpCY6yqcGtoChcycX0pgn3QPfa/qff4iH+BLjU/uRIS9mi3J/Yr6+iQ2y/VCgyu3gSsm0yEtGojddktnWsXACywLc6tOcSvt65EetwzSP2BrN6u5eOUw0iLbbK58lwrIqkJocr1jDEynrk0v1lK+bblso9+m05+nlZ7jmqJyROJRohgz7PakihtCzDvk9PwcSQ2SW/eGx2bj98UD3XrlHiOA9nLPDv5DAP8sbo7a0Aw9L3YYn7BayFzKm384ZnXkDNV5FYRGHg5TwN1DBPvz1A+mzj06jkDdswPDGMbnhDYvXInffl7fheK5x609ayAUt0dBS/4xYB7AdLP/xX0Lxut/VAQQlPwGxzOvrFMlx2Z4bVG2THqOUNKbfvFqW6u8hPeWAfIoVtyz8K/gh6f7ul3g5mVoFcKa3x5sXdnG4Hup4LEWaenrjmMsOEWcXsQUgUuzlkkaPUTFWZ3moXqI84is3B56hDYfGXoytmqCO3D+nHp1KYWBLEl+MEW3vd4WZQ/cDdjiSLtZ8kjwfS7ehUZQh2AqqtA/70LpnMvHU9jMCuZLi0th1+/PclQs09TNqE8SRzXuBQH9pkWMVFHcK2/VVu110zB+81q9kjvoQQdZJ9vpPFBg9MoLRycRnF9nyHA/NY4HaZkyhR4CYAC88TZoKytQOb0tjEp32gwrd3jSnAKQcnLyHCYI92q3Z1nn1Yc16ziCVh+Eak1A6T54XZiWdjall+l2WXtaRng==
All,
After letting the ws-scim tomee idle for a while we now get this error.
We ran gsh –registry –check and it said everything is correct. Gsh can find users and groups as can the ui.
Again, any help appreciated.
ype Exception report
message Database schema ddl is not up to date, or has issues, check logs and config ddl in grouper.properties and run: gsh -registry -check,
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.RuntimeException: Database schema ddl is not up to date, or has issues, check logs and config ddl in grouper.properties and run: gsh -registry -check,
Problem in HibernateSession: null,
Exception in uniqueResult: (class edu.internet2.middleware.
grouper.Member), ByHqlStatic, query: 'from Member as m where m.subjectIdDb = :sid and m.subjectSourceIdDb = :source and m.subjectTypeId = :type', cacheable: true, cacheRegion: edu.internet2.middleware. grouper.internal.dao.hib3. Hib3MemberDAO.FindBySubject, tx type: null, tx type: nullBind var[0]: 'Param (class java.lang.String): 'sid'->'GrouperSystem', Bind var[1]: 'Param (class java.lang.String): 'type'->'application'Bind var[2]: 'Param (class java.lang.String): 'source'->'g:isa', edu.internet2.middleware.
grouper.hibernate. HibernateSession.<init>( HibernateSession.java:176) edu.internet2.middleware.
grouper.hibernate. HibernateSession._internal_ hibernateSession( HibernateSession.java:467) edu.internet2.middleware.
grouper.hibernate. HibernateSession. callbackHibernateSession( HibernateSession.java:659) edu.internet2.middleware.
grouper.hibernate.ByHqlStatic. uniqueResult(ByHqlStatic.java: 339) edu.internet2.middleware.
grouper.internal.dao.hib3. Hib3MemberDAO.findBySubject( Hib3MemberDAO.java:296) edu.internet2.middleware.
grouper.internal.dao.hib3. Hib3MemberDAO.findBySubject( Hib3MemberDAO.java:202) edu.internet2.middleware.
grouper.MemberFinder.internal_ findOrCreateBySubject( MemberFinder.java:401) edu.internet2.middleware.
grouper.MemberFinder.internal_ findBySubject(MemberFinder. java:318) edu.internet2.middleware.
grouper.GrouperSession.start( GrouperSession.java:487) edu.internet2.middleware.
grouper.GrouperSession. startRootSession( GrouperSession.java:427) edu.internet2.middleware.
grouper.GrouperSession. startRootSession( GrouperSession.java:445) edu.internet2.middleware.
grouper.ws.scim.TierFilter. retrieveSubjectFromRemoteUser( TierFilter.java:79) edu.internet2.middleware.
grouper.ws.scim.TierFilter. doFilter(TierFilter.java:116) note The full stack trace of the root cause is available in the Apache Tomcat (TomEE)/8.5.2 (7.0.0) logs.
Bryan Wooten
From: <> On Behalf Of Bryan Wooten
Sent: Tuesday, June 12, 2018 9:51 AM
To:
Subject: [Ext] [grouper-users] Still having trouble getting WS-SCIM to work.
******************************
************************
WARNING: Stop. Think. Read. This is an external email.
****************************************************** We have made some progress, but we had to make 2 manual changes after the install.
1. We had to manually add ojdbc_g.jar to the lib directory
2. Add some ehcache.xml we found on some Grouper github location
We are using tomcat Basic Auth for now. We are logging in as GrouperSystem (setup in tomcat-users.xml)
When we try an hit /grouper-ws-scim/v2/Schemas/
Everything was installed with the installer and we have verified our grouper.hibernate.properties are set correctly.
We see this stack trace grouper_error.log: Any suggestions? Thanks.
2018-06-12 09:14:31,032: [http-nio-9090-exec-1] FATAL Hib3DAO.
initHibernateIfNotInitted(236) - - unable to initialize hibernate: Unable to create requested service [org.hibernate.cache.spi.R egionFactory]
org.hibernate.service.spi.
ServiceException: Unable to create requested service [org.hibernate.cache.spi. RegionFactory] at org.hibernate.service.
internal. AbstractServiceRegistryImpl. createService( AbstractServiceRegistryImpl. java:244) at org.hibernate.service.
internal. AbstractServiceRegistryImpl. initializeService( AbstractServiceRegistryImpl. java:208) at org.hibernate.service.
internal. AbstractServiceRegistryImpl. getService( AbstractServiceRegistryImpl. java:189) at org.hibernate.boot.internal.
MetadataBuilderImpl$ MetadataBuildingOptionsImpl.< init>(MetadataBuilderImpl. java:663) at org.hibernate.boot.internal.
MetadataBuilderImpl.<init>( MetadataBuilderImpl.java:127) at org.hibernate.boot.
MetadataSources. getMetadataBuilder( MetadataSources.java:135) at org.hibernate.cfg.
Configuration. buildSessionFactory( Configuration.java:655) at org.hibernate.cfg.
Configuration. buildSessionFactory( Configuration.java:724) at edu.internet2.middleware.
grouper.internal.dao.hib3. Hib3DAO. initHibernateIfNotInitted( Hib3DAO.java:223) at edu.internet2.middleware.
grouper.internal.dao.hib3. Hib3DAO.session(Hib3DAO.java: 322) at edu.internet2.middleware.
grouper.internal.dao.hib3. Hib3DAOFactory.getSession( Hib3DAOFactory.java:186) at edu.internet2.middleware.
grouper.hibernate. HibernateSession.<init>( HibernateSession.java:241) at edu.internet2.middleware.
grouper.hibernate. HibernateSession._internal_ hibernateSession( HibernateSession.java:467) at edu.internet2.middleware.
grouper.hibernate. HibernateSession. callbackHibernateSession( HibernateSession.java:659) at edu.internet2.middleware.
grouper.hibernate. ByCriteriaStatic.list( ByCriteriaStatic.java:303) at edu.internet2.middleware.
grouper.ddl.GrouperDdlUtils. retrieveDdlsFromDb( GrouperDdlUtils.java:1957) at edu.internet2.middleware.
grouper.ddl.GrouperDdlUtils. retrieveDdlsFromCache( GrouperDdlUtils.java:1520) at edu.internet2.middleware.
grouper.ddl.GrouperDdlUtils. retrieveObjectNames( GrouperDdlUtils.java:1794) at edu.internet2.middleware.
grouper.ddl.GrouperDdlUtils. bootstrapHelper( GrouperDdlUtils.java:438) at edu.internet2.middleware.
grouper.ddl.GrouperDdlUtils. bootstrap(GrouperDdlUtils. java:340) at edu.internet2.middleware.
grouper.misc.GrouperStartup. startup(GrouperStartup.java: 251) at edu.internet2.middleware.
grouper.subj. SubjectResolverFactory. getInstance( SubjectResolverFactory.java: 58) at edu.internet2.middleware.
grouper.SubjectFinder. getResolver(SubjectFinder. java:878) at edu.internet2.middleware.
grouper.SubjectFinder. findRootSubject(SubjectFinder. java:863) at edu.internet2.middleware.
grouper.GrouperSession. startRootSession( GrouperSession.java:427) at edu.internet2.middleware.
grouper.GrouperSession. startRootSession( GrouperSession.java:445) at edu.internet2.middleware.
grouper.ws.scim.TierFilter. retrieveSubjectFromRemoteUser( TierFilter.java:79) at edu.internet2.middleware.
grouper.ws.scim.TierFilter. doFilter(TierFilter.java:116) at org.apache.catalina.core.
ApplicationFilterChain. internalDoFilter( ApplicationFilterChain.java: 192) at org.apache.catalina.core.
ApplicationFilterChain. doFilter( ApplicationFilterChain.java: 165) at org.apache.catalina.core.
StandardWrapperValve.invoke( StandardWrapperValve.java:198) at org.apache.catalina.core.
StandardContextValve.invoke( StandardContextValve.java:108) at org.apache.tomee.catalina.
OpenEJBValve.invoke( OpenEJBValve.java:44) at org.apache.catalina.
authenticator. AuthenticatorBase.invoke( AuthenticatorBase.java:632) at org.apache.catalina.core.
StandardHostValve.invoke( StandardHostValve.java:140) at org.apache.catalina.valves.
ErrorReportValve.invoke( ErrorReportValve.java:79) at org.apache.catalina.valves.
AbstractAccessLogValve.invoke( AbstractAccessLogValve.java: 620) at org.apache.catalina.core.
StandardEngineValve.invoke( StandardEngineValve.java:87) at org.apache.catalina.connector.
CoyoteAdapter.service( CoyoteAdapter.java:349) at org.apache.coyote.http11.
Http11Processor.service( Http11Processor.java:1102) at org.apache.coyote.
AbstractProcessorLight. process( AbstractProcessorLight.java: 66) at org.apache.coyote.
AbstractProtocol$ ConnectionHandler.process( AbstractProtocol.java:788) at org.apache.tomcat.util.net.
NioEndpoint$SocketProcessor. run(NioEndpoint.java:1485) at java.util.concurrent.
ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1149) at java.util.concurrent.
ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:624) at org.apache.tomcat.util.
threads.TaskThread$ WrappingRunnable.run( TaskThread.java:61) at java.lang.Thread.run(Thread.
java:748) Caused by: org.hibernate.
HibernateException: could not instantiate RegionFactory [edu.internet2.middleware. grouper.cache. GrouperEhcacheRegionFactory] at org.hibernate.cache.internal.
RegionFactoryInitiator. initiateService( RegionFactoryInitiator.java: 84) at org.hibernate.cache.internal.
RegionFactoryInitiator. initiateService( RegionFactoryInitiator.java: 29) at org.hibernate.boot.registry.
internal. StandardServiceRegistryImpl. initiateService( StandardServiceRegistryImpl. java:88) at org.hibernate.service.
internal. AbstractServiceRegistryImpl. createService( AbstractServiceRegistryImpl. java:234) ... 46 more
Caused by: org.hibernate.boot.registry.
selector.spi. StrategySelectionException: Unable to resolve name [edu.internet2.middleware. grouper.cache. GrouperEhcacheRegionFactory] as strategy [org.hibernate.cache.spi. RegionFactory] at org.hibernate.boot.registry.
selector.internal. StrategySelectorImpl. selectStrategyImplementor( StrategySelectorImpl.java:113) at org.hibernate.cache.internal.
RegionFactoryInitiator. initiateService( RegionFactoryInitiator.java: 71) ... 49 more
2018-06-12 09:14:31,034: [http-nio-9090-exec-1] ERROR GrouperDdlUtils.
retrieveDdlsFromCache(1533) - - maybe the grouper_ddl table isnt there... if that is the reason its ok. info level logging will show underlying reason.unable to initialize hibernate: Unable to create requested service [org.hibernate.cache.spi. RegionFactory], Problem in HibernateSession: null,
Exception in list: (class edu.internet2.middleware.
grouper.app.loader.db. Hib3GrouperDdl), ByCriteriaStatic, persistentClass: 'class edu.internet2.middleware. grouper.app.loader.db. Hib3GrouperDdl', criterions: null', cacheable: null, cacheRegion: null, entityName: null, tx type: null 2018-06-12 09:14:31,094: [http-nio-9090-exec-1] ERROR GrouperDdlUtils.
bootstrapHelper(486) - - Grouper ddl object type 'Grouper' has dbVersion: 0 and java version: 30 2018-06-12 09:14:51,608: [http-nio-9090-exec-1] ERROR GrouperStartup.startup(299) - - Couldnt startup grouper: Problem in HibernateSession: null
java.lang.
NullPointerException: Problem in HibernateSession: null at edu.internet2.middleware.
grouper.internal.dao.hib3. Hib3DAO.session(Hib3DAO.java: 323) at edu.internet2.middleware.
grouper.internal.dao.hib3. Hib3DAOFactory.getSession( Hib3DAOFactory.java:186) at edu.internet2.middleware.
grouper.hibernate. HibernateSession.<init>( HibernateSession.java:241) at edu.internet2.middleware.
grouper.hibernate. HibernateSession._internal_ hibernateSession( HibernateSession.java:467) at edu.internet2.middleware.
grouper.hibernate. HibernateSession. callbackHibernateSession( HibernateSession.java:659) at edu.internet2.middleware.
grouper.hibernate.BySqlStatic. select(BySqlStatic.java:138) at edu.internet2.middleware.
grouper.hibernate.BySqlStatic. select(BySqlStatic.java:124) at edu.internet2.middleware.
grouper.ddl.GrouperDdl. addTableIndices(GrouperDdl. java:13233) at edu.internet2.middleware.
grouper.ddl.GrouperDdl.access$ 3700(GrouperDdl.java:103) at edu.internet2.middleware.
grouper.ddl.GrouperDdl$25. updateVersionFromPrevious( GrouperDdl.java:1836) at edu.internet2.middleware.
grouper.ddl.GrouperDdlUtils. upgradeDatabaseVersion( GrouperDdlUtils.java:2104) at edu.internet2.middleware.
grouper.ddl.GrouperDdlUtils. bootstrapHelper( GrouperDdlUtils.java:631) at edu.internet2.middleware.
grouper.ddl.GrouperDdlUtils. bootstrap(GrouperDdlUtils. java:340) at edu.internet2.middleware.
grouper.misc.GrouperStartup. startup(GrouperStartup.java: 251) at edu.internet2.middleware.
grouper.subj. SubjectResolverFactory. getInstance( SubjectResolverFactory.java: 58) at edu.internet2.middleware.
grouper.SubjectFinder. getResolver(SubjectFinder. java:878) at edu.internet2.middleware.
grouper.SubjectFinder. findRootSubject(SubjectFinder. java:863) at edu.internet2.middleware.
grouper.GrouperSession. startRootSession( GrouperSession.java:427) at edu.internet2.middleware.
grouper.GrouperSession. startRootSession( GrouperSession.java:445) at edu.internet2.middleware.
grouper.ws.scim.TierFilter. retrieveSubjectFromRemoteUser( TierFilter.java:79) at edu.internet2.middleware.
grouper.ws.scim.TierFilter. doFilter(TierFilter.java:116) at org.apache.catalina.core.
ApplicationFilterChain. internalDoFilter( ApplicationFilterChain.java: 192) at org.apache.catalina.core.
ApplicationFilterChain. doFilter( ApplicationFilterChain.java: 165) at org.apache.catalina.core.
StandardWrapperValve.invoke( StandardWrapperValve.java:198) at org.apache.catalina.core.
StandardContextValve.invoke( StandardContextValve.java:108) at org.apache.tomee.catalina.
OpenEJBValve.invoke( OpenEJBValve.java:44) at org.apache.catalina.
authenticator. AuthenticatorBase.invoke( AuthenticatorBase.java:632) at org.apache.catalina.core.
StandardHostValve.invoke( StandardHostValve.java:140) at org.apache.catalina.valves.
ErrorReportValve.invoke( ErrorReportValve.java:79) at org.apache.catalina.valves.
AbstractAccessLogValve.invoke( AbstractAccessLogValve.java: 620) at org.apache.catalina.core.
StandardEngineValve.invoke( StandardEngineValve.java:87) at org.apache.catalina.connector.
CoyoteAdapter.service( CoyoteAdapter.java:349) at org.apache.coyote.http11.
Http11Processor.service( Http11Processor.java:1102) at org.apache.coyote.
AbstractProcessorLight. process( AbstractProcessorLight.java: 66) at org.apache.coyote.
AbstractProtocol$ ConnectionHandler.process( AbstractProtocol.java:788) at org.apache.tomcat.util.net.
NioEndpoint$SocketProcessor. run(NioEndpoint.java:1485) at java.util.concurrent.
ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1149) at java.util.concurrent.
ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:624) at org.apache.tomcat.util.
threads.TaskThread$ WrappingRunnable.run( TaskThread.java:61) at java.lang.Thread.run(Thread.
java:748)
Bryan Wooten
- [grouper-users] Still having trouble getting WS-SCIM to work., Bryan Wooten, 06/12/2018
- [grouper-users] RE: Still having trouble getting WS-SCIM to work., Bryan Wooten, 06/12/2018
- Re: [grouper-users] RE: Still having trouble getting WS-SCIM to work., Vivek Sachdeva, 06/13/2018
- RE: [Ext] Re: [grouper-users] RE: Still having trouble getting WS-SCIM to work., Bryan Wooten, 06/13/2018
- RE: [Ext] Re: [grouper-users] RE: Still having trouble getting WS-SCIM to work., Hyzer, Chris, 06/13/2018
- RE: [Ext] Re: [grouper-users] RE: Still having trouble getting WS-SCIM to work., Bryan Wooten, 06/13/2018
- Re: [grouper-users] RE: Still having trouble getting WS-SCIM to work., Vivek Sachdeva, 06/13/2018
- [grouper-users] RE: Still having trouble getting WS-SCIM to work., Bryan Wooten, 06/12/2018
Archive powered by MHonArc 2.6.19.