Set the Analyzer throw exception


(zbgzao) #1

Hi,

I set chinese analyzer when create index throw exception.
-----------------------------------------------------------------------------Exception--------------------------------------------------------------------------
9) Error injecting constructor,
org.elasticsearch.util.settings.SettingsException: Component
[net.paoding.analysis.analyzer.PaodingAnalyzerProvider] does not start with
prefix [org.elasticsearch]
at org.elasticsearch.index.analysis.AnalysisService.(Unknown Source)
while locating org.elasticsearch.index.analysis.AnalysisService
for parameter 5 at
org.elasticsearch.index.query.IndexQueryParserService.(Unknown Source)
while locating org.elasticsearch.index.query.IndexQueryParserService
for parameter 4 at
org.elasticsearch.index.service.InternalIndexService.(Unknown Source)
while locating org.elasticsearch.index.service.InternalIndexService
while locating org.elasticsearch.index.service.IndexService
for parameter 3 at
org.elasticsearch.index.IndexServiceManagement.(Unknown Source)
while locating org.elasticsearch.index.IndexServiceManagement
Caused by: org.elasticsearch.util.settings.SettingsException: Component
[net.paoding.analysis.analyzer.PaodingAnalyzerProvider] does not start with
prefix [org.elasticsearch]
at
org.elasticsearch.util.settings.ImmutableSettings.getComponentSettings(ImmutableSettings.java:83)
at
org.elasticsearch.util.settings.ImmutableSettings.getComponentSettings(ImmutableSettings.java:77)
at
org.elasticsearch.index.AbstractIndexComponent.(AbstractIndexComponent.java:46)
at
org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider.(AbstractIndexAnalyzerProvider.java:36)
at
net.paoding.analysis.analyzer.PaodingAnalyzerProvider.(PaodingAnalyzerProvider.java:25)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.elasticsearch.util.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:53)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.FactoryProxy.get(FactoryProxy.java:56)
at
org.elasticsearch.util.inject.InjectorImpl$4$1.call(InjectorImpl.java:738)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.InjectorImpl$4.get(InjectorImpl.java:734)
at
org.elasticsearch.util.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:210)
at $Proxy17.create(Unknown Source)
at
org.elasticsearch.index.analysis.AnalysisService.(AnalysisService.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.elasticsearch.util.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:53)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.util.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.util.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.util.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.util.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.util.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.util.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.util.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.util.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.FactoryProxy.get(FactoryProxy.java:56)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.util.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.util.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.util.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.util.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.util.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.util.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.util.inject.InjectorBuilder$1.call(InjectorBuilder.java:197)
at
org.elasticsearch.util.inject.InjectorBuilder$1.call(InjectorBuilder.java:191)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:784)
at
org.elasticsearch.util.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:191)
at
org.elasticsearch.util.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:173)
at
org.elasticsearch.util.inject.InjectorBuilder.build(InjectorBuilder.java:110)
at
org.elasticsearch.util.inject.InjectorImpl.createChildInjector(InjectorImpl.java:124)
at
org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:197)
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.elasticsearch.util.inject.internal.ConstructionContext$DelegatingInvocationHandler.invoke(ConstructionContext.java:108)
at $Proxy13.createIndex(Unknown Source)
at
org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewIndices(IndicesClusterStateService.java:170)
at
org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:110)
at
org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:198)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Can you help me?

--

心想事成, 万事如意
Email: zbgzao@gmail.com
....


(Shay Banon) #2

Can you send the configuration? If you wrote your own, can you send the
code?

On Fri, Jun 4, 2010 at 3:06 AM, Evan Zheng zbgzao@gmail.com wrote:

Hi,

I set chinese analyzer when create index throw exception.

