Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] build fails latest co

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] build fails latest co


Chronological Thread 
  • From: Mark Weber <>
  • To: Tom Barton <>
  • Cc:
  • Subject: Re: [grouper-users] build fails latest co
  • Date: Thu, 28 Sep 2006 13:36:45 -0500

that must be fixed in HEAD version of the API, because I didn't have any troubles building the API. It was in the UI. with GrouperHelper.java. I'm assuming I should I make the same changes in the UI to static calls?

Also, do you have any preference as to how these fixes get communicated back to the core developers. Should I create diff's and send those along? Or should we handle it more formally by communicating the problem and letting the developers fix the problems, check em in etc.?

Just want to know because we are starting our testing so we may have a few of these things pop up.

Thanks,
--Mark

Tom Barton wrote:
Mark,

The issue is the HEAD version of grouper-api, which has a changed interface to the config methods. But it's easy to deal with - replace occurrences of methods on objects created by GrouperConfig.getInstance() with static calls to the same methods on the GrouperConfig class itself.

When I encountered this earlier this month, there were only two instances needing change, both in LowLevelGrouperCapableAction.java. I've attached the diff to fix it.

Tom

Mark Weber wrote:
latest UI cvs build fails to compile.
--Mark

details:

-compileGrouper:
[javac] Compiling 2 source files to /home/mgweber/g2/dist/grouper/WEB-INF/classes
[javac] /home/mgweber/g2/grouper-ui/java/src/edu/internet2/middleware/grouper/GrouperHelper.java:2333: cannot find symbol
[javac] symbol : method getInstance()
[javac] location: class edu.internet2.middleware.grouper.GrouperConfig
[javac] GrouperConfig config = GrouperConfig.getInstance();
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED
/home/mgweber/g2/grouper-ui/build.xml:35: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:583: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:119: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:94: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:492: The following error occurred while executing this line:
/home/mgweber/g2/grouper-ui/build.xml:247: Compile failed; see the compiler error output for details.



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

*** LowLevelGrouperCapableAction.java.org 2006-09-11 13:55:54.000000000
-0500
--- LowLevelGrouperCapableAction.java 2006-09-11 13:56:39.000000000 -0500
***************
*** 361,363 ****
if(obj==null) {
!
if("true".equals(GrouperConfig.getInstance().getProperty("groups.wheel.use")))
{
try {
--- 361,363 ----
if(obj==null) {
!
if("true".equals(GrouperConfig.getProperty("groups.wheel.use"))) {
try {
***************
*** 365,367 ****
GrouperSession s =
GrouperSession.start(subj);
!
obj=GroupFinder.findByName(s,GrouperConfig.getInstance().getProperty("groups.wheel.group"));

session.getServletContext().setAttribute("wheelGroup",obj);
--- 365,367 ----
GrouperSession s =
GrouperSession.start(subj);
!
obj=GroupFinder.findByName(s,GrouperConfig.getProperty("groups.wheel.group"));

session.getServletContext().setAttribute("wheelGroup",obj);

--
.Mark G. Weber----------------------Division of Information Technology.
|
University Of Wisconsin - Madison|
|608/263.8945 Room 3159 Computer Science|
`---------------------------------------------------------------------'

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.16.

Top of Page