Skip to Content.
Sympa Menu

grouper-dev - New question re grouper-api-1.2.1rc1

Subject: Grouper Developers Forum

List archive

New question re grouper-api-1.2.1rc1


Chronological Thread 
  • From: Joy Veronneau <>
  • To: Grouper Dev <>
  • Subject: New question re grouper-api-1.2.1rc1
  • Date: Mon, 26 Nov 2007 15:51:29 -0500

Hi Gary et al,

You were correct, I was using the wrong ehcache library.

Now I am getting a different error :(

My code looks like this:

l.info("findbyID");
subj = SubjectFinder.findById(sSubjectName) ;
gprSession = GrouperSession.start(subj) ;

// stat at root
l.info("findroot");
gprStem = StemFinder.findRootStem(gprSession) ;

// make cu stem
l.info("add cu stem");
gprStem.addChildStem("cu", "Cornell University") ;
l.info("create stem: cu") ;

This code runs after I have done the db-init.

The error is:
2007-11-26 15:32:33,798 ERROR: edu.internet2.middleware.grouper.GrouperRuntimeException: error initializing WheelNamingResolver: null

which I am getting on this line:
gprStem.addChildStem("cu", "Cornell University") ;

It looks like there were some changes to that part of the api so I thought I would write to you again to see if you have any ideas?

I also tried to create a stem with gsh. I get this:
jv11% ext/bin/gsh.sh
gsh-0.1.1 0% addRootStem("etc", "Grouper Administration")
// Error: unable to evaluate command: Sourced file: inline evaluation of: ``addRootStem("etc", "Grouper Administration");'' : Error invoking compiled command: : Error in compiled command: java.lang.ExceptionInInitializerError


Thanks

Joy


On Nov 22, 2007, at 4:20 AM, GW Brown, Information Systems and Computing wrote:

Hi Joy,

The error is occurring on the line:

this.mgr = new CacheManager( this.getClass().getResource("/ grouper.ehcache.xml") );

which should call

public CacheManager(URL configurationURL)

in ehcache-1.3.0.jar

Is there any chance you have a different ehcache implementation on the class path?

Gary

--On 21 November 2007 17:15 -0500 Joy Veronneau <> wrote:

Hi,

We've written a little java app here to initialize to bootstrap the db
with some basic stems/groups.

I am trying it with the new grouper.jar I built from 1.2.1rc1 and I get
this error (see below).

I am wondering if I need to modify the java app or if there is some
reconfiguration I need to do? I think I have got all the usual config
files and jars correct.

Happy Thanksgiving!

Joy
----------------------

Exception in thread "main" java.lang.IllegalAccessError: tried to access
method net.sf.ehcache.CacheManager.<init>(Ljava/net/URL;)V from class
edu.internet2.middleware.grouper.cache.EhcacheController
at edu .internet2 .middleware
.grouper.cache.EhcacheController.initialize(EhcacheController.java: 86)
at edu .internet2 .middleware
.grouper.cache.EhcacheController.<init>(EhcacheController.java:44)
at edu .internet2
.middleware .grouper.subj.CachingResolver.<init>(CachingResolver.java:52)
at edu .internet2 .middleware .grouper
.subj .SubjectResolverFactory.getInstance(SubjectResolverFactory.java:44)
at edu .internet2
.middleware.grouper.SubjectFinder.getResolver(SubjectFinder.java:309)
at edu .internet2
.middleware .grouper.SubjectFinder.findRootSubject(SubjectFinder.java: 294)
at edu .internet2
.middleware.grouper.RegistryInstall.main(RegistryInstall.java:33)
at edu.cornell.cit.grouper.Import.main(Import.java:76)




----------------------
GW Brown, Information Systems and Computing





Archive powered by MHonArc 2.6.16.

Top of Page