Build Android job with connectedInstrumentTest not working on Jenkins - java

I had configured Jenkins build to build gradle project and run tests on it (using connectedInstrumentTest) but build fail several seconds after start.
Stacktrace:
com.android.ddmlib.InstallException at
com.android.ddmlib.Device.installPackage(Device.java:884) at
com.android.builder.testing.ConnectedDevice.installPackage(ConnectedDevice.java:78)
at
com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:97)
at
com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:40)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744) Caused by:
com.android.ddmlib.TimeoutException at
com.android.ddmlib.AdbHelper.read(AdbHelper.java:686) at
com.android.ddmlib.SyncService.doPushFile(SyncService.java:695) at
com.android.ddmlib.SyncService.pushFile(SyncService.java:380) at
com.android.ddmlib.Device.syncPackageToDevice(Device.java:906) at
com.android.ddmlib.Device.installPackage(Device.java:875) ... 9 more
com.android.builder.testing.ConnectedDevice > runTests[sdk - 4.4.2]
[31mFAILED [0m
com.android.builder.testing.api.DeviceException:
com.android.ddmlib.InstallException at
com.android.builder.testing.ConnectedDevice.installPackage(ConnectedDevice.java:81)
null com.android.builder.testing.api.DeviceException:
com.android.ddmlib.InstallException at
com.android.builder.testing.ConnectedDevice.installPackage(ConnectedDevice.java:81)
at
com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:97)
at
com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:40)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744) Caused by:
com.android.ddmlib.InstallException at
com.android.ddmlib.Device.installPackage(Device.java:884) at
com.android.builder.testing.ConnectedDevice.installPackage(ConnectedDevice.java:78)
... 8 more Caused by: com.android.ddmlib.TimeoutException at
com.android.ddmlib.AdbHelper.read(AdbHelper.java:686) at
com.android.ddmlib.SyncService.doPushFile(SyncService.java:695) at
com.android.ddmlib.SyncService.pushFile(SyncService.java:380) at
com.android.ddmlib.Device.syncPackageToDevice(Device.java:906) at
com.android.ddmlib.Device.installPackage(Device.java:875) ... 9 more
:MobileShowcaseApp:connectedInstrumentTest FAILED
I changed emulator configuration and it helps - it can connect to new created device, but when tests are rerun device exception is throw again (reinstaling SDK, gradle did not work).

It would have been better if I could have seen your system but this helped me when I was installing http://blog.zuehlke.com/configure-your-android-project-on-jenkins/
This should work fine.Try this. All the best!!

Related

Multiple #DataModelSelection setters

I am working on a project that uses seam 2.3.1 and tomcat7 and everything is just fine when I build and deploy it under jdk1.6. And now I'd like to migrate the project to java 8, so I changed maven build configuration to use jdk1.8.0_51 as alternate JRE and built project again. But on startup I face the following exception:
SEVERE: Exception sending context initialized event to listener instance
of class org.jboss.seam.servlet.SeamListener
java.lang.RuntimeException: Could not create Component: actionTypeListBB
at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1271)
at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1187)
at org.jboss.seam.init.Initialization.init(Initialization.java:806)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1660)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: Multiple #DataModelSelection setters for: actionTypeList
at org.jboss.seam.Component.initMembers(Component.java:584)
at org.jboss.seam.Component.<init>(Component.java:244)
at org.jboss.seam.Component.<init>(Component.java:205)
at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1255)
I am not expert on this technologies and definitely missing something. Can you please help me with this?

tomcat not starting up in eclipse, Logger ClassnotFoundException, invalid LOC header

Tomcat not starting up in eclipse, tomcat is up and running out of eclipse.
Tomcat 7.0.72, eclipse mars2, java 7 all are 64bit
2 different exceptions in logs
ZipException for org.apche.commons.digester.Rule
ClassNotFoundException for class org.apche.log4j.Logger
SEVERE: Resource read error: Could not load
org/apache/commons/digester/Rule.class. java.util.zip.ZipException:
invalid LOC header (bad signature) at
java.util.zip.ZipFile.read(Native Method) at
java.util.zip.ZipFile.access$1400(ZipFile.java:56) at
java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679) at
java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415)
at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at
org.apache.catalina.loader.WebappClassLoaderBase.findResourceInternal(WebappClassLoaderBase.java:3512)
at
org.apache.catalina.loader.WebappClassLoaderBase.findResource(WebappClassLoaderBase.java:1458)
at
org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1686)
at
org.apache.catalina.startup.ContextConfig.populateJavaClassCache(ContextConfig.java:2272)
at
org.apache.catalina.startup.ContextConfig.populateJavaClassCache(ContextConfig.java:2262)
at
org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2168)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2120)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1981)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1942)
at
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1927)
at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1332)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Nov 01, 2016 10:33:42 AM
org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
SEVERE: Resource read error: Could not load
org/apache/commons/digester/AbstractObjectCreationFactory.class.
java.util.zip.ZipException: invalid LOC header (bad signature) at
java.util.zip.ZipFile.read(Native Method) at
java.util.zip.ZipFile.access$1400(ZipFile.java:56) at
java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679) at
java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415)
at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at
org.apache.catalina.loader.WebappClassLoaderBase.findResourceInternal(WebappClassLoaderBase.java:3512)
at
org.apache.catalina.loader.WebappClassLoaderBase.findResource(WebappClassLoaderBase.java:1458)
at
org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1686)
at
org.apache.catalina.startup.ContextConfig.populateJavaClassCache(ContextConfig.java:2272)
at
org.apache.catalina.startup.ContextConfig.populateJavaClassCache(ContextConfig.java:2262)
at
org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2168)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2120)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1981)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1942)
at
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1927)
at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1332)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
2.
Caused by: java.lang.NoClassDefFoundError: LLogger; at
java.lang.Class.getDeclaredFields0(Native Method) at
java.lang.Class.privateGetDeclaredFields(Class.java:2397) at
java.lang.Class.getDeclaredFields(Class.java:1806) at
org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
at
org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:89)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:63)
at
org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:417)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:891)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 6 more Caused by: java.lang.ClassNotFoundException: Logger at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
after a lot of fight able to resolve the 2 issues
1. by upgrading the commons-digester from 1.6 to 2.1
2. by downgrading the version of log4j from 1.2.17 to 1.2.8
don't why eclipse with maven build tomcat 7.0.72 unable to recognize the logger version of 1.2.17 to org.apache.log4j.Logger class

