Re: The exception about test report

2007-01-03 Thread Marcel Reutegger

Jukka Zitting wrote:

On 12/28/06, wendy Lee [EMAIL PROTECTED] wrote:

I have update the main source code to the newest version,and My jdk's
version is 1.5.6.The same time I found the test process will terminated
without any response .
[...]
Running org.apache.jackrabbit.test.TestAll
Exception in thread Timer-2 java.lang.NullPointerException


I've been seeing this as well. The problem seems to have been
introduced by Marcel in revision 489112, but I'm not sure how to best
fix it.


The idle timer task which may shutdown the query handler is insufficiently 
synchronized. Since this functionality actually duplicates the workspaces 
maxIdleTime in the repository.xml, I suggest we remove the idleTime of the query 
handler.


I've created a jira issue: http://issues.apache.org/jira/browse/JCR-694

regards
 marcel


Re: The exception about test report

2006-12-28 Thread Jukka Zitting

Hi,

On 12/28/06, wendy Lee [EMAIL PROTECTED] wrote:

The newest version has two exception in SQLPathTest.


I'm not seeing it. Can you double-check with mvn clean install? If
the problem continues, please file a bug report for that with your
system details (java version, etc.), the exact revision you have, and
the full surefire report with the failure stack traces.

Note that I recently made some changes that span both jackrabbit-core
and jackrabbit-jcr-commons, so unless you run Maven from the main
project directory, you need to build and install the latest
jackrabbit-jcr-commons before jackrabbit-core.

BR,

Jukka Zitting


Re: The exception about test report

2006-12-28 Thread wendy Lee

I have update the main source code to the newest version,and My jdk's
version is 1.5.6.The same time I found the test process will terminated
without any response .


---
T E S T S
---
There are no tests to run.

Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [surefire:test {execution: do_init}]
[INFO] Surefire report directory: F:\jackrabbit1.1\jackrabbit-core\target\surefi
re-reports

---
T E S T S
---
Running org.apache.jackrabbit.init.ExportDocViewTestData
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.797 sec
Running org.apache.jackrabbit.init.PropertyTestData
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running org.apache.jackrabbit.init.NodeTestData
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.079 sec
Running org.apache.jackrabbit.init.QueryTestData
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec

Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

[INFO] [surefire:test {execution: do_test}]
[INFO] Surefire report directory: F:\jackrabbit1.1\jackrabbit-core\target\surefi
re-reports

---
T E S T S
---
Running org.apache.jackrabbit.core.nodetype.compact.TestAll
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.219 sec
Running org.apache.jackrabbit.test.TestAll
Exception in thread Timer-2 java.lang.NullPointerException
   at org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDoc(NodeInd
exer.java:129)
   at org.apache.jackrabbit.core.query.lucene.AbstractIndex.addNode(Abstrac
tIndex.java:134)
   at org.apache.jackrabbit.core.query.lucene.VolatileIndex.commitPending(V
olatileIndex.java:162)
   at org.apache.jackrabbit.core.query.lucene.VolatileIndex.commit(Volatile
Index.java:141)
   at org.apache.jackrabbit.core.query.lucene.PersistentIndex.copyIndex(Per
sistentIndex.java:162)
   at org.apache.jackrabbit.core.query.lucene.MultiIndex$VolatileCommit.exe
cute(MultiIndex.java:1737)
   at org.apache.jackrabbit.core.query.lucene.MultiIndex.executeAndLog(Mult
iIndex.java:804)
   at org.apache.jackrabbit.core.query.lucene.MultiIndex.commitVolatileInde
x(MultiIndex.java:852)
   at org.apache.jackrabbit.core.query.lucene.MultiIndex.flush(MultiIndex.j
ava:723)
   at org.apache.jackrabbit.core.query.lucene.MultiIndex.close(MultiIndex.j
ava:657)
   at org.apache.jackrabbit.core.query.lucene.SearchIndex.close(SearchIndex
.java:355)
   at org.apache.jackrabbit.core.SearchManager.shutdownQueryHandler(SearchM
anager.java:519)
   at org.apache.jackrabbit.core.SearchManager.access$300(SearchManager.jav
a:61)
   at org.apache.jackrabbit.core.SearchManager$2.run(SearchManager.java:256
)
   at java.util.TimerThread.mainLoop(Timer.java:512)
   at java.util.TimerThread.run(Timer.java:462)
