Hi Nick, Looking at the config i just noticed that u haven’t spec’ed any fields, see http://wiki.eclipse.org/SMILA/Documentation/Solr#Indexing_data Note - that the Pipelet doesn’t support Solr’s dynamic fields (yet) and hence u need to define each source field you want to store in the Pipelet config. - The solr integration doesn’t refer to the data dictionary nor the mapping of the current lucene impl. Thomas Menzel @ brox IT-Solutions GmbH From: smila-user-bounces@xxxxxxxxxxx [mailto:smila-user-bounces@xxxxxxxxxxx] On Behalf Of Nick Sent: Dienstag, 13. Dezember 2011 11:00 To: Smila project user mailing list Subject: Re: [smila-user] Solr Index Pipelet usage Hi Thomas,
thank you for the reply. - the Solr bundle is started
- I run Solr in embedded mode
- Solr should be running as, in JConsole, I see its instance in MBeans tab.
Nick 2011/12/13 Thomas Menzel <tmenzel@xxxxxxx> Hi Nick, A few question to poke into the dark: - Did u start the solr bundle? - Do u run solr remote or embedded? - If the latter: is ur solr instance running? Unless u give some more specifics on setup it’s hard to tell from here… PS: the most recent changes in smila’s trunk (last few weeks) aren’t tested well in connection with solr. So there might have been a breaking change that isn’t detected by the tests, though I doubt that. Thomas Menzel @ brox IT-Solutions GmbH Hi, Fine so far … Actually, I’m not accustomed to the solr integration myself, so I currently don’t know what could be the problem here. There should be a stacktrace in the log that could tell you more about the condition, or you could try to debug in the SolrIndexPipelet.configure() to see what happens there. Thomas, do you have an idea? Regards, Jürgen. Hi Jurgen,
thank you for the quick reply. Yor guess was right, I'm running SMILA in Eclipse IDE. Adding the bundle to the launch configuration, the pipelet now is instatiated, but I obtain an error in initialising the pipelet itself.
ERROR [Component Resolve Thread (Bundle 2)] store.ProcessStoreImpl - Deploy failed; error: [CompilationErrors] Compilation completed with 1 error(s): file:/home/nick/Desktop/workspace/SMILA.application/workspace/.metadata/.plugins/org.eclipse.smila.processing.bpel/pipelines/AddPipeline.bpel:143: error: [AddPipeline/SolrIndexPipelet] error initialising pipelet
The pipelet configuration is:
<extensionActivity> <proc:invokePipelet name="SolrIndexPipelet"> <proc:pipelet class="org.eclipse.smila.solr.index.SolrIndexPipelet" /> <proc:variables input="request" output="request" /> <proc:configuration> <rec:Val key="ExecutionMode">ADD</rec:Val> <rec:Val key="CoreName">DefaultCore</rec:Val> </proc:configuration> </proc:invokePipelet> </extensionActivity>
Thank you,
Nick 2011/12/12 Jürgen Schumacher <juergen.schumacher@xxxxxxxxxxxxx> Hi Nick, Just guessing: If you are running SMILA in the Eclipse-IDE, you probably just need to add the “org.eclipse.smila.solr” bundle to the launch configuration: Go to Menu “Run” -> “Run Configurations…”, select “OSGi Framework” -> “SMILA” and then on the “Bundles”-Tab set the chechbox for “org.eclipse.smila.solr”, and I think you need to set “Auto-Start” to true, too. “default” for “Start Level” should be sufficient. Regards, Jürgen Hi,
I'm trying to use Solr indexing service instead of the Lucene one. I followed the guideline on the SMILA's wiki page wiki.eclipse.org/SMILA/Documentation/Solr . Here the extension activity in Addpipeline.bpel:
<extensionActivity> <proc:invokePipelet name="SolrIndexPipelet"> <proc:pipelet class="org.eclipse.smila.solr.index.SolrIndexPipelet" /> <proc:variables input="request" output="request" /> <proc:configuration> <rec:Val key="ExecutionMode">ADD</rec:Val> <rec:Val key="CoreName">DefaultCore</rec:Val> </proc:configuration> </proc:invokePipelet> </extensionActivity>
But what I obtain when running the pipeline is such exception:
org.eclipse.smila.processing.ProcessingException: Error processing BPEL workflow AddPipeline: Invocation of pipeline element AddPipeline/SolrIndexPipelet failed: Pipelet of class org.eclipse.smila.solr.index.SolrIndexPipelet for activity AddPipeline/SolrIndexPipelet is not yet instantiated. at org.eclipse.smila.processing.bpel.ODEWorkflowProcessor.process(ODEWorkflowProcessor.java:155) at org.eclipse.smila.processing.worker.PipelineProcessorWorker.processRecords(PipelineProcessorWorker.java:98) at org.eclipse.smila.processing.worker.PipelineProcessorWorker.perform(PipelineProcessorWorker.java:74) at org.eclipse.smila.processing.worker.ProcessingWorker.perform(ProcessingWorker.java:51) at org.eclipse.smila.workermanager.internal.WorkerRunner.call(WorkerRunner.java:55) at org.eclipse.smila.workermanager.internal.WorkerRunner.call(WorkerRunner.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) 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.eclipse.smila.processing.ProcessingException: Invocation of pipeline element AddPipeline/SolrIndexPipelet failed: Pipelet of class org.eclipse.smila.solr.index.SolrIndexPipelet for activity AddPipeline/SolrIndexPipelet is not yet instantiated. at org.eclipse.smila.processing.bpel.PipeletManager.newProcessingException(PipeletManager.java:558) at org.eclipse.smila.processing.bpel.PipeletManager.invokePipelet(PipeletManager.java:260) at org.eclipse.smila.processing.bpel.PipeletManager.invokeActivity(PipeletManager.java:190) at org.eclipse.smila.processing.bpel.SMILAExtensionBundle$InvokePipeletActivity.run(SMILAExtensionBundle.java:67) at org.eclipse.smila.processing.bpel.SMILAExtensionBundle$InvokePipeletActivity.run(SMILAExtensionBundle.java:79) at org.apache.ode.bpel.rtrep.v2.EXTENSIONACTIVITY.run(EXTENSIONACTIVITY.java:62) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451) at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139) at org.apache.ode.bpel.rtrep.v2.RuntimeInstanceImpl.execute(RuntimeInstanceImpl.java:639) at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:593) at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.executeCreateInstance(BpelRuntimeContextImpl.java:581) at org.apache.ode.bpel.engine.ODEProcess.executeCreateInstance(ODEProcess.java:373) at org.apache.ode.bpel.engine.ODEProcess$2.call(ODEProcess.java:295) at org.apache.ode.bpel.engine.ODEProcess$2.call(ODEProcess.java:294) at org.apache.ode.bpel.engine.ODEProcess$ProcessCallable.call(ODEProcess.java:1206) at org.apache.ode.bpel.engine.BpelInstanceWorker.doInstanceWork(BpelInstanceWorker.java:174) at org.apache.ode.bpel.engine.BpelInstanceWorker.execInCurrentThread(BpelInstanceWorker.java:108) at org.apache.ode.bpel.engine.ODEProcess.doInstanceWork(ODEProcess.java:487) at org.apache.ode.bpel.engine.ODEProcess.invokeProcess(ODEProcess.java:293) at org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl.doInvoke(MyRoleMessageExchangeImpl.java:122) at org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl$1.call(UnreliableMyRoleMessageExchangeImpl.java:44) at org.apache.ode.bpel.engine.UnreliableMyRoleMessageExchangeImpl$1.call(UnreliableMyRoleMessageExchangeImpl.java:43) at org.apache.ode.bpel.engine.ODEProcess$ProcessCallable.call(ODEProcess.java:1206) at org.apache.ode.bpel.engine.Contexts.execTransaction(Contexts.java:106) at org.apache.ode.bpel.engine.BpelServerImpl$TransactedCallable.call(BpelServerImpl.java:968) at org.apache.ode.bpel.engine.BpelServerImpl$ServerCallable.call(BpelServerImpl.java:948) ... 5 more
Am I missing any configuration?
Thank you,
Nick _______________________________________________ smila-user mailing list smila-user@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/smila-user
_______________________________________________ smila-user mailing list smila-user@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/smila-user
|