Registry API random test failures
---------------------------------

                 Key: AIRAVATA-286
                 URL: https://issues.apache.org/jira/browse/AIRAVATA-286
             Project: Airavata
          Issue Type: Bug
          Components: Registry API
         Environment: Mac, clean maven build
            Reporter: Suresh Marru
             Fix For: 0.3-INCUBATING


Randomly I get a exception with registry-api tests, but when I retry some time 
it goes away. Here is a detailed trace:
Running org.apache.airavata.registry.api.impl.JCRRegistryTest
session created
java.lang.NullPointerException
org.apache.airavata.common.registry.api.exception.RegistryException: Error 
while saving host description!!!
        at 
org.apache.airavata.registry.api.impl.AiravataJCRRegistry.saveHostDescription(AiravataJCRRegistry.java:269)
        at 
org.apache.airavata.registry.api.impl.JCRRegistryTest.testSaveLoadHostDescription(JCRRegistryTest.java:75)
        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:597)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
        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:597)
        at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
        at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
        at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
        at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.NullPointerException
        at 
org.apache.airavata.common.registry.api.impl.JCRRegistry.resetSession(JCRRegistry.java:267)
        at 
org.apache.airavata.common.registry.api.impl.JCRRegistry.getSession(JCRRegistry.java:234)
        at 
org.apache.airavata.registry.api.impl.AiravataJCRRegistry.saveHostDescription(AiravataJCRRegistry.java:259)
        ... 30 more
session created
7593 [main] INFO org.apache.jackrabbit.core.TransientRepository - Session opened
node extracted
node extracted
session created
7612 [main] INFO org.apache.jackrabbit.core.TransientRepository - Session opened
node extracted
node extracted
node extracted
node extracted
node extracted
node extracted
node extracted
node extracted
something happened: 1 /APP_HOST/SimpleEcho/localhost/ECHOLOCAL
something happened: 1 /APP_HOST/SimpleEcho/localhost
node extracted
something happened: 1 /APP_HOST/SimpleEcho
something happened: 1 /APP_HOST/SimpleEcho/localhost/ECHOLOCAL
7669 [main] ERROR org.apache.airavata.registry.api.impl.AiravataJCRRegistry - 
Cannot get Deployment Description
java.lang.NullPointerException
something happened: 1 /APP_HOST/SimpleEcho/localhost
        at 
org.apache.airavata.common.registry.api.impl.JCRRegistry.getOrAddNode(JCRRegistry.java:295)
something happened: 1 /APP_HOST/SimpleEcho
        at 
org.apache.airavata.registry.api.impl.AiravataJCRRegistry.getDeploymentNode(AiravataJCRRegistry.java:110)
        at 
org.apache.airavata.registry.api.impl.AiravataJCRRegistry.getDeploymentDescription(AiravataJCRRegistry.java:184)
        at 
org.apache.airavata.registry.api.impl.JCRRegistryTest.testSaveLoadApplicationDescription(JCRRegistryTest.java:224)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
something happened: 1 /APP_HOST/SimpleEcho/localhost/ECHOLOCAL
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
        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:597)
        at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
        at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
        at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
        at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
org.apache.airavata.registry.api.exception.DeploymentDescriptionRetrieveException:
 Error occured while attempting to retrieve existing deployment descriptions
        at 
org.apache.airavata.registry.api.impl.AiravataJCRRegistry.getDeploymentDescription(AiravataJCRRegistry.java:197)
        at 
org.apache.airavata.registry.api.impl.JCRRegistryTest.testSaveLoadApplicationDescription(JCRRegistryTest.java:224)
        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:597)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
        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:597)
        at 
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
        at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
        at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
        at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.NullPointerException
        at 
org.apache.airavata.common.registry.api.impl.JCRRegistry.getOrAddNode(JCRRegistry.java:295)
        at 
org.apache.airavata.registry.api.impl.AiravataJCRRegistry.getDeploymentNode(AiravataJCRRegistry.java:110)
        at 
org.apache.airavata.registry.api.impl.AiravataJCRRegistry.getDeploymentDescription(AiravataJCRRegistry.java:184)
        ... 30 more
something happened: 1 /APP_HOST/SimpleEcho/localhost
something happened: 1 /APP_HOST/SimpleEcho
something happened: 1 /APP_HOST/SimpleEcho/localhost/ECHOLOCAL
something happened: 1 /APP_HOST/SimpleEcho/localhost
something happened: 1 /APP_HOST/SimpleEcho
something happened: 1 /APP_HOST/SimpleEcho/localhost/ECHOLOCAL
something happened: 1 /APP_HOST/SimpleEcho/localhost
something happened: 1 /APP_HOST/SimpleEcho
something happened: 1 /APP_HOST/SimpleEcho/localhost/ECHOLOCAL
something happened: 1 /APP_HOST/SimpleEcho/localhost
something happened: 1 /APP_HOST/SimpleEcho
something happened: 1 /APP_HOST/SimpleEcho/localhost/ECHOLOCAL
something happened: 1 /APP_HOST/SimpleEcho/localhost
something happened: 1 /APP_HOST/SimpleEcho
something happened: 1 /APP_HOST/SimpleEcho/localhost/ECHOLOCAL
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.136 sec <<< 
FAILURE!
something happened: 1 /APP_HOST/SimpleEcho/localhost
something happened: 1 /APP_HOST/SimpleEcho
something happened: 1 /APP_HOST/SimpleEcho/localhost/ECHOLOCAL

Results :

Failed tests:   
testSaveLoadApplicationDescription(org.apache.airavata.registry.api.impl.JCRRegistryTest):
 Error occured while attempting to retrieve existing deployment descriptions

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to