Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Troubles in building grouper-ui-1.2.0-rc1

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Troubles in building grouper-ui-1.2.0-rc1


Chronological Thread 
  • From: "GW Brown, Information Systems and Computing" <>
  • To: Martti Jokipii <>,
  • Subject: Re: [grouper-users] Troubles in building grouper-ui-1.2.0-rc1
  • Date: Thu, 26 Apr 2007 09:55:47 +0100

Martti,

I'm using:

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

on Windows and don't get the error. What OS are you using?

The actual method that is causing the error:

public static List query(String sql) throws Exception

isn't actually used and can safely be removed / commented out. I added the method when I was doing some experimenting and left it in for my convenience.

GrouperHelper originated some time ago as a convenience to allow me to get access to protected methods in the Grouper API - it is in the edu.internet2.middleware.grouper package. I generally don't need to do that any more but it is still useful when developing new features.

Looking at the error message it seems as though your Java instance is interpreting 'HibernateDAO' as a variable rather than as a class. Although it is in the same package it is in a different folder on the classpath - but then so are all the other API classes...

HibernateDAO is also abstract.

In any case, for the time being I suggest you edit GrouperHelper.java and remove the 'public static List query(String sql) throws Exception' method.

Gary



--On 25 April 2007 22:40 +0300 Martti Jokipii
<>
wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

When I run 'ant war' for grouper-ui-1.2.0-rc1, I get the following
error messages:

<clip>
...
- -compileGrouper:
[javac] Compiling 2 source files to
/mnt/src/grouper/rc/ui/grouper-ui-1.2.0-rc1/dist/grouper/WEB-INF/classes
[javac]
/mnt/src/grouper/rc/ui/grouper-ui-1.2.0-rc1/java/src/edu/internet2/middle
ware/grouper/GrouperHelper.java:2779: cannot find symbol
[javac] symbol : variable HibernateDAO
[javac] location: class edu.internet2.middleware.grouper.GrouperHelper
[javac] Session hs = HibernateDAO.getSession();
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED
/mnt/src/grouper/rc/ui/grouper-ui-1.2.0-rc1/build.xml:119: The
following error occurred while executing this line:
/mnt/src/grouper/rc/ui/grouper-ui-1.2.0-rc1/build.xml:94: The
following error occurred while executing this line:
/mnt/src/grouper/rc/ui/grouper-ui-1.2.0-rc1/build.xml:492: The
following error occurred while executing this line:
/mnt/src/grouper/rc/ui/grouper-ui-1.2.0-rc1/build.xml:247: Compile
failed; see the compiler error output for details.

Total time: 6 seconds
</clip>


Any ideas, what causes that?

- - Martti

PS.

% java -version
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)

- --
Martti Jokipii # E-mail:

Tampere University of Technology # Phone: +358 3 3115 2425
Network Administration # GSM: +358 40 849 0804
P.O. Box 692, 33101 Tampere, FINLAND # FAX: +358 3 3115 2172
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRi+uxJiG4xCv5ApJAQJptAP9FWzSgJEJS8WlM9arppvwdjSyjWJFq3I1
lEL6LZG0Xob9EC5c94PbPlDb7a1kQmHHxiaWVZjy7tY64mZo7KfHF3lhHyeoMY6x
cu/rH6yvXzfHui9FKFMWCyGvm76TnfMErS0bfw8RrkInTEeOhm+QoqsrYBnajGrV
NsZX4ab3dzY=
=4RcG
-----END PGP SIGNATURE-----



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




Archive powered by MHonArc 2.6.16.

Top of Page