Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Grouper 2.1.3: errors with "gsh.sh -test -all"

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Grouper 2.1.3: errors with "gsh.sh -test -all"


Chronological Thread 
  • From: Dominique Petitpierre <>
  • To: Chris Hyzer <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Grouper 2.1.3: errors with "gsh.sh -test -all"
  • Date: Sun, 3 Feb 2013 02:05:38 +0100

Hi,

Thanks for your reply:

On 31/01/2013 01:29 , Chris Hyzer wrote:
I just ran all the tests of 2.1.3 against oracle and it worked fine.

- Which version of Java did you use?

I made some further test sessions and it is now clear that, in my context, the varying error reports only occur with Java 7. I tried many combinations of java version (1.6.0_33, 1.6.0_38, 1.7.0_05, 1.7.0_11), oracle or hsql database, with hibernate.cache.use_query_cache set to true or false: errors never occurred with Java 6, and often with Java 7. (You'll find in annexe yet another example of reported errors).

- Has anybody else noticed this (test suite reporting errors with java 7)?

If the tests run individually, but not in the suite, then Im not concerned...
there might be differences with caches and with clearing out the DB all of
the sudden, or other that would not happen in real life.

OK. But this is unfortunate: in my opinion unit tests should be deterministic, i.e. reported errors should not vary from one run to another in the same context, and certainly not differ if a test is run in a suite or individually.
If running individual tests becomes necessary to establish if errors reported by "-test -all" are to be taken seriously or not, it should be described in the installation documents (e.g. README.txt) when and how to run them.

I was using Java 7 because it has been available since July 2011 and Java 6 won't be supported after February 2013 (after two extensions, the original EOL was July 2012), and I did not find any information against it in the documentation or the Grouper user mailing list.
Refs:
Oracle Java SE Support Roadmap
http://www.oracle.com/technetwork/java/eol-135779.html
Updated Java 6 EOL date
https://blogs.oracle.com/henrik/entry/updated_java_6_eol_date

Maybe the requirement document should also state what is the most recent version of Java that has been used successfully by the developers. (cf https://spaces.internet2.edu/display/Grouper/Specsheet).


Best regards,
Dominique

Mr Dominique Petitpierre, user=Dominique.Petitpierre domain=unige.ch
IT Division, University of Geneva, Switzerland




Using GROUPER_HOME: /usr/local/grouper.api-2.1.3
Using GROUPER_CONF: /usr/local/grouper.api-2.1.3/conf
Using JAVA: /usr/local/jdk1.7.0_05/bin/java
using MEMORY: 64m-750m
Grouper starting up: version: 2.1.3, build date: 2013/02/01 18:02:30, env:
<no label configured>
grouper.properties read from:
/usr/local/grouper.api-2.1.3/conf/grouper.properties
Grouper current directory is: /usr/local/grouper.api-2.1.3
log4j.properties read from:
/usr/local/grouper.api-2.1.3/conf/log4j.properties
Grouper is logging to file:
/usr/local/grouper.api-2.1.3/logs/grouper_error.log, at min level WARN for
package: edu.internet2.middleware.grouper, based on log4j.properties
grouper.hibernate.properties:
/usr/local/grouper.api-2.1.3/conf/grouper.hibernate.properties
grouper.hibernate.properties:
sa@jdbc:hsqldb:hsql://localhost:9001/grouper
sources.xml read from: /usr/local/grouper.api-2.1.3/conf/sources.xml
sources.xml groupersource id: g:gsa
sources.xml groupersource id: grouperEntities
sources.xml jdbc source id: jdbc: GrouperJdbcConnectionProvider
This db user 'sa' and url 'jdbc:hsqldb:hsql://localhost:9001/grouper' are
allowed to be changed in the grouper.properties
Continuing...
Grouper note: auto-created attributeDefName:
etc:attribute:attrExternalSubjectInvite:externalSubjectInvite
***snip***
.........................................
...................................E.E.....
.........Took: 20ms
................................
..........H13_FRA2007, Questions d�histoire de la lit�ra
...............{"id":"g:isa","initParams":{"subjectVirtualAttribute_0_searchAttribute0":"${subject.name},${subject.id}","searchAttribute0":"searchAttribute0","sortAttribute0":"sortAttribute0","subjectVirtualAttribute_0_sortAttribute0":"${subject.name}"},"internalAttributes":["sortAttribute0","searchAttribute0"],"name":"Grouper:
Internal Source
Adapter","subjectType":null,"subjectTypes":[{"name":"application"}]}
................
.........................................
.........................................
...........................userAudit export: Exported 79 auditTypes
userAudit export: Exported auditEntries: 21 / 200 ( 10%) 02:00:51.116
userAudit export: Exported auditEntries: 41 / 200 ( 20%) 02:00:51.129
userAudit export: Exported auditEntries: 61 / 200 ( 30%) 02:00:51.141
userAudit export: Exported auditEntries: 81 / 200 ( 40%) 02:00:51.153
userAudit export: Exported auditEntries: 101 / 200 ( 50%) 02:00:51.164
userAudit export: Exported auditEntries: 121 / 200 ( 60%) 02:00:51.175
userAudit export: Exported auditEntries: 141 / 200 ( 70%) 02:00:51.187
userAudit export: Exported auditEntries: 161 / 200 ( 80%) 02:00:51.199
userAudit export: Exported auditEntries: 181 / 200 ( 90%) 02:00:51.211
userAudit export: Exported auditEntries: 200 / 200 (100%) 02:00:51.221
userAudit import: reading document:
/usr/local/grouper.api-2.1.3/testUserAuditExport.xml, version: 2.1.3
userAudit import: completed with members: total: 1, new: 0, existing: 1,
changed: 0
userAudit import: completed with auditTypes: total: 79, new: 0, existing:
79, changed: 0
userAudit import: completed with auditEntries: total: 200, new: 0, existing:
200, changed: 0
userAudit import: reading document:
/usr/local/grouper.api-2.1.3/testUserAuditExport.xml, version: 2.1.3
userAudit import: completed with members: total: 1, new: 0, existing: 1,
changed: 0
userAudit import: completed with auditTypes: total: 79, new: 79, existing:
0, changed: 0
userAudit import: completed with auditEntries: total: 200, new: 200,
existing: 0, changed: 0
..............
.Starting: 514 records in the DB to be exported (not exact, might be less)
DONE: 02:01:08: exported 514 records to: a string
Starting: 514 records in the DB to be exported (not exact, might be less)
DONE: 02:01:10: exported 514 records to: a string
grouper import: reading document: string, version: 2.1.3
XML file contains 514 records
02:01:10: Beginning import: database contains 514 records
Ending import: processed 514 records
Ending import: database contains 514 records
Ending import: 0 inserts, 0 updates, and 514 skipped records
DONE: 02:01:11: imported 514 records from: string
.Starting: 628 records in the DB to be exported (not exact, might be less)
DONE: 02:01:14: exported 299 records to: a string
Starting: 418 records in the DB to be exported (not exact, might be less)
DONE: 02:01:15: exported 88 records to: a string
Starting: 418 records in the DB to be exported (not exact, might be less)
DONE: 02:01:16: exported 88 records to: a string
grouper import: reading document: string, version: 2.1.3
XML file contains 88 records
02:01:16: Beginning import: database contains 628 records
Ending import: processed 88 records
Ending import: database contains 628 records
Ending import: 0 inserts, 0 updates, and 88 skipped records
DONE: 02:01:17: imported 88 records from: string
.......................
Time: 2,819.321
There were 2 errors:
1)
testFindByIdentifiers(edu.internet2.middleware.grouper.subj.TestSubjectFinder)java.lang.NullPointerException
at
edu.internet2.middleware.grouper.subj.TestSubjectFinder.testFindByIdentifiers(TestSubjectFinder.java:1354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at edu.internet2.middleware.grouper.AllTests.main(AllTests.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:204)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:144)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31)
2)
testFindByIdsOrIdentifiers(edu.internet2.middleware.grouper.subj.TestSubjectFinder)java.lang.NullPointerException
at
edu.internet2.middleware.grouper.subj.TestSubjectFinder.testFindByIdsOrIdentifiers(TestSubjectFinder.java:1510)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at edu.internet2.middleware.grouper.AllTests.main(AllTests.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.handleSpecialCase(GrouperShell.java:204)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:144)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31)

FAILURES!!!
Tests run: 2157, Failures: 0, Errors: 2



Archive powered by MHonArc 2.6.16.

Top of Page