grouper-users - RE: [grouper-users] grouper-api-1.3.0 test task fail
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Kevin Xiang Li <>
- Cc: "" <>
- Subject: RE: [grouper-users] grouper-api-1.3.0 test task fail
- Date: Fri, 15 Aug 2008 01:19:11 -0400
- Accept-language: en-US
- Acceptlanguage: en-US
Sorry, the project isn't setup correctly. Im not sure why this happened, but
it will be fixed in 1.4. Right click on the project in eclipse -> properties
-> Java build path -> Libraries -> Add jars: and select all jars in the lib
dir of the grouper project...
I will cc the list again just to get these issues documented. Good luck!
Chris
> -----Original Message-----
> From: Kevin Xiang Li
> [mailto:]
> Sent: Friday, August 15, 2008 1:13 AM
> To: Chris Hyzer
> Subject: Re: [grouper-users] grouper-api-1.3.0 test task fail
>
> Hi, Chris
>
> Just try one seperate junit test as you descripted. It failed again.
>
> The Test case class is :
> edu.internet2.middleware.grouper.Test_api_grouperAPI
>
> Here is the error message from eclipse console:
>
> (note, might need to type in your response multiple times (Java stdin
> is
> flaky))
> (note, you can whitelist or blacklist db urls and users in the
> grouper.properties)
> Are you sure you want to delete all grouper data in db user 'sa', db
> url
> 'jdbc:hsqldb:/data/kevin/workspace/eeWorkspace/grouper/dist/run/grouper
> ;create=true'?
> (y|n):
> y
> Continuing...
> edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:
> Problem in HibernateSession: HibernateSession: isNew: true, isReadonly:
> false, grouperTransactionType: READ_WRITE_NEW
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:273)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO.rese
> t(Hib3RegistryDAO.java:121)
> at
> edu.internet2.middleware.grouper.RegistryReset._emptyTables(RegistryRes
> et.java:140)
> at
> edu.internet2.middleware.grouper.RegistryReset.reset(RegistryReset.java
> :76)
> at
> edu.internet2.middleware.grouper.GrouperTest.setUp(GrouperTest.java:508
> )
> at
> edu.internet2.middleware.grouper.Test_api_GrouperAPI.setUp(Test_api_Gro
> uperAPI.java:37)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:228)
> at junit.framework.TestSuite.run(TestSuite.java:223)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JU
> nit3TestReference.java:130)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.j
> ava:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu
> nner.java:386)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR
> unner.java:196)
> Caused by: java.lang.NoClassDefFoundError: antlr/ANTLRException
> at
> org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(A
> STQueryTranslatorFactory.java:35)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:74)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
> at
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCach
> e.java:72)
> at
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionI
> mpl.java:133)
> at
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.
> java:112)
> at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.re
> set(Hib3MembershipDAO.java:768)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO$1.ca
> llback(Hib3RegistryDAO.java:127)
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:211)
> ... 18 more
> edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:
> Problem in HibernateSession: HibernateSession: isNew: true, isReadonly:
> false, grouperTransactionType: READ_WRITE_NEW
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:273)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO.rese
> t(Hib3RegistryDAO.java:121)
> at
> edu.internet2.middleware.grouper.RegistryReset._emptyTables(RegistryRes
> et.java:140)
> at
> edu.internet2.middleware.grouper.RegistryReset.reset(RegistryReset.java
> :76)
> at
> edu.internet2.middleware.grouper.GrouperTest.setUp(GrouperTest.java:508
> )
> at
> edu.internet2.middleware.grouper.Test_api_GrouperAPI.setUp(Test_api_Gro
> uperAPI.java:37)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:228)
> at junit.framework.TestSuite.run(TestSuite.java:223)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JU
> nit3TestReference.java:130)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.j
> ava:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu
> nner.java:386)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR
> unner.java:196)
> Caused by: java.lang.NoClassDefFoundError: antlr/ANTLRException
> at
> org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(A
> STQueryTranslatorFactory.java:35)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:74)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
> at
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCach
> e.java:72)
> at
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionI
> mpl.java:133)
> at
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.
> java:112)
> at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.re
> set(Hib3MembershipDAO.java:768)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO$1.ca
> llback(Hib3RegistryDAO.java:127)
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:211)
> ... 18 more
> edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:
> Problem in HibernateSession: HibernateSession: isNew: true, isReadonly:
> false, grouperTransactionType: READ_WRITE_NEW
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:273)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO.rese
> t(Hib3RegistryDAO.java:121)
> at
> edu.internet2.middleware.grouper.RegistryReset._emptyTables(RegistryRes
> et.java:140)
> at
> edu.internet2.middleware.grouper.RegistryReset.reset(RegistryReset.java
> :76)
> at
> edu.internet2.middleware.grouper.GrouperTest.setUp(GrouperTest.java:508
> )
> at
> edu.internet2.middleware.grouper.Test_api_GrouperAPI.setUp(Test_api_Gro
> uperAPI.java:37)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:228)
> at junit.framework.TestSuite.run(TestSuite.java:223)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JU
> nit3TestReference.java:130)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.j
> ava:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu
> nner.java:386)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR
> unner.java:196)
> Caused by: java.lang.NoClassDefFoundError: antlr/ANTLRException
> at
> org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(A
> STQueryTranslatorFactory.java:35)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:74)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
> at
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCach
> e.java:72)
> at
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionI
> mpl.java:133)
> at
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.
> java:112)
> at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.re
> set(Hib3MembershipDAO.java:768)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO$1.ca
> llback(Hib3RegistryDAO.java:127)
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:211)
> ... 18 more
> edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:
> Problem in HibernateSession: HibernateSession: isNew: true, isReadonly:
> false, grouperTransactionType: READ_WRITE_NEW
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:273)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO.rese
> t(Hib3RegistryDAO.java:121)
> at
> edu.internet2.middleware.grouper.RegistryReset._emptyTables(RegistryRes
> et.java:140)
> at
> edu.internet2.middleware.grouper.RegistryReset.reset(RegistryReset.java
> :76)
> at
> edu.internet2.middleware.grouper.GrouperTest.setUp(GrouperTest.java:508
> )
> at
> edu.internet2.middleware.grouper.Test_api_GrouperAPI.setUp(Test_api_Gro
> uperAPI.java:37)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:228)
> at junit.framework.TestSuite.run(TestSuite.java:223)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JU
> nit3TestReference.java:130)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.j
> ava:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu
> nner.java:386)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR
> unner.java:196)
> Caused by: java.lang.NoClassDefFoundError: antlr/ANTLRException
> at
> org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(A
> STQueryTranslatorFactory.java:35)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:74)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
> at
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCach
> e.java:72)
> at
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionI
> mpl.java:133)
> at
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.
> java:112)
> at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.re
> set(Hib3MembershipDAO.java:768)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO$1.ca
> llback(Hib3RegistryDAO.java:127)
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:211)
> ... 18 more
> edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:
> Problem in HibernateSession: HibernateSession: isNew: true, isReadonly:
> false, grouperTransactionType: READ_WRITE_NEW
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:273)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO.rese
> t(Hib3RegistryDAO.java:121)
> at
> edu.internet2.middleware.grouper.RegistryReset._emptyTables(RegistryRes
> et.java:140)
> at
> edu.internet2.middleware.grouper.RegistryReset.reset(RegistryReset.java
> :76)
> at
> edu.internet2.middleware.grouper.GrouperTest.setUp(GrouperTest.java:508
> )
> at
> edu.internet2.middleware.grouper.Test_api_GrouperAPI.setUp(Test_api_Gro
> uperAPI.java:37)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:228)
> at junit.framework.TestSuite.run(TestSuite.java:223)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JU
> nit3TestReference.java:130)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.j
> ava:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu
> nner.java:386)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR
> unner.java:196)
> Caused by: java.lang.NoClassDefFoundError: antlr/ANTLRException
> at
> org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(A
> STQueryTranslatorFactory.java:35)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:74)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
> at
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCach
> e.java:72)
> at
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionI
> mpl.java:133)
> at
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.
> java:112)
> at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.re
> set(Hib3MembershipDAO.java:768)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO$1.ca
> llback(Hib3RegistryDAO.java:127)
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:211)
> ... 18 more
> edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:
> Problem in HibernateSession: HibernateSession: isNew: true, isReadonly:
> false, grouperTransactionType: READ_WRITE_NEW
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:273)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO.rese
> t(Hib3RegistryDAO.java:121)
> at
> edu.internet2.middleware.grouper.RegistryReset._emptyTables(RegistryRes
> et.java:140)
> at
> edu.internet2.middleware.grouper.RegistryReset.reset(RegistryReset.java
> :76)
> at
> edu.internet2.middleware.grouper.GrouperTest.setUp(GrouperTest.java:508
> )
> at
> edu.internet2.middleware.grouper.Test_api_GrouperAPI.setUp(Test_api_Gro
> uperAPI.java:37)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:228)
> at junit.framework.TestSuite.run(TestSuite.java:223)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JU
> nit3TestReference.java:130)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.j
> ava:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:460)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT
> estRunner.java:673)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu
> nner.java:386)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR
> unner.java:196)
> Caused by: java.lang.NoClassDefFoundError: antlr/ANTLRException
> at
> org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(A
> STQueryTranslatorFactory.java:35)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:74)
> at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
> at
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCach
> e.java:72)
> at
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionI
> mpl.java:133)
> at
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.
> java:112)
> at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.re
> set(Hib3MembershipDAO.java:768)
> at
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3RegistryDAO$1.ca
> llback(Hib3RegistryDAO.java:127)
> at
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHib
> ernateSession(HibernateSession.java:211)
> ... 18 more
>
> Any clue?
>
> Regards,
> Kevin
>
>
> Chris Hyzer wrote:
> > In eclipse you can right click on any test class (e.g.
> Test_I_API_Group_delete), and select run as -> Junit test case. You
> should see output in the junit view and console in eclipse. If it says
> no tests found, then right click on the class, run as -> Open run
> dialog, and make sure in the settings panel that junit v3 is selected,
> not v4, and try to run again. Let me know if you have problems, as
> this is a useful thing to do.
> >
> > Chris
> >
> >
> >> -----Original Message-----
> >> From: Kevin Xiang Li
> >> [mailto:]
> >> Sent: Thursday, August 14, 2008 8:55 PM
> >> To: Chris Hyzer
> >> Subject: Re: [grouper-users] grouper-api-1.3.0 test task fail
> >>
> >> Hi, Chris:
> >>
> >> Good news, I have successfully run: ant test from eclipse.
> >> Just wondering how to run different test suite or test case
> seperately?
> >>
> >>
> >> Kevin
> >>
> >>
> >> Chris Hyzer wrote:
> >>
> >>> I would stick to mysql, and forget about connection problem to
> hsql.
> >>>
> >>> It says 165 tests run, which seems promising... try:
> >>>
> >>> ant db.init
> >>>
> >>> this will create your schema, and insert some base data that
> grouper
> >>>
> >> needs. Then maybe try the tests again. If nothing, then set the
> log
> >> level lower in log4j.properties to try to troubleshoot...
> >>
> >>> I run my tests in eclipse, not ant. It will give you more info.
> But
> >>>
> >> if you aren't a java person, then stick to ant. :)
> >>
> >>> Chris
> >>>
> >>>
> >>>
> >>>> -----Original Message-----
> >>>> From: Kevin Xiang Li
> >>>> [mailto:]
> >>>> Sent: Thursday, August 14, 2008 1:52 AM
> >>>> To: Chris Hyzer
> >>>> Subject: Re: [grouper-users] grouper-api-1.3.0 test task fail
> >>>>
> >>>> Hi, Chris:
> >>>>
> >>>> Here I got more information for you.
> >>>>
> >>>> I have been trying two installations of grouper-api-1.3.0
> >>>>
> >>>> 1) just use bundled hsql as database;
> >>>>
> >>>> 2) change configure to mysql.
> >>>>
> >>>> When I did ant test, both got error.
> >>>>
> >>>> for hsql version:
> >>>>
> >>>> here is the error message from grouper_error.log
> >>>>
> >>>> 2008-08-14 15:41:27,770:
> >>>> [ad55f20b-a157-4c4f-a784-
> aba20a10caae,'GrouperSystem','application']
> >>>> grant access priv: group='top:child:child group' priv='view'
> >>>> subject='GrouperAll'/'application'/'g:isa' (3ms)
> >>>> 2008-08-14 15:41:28,230: SQLException occurred: socket creation
> >>>>
> >> error
> >>
> >>>> java.sql.SQLException: socket creation error
> >>>> at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
> >>>> at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
> >>>> at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
> >>>> at org.hsqldb.jdbcDriver.connect(Unknown Source)
> >>>> at java.sql.DriverManager.getConnection(DriverManager.java:525)
> >>>> at java.sql.DriverManager.getConnection(DriverManager.java:171)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection
> >>
> >>>> (DriverManagerConnectionFactory.java:48)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableCo
> >>
> >>>> nnectionFactory.java:290)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObje
> >>
> >>>> ctPool.java:840)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSour
> >>
> >>>> ce.java:95)
> >>>> at
> >>>>
> >>>>
> >>
> edu.internet2.middleware.subject.provider.JDBCSourceAdapter.uniqueSearc
> >>
> >>>> h(Unknown
> >>>> Source)
> >>>> at
> >>>>
> >>>>
> >>
> edu.internet2.middleware.subject.provider.JDBCSourceAdapter.getSubject(
> >>
> >>>> Unknown
> >>>> Source)
> >>>> at
> >>>>
> >>>>
> >>
> edu.internet2.middleware.grouper.subj.SourcesXmlResolver.find(SourcesXm
> >>
> >>>> lResolver.java:87)
> >>>> at
> >>>>
> >>>>
> >>
> edu.internet2.middleware.grouper.subj.CachingResolver.find(CachingResol
> >>
> >>>> ver.java:67)
> >>>> at
> >>>>
> >>>>
> >>
> edu.internet2.middleware.grouper.Test_subj_CachingResolver.test_find_Id
> >>
> >>>> _cacheMiss(Test_subj_CachingResolver.java:73)
> >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>> at
> >>>>
> >>>>
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> >>
> >>>> va:39)
> >>>> at
> >>>>
> >>>>
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >>
> >>>> rImpl.java:25)
> >>>> at java.lang.reflect.Method.invoke(Method.java:585)
> >>>> at junit.framework.TestCase.runTest(TestCase.java:164)
> >>>> at junit.framework.TestCase.runBare(TestCase.java:130)
> >>>> at junit.framework.TestResult$1.protect(TestResult.java:106)
> >>>> at junit.framework.TestResult.runProtected(TestResult.java:124)
> >>>> at junit.framework.TestResult.run(TestResult.java:109)
> >>>> at junit.framework.TestCase.run(TestCase.java:120)
> >>>> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> >>>> at junit.framework.TestSuite.run(TestSuite.java:225)
> >>>> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> >>>> at junit.framework.TestSuite.run(TestSuite.java:225)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitT
> >>
> >>>> estRunner.java:421)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUn
> >>
> >>>> itTestRunner.java:912)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnit
> >>
> >>>> TestRunner.java:766)
> >>>>
> >>>>
> >>>> My grouper.hibernate.properties are:
> >>>>
> >>>> #
> >>>> # Hibernate3
> >>>> #
> >>>> hibernate.dialect = org.hibernate.dialect.HSQLDialect
> >>>> hibernate.cache.provider_class =
> org.hibernate.cache.EhCacheProvider
> >>>>
> >>>>
> >>>> #
> >>>> # Generic Hibernate Configuration
> >>>> #
> >>>>
> >>>> hibernate.cache.use_query_cache = false
> >>>>
> >>>> hibernate.connection.driver_class = org.hsqldb.jdbcDriver
> >>>> hibernate.connection.url =
> >>>> jdbc:hsqldb:/data/kevin/kprojects/grouper/grouper-api-1.3.0-
> >>>> hsql/dist/run/grouper;create=true
> >>>> hibernate.connection.username = sa
> >>>> # If you are using an empty password, depending upon your version
> of
> >>>> # Java and Ant you may need to specify a password of "".
> >>>> hibernate.connection.password =
> >>>> hibernate.connection.autocommit = false
> >>>>
> >>>>
> >>>> For mysql version:
> >>>>
> >>>> the error message comes from test.log
> >>>>
> >>>> [junit] Tests run: 165, Failures: 0, Errors: 1, Time elapsed:
> 33.606
> >>>> sec
> >>>>
> >>>> BUILD FAILED
> >>>>
> >>>> /data/kevin/kprojects/grouper/grouper-api-1.3.0-
> mysql/build.xml:775:
> >>>> Test edu.internet2.middleware.grouper.SuiteDefault failed
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.actOnTestResult(
> >>
> >>>> JUnitTask.java:1712)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTas
> >>
> >>>> k.java:820)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(J
> >>
> >>>> UnitTask.java:1657)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTas
> >>
> >>>> k.java:765)
> >>>> at
> >>>>
> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >>
> >>>> at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> >>>> at
> >>>>
> >>>>
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >>
> >>>> rImpl.java:25)
> >>>> at java.lang.reflect.Method.invoke(Method.java:585)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
> >>
> >>>> 105)
> >>>> at org.apache.tools.ant.Task.perform(Task.java:348)
> >>>> at org.apache.tools.ant.Target.execute(Target.java:357)
> >>>> at org.apache.tools.ant.Target.performTasks(Target.java:385)
> >>>> at
> >>>>
> >> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> >>
> >>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> >>>> at
> >>>>
> >>>>
> >>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecu
> >>
> >>>> tor.java:41)
> >>>> at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> >>>> at org.apache.tools.ant.Main.runBuild(Main.java:698)
> >>>> at org.apache.tools.ant.Main.startAnt(Main.java:199)
> >>>> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> >>>> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> >>>> There is no other error messages in grouper_error.log.
> >>>>
> >>>> my conf/grouper.hibernate.properties is:
> >>>> #
> >>>> # Hibernate3
> >>>> #
> >>>> hibernate.dialect = org.hibernate.dialect.MySQLDialect
> >>>> hibernate.cache.provider_class =
> org.hibernate.cache.EhCacheProvider
> >>>>
> >>>>
> >>>> #
> >>>> # Generic Hibernate Configuration
> >>>> #
> >>>>
> >>>> hibernate.cache.use_query_cache = false
> >>>>
> >>>> hibernate.connection.driver_class = com.mysql.jdbc.Driver
> >>>> hibernate.connection.url = jdbc:mysql://localhost:3306/grouper1
> >>>> hibernate.connection.username = root
> >>>> # If you are using an empty password, depending upon your version
> of
> >>>> # Java and Ant you may need to specify a password of "".
> >>>> hibernate.connection.password = ********
> >>>> hibernate.connection.autocommit = false
> >>>>
> >>>> Looking forward to your help.
> >>>>
> >>>>
> >>>> Thanks,
> >>>> Kevin
> >>>>
> >>>>
> >>>>
> >>>> Chris Hyzer wrote:
> >>>>
> >>>>
> >>>>> Look for the log. Try to find a file named grouper_error.log.
> The
> >>>>>
> >>>>>
> >>>> location should be listed in the conf/log4j.properties config
> file.
> >>>> Might be in the current GROUPER_HOME dir. In that file might
> answer
> >>>> your question. If it doesn't, email me the parts of the log file
> >>>>
> >> which
> >>
> >>>> are time relevant, and I might have a suggestion.
> >>>>
> >>>>
> >>>>> Regards,
> >>>>> Chris
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From:
> >>>>>>
> >>>>>>
> >>>>>> [mailto:]
> >>>>>> Sent: Thursday, August 14, 2008 1:10 AM
> >>>>>> To:
> >>>>>>
> >>>>>> Subject: [grouper-users] grouper-api-1.3.0 test task fail
> >>>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> I am trying grouper-api-1.3.0. I am following README.txt bundled
> >>>>>>
> >> in
> >>
> >>>>>> grouper-api,
> >>>>>> I am going through ant build, ant schemaexport, ant db.init, all
> >>>>>>
> >>>>>>
> >>>> seems
> >>>>
> >>>>
> >>>>>> ok
> >>>>>> However when I try ant test, it fail, and throw this error:
> >>>>>>
> >>>>>> .../build.xml:775: Test
> >>>>>>
> >>>>>>
> >>>> edu.internet2.middleware.grouper.SuiteDefault
> >>>>
> >>>>
> >>>>>> failed
> >>>>>>
> >>>>>> Can anyone help?
> >>>>>>
> >>>>>> Thanks
> >>>>>>
> >>>>>> Kevin
> >>>>>>
> >>>>>>
> >>>>>>
> >>>
> >
> >
- grouper-api-1.3.0 test task fail, kli, 08/14/2008
- RE: [grouper-users] grouper-api-1.3.0 test task fail, Chris Hyzer, 08/14/2008
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- RE: [grouper-users] grouper-api-1.3.0 test task fail, Chris Hyzer, 08/15/2008
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- RE: [grouper-users] grouper-api-1.3.0 test task fail, Chris Hyzer, 08/14/2008
Archive powered by MHonArc 2.6.16.