[cle-release-team] Kernel with OpenJDK 7

Earle Nietzel earle.nietzel at gmail.com
Wed Feb 22 18:43:33 PST 2012


Sam,

I now understand why this test is failing but I am not sure how to fix it:

It is all related to this method in BaseContentService:

	protected ContentCollection findCollection(String id) throws TypeException
	{
		ContentCollection collection = null;
		try
		{
			collection = (ContentCollection)
threadLocalManager.get("findCollection@" + id);

This returns null since it doesn't find the key in
ThreadLocalComponent bindings map.
WARN ThreadLocalComponent:183 - get: key not found:
findCollection@/admin/沒有已選要刪除的附件/

		}
		catch(ClassCastException e)
		{
			throw new TypeException(id);
		}

		if(collection == null)
		{
			collection = m_storage.getCollection(id);

Then it tries to perform a lookup from storage but this also fails
because ThreadLocalComponent does not contain the following key.
WARN ThreadLocalComponent:183 - get: key not found:
sqlService:transaction_connection

			if(collection != null)
			{
				threadLocalManager.set("findCollection@" + id, collection);	// new
BaseCollectionEdit(collection));
			}
		}
		else
		{
			collection = new BaseCollectionEdit(collection);
		}

		return collection;

	} // findCollection

Then the following exception occurs:
org.sakaiproject.exception.IdUnusedException id=/admin/沒有已選要刪除的附件/
	at org.sakaiproject.content.impl.BaseContentService.checkCollection(BaseContentService.java:2230)

To me it looks as though ThreadLocalComponent did not get setup properly.

Funny part about all of this is I cannot reproduce this in the
debugger remotely connected to maven surefire

mvn test -Dtest=ContentHostingServiceTest -DfailIfNoTests=false
-Dmaven.surefire.debug

but when running without debugging it happens almost every time:

mvn test -Dtest=ContentHostingServiceTest -DfailIfNoTests=false

Suggestions?

Earle

On Wed, Feb 22, 2012 at 12:27 AM, Earle Nietzel <earle.nietzel at gmail.com> wrote:
> Hey Sam,
>
> I was able to get 2/3 tests fixed. The last one is taking a little
> longer since I can't even reproduce in eclipse.
>
> Only happens when building from the console.
>
> Here is the failing test from kernel-impl:
> ContentHostingServiceTest.testUtfFolders
>
> You can run it with:
> mvn test -Dtest=ContentHostingServiceTest -DfailIfNoTests=false
>
> I will continue to look at it,
> Earle
>
> On Tue, Feb 21, 2012 at 4:51 PM, Sam Ottenhoff <ottenhoff at longsight.com> wrote:
>> Cool, thanks.
>>
>> --Sam
>>
>>
>> On Tue, Feb 21, 2012 at 4:49 PM, Earle Nietzel <earle.nietzel at gmail.com>
>> wrote:
>>>
>>> I will investigate, thanks for pointing it out.
>>>
>>> Earle
>>>
>>> On Tue, Feb 21, 2012 at 3:38 PM, Sam Ottenhoff <ottenhoff at longsight.com>
>>> wrote:
>>> > What about tests on the kernel?  My local Jenkins is reporting a test
>>> > failure in org.sakaiproject.kernel:sakai-kernel-impl
>>> >
>>> >
>>> > On Tue, Feb 21, 2012 at 2:46 PM, Earle Nietzel <earle.nietzel at gmail.com>
>>> > wrote:
>>> >>
>>> >> Yes everything is compiling as expected by changing the version in bot
>>> >> the master and kernel poms. I will add some more notes to the JIRA.
>>> >>
>>> >> Tested with OpenJDK 6 and 7.
>>> >>
>>> >> Earle
>>> >>
>>> >> On Tue, Feb 21, 2012 at 2:12 PM, Sam Ottenhoff
>>> >> <ottenhoff at longsight.com>
>>> >> wrote:
>>> >> > Hey Earle,
>>> >> >
>>> >> > Thanks for all of your work on compilation issues. It's much
>>> >> > appreciated.
>>> >> > Have you been able to compile the kernel against OpenJDK 7?
>>> >> >
>>> >> > Thanks,
>>> >> > Sam
>>> >
>>> >
>>
>>



More information about the cle-release-team mailing list