Re: Jenkins build is unstable: gora-trunk ยป Apache Gora :: Hbase #166

2012-03-02 Thread Lewis John Mcgibbney
OK so some more accurate output now. One failing test in the suite.

https://builds.apache.org/job/gora-trunk/org.apache.gora$gora-hbase/166/testReport/junit/org.apache.gora.hbase.mapreduce/TestHBaseStoreWordCount/testWordCount/

Stacktrace

org.apache.gora.util.GoraException: java.lang.RuntimeException:
java.io.IOException: java.lang.NullPointerException
at 
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:116)
at 
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:124)
at 
org.apache.gora.store.DataStoreFactory.getDataStore(DataStoreFactory.java:135)
at 
org.apache.gora.hbase.mapreduce.TestHBaseStoreWordCount.setUp(TestHBaseStoreWordCount.java:45)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
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:189)
at 
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at 
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: java.lang.RuntimeException: java.io.IOException:
java.lang.NullPointerException
at 
org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:127)
at 
org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:84)
at 
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:110)
... 23 more
Caused by: java.io.IOException: java.lang.NullPointerException
at 
org.apache.gora.hbase.store.HBaseStore.readMapping(HBaseStore.java:587)
at 
org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:113)
... 25 more
Caused by: java.lang.NullPointerException
at 
org.apache.gora.hbase.store.HBaseStore.readMapping(HBaseStore.java:571)
... 26 more



On Fri, Mar 2, 2012 at 5:20 PM, Apache Jenkins Server 
jenk...@builds.apache.org wrote:

 See 
 https://builds.apache.org/job/gora-trunk/org.apache.gora$gora-hbase/166/





-- 
*Lewis*


Re: Problems with invoking Gora classes from CLI

2012-03-02 Thread Lewis John Mcgibbney
This is to do with the last couple lines of the gora bash script.

It specifies that we should be adding classes to classpath from /build,
where I've been producing /target directories :0|

I don't think there even is a maven lifecycle command that creates build
directory from install, compile... do we need to commit a change for this?

On Fri, Mar 2, 2012 at 4:50 PM, Lewis John Mcgibbney 
lewis.mcgibb...@gmail.com wrote:

 Hi,

 Working with trunk, from $GORA_HOME

 mvn clean install -DskipTests (because of HBase one's)

 $bin/gora

 lewis@lewis-01:~/ASF/gora-test$ bin/gora
 Usage: run COMMAND [COMMAND options]
 where COMMAND is one of:
   compileRun Compiler
   specificcompiler   Run Avro Specific Compiler
   logmanager Run the tutorial log manager
   loganalytics   Run the tutorial log analytics
   junit  Run the given JUnit test
  or
  MODULE CLASSNAME   run the class named CLASSNAME in module MODULE
 Most commands print help when invoked w/o parameters.

 OK so far,

 lewis@lewis-01:~/ASF/gora-test$ bin/gora compile
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/gora/compiler/GoraCompiler
 Caused by: java.lang.ClassNotFoundException:
 org.apache.gora.compiler.GoraCompiler
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 Could not find the main class: org.apache.gora.compiler.GoraCompiler.
 Program will exit.

 Same with logmanager and loganalytics bascially the gora classes.
 The avro specificcompiler gives me another stack trace, however thisis
 because specificcompiler doesn't have a main method.
 Junit gives me the expected TestRunner output.

 What's wrong here?



 --
 *Lewis*




-- 
*Lewis*