Liferay 7 hibernate dialect Incompatibility issue

I downloaded Liferay-7 Tomcat bundle and using Oracle 11g database. I tried adding ojdbc6_g.jar, ojdbc14.jar and classes12.jar but nothing is working. Every time getting NullPointerException because of incompatible hibernate dialect.
13:54:47,634 INFO [Start Level: Equinox Container: 00717612-6e3c-0016-1f0e-a5e81700fe44][node:410] [Inferno] closed
13:55:57,206 INFO [localhost-startStop-1][DialectDetector:75] Determine dialect for Oracle 11.2
13:55:57,273 INFO [localhost-startStop-1][DialectDetector:148] Found dialect org.hibernate.dialect.Oracle10gDialect
13:55:57,529 ERROR [localhost-startStop-1][PortalContextLoaderListener:114] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:27)
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:132)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
13:55:57,531 ERROR [localhost-startStop-1][PortalContextLoaderListener:114] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:53)
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:139)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
13:55:57,542 ERROR [localhost-startStop-1][PortalContextLoaderListener:114] java.lang.IllegalStateException: The system has not be activated yet.
java.lang.IllegalStateException: The system has not be activated yet.
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.setStartLevel(ModuleContainer.java:1442)
at com.liferay.portal.bootstrap.ModuleFrameworkImpl.stopRuntime(ModuleFrameworkImpl.java:515)
Liferay7 CE does not support oracle (and other commercial dbs). Check this article and the references for the list of supported dbs and a way to add oracle support again, or try Liferay dxp, which supports the commercial databases.

Tomcat 7.0.42 Neo4j 1.9.2 LifecycleException

I am running Tomcat. All is good and well, i can see the http://myserver.com:8080 page. I have java 1.6 installed on the server.
Neo4j 1.9.2 throws this error
Sep 6, 2013 9:34:25 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class MyContextListener
java.lang.RuntimeException: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.TxManager#41e3a0ec' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:281)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:88)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)
at database.DatabaseInterface.<init>(DatabaseInterface.java:106)
at MyContextListener.contextInitialized(MyContextListener.java:11)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.TxManager#41e3a0ec' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:259)
... 19 more
Caused by: org.neo4j.graphdb.TransactionFailureException: Unable to start TM, active tx log file[usr/share/neo4j/graph.db/tm_tx_log.1] not found.
at org.neo4j.kernel.impl.transaction.TxManager.openLog(TxManager.java:737)
at org.neo4j.kernel.impl.transaction.TxManager.start(TxManager.java:138)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 21 more
I really have no idea what is wrong. I have set ownership and permissions correctly on the store neo4j uses.
Any ideas?
I deleted all logs under neo4j, and everything worked as a charm.

Nutch 2.2.1 + hBase

I am trying to run the new version of Apache Nutch for crawling. When I start script /bin/crawl, it fails and hadoop.log says:
java.lang.Exception: java.lang.NoSuchMethodError: org.apache.gora.persistency.Persistent.getSchema()Lorg/apache/avro/Schema;
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:354)
Caused by: java.lang.NoSuchMethodError: org.apache.gora.persistency.Persistent.getSchema()Lorg/apache/avro/Schema;
at org.apache.gora.hbase.store.HBaseStore.put(HBaseStore.java:177)
Here is the log:
2013-07-04 16:12:05,069 WARN mapred.LocalJobRunner - job_local1522971864_0001
java.lang.Exception: java.lang.NoSuchMethodError: org.apache.gora.persistency.Persistent.getSchema()Lorg/apache/avro/Schema;
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:354)
Caused by: java.lang.NoSuchMethodError: org.apache.gora.persistency.Persistent.getSchema()Lorg/apache/avro/Schema;
at org.apache.gora.hbase.store.HBaseStore.put(HBaseStore.java:177)
at org.apache.gora.mapreduce.GoraRecordWriter.write(GoraRecordWriter.java:65)
at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.write(MapTask.java:638)
at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
at org.apache.nutch.crawl.InjectorJob$UrlMapper.map(InjectorJob.java:191)
at org.apache.nutch.crawl.InjectorJob$UrlMapper.map(InjectorJob.java:88)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:364)
at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:223)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
2013-07-04 16:12:05,720 ERROR crawl.InjectorJob - InjectorJob: java.lang.RuntimeException: job failed: name=[new]inject /opt/ir/nutch2/urls, jobid=job_local1522971864_0001
at org.apache.nutch.util.NutchJob.waitForCompletion(NutchJob.java:54)
at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:233)
at org.apache.nutch.crawl.InjectorJob.inject(InjectorJob.java:251)
at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:273)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.InjectorJob.main(InjectorJob.java:282)
Should I set some gora artifacts inside ivy.xml or something? Please help me.
Solved. You must add correct version of gora-hbase to you libraries. gora-hbase-0.3.jar

Categories

Resources