Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Missing class file::JobStatistics::pspng

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Missing class file::JobStatistics::pspng


Chronological Thread 
  • From: Andre Daniels <>
  • To:
  • Cc: Andre Daniels <>,
  • Subject: Re: [grouper-users] Missing class file::JobStatistics::pspng
  • Date: Wed, 14 Nov 2018 11:59:59 -0800
  • Ironport-phdr: 9a23:kMB5yBUKs4ApExUDnyug7SWj4f3V8LGtZVwlr6E/grcLSJyIuqrYbBSPt8tkgFKBZ4jH8fUM07OQ7/i/HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba9wIRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W7YhMx/jrhbrhKvqRJ83oDafp2aOeFkca/BZ94XX3ZNUtpTWiFHH4iyb5EPD+0EPetAs4T9oUYBrQGgCgKxCu3g0DlIhn7o0q0+yOQqDAbL0xYmH90TqnTbstf4OaUQXO2u0anH0S7DYO9M1Tjj9YfIbwksrPeRVrx+dsrRzFMgFwLDjliIpozlJTSV1vkVs2eF9epsT/igi3Y/qwx3vzOhxd8sh5HXio8U1lzJ9yB0wIg2KNKjVEJ2ZNGpHZhRuiyVMoZ6XN8uTmRttSkgxLALuZi2dzUQxps93R7QcfmHfpCI4h39UOaRJi91hHd/d7K+gxa+6Fagyu7hWsWt31dFtCRIn9nWunAC0BzT7ceHSv9j8Uu7xTmP0AXT5vlFIUAyi6XbN4YszqAxm5YPs0nOGyH2lUbtg6OKc0gp9eul5uXob7jjuJOQK4p5hwTkPakgmsGzGeE4PRIPX2if9+S8zrrj/UjhTbpQiP05j7PZv47YKMkZpKO0GBJV3Zo46xmjFTupzskXnWQfIFJfZB2Hl5TpO03JIP3gAve/mVOskCpzx//YJL3tG4jNLmPdn7f7ZrZw8EpcyAsozdBD/JJYFKsNIPP1Wk/tqtPYFBk5PBKow+r5EtlyyJ4RWX/cSpOeZajSuFO//O8jJuCKTJITs3DwJ+V23fP2iW4FngoUe6Wz0LMKY2uzWPlqPha3e33p1/4HHX0H9iY3Su3njEbKBTdVa2y/AP1jziwwE4ngAIveENP+yIed1Tu2S8UFLltNDUqBRC/l

Chad,

The upgrade seems to have gone well and I had patched a couple of times but grouper-pspng-2.4.0.jar was not in /opt/app/grouper/grouper.apiBinary/lib/custom as you suspected.

It is there now and gsh but I have a new error:

groovy:000> loaderRunOneJob("CHANGE_LOG_consumer_pspng_au");

ERROR java.lang.NoSuchMethodError:

edu.internet2.middleware.grouper.pspng.LdapGroupProvisionerConfiguration.isBulkGroupSearchingEnabled()Z

        at edu.internet2.middleware.grouper.pspng.LdapGroupProvisioner.fetchTargetSystemGroups (LdapGroupProvisioner.java:450)

        at edu.internet2.middleware.grouper.pspng.Provisioner.fetchTargetSystemGroupsInBatches (Provisioner.java:866)

        at edu.internet2.middleware.grouper.pspng.Provisioner.prepareGroupCache (Provisioner.java:825)

        at edu.internet2.middleware.grouper.pspng.Provisioner.startProvisioningBatch (Provisioner.java:553)

        at edu.internet2.middleware.grouper.pspng.Provisioner.provisionBatchOfItems (Provisioner.java:1657)

        at edu.internet2.middleware.grouper.pspng.PspChangelogConsumerShim.processChangeLogEntries (PspChangelogConsumerShim.java:71)

        at edu.internet2.middleware.grouper.changeLog.ChangeLogHelper.processRecords (ChangeLogHelper.java:245)

        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$5.runJob (GrouperLoaderType.java:638)

        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob (GrouperLoaderJob.java:465)

        at edu.internet2.middleware.grouper.app.loader.GrouperLoader.runOnceByJobName (GrouperLoader.java:1623)

        at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob.invoke (loaderRunOneJob.java:95)

        at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob$invoke.call (Unknown Source)

        at groovysh_evaluate.loaderRunOneJob (groovysh_evaluate:4)



Andre


On Tue, Nov 13, 2018 at 7:34 PM Redman, Chad <> wrote:

The classpaths all look right. The JobStatistics class should be in the pspng jar. Maybe something happened in the upgrade?

 

What is in /opt/app/grouper/grouper.apiBinary/lib/custom? Does it have grouper-pspng-2.4.0.jar (128089 bytes)?

 

What about `jar tvf /opt/app/grouper/grouper.apiBinary/lib/custom/grouper-pspng-2.4.0.jar | grep JobStatistics.class` ?

 

Finally, a deeper dive in gsh.

 

import edu.internet2.middleware.grouper.pspng.FullSyncProvisioner

import edu.internet2.middleware.grouper.pspng.JobStatistics

 

println FullSyncProvisioner.class.getProtectionDomain().getCodeSource().getLocation()

println JobStatistics.class.getProtectionDomain().getCodeSource().getLocation()

 

