[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[smila-user] Invocation of pipelet error

Hi,

I'm doing a refactoring of my project, after having refactored all the bundles I obtain an error in the BPEL workflows:

org.eclipse.smila.processing.ProcessingException: Error processing BPEL workflow FrameMatchingPipeline: Invocation of pipeline element FrameMatchingPipeline/FrameMatchingPipelet@37 failed due to pipelet error: Pipelet of class eu.cubrikprj.pipelet.polmi.FrameMatching.FrameMatchingPipelet for activity FrameMatchingPipeline/FrameMatchingPipelet@37 is not yet instantiated.
    at org.eclipse.smila.processing.bpel.BpelWorkflowProcessor.process(BpelWorkflowProcessor.java:109)
    at org.eclipse.smila.processing.worker.PipelineProcessorWorker.processRecords(PipelineProcessorWorker.java:101)
    at org.eclipse.smila.processing.worker.PipelineProcessorWorker.perform(PipelineProcessorWorker.java:74)
    at org.eclipse.smila.processing.worker.ProcessingWorker.perform(ProcessingWorker.java:78)
    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(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.smila.processing.ProcessingException: Invocation of pipeline element FrameMatchingPipeline/FrameMatchingPipelet@37 failed due to pipelet error: Pipelet of class eu.cubrikprj.pipelet.polmi.FrameMatching.FrameMatchingPipelet for activity FrameMatchingPipeline/FrameMatchingPipelet@37 is not yet instantiated.
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.newProcessingException(PipeletManager.java:244)
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.invokePipelet(PipeletManager.java:140)
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.invokeActivity(PipeletManager.java:72)
    at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle.invokeActivity(PipeletExtensionBundle.java:67)
    at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle.access$0(PipeletExtensionBundle.java:64)
    at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle$InvokePipeletActivity.run(PipeletExtensionBundle.java:109)
    at org.apache.ode.bpel.rtrep.v2.EXTENSIONACTIVITY.run(EXTENSIONACTIVITY.java:62)
    at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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
Caused by: org.eclipse.smila.processing.ProcessingException: Pipelet of class eu.cubrikprj.pipelet.polmi.FrameMatching.FrameMatchingPipelet for activity FrameMatchingPipeline/FrameMatchingPipelet@37 is not yet instantiated.
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.checkAvailability(PipeletManager.java:147)
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.invokePipelet(PipeletManager.java:128)
    ... 33 more
 2012-05-14 11:14:23,433 WARN  [pool-3-thread-1                              ]  taskworker.DefaultTaskLogFactory              - Task cfbf5e59-b8a4-479b-ba3b-6c6201e14035: Failed to process records [id3], skipping them.
org.eclipse.smila.processing.ProcessingException: Error processing BPEL workflow FrameMatchingPipeline: Invocation of pipeline element FrameMatchingPipeline/FrameMatchingPipelet@37 failed due to pipelet error: Pipelet of class eu.cubrikprj.pipelet.polmi.FrameMatching.FrameMatchingPipelet for activity FrameMatchingPipeline/FrameMatchingPipelet@37 is not yet instantiated.
    at org.eclipse.smila.processing.bpel.BpelWorkflowProcessor.process(BpelWorkflowProcessor.java:109)
    at org.eclipse.smila.processing.worker.PipelineProcessorWorker.processRecords(PipelineProcessorWorker.java:101)
    at org.eclipse.smila.processing.worker.PipelineProcessorWorker.perform(PipelineProcessorWorker.java:74)
    at org.eclipse.smila.processing.worker.ProcessingWorker.perform(ProcessingWorker.java:78)
    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(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.smila.processing.ProcessingException: Invocation of pipeline element FrameMatchingPipeline/FrameMatchingPipelet@37 failed due to pipelet error: Pipelet of class eu.cubrikprj.pipelet.polmi.FrameMatching.FrameMatchingPipelet for activity FrameMatchingPipeline/FrameMatchingPipelet@37 is not yet instantiated.
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.newProcessingException(PipeletManager.java:244)
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.invokePipelet(PipeletManager.java:140)
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.invokeActivity(PipeletManager.java:72)
    at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle.invokeActivity(PipeletExtensionBundle.java:67)
    at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle.access$0(PipeletExtensionBundle.java:64)
    at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle$InvokePipeletActivity.run(PipeletExtensionBundle.java:109)
    at org.apache.ode.bpel.rtrep.v2.EXTENSIONACTIVITY.run(EXTENSIONACTIVITY.java:62)
    at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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
Caused by: org.eclipse.smila.processing.ProcessingException: Pipelet of class eu.cubrikprj.pipelet.polmi.FrameMatching.FrameMatchingPipelet for activity FrameMatchingPipeline/FrameMatchingPipelet@37 is not yet instantiated.
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.checkAvailability(PipeletManager.java:147)
    at org.eclipse.smila.processing.bpel.activities.PipeletManager.invokePipelet(PipeletManager.java:128)
    ... 33 more
 2012-05-14 11:14:23,434 ERROR [pool-3-thread-1                              ]  taskworker.DefaultTaskLogFactory              - Task cfbf5e59-b8a4-479b-ba3b-6c6201e14035: Error while executing task cfbf5e59-b8a4-479b-ba3b-6c6201e14035 in worker org.eclipse.smila.processing.worker.PipelineProcessorWorker@73f91b6e: None of the records of task cfbf5e59-b8a4-479b-ba3b-6c6201e14035 could be successfully processed, have a look at the log for details.
org.eclipse.smila.processing.ProcessingException: None of the records of task cfbf5e59-b8a4-479b-ba3b-6c6201e14035 could be successfully processed, have a look at the log for details.
    at org.eclipse.smila.processing.worker.ProcessingWorker.perform(ProcessingWorker.java:80)
    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(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
 2012-05-14 11:14:23,845 ERROR [pool-3-thread-2                              ]  internal.JobTaskProcessorImpl                 - A fatal error 'TaskWorker'('Error while executing task cfbf5e59-b8a4-479b-ba3b-6c6201e14035 in worker org.eclipse.smila.processing.worker.PipelineProcessorWorker@73f91b6e: None of the records of task cfbf5e59-b8a4-479b-ba3b-6c6201e14035 could be successfully processed, have a look at the log for details.') occurred in processing of task cfbf5e59-b8a4-479b-ba3b-6c6201e14035 of worker pipelineProcessor. Workflow run '1' will be marked as failed, its tasks will be canceled.

Usually such error was due to a wrong or missing json file in the pipelet bundle, but in this case in the FrameMatching bundle there is the SMILA-INF directory containing right "FrameMatchingPipelet.json":

{

      "class" : "eu.cubrikprj.pipelet.polmi.FrameMatching.FrameMatchingPipelet"

}

Here the FrameMatchingPipeline.bpel file:

<?xml version="1.0" encoding="utf-8" ?>
<!--
  * Copyright (c) 2008 empolis GmbH and brox IT Solutions GmbH.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
  * Contributors:
  * Daniel Stucky (empolis GmbH) - initial design
-->
<process name="FrameMatchingPipeline" targetNamespace="http://www.eclipse.org/smila/processor"
  xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:proc="http://www.eclipse.org/smila/processor" xmlns:rec="http://www.eclipse.org/smila/record"
  xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable">

  <import location="processor.wsdl" namespace="http://www.eclipse.org/smila/processor"
    importType="http://schemas.xmlsoap.org/wsdl/" />

  <partnerLinks>
    <partnerLink name="Pipeline" partnerLinkType="proc:ProcessorPartnerLinkType" myRole="service" />
  </partnerLinks>

  <extensions>
    <extension namespace="http://www.eclipse.org/smila/processor" mustUnderstand="no" />
  </extensions>

  <variables>
    <variable name="request" messageType="proc:ProcessorMessage" />
  </variables>

   
    <sequence name="FrameMatchingPipeline">
    <receive name="start" partnerLink="Pipeline" portType="proc:ProcessorPortType"
      operation="process" variable="request" createInstance="yes" />

        <extensionActivity>
           <proc:invokePipelet name="FrameMatchingPipelet">
             <proc:pipelet class="eu.cubrikprj.pipelet.polmi.FrameMatching.FrameMatchingPipelet" />
             <proc:variables input="request" output="request" />
             <proc:configuration>
                 <rec:Val key="matcherPath">D:/Matcher/Matcher.exe</rec:Val>
                 <rec:Val key="threshold">0.025</rec:Val>
                 <rec:Val key="upperBound">0.025</rec:Val>
                 <rec:Val key="serverAddress">https://85.18.109.178:443/logodetection/listfolder.cgi</rec:Val>
                 <rec:Val key="userID">polmi</rec:Val>
                 <rec:Val key="password">logo_detection_2012</rec:Val>
             </proc:configuration>
           </proc:invokePipelet>
         </extensionActivity>
        
         <forEach counterName="index" parallel="yes" name="iterateRecords">
           <startCounterValue>1</startCounterValue>
           <finalCounterValue>count($request.records/rec:Record)</finalCounterValue>
           <scope>

            <sequence>
             <if name="MatchScoreGreaterThanZero">
               <condition>not($request.records/rec:Record[position()=$index]/rec:Val[@key="toValidate"])</condition>
               <extensionActivity>
                 <proc:invokePipelet name="SolrIndexPipelet">
                     <proc:pipelet class="org.eclipse.smila.solr.index.SolrIndexPipelet" />
                     <proc:variables input="request" index="index"/>
                     <proc:configuration>
                          <rec:Val key="ExecutionMode">ADD</rec:Val>
                          <rec:Val key="CoreName">MatchCore</rec:Val>
                          <rec:Seq key="CoreFields">
                            <rec:Map>
                                  <rec:Val key="FieldName">frameURI</rec:Val>
                            </rec:Map>
                            <rec:Map>
                                  <rec:Val key="FieldName">frameInstant</rec:Val>
                            </rec:Map>
                            <rec:Map>
                                  <rec:Val key="FieldName">videoURI</rec:Val>
                            </rec:Map>
                            <rec:Map>
                                  <rec:Val key="FieldName">videoName</rec:Val>
                               </rec:Map>
                            <rec:Map>
                                 <rec:Val key="FieldName">logoURI</rec:Val>
                            </rec:Map>
                            <rec:Map>
                                  <rec:Val key="FieldName">brandName</rec:Val>
                            </rec:Map>
                            <rec:Map>
                                  <rec:Val key="FieldName">matchScore</rec:Val>
                            </rec:Map>
                          </rec:Seq>
                    </proc:configuration>
                  </proc:invokePipelet>
            </extensionActivity>
          </if>
        </sequence>
      </scope>
    </forEach>
   
    <extensionActivity>
           <proc:invokePipelet name="MatchFilterPipelet">
             <proc:pipelet class="eu.cubrikprj.pipelet.polmi.FrameMatching.MatchFilterPipelet" />
             <proc:variables input="request" output="request" />
             <proc:configuration>
                 <rec:Val key="lowerBound">0.025</rec:Val>
                 <rec:Val key="upperBound">0.025</rec:Val>
             </proc:configuration>   
           </proc:invokePipelet>
         </extensionActivity>
        
    <reply name="end" partnerLink="Pipeline" portType="proc:ProcessorPortType" operation="process"
      variable="request" />
    <exit />
  </sequence>
</process>

Could anyone guess which is the issue?

Thank you,

Nicolò Aquilini