Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Re: Grouper 2.2.2 PSP throws ClassCastException

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Re: Grouper 2.2.2 PSP throws ClassCastException


Chronological Thread 
  • From: Scott Koranda <>
  • To: grouper-users <>
  • Subject: [grouper-users] Re: Grouper 2.2.2 PSP throws ClassCastException
  • Date: Wed, 6 Apr 2016 13:15:34 -0500

> Hi,
>
> I am deploying Grouper 2.2.2 installed using
> grouperInstaller.jar.
>
> I am using OpenJDK 7
>
> # java -version
> java version "1.7.0_95"
> OpenJDK Runtime Environment (IcedTea 2.6.4)
> (7u95-2.6.4-1~deb7u1)
> OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
>
> on a Debian 7 system.
>
> After configuring the PSP when I run this GSH command
>
> ./bin/gsh.sh -psp -calc foo:bar
>
> I see
>
> 2016-04-06 13:49:54,305: [main] ERROR BaseService.loadContext(188) - -
> Configuration was not loaded for psp service, error creating components.
> The root cause of this error was: java.lang.ClassCastException:
> edu.internet2.middleware.psp.ldap.LdapSpmlTarget cannot be cast to
> edu.vt.middleware.ldap.pool.LdapPool
>
> What error in my configuration might cause a
> java.lang.ClassCastException?
>
> Please let me know if the full stack trace would be helpful.
>

The stack trace output to stdout/stderr is

Using GROUPER_HOME: /opt/grouper/grouper.apiBinary-2.2.2
Using GROUPER_CONF: /opt/grouper/grouper.apiBinary-2.2.2/conf
Using JAVA: java
using MEMORY: 64m-750m
Grouper starting up: version: 2.2.2, build date: null, env: <no label
configured>
grouper.properties read from:
/opt/grouper/grouper.apiBinary-2.2.2/conf/grouper.properties
Grouper current directory is: /opt/grouper/grouper.apiBinary-2.2.2
log4j.properties read from:
/opt/grouper/grouper.apiBinary-2.2.2/conf/log4j.properties
Grouper logs are not using log4j: class
org.apache.commons.logging.impl.SLF4JLocationAwareLog
grouper.hibernate.properties:
/opt/grouper/grouper.apiBinary-2.2.2/conf/grouper.hibernate.properties
grouper.hibernate.properties:
grouper@jdbc:mysql://localhost:3306/grouper?CharSet=utf8&useUnicode=true&characterEncoding=utf8
sources.xml read from:
/opt/grouper/grouper.apiBinary-2.2.2/conf/sources.xml
sources.xml groupersource id: g:gsa
sources.xml jdbc source id: COmanage_HC:
grouper@jdbc:mysql://localhost:3306/registry?CharSet=utf8%26characterEncoding=utf8
sources.xml groupersource id: grouperEntities
sources.xml jdbc source id: jdbc: GrouperJdbcConnectionProvider
Exception in thread "main" java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:214)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:144)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:204)
... 2 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'psp': Invocation of init method failed; nested
exception is
edu.internet2.middleware.shibboleth.common.service.ServiceException:
Configuration was not loaded for psp service, error creating components.
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at
edu.internet2.middleware.psp.util.PSPUtil.createSpringContext(PSPUtil.java:92)
at edu.internet2.middleware.psp.Psp.getPSP(Psp.java:177)
at edu.internet2.middleware.psp.PspCLI.<init>(PspCLI.java:110)
at edu.internet2.middleware.psp.PspCLI.main(PspCLI.java:81)
... 7 more
Caused by:
edu.internet2.middleware.shibboleth.common.service.ServiceException:
Configuration was not loaded for psp service, error creating components.
at
edu.internet2.middleware.shibboleth.common.config.BaseService.loadContext(BaseService.java:192)
at
edu.internet2.middleware.shibboleth.common.config.BaseReloadableService.initialize(BaseReloadableService.java:148)
at edu.internet2.middleware.psp.Psp.initialize(Psp.java:2142)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 23 more
Caused by: java.lang.ClassCastException:
edu.internet2.middleware.psp.ldap.LdapSpmlTarget cannot be cast to
edu.vt.middleware.ldap.pool.LdapPool
at
edu.internet2.middleware.psp.ldap.LdapSpmlTarget.onNewContextCreated(LdapSpmlTarget.java:1079)
at
edu.internet2.middleware.shibboleth.common.config.BaseService.loadContext(BaseService.java:174)
at
edu.internet2.middleware.shibboleth.common.config.BaseReloadableService.initialize(BaseReloadableService.java:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:238)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)
at edu.internet2.middleware.psp.Psp.onNewContextCreated(Psp.java:2183)
at
edu.internet2.middleware.shibboleth.common.config.BaseService.loadContext(BaseService.java:174)
... 32 more



Archive powered by MHonArc 2.6.16.

Top of Page