-----------------------------------------------------------------------------Exception--------------------------------------------------------------------------
9) Error injecting constructor,
org.elasticsearch.util.settings.SettingsException: Component
[net.paoding.analysis.analyzer.PaodingAnalyzerProvider] does not start with
prefix [org.elasticsearch]
at org.elasticsearch.index.analysis.AnalysisService.(Unknown
Source)
while locating org.elasticsearch.index.analysis.AnalysisService
for parameter 5 at
org.elasticsearch.index.query.IndexQueryParserService.(Unknown Source)
while locating org.elasticsearch.index.query.IndexQueryParserService
for parameter 4 at
org.elasticsearch.index.service.InternalIndexService.(Unknown Source)
while locating org.elasticsearch.index.service.InternalIndexService
while locating org.elasticsearch.index.service.IndexService
for parameter 3 at
org.elasticsearch.index.IndexServiceManagement.(Unknown Source)
while locating org.elasticsearch.index.IndexServiceManagement
Caused by: org.elasticsearch.util.settings.SettingsException: Component
[net.paoding.analysis.analyzer.PaodingAnalyzerProvider] does not start with
prefix [org.elasticsearch]
at
org.elasticsearch.util.settings.ImmutableSettings.getComponentSettings(ImmutableSettings.java:83)
at
org.elasticsearch.util.settings.ImmutableSettings.getComponentSettings(ImmutableSettings.java:77)
at
org.elasticsearch.index.AbstractIndexComponent.(AbstractIndexComponent.java:46)
at
org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider.(AbstractIndexAnalyzerProvider.java:36)
at
net.paoding.analysis.analyzer.PaodingAnalyzerProvider.(PaodingAnalyzerProvider.java:25)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.elasticsearch.util.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:53)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.FactoryProxy.get(FactoryProxy.java:56)
at
org.elasticsearch.util.inject.InjectorImpl$4$1.call(InjectorImpl.java:738)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.InjectorImpl$4.get(InjectorImpl.java:734)
at
org.elasticsearch.util.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:210)
at $Proxy17.create(Unknown Source)
at
org.elasticsearch.index.analysis.AnalysisService.(AnalysisService.java:69)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.elasticsearch.util.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:53)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.util.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.util.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.util.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.util.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.util.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.util.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.util.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.util.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.FactoryProxy.get(FactoryProxy.java:56)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.util.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.util.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.util.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
at
org.elasticsearch.util.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
at
org.elasticsearch.util.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
at
org.elasticsearch.util.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:97)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:791)
at
org.elasticsearch.util.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at org.elasticsearch.util.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.util.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at
org.elasticsearch.util.inject.InjectorBuilder$1.call(InjectorBuilder.java:197)
at
org.elasticsearch.util.inject.InjectorBuilder$1.call(InjectorBuilder.java:191)
at
org.elasticsearch.util.inject.InjectorImpl.callInContext(InjectorImpl.java:784)
at
org.elasticsearch.util.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:191)
at
org.elasticsearch.util.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:173)
at
org.elasticsearch.util.inject.InjectorBuilder.build(InjectorBuilder.java:110)
at
org.elasticsearch.util.inject.InjectorImpl.createChildInjector(InjectorImpl.java:124)
at
org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:197)
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.elasticsearch.util.inject.internal.ConstructionContext$DelegatingInvocationHandler.invoke(ConstructionContext.java:108)
at $Proxy13.createIndex(Unknown Source)
at
org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewIndices(IndicesClusterStateService.java:170)
at
org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:110)
at
org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:198)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

Can you help me?

--

心想事成, 万事如意
Email: zbgzao@gmail.com
....


(zbgzao) #3

elasticseaerch.yml:
index:
analysis:
analyzer:
standard:
type: net.paoding.analysis.analyzer.PaodingAnalyzerProvider

code:
http://chinese-analyzer-for-elasticsearch.googlecode.com/svn/trunk/

On Sat, Jun 5, 2010 at 12:25 AM, Shay Banon shay.banon@elasticsearch.comwrote:

Can you send the configuration? If you wrote your own, can you send the
code?

On Fri, Jun 4, 2010 at 3:06 AM, Evan Zheng zbgzao@gmail.com wrote:

Hi,

I set chinese analyzer when create index throw exception.

-----------------------------------------------------------------------------Exception--------------------------------------------------------------------------
9) Error injecting constructor,
org.elasticsearch.util.settings.SettingsException: Component
[net.paoding.analysis.analyzer.PaodingAnalyzerProvider] does not start with
prefix [org.elasticsearch]
at org.elasticsearch.index.analysis.AnalysisService.(Unknown
Source)
while locating org.elasticsearch.index.analysis.AnalysisService
for parameter 5 at
org.elasticsearch.index.query.IndexQueryParserService.(Unknown Source)
while locating org.elasticsearch.index.query.IndexQueryParserService
for parameter 4 at
org.elasticsearch.index.service.InternalIndexService.(Unknown Source)
while locating org.elasticsearch.index.service.InternalIndexService
while locating org.elasticsearch.index.service.IndexService
for parameter 3 at
org.elasticsearch.index.IndexServiceManagement.(Unknown Source)
while locating org.elasticsearch.index.IndexServiceManagement
Caused by: org.elasticsearch.util.settings.SettingsException: Component
[net.paoding.analysis.analyzer.PaodingAnalyzerProvider] does not start with
prefix [org.elasticsearch]

Can you help me?

--

心想事成, 万事如意
Email: zbgzao@gmail.com
....

--

心想事成, 万事如意
Email: zbgzao@gmail.com
....


(system) #4