I would like to know what mistake I've made that, after I set my connection details, the log panel started to trace this in my grails app:
I a using NB 6.9 RC2 with Grails 2.4.3 and PostGreSQL 9.4
24/04/2016 07:31:11 org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
ADVERTENCIA: Module [groovy-all] - Unable to load extension class [org.codehaus.groovy.runtime.NioGroovyMethods]
24/04/2016 07:31:12 org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
ADVERTENCIA: Module [groovy-all] - Unable to load extension class [org.codehaus.groovy.runtime.NioGroovyMethods]
|Loading Grails 2.4.3
|Configuring classpath
.
|Environment set to development
.................................
|Packaging Grails application
....................................
|Running Grails application
24/04/2016 07:31:29 org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule newModule
ADVERTENCIA: Module [groovy-all] - Unable to load extension class [org.codehaus.groovy.runtime.NioGroovyMethods]
Error |
2016-04-24 07:31:51,632 [localhost-startStop-1] ERROR spring.BeanBuilder - WARNING: Your cache provider is set to 'net.sf.ehcache.hibernate.EhCacheRegionFactory' in DataSource.groovy, however the class for this provider cannot be found.
Using Grails' default cache region factory: 'org.hibernate.cache.ehcache.EhCacheRegionFactory'
Error |
2016-04-24 07:31:54,554 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener - Error initializing the application: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Cannot resolve reference to bean 'dataSourceLazy' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceLazy': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy]: Constructor threw exception; nested exception is java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Cannot resolve reference to bean 'dataSourceLazy' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceLazy': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy]: Constructor threw exception; nested exception is java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Cannot resolve reference to bean 'dataSourceLazy' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceLazy': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy]: Constructor threw exception; nested exception is java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource': Cannot resolve reference to bean 'dataSourceLazy' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceLazy': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy]: Constructor threw exception; nested exception is java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name 'dataSource': Cannot resolve reference to bean 'dataSourceLazy' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceLazy': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy]: Constructor threw exception; nested exception is java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name 'dataSourceLazy': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy]: Constructor threw exception; nested exception is java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
Caused by BeanInstantiationException: Could not instantiate bean class [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy]: Constructor threw exception; nested exception is java.lang.UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
Caused by UnsupportedClassVersionError: org/postgresql/Driver : Unsupported major.minor version 51.0
->> 632 | defineClassCond in java.lang.ClassLoader
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 616 | defineClass in ''
| 141 | defineClass in java.security.SecureClassLoader
| 283 | defineClass in java.net.URLClassLoader
| 58 | access$000 in ''
| 197 | run in java.net.URLClassLoader$1
| 190 | findClass in java.net.URLClassLoader
| 307 | loadClass in java.lang.ClassLoader
| 247 | forName in java.lang.Class
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . in ''
^ 662 | run in java.lang.Thread
Error |
Forked Grails VM exited with error
Thankx
Related
I'm trying to use a Trigger in Cassandra 4.1, but initialization fails when loading the jar file
Trace:
cassandra_1 | INFO [OptionalTasks:1] 2022-11-17 22:35:17,483 CustomClassLoader.java:83 - Loading new jar /etc/cassandra/triggers/cassandra-logger-0.2.jar
cassandra_1 | ERROR [OptionalTasks:1] 2022-11-17 22:35:17,488 JVMStabilityInspector.java:68 - Exception in thread Thread[OptionalTasks:1,5,OptionalTasks]
cassandra_1 | org.apache.cassandra.io.FSWriteError: java.nio.file.FileAlreadyExistsException: /tmp/lib/cassandra-0.jar
(...)
cassandra_1 | Caused by: java.nio.file.FileAlreadyExistsException: /tmp/lib/cassandra-0.jar
cassandra_1 | at java.base/sun.nio.fs.UnixCopyFile.copy(Unknown Source)
cassandra_1 | at java.base/sun.nio.fs.UnixFileSystemProvider.copy(Unknown Source)
cassandra_1 | at java.base/java.nio.file.Files.copy(Unknown Source)
cassandra_1 | at org.apache.cassandra.triggers.CustomClassLoader.addClassPath(CustomClassLoader.java:86)
cassandra_1 | ... 22 common frames omitted
cassandra_1 | ERROR [OptionalTasks:1] 2022-11-17 22:35:17,493 DefaultFSErrorHandler.java:64 - Stopping transports as disk_failure_policy is stop
cassandra_1 | ERROR [OptionalTasks:1] 2022-11-17 22:35:17,494 StorageService.java:501 - Stopping native transport
cassandra_1 | INFO [OptionalTasks:1] 2022-11-17 22:35:17,505 Server.java:176 - Stop listening for CQL clients
cassandra_1 | ERROR [OptionalTasks:1] 2022-11-17 22:35:17,506 StorageService.java:506 - Stopping gossiper
cassandra_1 | WARN [OptionalTasks:1] 2022-11-17 22:35:17,507 StorageService.java:405 - Stopping gossip by operator request
cassandra_1 | INFO [OptionalTasks:1] 2022-11-17 22:35:17,507 Gossiper.java:2087 - Announcing shutdown
cassandra_1 | INFO [OptionalTasks:1] 2022-11-17 22:35:17,509 StorageService.java:2950 - Node /192.168.96.2:7000 state jump to shutdown
cassandra_1 | INFO [OptionalTasks:1] 2022-11-17 22:35:17,513 StorageService.java:2950 - Node /192.168.96.2:7000 state jump to shutdown
Jar file:
https://github.com/felipead/cassandra-logger/releases/download/v0.2/cassandra-logger-0.2.jar
docker-compose.yaml, and cassandra.yaml:
https://github.com/hofstede-matheus/MATB09-postgres-vs-cassandra
This error also happens with hms-cassandra-triggers-1.0.1.jar, so I think there is no problem with
cassandra-logger-0.2.jar
Tried with other .jar files and no success.
Thanks in advance
Using cassandra:3.0 image in the docker-compose.yaml solved this startup issue.
I think the triggers are not compatible with version 4.1 of Cassandra.
4.1.0 release of Apache Cassandra has changed the way to load the triggers jars using java.nio (java.nio.file.Files), in earlier releases ( 4.0 or 3.X ) uses Guava (com.google.common.io.Files).
Guava copy method, by default, overwrite a file if you have permissions but java.nio not.
To solve this problem it's as easy as modify the class org.apache.cassandra.triggers.CustomClassLoader on line 86 from:
copy(inputJar.toPath(), out.toPath());
to:
copy(inputJar.toPath(), out.toPath(),StandardCopyOption.REPLACE_EXISTING);
I've ApacheServicemix 7.0.1 and blueprint with defined conduit (CXF). When I try to deploy it to servicemix I'm receiving Unable to find namespace handler for http://schemas.xmlsoap.org/wsdl/ followed by org.xml.sax.SAXParseException: Premature end of file. I found something similar to my problem (org.xml.sax.SAXParseException: Premature end of file for *VALID* XML) but described suggestions didn't help.
My developement environment:
System: Linux version 5.17.5-76051705-generic, architecture amd64
Server: Apache ServiceMix 7.0.1, Karaf version: 4.0.9, OSGI Framework: org.apache.felix.framework-5.6.2
JVM : Java HotSpot(TM) 64-Bit Server VM version 25.171-b11, version: 1.8.0_171, vendor: Oracle Corporation
Stacktrace:
2022-06-02 17:10:15,720 | DEBUG | Thread-16 | integration-contacts | 249 - pl.integration.contacts.integration-contacts - 1.0.0.SNAPSHOT | BundleEvent STARTING - pl.integration.contacts.integration-contacts
2022-06-02 17:10:15,720 | DEBUG | Thread-16 | ContextLoaderListener | 219 - org.springframework.osgi.extender - 1.2.1 | Processing bundle event [STARTING] for bundle [pl.integration.contacts.integration-contacts]
2022-06-02 17:10:15,720 | DEBUG | Thread-16 | ContextLoaderListener | 219 - org.springframework.osgi.extender - 1.2.1 | Processing bundle event [STARTING] for bundle [pl.integration.contacts.integration-contacts]
2022-06-02 17:10:15,720 | DEBUG | Thread-16 | BlueprintExtender | 30 - org.apache.aries.blueprint.core - 1.7.1 | Scanning bundle pl.integration.contacts.integration-contacts/1.0.0.SNAPSHOT for blueprint application
2022-06-02 17:10:15,720 | DEBUG | Thread-16 | BlueprintExtender | 30 - org.apache.aries.blueprint.core - 1.7.1 | Found blueprint application in bundle pl.integration.contacts.integration-contacts/1.0.0.SNAPSHOT with paths: [bundle://249.21:0/OSGI-INF/blueprint/contacts-orange-blueprint.xml]
2022-06-02 17:10:15,720 | DEBUG | Thread-16 | BlueprintExtender | 30 - org.apache.aries.blueprint.core - 1.7.1 | Starting creation of blueprint bundle pl.integration.contacts.integration-contacts/1.0.0.SNAPSHOT synchronously
2022-06-02 17:10:15,720 | DEBUG | Thread-16 | BlueprintContainerImpl | 30 - org.apache.aries.blueprint.core - 1.7.1 | Running blueprint container for bundle pl.integration.contacts.integration-contacts/1.0.0.SNAPSHOT in state Unknown
2022-06-02 17:10:15,720 | DEBUG | Thread-16 | BlueprintContainerImpl | 30 - org.apache.aries.blueprint.core - 1.7.1 | Xml-validation directive: null
2022-06-02 17:10:15,720 | DEBUG | Thread-16 | BlueprintEventDispatcher | 30 - org.apache.aries.blueprint.core - 1.7.1 | Sending blueprint container event BlueprintEvent[type=CREATING] for bundle pl.integration.contacts.integration-contacts/1.0.0.SNAPSHOT
2022-06-02 17:10:15,720 | DEBUG | nt Dispatcher: 1 | BlueprintStateService | 102 - org.apache.karaf.bundle.blueprintstate - 4.0.9 | Blueprint app state changed to Starting for bundle 249
2022-06-02 17:10:15,721 | DEBUG | Thread-16 | BlueprintContainerImpl | 30 - org.apache.aries.blueprint.core - 1.7.1 | Running blueprint container for bundle pl.integration.contacts.integration-contacts/1.0.0.SNAPSHOT in state WaitForNamespaceHandlers
2022-06-02 17:10:21,360 | DEBUG | heckpoint Worker | MessageDatabase | 27 - org.apache.activemq.activemq-osgi - 5.14.5 | Checkpoint started.
2022-06-02 17:10:21,363 | WARN | Thread-16 | NamespaceHandlerRegistryImpl | 30 - org.apache.aries.blueprint.core - 1.7.1 | Unable to find namespace handler for http://schemas.xmlsoap.org/wsdl/
2022-06-02 17:10:21,363 | TRACE | Thread-16 | HttpURLConnection | - - | ProxySelector Request for http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd
2022-06-02 17:10:21,374 | TRACE | heckpoint Worker | MessageDatabase | 27 - org.apache.activemq.activemq-osgi - 5.14.5 | Last update: 1:1451590, full gc candidates set: [1]
2022-06-02 17:10:21,374 | TRACE | heckpoint Worker | MessageDatabase | 27 - org.apache.activemq.activemq-osgi - 5.14.5 | gc candidates after producerSequenceIdTrackerLocation:1:1334448, []
2022-06-02 17:10:21,374 | TRACE | heckpoint Worker | MessageDatabase | 27 - org.apache.activemq.activemq-osgi - 5.14.5 | gc candidates after ackMessageFileMapLocation:1:1451709, []
2022-06-02 17:10:21,375 | TRACE | heckpoint Worker | MessageDatabase | 27 - org.apache.activemq.activemq-osgi - 5.14.5 | gc candidates after in progress tx range:[null, null], []
2022-06-02 17:10:21,375 | TRACE | heckpoint Worker | MessageDatabase | 27 - org.apache.activemq.activemq-osgi - 5.14.5 | gc candidates: []
2022-06-02 17:10:21,375 | TRACE | heckpoint Worker | MessageDatabase | 27 - org.apache.activemq.activemq-osgi - 5.14.5 | ackMessageFileMap: {}
2022-06-02 17:10:21,375 | TRACE | heckpoint Worker | MessageDatabase | 27 - org.apache.activemq.activemq-osgi - 5.14.5 | Not yet time to check for compaction: 2 of 10 cycles
2022-06-02 17:10:21,375 | DEBUG | heckpoint Worker | MessageDatabase | 27 - org.apache.activemq.activemq-osgi - 5.14.5 | Checkpoint done.
2022-06-02 17:10:21,571 | TRACE | Thread-16 | HttpURLConnection | - - | Proxy used: DIRECT
2022-06-02 17:10:21,571 | DEBUG | Thread-16 | HttpURLConnection | - - | sun.net.www.MessageHeader#3ed116997 pairs: {GET /wsdl/2003-02-11.xsd HTTP/1.1: null}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/1.8.0_171}{Host: schemas.xmlsoap.org}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}
2022-06-02 17:10:21,588 | DEBUG | Thread-16 | HttpURLConnection | - - | sun.net.www.MessageHeader#35b2422c5 pairs: {null: HTTP/1.1 307 Temporary Redirect}{Location: https://schemas.xmlsoap.org/wsdl/2003-02-11.xsd}{X-Azure-Ref: 03dKYYgAAAACgQXgSZZMPSrZpmfYOYR4jV0FXMDFFREdFMDUxMABhMGQwYmQzZC1mZDZiLTQwNzMtOGQyZi1jMDZlYzMzZDE1Y2U=}{Date: Thu, 02 Jun 2022 15:10:21 GMT}{Content-Length: 0}
2022-06-02 17:10:23,639 | ERROR | Thread-16 | BlueprintContainerImpl | 30 - org.apache.aries.blueprint.core - 1.7.1 | Unable to start blueprint container for bundle pl.integration.contacts.integration-contacts/1.0.0.SNAPSHOT
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)[:]
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)[:]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)[:]
at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)[:]
at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)[:]
at org.apache.xerces.impl.xs.opti.SchemaDOMParser.parse(Unknown Source)[:]
at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source)[:]
at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown Source)[:]
at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source)[:]
at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source)[:]
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)[:]
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)[:]
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)[:]
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)[:]
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)[:]
I'm using apache-servicemix-7.0.0, and using camel-beanio with it (2.16.4).
So I have defined a route that calls beanio to parse a file.
However the Class that the records map to is in an external jar.
I have tried to wrap this external jar using:
https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Deploying_into_the_Container/files/UrlHandlers-Wrap.html
and it makes it available.
But when I deploy my camel blueprint.xml it still throws:
"2017-05-24 15:57:51,566 | ERROR | mix-7.0.0/deploy | BlueprintCamelContext | 40 - org.apache.camel.
camel-blueprint - 2.16.4 | Error occurred during starting Camel: CamelContext(_context1) due Invalid record 'r
ecord', in stream 'REALITY_FILE': Invalid bean class 'za.co.sci.core.shared.RealityFileRecordModel'
org.beanio.BeanIOConfigurationException: Invalid record 'record', in stream 'REALITY_FILE': Invalid bean class
'za.co.sci.core.shared.RealityFileRecordModel'
at org.beanio.internal.compiler.ProcessorSupport.process(ProcessorSupport.java:93)[232:org.beanio:2.1.
0]
....
...
Caused by: java.lang.ClassNotFoundException: za.co.sci.core.shared.RealityFileRecordModel not found by ESB-POC
[257]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1
574)[org.apache.felix.framework-5.6.1.jar:]
"
My blue print attached, and camel mapping xml attached
Any ideas how to make camel route find this class?
Thanks,
Jose
I'm trying to integrate lily-solr-hbase .
I'm using Hortonworks distribution (2.4 version)
Solr (5.2.1 version)
Lily (2.0 version)
I'm following the lily documentation from official link :
http://docs.ngdata.com/lily-docs-2_0/414-lily/432-lily.html
But while running the steps as mentioned to start the lily server .. I'm getting the below exception .
[root#BAN-SDU-OVS2-VM7 lily-2.0]# bin/lily-server
[INFO ][11:32:41,606][main ] org.kauriproject.runtime.info - Starting the Kauri Runtime.
[INFO ][11:32:42,163][main ] org.kauriproject.runtime.info - Reading module configurations of 12 modules.
[INFO ][11:32:43,152][main ] org.kauriproject.runtime.info - Starting the modules.
[INFO ][11:32:43,162][main ] org.kauriproject.runtime.info - Starting module pluginregistry - /root/lily-2.0/lily-2.0/lily-2.0/lib/org/lilyproject/lily-pluginregistry-impl/2.0/lily-pluginregistry-impl-2.0.jar
[INFO ][11:32:44,203][main ] org.kauriproject.runtime.info - Starting module general - /root/lily-2.0/lily-2.0/lily-2.0/lib/org/lilyproject/lily-general-module/2.0/lily-general-module-2.0.jar
org.kauriproject.runtime.KauriRTException: Error constructing module defined at /root/lily-2.0/lily-2.0/lily-2.0/lib/org/lilyproject/lily-general-module/2.0/lily-general-module-2.0.jar
at org.kauriproject.runtime.module.build.ModuleBuilder.buildInt(ModuleBuilder.java:152)
at org.kauriproject.runtime.module.build.ModuleBuilder.build(ModuleBuilder.java:55)
at org.kauriproject.runtime.KauriRuntime.start(KauriRuntime.java:240)
at org.kauriproject.runtime.cli.KauriRuntimeCli.run(KauriRuntimeCli.java:292)
at org.kauriproject.runtime.cli.KauriRuntimeCli.main(KauriRuntimeCli.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.kauriproject.launcher.RuntimeCliLauncher.run(RuntimeCliLauncher.java:79)
at org.kauriproject.launcher.RuntimeCliLauncher.launch(RuntimeCliLauncher.java:58)
at org.kauriproject.launcher.RuntimeCliLauncher.main(RuntimeCliLauncher.java:54)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hbaseConfiguration' defined in KAURI-INF/spring/services.xml in /root/lily-2.0/lily-2.0/lily-2.0/lib/org/lilyproject/lily-general-module/2.0/lily-general-module-2.0.jar: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lilyproject.server.modules.general.HadoopConfigurationFactoryImpl]: Constructor threw exception; nested exception is org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for after 1 tries.
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.kauriproject.runtime.module.build.ModuleBuilder.buildInt(ModuleBuilder.java:89)
... 11 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lilyproject.server.modules.general.HadoopConfigurationFactoryImpl]: Constructor threw exception; nested exception is org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for after 1 tries.
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
... 26 more
Caused by: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for after 1 tries.
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:914)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:820)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:788)
at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:249)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:213)
at org.lilyproject.server.modules.general.HadoopConfigurationFactoryImpl.waitOnHBase(HadoopConfigurationFactoryImpl.java:67)
at org.lilyproject.server.modules.general.HadoopConfigurationFactoryImpl.<init>(HadoopConfigurationFactoryImpl.java:53)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
... 28 more
Startup failed. Will try to shutdown and exit.
[INFO ][11:33:45,632][main ] org.kauriproject.runtime.info - Shutting down the modules.
[INFO ][11:33:45,633][main ] org.kauriproject.runtime.info - Stopping the restservice manager.
Can anyone help so as how to fix this and proceed ?
Thanks in advance .
Getting an Exception with the latest version of Solr 5.0. Goes away with a downgrade to an earlier release(4.10.4) but the version has its own problems (see Exception No.2).
SolrConfig Class
public class SolrEmbeddedConfig {
#Autowired
private Environment environment;
#Bean
public EmbeddedSolrServerFactoryBean solrServerFactoryBean() {
EmbeddedSolrServerFactoryBean factory = new EmbeddedSolrServerFactoryBean();
factory.setSolrHome(environment.getRequiredProperty("embeded.solr.home"));
return factory;
}
#Bean
public SolrTemplate solrTemplate() throws Exception {
return new SolrTemplate(solrServerFactoryBean().getObject());
}
}
Exception No.1: throws with latest version of Solr 5.0
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accountTemplate' defined in file [/Users/foo/workspace/ProjectX/build/tmp/tomcatRunWar/work/Tomcat/localhost/com.projecta/WEB-INF/classes/com/projecta/core/api/impl/AccountTemplate.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.projecta.core.search.service.AutocompleteDocumentService]: : Error creating bean with name 'autocompleteDocumentService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.data.solr.core.SolrTemplate com.projecta.core.search.service.impl.AutocompleteDocumentServiceImpl.solrTemplate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrTemplate' defined in class path resource [com/projecta/core/config/SolrEmbeddedConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.solr.core.SolrTemplate]: Factory method 'solrTemplate' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrServerFactoryBean' defined in class path resource [com/projecta/core/config/SolrEmbeddedConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.solr.server.support.EmbeddedSolrServerFactoryBean]: Factory method 'solrServerFactoryBean' threw exception; nested exception is java.lang.VerifyError: Bad return type
Exception Details:
Location:
org/springframework/data/solr/server/support/EmbeddedSolrServerFactory.getSolrServer(Ljava/lang/String;)Lorg/apache/solr/client/solrj/SolrServer; #4: areturn
Reason:
Type 'org/apache/solr/client/solrj/embedded/EmbeddedSolrServer' (current frame, stack[0]) is not assignable to 'org/apache/solr/client/solrj/SolrServer' (from method signature)
Current Frame:
bci: #4
flags: { }
locals: { 'org/springframework/data/solr/server/support/EmbeddedSolrServerFactory', 'java/lang/String' }
stack: { 'org/apache/solr/client/solrj/embedded/EmbeddedSolrServer' }
Bytecode:
0000000: 2ab6 0032 b0
; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'autocompleteDocumentService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.data.solr.core.SolrTemplate com.projecta.core.search.service.impl.AutocompleteDocumentServiceImpl.solrTemplate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrTemplate' defined in class path resource [com/projecta/core/config/SolrEmbeddedConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.solr.core.SolrTemplate]: Factory method 'solrTemplate' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrServerFactoryBean' defined in class path resource [com/projecta/core/config/SolrEmbeddedConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.solr.server.support.EmbeddedSolrServerFactoryBean]: Factory method 'solrServerFactoryBean' threw exception; nested exception is java.lang.VerifyError: Bad return type
Exception Details:
Location:
org/springframework/data/solr/server/support/EmbeddedSolrServerFactory.getSolrServer(Ljava/lang/String;)Lorg/apache/solr/client/solrj/SolrServer; #4: areturn
Reason:
Type 'org/apache/solr/client/solrj/embedded/EmbeddedSolrServer' (current frame, stack[0]) is not assignable to 'org/apache/solr/client/solrj/SolrServer' (from method signature)
Current Frame:
bci: #4
flags: { }
locals: { 'org/springframework/data/solr/server/support/EmbeddedSolrServerFactory', 'java/lang/String' }
stack: { 'org/apache/solr/client/solrj/embedded/EmbeddedSolrServer' }
Bytecode:
0000000: 2ab6 0032 b0
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) [spring-web-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) [spring-web-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) [spring-web-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4937) [tomcat-embed-core-7.0.42.jar:7.0.42]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) [tomcat-embed-core-7.0.42.jar:7.0.42]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-7.0.42.jar:7.0.42]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) [tomcat-embed-core-7.0.42.jar:7.0.42]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) [tomcat-embed-core-7.0.42.jar:7.0.42]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0]
at java.lang.Thread.run(Thread.java:744) [na:1.8.0]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'autocompleteDocumentService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.data.solr.core.SolrTemplate com.projecta.core.search.service.impl.AutocompleteDocumentServiceImpl.solrTemplate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrTemplate' defined in class path resource [com/projecta/core/config/SolrEmbeddedConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.solr.core.SolrTemplate]: Factory method 'solrTemplate' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'solrServerFactoryBean' defined in class path resource [com/projecta/core/config/SolrEmbeddedConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.solr.server.support.EmbeddedSolrServerFactoryBean]: Factory method 'solrServerFactoryBean' threw exception; nested exception is java.lang.VerifyError: Bad return type
Exception Details:
Location:
org/springframework/data/solr/server/support/EmbeddedSolrServerFactory.getSolrServer(Ljava/lang/String;)Lorg/apache/solr/client/solrj/SolrServer; #4: areturn
Reason:
Type 'org/apache/solr/client/solrj/embedded/EmbeddedSolrServer' (current frame, stack[0]) is not assignable to 'org/apache/solr/client/solrj/SolrServer' (from method signature)
Current Frame:
bci: #4
flags: { }
locals: { 'org/springframework/data/solr/server/support/EmbeddedSolrServerFactory', 'java/lang/String' }
stack: { 'org/apache/solr/client/solrj/embedded/EmbeddedSolrServer' }
Bytecode:
0000000: 2ab6 0032 b0
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 24 common frames omitted
Exception 2: thrown with Solr Version 4 downgrade.
21:03:12.818 [coreLoadExecutor-13-thread-1] ERROR org.apache.solr.core.CoreContainer - Error creating core [collection1]: Error opening new searcher
org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:881) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:654) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:491) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:255) [solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249) [solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0]
at java.lang.Thread.run(Thread.java:744) [na:1.8.0]
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1574) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1686) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:853) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
... 8 common frames omitted
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock#/Users/foo/workspace/ProjectX/solr_sandbox/collection1/data/index/write.lock
at org.apache.lucene.store.Lock.obtain(Lock.java:89) ~[lucene-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:43]
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:755) ~[lucene-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:43]
at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:77) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:64) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.update.DefaultSolrCoreState.createMainIndexWriter(DefaultSolrCoreState.java:284) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.update.DefaultSolrCoreState.getIndexWriter(DefaultSolrCoreState.java:116) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1537) ~[solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
... 10 common frames omitted
21:03:14.655 [Finalizer] ERROR o.apache.solr.update.SolrIndexWriter - SolrIndexWriter was not closed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!
21:03:14.656 [Finalizer] ERROR o.apache.solr.update.SolrIndexWriter - Error closing IndexWriter
java.lang.NullPointerException: null
at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3271) ~[lucene-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:43]
at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3240) ~[lucene-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:43]
at org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:910) ~[lucene-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:43]
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:987) ~[lucene-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:43]
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:957) ~[lucene-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:38:43]
at org.apache.solr.update.SolrIndexWriter.close(SolrIndexWriter.java:129) [solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at org.apache.solr.update.SolrIndexWriter.finalize(SolrIndexWriter.java:182) [solr-core-4.10.4.jar:4.10.4 1662817 - mike - 2015-02-27 16:43:07]
at java.lang.System$2.invokeFinalize(System.java:1267) [na:1.8.0]
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98) [na:1.8.0]
at java.lang.ref.Finalizer.access$100(Finalizer.java:34) [na:1.8.0]
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210) [na:1.8.0]
The Solr/SolrJ 5 release changed more that the simple introduction of SolrClient. Therefore Spring-Data-Solr is at this time not yet compatible with the newer client library. However there's already an issue branch for DATASOLR-232 available on github.
For some reason the 4.10.x version of EmbeddedSolrServer sometimes leaves the write lock in place when shutting down. That causes the issue with non starting server. Maybe <unlockOnStartup>true</unlockOnStartup> helps.
Apart solrClient changes in solrj 5.x they also changed class inheritancy hierarchy which makes spring-data-solr current version 1.4.1 incompatible with solrj 5.x
HttpSolrServerFactory (spring-data-solr) expects SolrServer (solrj) implementation class (HttpSolrServer) available in 4.10.x version but from 5.x version of solrj HttpSolrServer doesn't extend SolrServer but falls in different inheritance hierarchy of HttpSolrClient which causes the issue.
Need to wait for recent development in process for spring-data-solr which supports 5.x version of solrj. Check spring-data-solr github