An updated FullSyncProvisioner class should be in conf/ because of pspng patch 0, and JobStatistics should be in the pspng jar.

 

-Chad

 

 

 

 

From: [mailto:] On Behalf Of Andre Daniels
Sent: Tuesday, November 13, 2018 8:54 PM
To:
Subject: [grouper-users] Missing class file::JobStatistics::pspng

 

Hello,

 

I am trying to upgrade to v2.4 but I am getting an error trying run provision with pspng using gsh.  It seems the java is in the tarballs. Do I need to rebuild grouper or pspng maybe?

 

Thanks,

Andre

 

andre$ find . -name "JobStat*"

./tarballs/grouper.pspng-2.4.0/src/main/java/edu/internet2/middleware/grouper/pspng/JobStatistics.java

 

Detected Grouper directory structure 'api' (valid is api or webapp)

Using GROUPER_HOME:           /opt/app/grouper/grouper.apiBinary

Using GROUPER_CONF:           /opt/app/grouper/grouper.apiBinary/conf

Using JAVA:                   /opt/app/grouper/jdk/bin/java

Using CLASSPATH:              /opt/app/grouper/grouper.apiBinary/conf:/opt/app/grouper/grouper.apiBinary/dist/lib/grouper.jar:/opt/app/grouper/grouper.apiBinary/lib/grouper/*:/opt/app/grouper/grouper.apiBinary/lib/custom/*:/opt/app/grouper/grouper.apiBinary/lib/jdbcSamples/*:/opt/app/grouper/grouper.apiBinary/lib/ant/*:/opt/app/grouper/grouper.apiBinary/lib/test/*:/opt/app/grouper/grouper.apiBinary/dist/lib/test/*:/opt/app/grouper/grouper.apiBinary/src/resources

using MEMORY:                 64m-750m

log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.

log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.

Grouper starting up: version: 2.4.0, build date: 2018/08/23 07:48:38, env: <no label configured>

grouperPatchStatus read from: /opt/app/grouper/grouper.apiBinary/grouperPatchStatus.properties

api patches installed:        0, 1, 2, 3, 4, 5, 6, 7, 8, 9

pspng patches installed:      0

grouper.properties read from: /opt/app/grouper/grouper.apiBinary/conf/grouper.properties

Grouper current directory is: /opt/app/grouper/grouper.apiBinary/bin

log4j.properties read from:   /opt/app/grouper/grouper.apiBinary/conf/log4j.properties

Grouper logs are not using log4j: class org.apache.commons.logging.impl.SLF4JLocationAwareLog

grouper.hibernate.properties: /opt/app/grouper/grouper.apiBinary/conf/grouper.hibernate.properties

grouper.hibernate.properties:

subject.properties read from: /opt/app/grouper/grouper.apiBinary/conf/subject.properties

sources configured in:        subject.properties

subject.properties groupersource id: g:gsa

subject.properties groupersource id: grouperEntities

subject.properties ldap source id:   ucscidm: ldap-main

Type help() for instructions

Groovy Shell (2.5.0-beta-2, JVM: 1.8.0_131)

Type ':help' or ':h' for help.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

groovy:000> :load '/opt/app/grouper/grouper.apiBinary/conf/groovysh.profile'

groovy:000> loaderRunOneJob("CHANGE_LOG_consumer_pspng_au");

ERROR java.lang.NoClassDefFoundError:

edu/internet2/middleware/grouper/pspng/JobStatistics

        at edu.internet2.middleware.grouper.pspng.FullSyncProvisioner$FullSyncQueueItem.<init> (FullSyncProvisioner.java:67)

        at edu.internet2.middleware.grouper.pspng.FullSyncProvisioner.queueGroupForSync (FullSyncProvisioner.java:617)

        at edu.internet2.middleware.grouper.pspng.FullSyncProvisioner.scheduleGroupCleanup (FullSyncProvisioner.java:594)

        at edu.internet2.middleware.grouper.pspng.FullSyncProvisioner.queueAllGroupsForFullSync (FullSyncProvisioner.java:560)

        at edu.internet2.middleware.grouper.pspng.Provisioner.provisionItem (Provisioner.java:1094)

        at edu.internet2.middleware.grouper.pspng.Provisioner.provisionBatchOfItems (Provisioner.java:1670)

        at edu.internet2.middleware.grouper.pspng.PspChangelogConsumerShim.processChangeLogEntries (PspChangelogConsumerShim.java:71)

        at edu.internet2.middleware.grouper.changeLog.ChangeLogHelper.processRecords (ChangeLogHelper.java:245)

        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$5.runJob (GrouperLoaderType.java:638)

        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob (GrouperLoaderJob.java:465)

        at edu.internet2.middleware.grouper.app.loader.GrouperLoader.runOnceByJobName (GrouperLoader.java:1623)

        at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob.invoke (loaderRunOneJob.java:95)

        at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob$invoke.call (Unknown Source)

        at groovysh_evaluate.loaderRunOneJob (groovysh_evaluate:4)

--

Andre Daniels 

Sr. Developer/Security Analyst

University of California Santa Cruz

(831) 459-1980



--
Andre Daniels 
Sr. Developer/Security Analyst
University of California Santa Cruz
(831) 459-1980



Archive powered by MHonArc 2.6.19.

Top of Page