jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JSPWIKI-799) jenkins build fails because of SearchManagerTest
Date Sun, 04 Aug 2013 18:49:48 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13728950#comment-13728950
] 

Harry Metske commented on JSPWIKI-799:
--------------------------------------

It could be that there is a problem on one (or more) of the build nodes.
Anyway, the jspwikitests.log file shows the following when the build fails now:
{noformat}
2013-08-04 18:41:21,516 [main] INFO org.apache.wiki.WikiEngine  - WikiEngine configured.
2013-08-04 18:41:21,516 [main] INFO org.apache.wiki.WikiEngine  - Root path for this Wiki
is: 'null'
2013-08-04 18:41:21,517 [main] INFO org.apache.wiki.WikiEngine  - *******************************************
2013-08-04 18:41:21,517 [main] INFO org.apache.wiki.WikiEngine  - JSPWiki 2.10.0-svn-32 starting.
Whee!
2013-08-04 18:41:21,517 [main] INFO org.apache.wiki.WikiEngine  - Servlet container: Stripes
Mock Servlet Environment, version 1.0.
2013-08-04 18:41:21,517 [main] INFO org.apache.wiki.WikiEngine  - JSPWiki working directory
is '/tmp/JSPWiki'
2013-08-04 18:41:21,517 [main] INFO org.apache.wiki.providers.AbstractFileProvider  - Wikipages
are read from 'target/test-classes/testrepository'
2013-08-04 18:41:21,517 [main] INFO org.apache.wiki.plugin.DefaultPluginManager  - Registering
plugins
2013-08-04 18:41:21,519 [main] INFO org.apache.wiki.diff.DifferenceManager  - Using difference
provider: TraditionalDiffProvider
2013-08-04 18:41:21,519 [main] INFO org.apache.wiki.providers.CachingAttachmentProvider  -
Initing CachingAttachmentProvider
2013-08-04 18:41:21,519 [main] INFO org.apache.wiki.search.LuceneSearchProvider  - Lucene
enabled, cache will be in: /tmp/JSPWiki/lucene
2013-08-04 18:41:21,519 [JSPWiki Lucene Indexer] WARN org.apache.wiki.util.WikiBackgroundThread
 - Starting up background thread: JSPWiki Lucene Indexer.
2013-08-04 18:41:21,519 [main] INFO org.apache.wiki.ui.EditorManager  - Registering editor
modules
2013-08-04 18:41:21,519 [JSPWiki Lucene Indexer] INFO org.apache.wiki.search.LuceneSearchProvider
 - Starting Lucene reindexing, this can take a couple of minutes...
2013-08-04 18:41:21,520 [main] INFO org.apache.wiki.ui.EditorManager  - Editor 'plain' not
compatible with this version of JSPWiki.
2013-08-04 18:41:21,521 [main] INFO org.apache.wiki.auth.AuthorizationManager  - We found
security policy URL: file:/tmp/temp.jspwiki.policy3504671366756609939 and transformed it to
file /tmp/temp.jspwiki.policy3504671366756609939
2013-08-04 18:41:21,522 [main] INFO org.apache.wiki.auth.AuthorizationManager  - Initialized
default security policy: /tmp/temp.jspwiki.policy3504671366756609939
2013-08-04 18:41:21,522 [main] INFO org.apache.wiki.auth.authorize.GroupManager  - Attempting
to load group database class org.apache.wiki.auth.authorize.XMLGroupDatabase
2013-08-04 18:41:21,522 [main] WARN org.apache.wiki.auth.authorize.XMLGroupDatabase  - Cannot
identify JSPWiki root path
2013-08-04 18:41:21,522 [main] INFO org.apache.wiki.auth.authorize.XMLGroupDatabase  - XML
group database at /home/hudson/jenkins-slave/workspace/JSPWiki/jspwiki-war/target/test-classes/groupdatabase.xml
2013-08-04 18:41:21,523 [main] INFO org.apache.wiki.auth.authorize.GroupManager  - Group database
initialized.
2013-08-04 18:41:21,524 [main] INFO org.apache.wiki.auth.authorize.GroupManager  - Authorizer
GroupManager initialized successfully; loaded 4 group(s).
2013-08-04 18:41:21,524 [main] INFO org.apache.wiki.ui.admin.AdminBeanManager  - Using JDK
1.5 Platform MBeanServer
2013-08-04 18:41:21,524 [main] INFO org.apache.wiki.ui.admin.AdminBeanManager  - com.sun.jmx.mbeanserver.JmxMBeanServer
2013-08-04 18:41:21,524 [main] INFO org.apache.wiki.ui.admin.AdminBeanManager  - DefaultDomain
2013-08-04 18:41:21,524 [main] INFO org.apache.wiki.ui.admin.AdminBeanManager  - Registered
new admin bean Core bean
2013-08-04 18:41:21,524 [main] INFO org.apache.wiki.ui.admin.AdminBeanManager  - Registered
new admin bean User administration
2013-08-04 18:41:21,524 [main] INFO org.apache.wiki.ui.admin.AdminBeanManager  - Registered
new admin bean Search manager
2013-08-04 18:41:21,524 [main] INFO org.apache.wiki.ui.admin.AdminBeanManager  - Registered
new admin bean Plugins
2013-08-04 18:41:21,524 [main] INFO org.apache.wiki.filters.DefaultFilterManager  - Registering
filters
2013-08-04 18:41:21,525 [main] INFO org.apache.wiki.filters.DefaultFilterManager  - Added
page filter org.apache.wiki.filters.ProfanityFilter with priority 0
2013-08-04 18:41:21,525 [main] INFO org.apache.wiki.filters.DefaultFilterManager  - Added
page filter org.apache.wiki.filters.TestFilter with priority 0
2013-08-04 18:41:21,525 [main] INFO org.apache.wiki.render.RenderingManager  - Rendering content
with org.apache.wiki.render.XHTMLRenderer.
2013-08-04 18:41:21,526 [main] INFO org.apache.wiki.ReferenceManager  - Starting cross reference
scan of WikiPages
2013-08-04 18:41:21,526 [main] INFO org.apache.wiki.ReferenceManager  - Unable to unserialize
old refmgr information, rebuilding database: /tmp/JSPWiki/refmgr.ser (No such file or directory)
2013-08-04 18:41:21,526 [main] INFO org.apache.wiki.ReferenceManager  - Cross reference scan
done in 0:00:00.000
2013-08-04 18:41:21,526 [main] INFO org.apache.wiki.WikiEngine  - WikiEngine configured.
2013-08-04 18:41:21,526 [main] INFO org.apache.wiki.WikiEngine  - Root path for this Wiki
is: 'null'
2013-08-04 18:41:21,526 [main] INFO org.apache.wiki.auth.UserManager  - Attempting to load
user database class org.apache.wiki.auth.user.XMLUserDatabase
2013-08-04 18:41:21,526 [main] WARN org.apache.wiki.auth.user.AbstractUserDatabase  - Cannot
identify JSPWiki root path
2013-08-04 18:41:21,526 [main] INFO org.apache.wiki.auth.user.AbstractUserDatabase  - XML
user database at /home/hudson/jenkins-slave/workspace/JSPWiki/jspwiki-war/target/test-classes/userdatabase.xml
2013-08-04 18:41:21,527 [main] INFO org.apache.wiki.auth.UserManager  - UserDatabase initialized.
2013-08-04 18:41:21,527 [main] INFO SecurityLog  - WikiSecurityEvent.LOGIN_AUTHENTICATED [source=org.apache.wiki.auth.AuthenticationManager@9102eb,
princpal=org.apache.wiki.auth.WikiPrincipal admin, target=org.apache.wiki.WikiSession@56ad43]
2013-08-04 18:41:21,529 [main] INFO SecurityLog  - WikiSecurityEvent.LOGIN_AUTHENTICATED [source=org.apache.wiki.auth.AuthenticationManager@9102eb,
princpal=org.apache.wiki.auth.WikiPrincipal admin, target=org.apache.wiki.WikiSession@1b5ecc2]
2013-08-04 18:41:21,788 [JSPWiki Lucene Indexer] INFO org.apache.wiki.search.LuceneSearchProvider
 - Full Lucene index finished in 278 milliseconds.
