bobo-browse install error

28 views
Skip to first unread message

jianwen lou

unread,
Oct 22, 2012, 1:42:53 AM10/22/12
to bobo-...@googlegroups.com
I try to run bobo-browse demo,but fail and get error:
What i need to do?
2012-10-22 13:40:35.218:WARN:/:unavailable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'color' defined in URL [file:/home/work/janwen/bobo-browse/bobo/cardata/cartag/bobo.spring]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [com.browseengine.bobo.facets.FacetHandler$TermCountSize] for property 'termCountSize'; nested exception is java.lang.IllegalArgumentException: Original must not be null
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
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:221)
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:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at com.browseengine.bobo.api.BoboIndexReader.loadFromIndex(BoboIndexReader.java:498)
at com.browseengine.bobo.api.BoboIndexReader.initialize(BoboIndexReader.java:516)
at com.browseengine.bobo.api.BoboIndexReader.facetInit(BoboIndexReader.java:610)
at com.browseengine.bobo.api.BoboIndexReader.facetInit(BoboIndexReader.java:605)
at com.browseengine.bobo.api.BoboIndexReader.getInstance(BoboIndexReader.java:148)
at com.browseengine.bobo.api.BoboIndexReader.getInstance(BoboIndexReader.java:112)
at com.browseengine.bobo.impl.BrowseServiceImpl.newIndexReader(BrowseServiceImpl.java:82)
at com.browseengine.bobo.impl.BrowseServiceImpl.newIndexReader(BrowseServiceImpl.java:68)
at com.browseengine.bobo.impl.BrowseServiceImpl.<init>(BrowseServiceImpl.java:54)
at com.browseengine.bobo.service.BrowseServiceFactory.createBrowseService(BrowseServiceFactory.java:47)
at com.browseengine.bobo.servlet.BrowseServlet.getServiceInstance(BrowseServlet.java:156)
at com.browseengine.bobo.servlet.BrowseServlet.init(BrowseServlet.java:145)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:736)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
2012-10-22 13:40:35.235:INFO::Started SelectChann...@0.0.0.0:8080
[INFO] Started Jetty Server

John Wang

unread,
Oct 22, 2012, 1:48:24 AM10/22/12
to bobo-...@googlegroups.com
What does your bobo.spring look like?

-John

--
You received this message because you are subscribed to the Google Groups "bobo-browse" group.
To view this discussion on the web visit https://groups.google.com/d/msg/bobo-browse/-/JhFHQFwXXvIJ.
To post to this group, send email to bobo-...@googlegroups.com.
To unsubscribe from this group, send email to bobo-browse...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bobo-browse?hl=en.

jianwen lou

unread,
Oct 22, 2012, 3:15:17 AM10/22/12
to bobo-...@googlegroups.com

I did not change any config from git repository,and i do my trial as this tutorial:https://linkedin.jira.com/wiki/display/BOBO/Getting+Started
Another help,Where can i see the cardemo rebuild index or i need to trigger the index-building?
thanks


bobo.spring:
<?xml version="1.0" encoding="UTF-8"?>
<bean id="color" class="com.browseengine.bobo.facets.impl.SimpleFacetHandler">
<constructor-arg value="color" />
<property name="termCountSize" value="small"/>
</bean>
<bean id="category" class="com.browseengine.bobo.facets.impl.SimpleFacetHandler">
<constructor-arg value="category" />
<property name="termCountSize" value="medium"/>
</bean>
<bean id="city" class="com.browseengine.bobo.facets.impl.PathFacetHandler">
<constructor-arg value="city" />
<property name="separator" value="/" />
</bean>
<bean id="makemodel" class="com.browseengine.bobo.facets.impl.PathFacetHandler">
<constructor-arg value="makemodel" />
<property name="separator" value="/" />
</bean>
<bean id="year" class="com.browseengine.bobo.facets.impl.RangeFacetHandler">
<constructor-arg value="year" />
<constructor-arg>
<bean class="com.browseengine.bobo.facets.data.PredefinedTermListFactory">
<constructor-arg value="java.lang.Integer"/>
<constructor-arg value="00000000000000000000" />
</bean>
</constructor-arg>
<constructor-arg>
    <list>
       <value>[1993 TO 1994]</value>
       <value>[1995 TO 1996]</value>
       <value>[1997 TO 1998]</value>
       <value>[1999 TO 2000]</value>
       <value>[2001 TO 2002]</value>
    </list>
</constructor-arg>
</bean>
<bean id="price" class="com.browseengine.bobo.facets.impl.RangeFacetHandler">
<constructor-arg value="price" />
<constructor-arg>
<bean class="com.browseengine.bobo.facets.data.PredefinedTermListFactory">
<constructor-arg value="java.lang.Float" />
<constructor-arg value="00000000000000000000" />
</bean>
</constructor-arg>
<constructor-arg>
    <list>
       <value>[2001 TO 6700]</value>
       <value>[6800 TO 9900]</value>
       <value>[10000 TO 13100]</value>
       <value>[13200 TO 17300]</value>
       <value>[17400 TO 19500]</value>
    </list>
</constructor-arg>
</bean>
<bean id="mileage" class="com.browseengine.bobo.facets.impl.RangeFacetHandler">
<constructor-arg value="mileage" />
<constructor-arg>
<bean class="com.browseengine.bobo.facets.data.PredefinedTermListFactory">
<constructor-arg value="java.lang.Integer"/>
<constructor-arg value="00000000000000000000" />
</bean>
</constructor-arg>
<constructor-arg>
    <list>
       <value>[* TO 12500]</value>
       <value>[12501 TO 15000]</value>
       <value>[15001 TO 17500]</value>
       <value>[17501 TO *]</value>
    </list>
</constructor-arg>
</bean>

<bean id="tags" class="com.browseengine.bobo.facets.impl.MultiValueFacetHandler">
<constructor-arg value="tags" />
</bean>
<bean id="handlers" class="java.util.ArrayList">
<constructor-arg>
<list>
<ref bean="color" />
<ref bean="category" />
<ref bean="city" />
<ref bean="makemodel" />
<ref bean="year" />
<ref bean="price" />
<ref bean="mileage" />
<ref bean="tags" />
</list>
</constructor-arg>
</bean>
</beans>
Reply all
Reply to author
Forward
0 new messages