Tests run: 1055, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 78.75 sec
Running org.apache.jackrabbit.core.xml.TestAll
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.093 sec
Running org.apache.jackrabbit.core.observation.TestAll
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.485 sec
Running org.apache.jackrabbit.core.query.TestAll
Tests run: 101, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.156 sec
Running org.apache.jackrabbit.core.config.TestAll
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.281 sec
Running org.apache.jackrabbit.core.nodetype.xml.TestAll
Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.75 sec
Running org.apache.jackrabbit.core.TestAll
Tests run: 29, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.953 sec
Running org.apache.jackrabbit.core.state.TestAll
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
Running org.apache.jackrabbit.value.TestAll
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec

Results :
Tests run: 1245, Failures: 0, Errors: 0, Skipped: 0

http://202.106.181.121/Student/gwyfirstpage.aspx
http://202.106.181.121/Student/gwyfirstpage.aspx
http://202.106.181.121/Student/gwyfirstpage.aspx

===

2006/12/28, Jukka Zitting [EMAIL PROTECTED]:


Hi,

On 12/28/06, wendy Lee [EMAIL PROTECTED] wrote:
 The newest version has two exception in SQLPathTest.

I'm not seeing it. Can you double-check with mvn clean install? If
the problem continues, please file a bug report for that with your
system details (java version, etc.), the exact revision you have, and
the full surefire report with the failure stack traces.

Note that I recently made some changes that span both jackrabbit-core
and jackrabbit-jcr-commons, so unless you 

Re: The exception about test report

2006-12-28 Thread Jukka Zitting

Hi,

On 12/28/06, wendy Lee [EMAIL PROTECTED] wrote:

I have update the main source code to the newest version,and My jdk's
version is 1.5.6.The same time I found the test process will terminated
without any response .
[...]
Running org.apache.jackrabbit.test.TestAll
Exception in thread Timer-2 java.lang.NullPointerException


I've been seeing this as well. The problem seems to have been
introduced by Marcel in revision 489112, but I'm not sure how to best
fix it.

BR,

Jukka Zitting


The exception about test report

2006-12-27 Thread wendy Lee

The newest version has two exception in SQLPathTest.
---
testDescendantTestRoot(org.apache.jackrabbit.test.api.query.SQLPathTest)
junit.framework.AssertionFailedError: /testdata/serialization is not
part of the result set
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at 
org.apache.jackrabbit.test.api.query.AbstractQueryTest.checkResult(AbstractQueryTest.java:281)
at 
org.apache.jackrabbit.test.api.query.AbstractQueryTest.executeSqlQuery(AbstractQueryTest.java:258)
at 
org.apache.jackrabbit.test.api.query.SQLPathTest.testDescendantTestRoot(SQLPathTest.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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:118)
at 
org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:393)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

testChildAxisTestRoot(org.apache.jackrabbit.test.api.query.SQLPathTest)
junit.framework.AssertionFailedError: /testdata/serialization is not
part of the result set
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at 
org.apache.jackrabbit.test.api.query.AbstractQueryTest.checkResult(AbstractQueryTest.java:281)
at 
org.apache.jackrabbit.test.api.query.AbstractQueryTest.executeSqlQuery(AbstractQueryTest.java:258)
at 
org.apache.jackrabbit.test.api.query.SQLPathTest.testChildAxisTestRoot(SQLPathTest.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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:118)
at 
org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:393)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

testDescendantTestRoot(org.apache.jackrabbit.test.api.query.SQLPathTest)
junit.framework.AssertionFailedError: /testdata/serialization is not
part of the result set
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at 
org.apache.jackrabbit.test.api.query.AbstractQueryTest.checkResult(AbstractQueryTest.java:281)
at 
org.apache.jackrabbit.test.api.query.AbstractQueryTest.executeSqlQuery(AbstractQueryTest.java:258)
at 
org.apache.jackrabbit.test.api.query.SQLPathTest.testDescendantTestRoot(SQLPathTest.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at