2013-08-04 18:41:22,521 [JSPWiki Lucene Indexer] ERROR org.apache.wiki.search.LuceneSearchProvider
 - Problem while creating Lucene index - not using Lucene.
java.io.FileNotFoundException: /tmp/JSPWiki/lucene/segments_1 (No such file or directory)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
	at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:410)
	at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.<init>(SimpleFSDirectory.java:98)
	at org.apache.lucene.store.SimpleFSDirectory.openInput(SimpleFSDirectory.java:58)
	at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:318)
	at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:380)
	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:812)
	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:663)
	at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:376)
	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:711)
	at org.apache.wiki.search.LuceneSearchProvider.getIndexWriter(LuceneSearchProvider.java:513)
	at org.apache.wiki.search.LuceneSearchProvider.doFullLuceneReindex(LuceneSearchProvider.java:200)
	at org.apache.wiki.search.LuceneSearchProvider$LuceneUpdater.startupTask(LuceneSearchProvider.java:747)
	at org.apache.wiki.util.WikiBackgroundThread.run(WikiBackgroundThread.java:131)
2013-08-04 18:41:22,522 [JSPWiki Lucene Indexer] ERROR org.apache.wiki.search.LuceneSearchProvider
 - Unable to remove page 'TestPage' from Lucene index
{noformat}

Will diagnose further....
                
> jenkins build fails because of SearchManagerTest
> ------------------------------------------------
>
>                 Key: JSPWIKI-799
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-799
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.10
>         Environment: Apache Jenkins buildserver
> JSPWiki 2.10
>            Reporter: Harry Metske
>            Assignee: Harry Metske
>            Priority: Minor
>
> After each SVN commit a new Jenkins build is triggered.
> The build on and off succeeds and fails for two testcases :
> {noformat}
> testTitleSearch2(org.apache.wiki.search.SearchManagerTest)  Time elapsed: 1.168 sec 
<<< FAILURE!
> junit.framework.AssertionFailedError: no pages expected:<1> but was:<3>
>         at junit.framework.Assert.fail(Assert.java:57)
>         at junit.framework.Assert.failNotEquals(Assert.java:329)
>         at junit.framework.Assert.assertEquals(Assert.java:78)
>         at junit.framework.Assert.assertEquals(Assert.java:234)
>         at junit.framework.TestCase.assertEquals(TestCase.java:401)
>         at org.apache.wiki.search.SearchManagerTest.testTitleSearch2(SearchManagerTest.java:182)
> testTitleSearch(org.apache.wiki.search.SearchManagerTest)  Time elapsed: 0.221 sec  <<<
FAILURE!
> junit.framework.AssertionFailedError: no pages expected:<1> but was:<3>
>         at junit.framework.Assert.fail(Assert.java:57)
>         at junit.framework.Assert.failNotEquals(Assert.java:329)
>         at junit.framework.Assert.assertEquals(Assert.java:78)
>         at junit.framework.Assert.assertEquals(Assert.java:234)
>         at junit.framework.TestCase.assertEquals(TestCase.java:401)
>         at org.apache.wiki.search.SearchManagerTest.testTitleSearch(SearchManagerTest.java:165)
> {noformat}
> This must be due to environmental issues.
> On my own laptop these tests never fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message