jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Parvulescu <alex.parvule...@gmail.com>
Subject ClusterNode tests NPE
Date Thu, 14 Jun 2012 18:42:10 GMT
Hi,

I was running the tests on jackrabbit-core today and I noticed the
following errors in the logs [0]:

The tests aren't failing, but I guess a NPE doesn't fall into the
'everything is ok' category.

best,
alex


[0]
20:34:21.302 INFO  [main] JUnitTest.java:44                 Starting test
case testUpdateOperation
20:34:21.305 ERROR [main] ClusterNode.java:697              Unexpected
error while committing log entry.
java.lang.NullPointerException: null
at
org.apache.jackrabbit.core.cluster.ClusterNode$WorkspaceUpdateChannel.updateCommitted(ClusterNode.java:686)
~[classes/:na]
at
org.apache.jackrabbit.core.cluster.ClusterRecordTest.testUpdateOperation(ClusterRecordTest.java:119)
[test-classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.6.0_26]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at junit.framework.TestCase.runTest(TestCase.java:168) [junit-4.10.jar:na]
at junit.framework.TestCase.runBare(TestCase.java:134) [junit-4.10.jar:na]
at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit-4.10.jar:na]
at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit-4.10.jar:na]
at junit.framework.TestResult.run(TestResult.java:113) [junit-4.10.jar:na]
at junit.framework.TestCase.run(TestCase.java:124) [junit-4.10.jar:na]
at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-4.10.jar:na]
at junit.framework.TestSuite.run(TestSuite.java:238) [junit-4.10.jar:na]
at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-4.10.jar:na]
at junit.framework.TestSuite.run(TestSuite.java:238) [junit-4.10.jar:na]
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
[junit-4.10.jar:na]
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
[surefire-junit4-2.4.3.jar:2.4.3]
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
[surefire-api-2.4.3.jar:2.4.3]
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
[surefire-api-2.4.3.jar:2.4.3]
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
[surefire-api-2.4.3.jar:2.4.3]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.6.0_26]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
[surefire-booter-2.4.3.jar:2.4.3]
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
[surefire-booter-2.4.3.jar:2.4.3]
20:34:21.307 INFO  [main] ClusterNode.java:839              Processing
revision: 1
20:34:21.308 INFO  [main] ClusterNode.java:903              [1] 1
admin@default:/
20:34:21.308 INFO  [main] AbstractJournal.java:251          Synchronized to
revision: 1
20:34:21.310 INFO  [main] JUnitTest.java:48                 Completed test
case testUpdateOperation
20:34:21.311 INFO  [main] JUnitTest.java:44                 Starting test
case testUpdateOperationWithNullUserId
20:34:21.312 ERROR [main] ClusterNode.java:697              Unexpected
error while committing log entry.
java.lang.NullPointerException: null
at
org.apache.jackrabbit.core.cluster.ClusterNode$WorkspaceUpdateChannel.updateCommitted(ClusterNode.java:686)
~[classes/:na]
at
org.apache.jackrabbit.core.cluster.ClusterRecordTest.testUpdateOperationWithNullUserId(ClusterRecordTest.java:138)
[test-classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.6.0_26]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at junit.framework.TestCase.runTest(TestCase.java:168) [junit-4.10.jar:na]
at junit.framework.TestCase.runBare(TestCase.java:134) [junit-4.10.jar:na]
at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit-4.10.jar:na]
at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit-4.10.jar:na]
at junit.framework.TestResult.run(TestResult.java:113) [junit-4.10.jar:na]
at junit.framework.TestCase.run(TestCase.java:124) [junit-4.10.jar:na]
at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-4.10.jar:na]
at junit.framework.TestSuite.run(TestSuite.java:238) [junit-4.10.jar:na]
at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-4.10.jar:na]
at junit.framework.TestSuite.run(TestSuite.java:238) [junit-4.10.jar:na]
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
[junit-4.10.jar:na]
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
[surefire-junit4-2.4.3.jar:2.4.3]
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
[surefire-api-2.4.3.jar:2.4.3]
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
[surefire-api-2.4.3.jar:2.4.3]
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
[surefire-api-2.4.3.jar:2.4.3]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.6.0_26]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
[surefire-booter-2.4.3.jar:2.4.3]
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
[surefire-booter-2.4.3.jar:2.4.3]
20:34:21.313 INFO  [main] ClusterNode.java:839              Processing
revision: 1
20:34:21.313 INFO  [main] ClusterNode.java:903              [1] 1
null@default:/
20:34:21.313 INFO  [main] AbstractJournal.java:251          Synchronized to
revision: 1
20:34:21.314 INFO  [main] JUnitTest.java:48                 Completed test
case testUpdateOperationWithNullUserId

Mime
View raw message