Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[smila-user] Problem in Pipelet Extension Bundle

Hi folks,
I'm using SMILA 1.0.

Often happens that when I start SMILA (in eclipse) I found an error in log that tells me there are problems registernig bpel pipeline.

 2012-05-10 12:59:36,859 ERROR [Component Resolve Thread (Bundle 31)         ]  bpel.BpelWorkflowProcessor                    - Deployment of predefined pipelines failed. Installing custom pipelines should still work.
org.eclipse.smila.processing.ProcessingException: Predefined workflow directory 'pipelines' contains invalid definitions, no workflow from this directory will be available.
    at org.eclipse.smila.processing.bpel.internal.DeploymentManager.deployPredefinedWorkflows(DeploymentManager.java:110)
    at org.eclipse.smila.processing.bpel.internal.OdeBpelEngine.deployPredefinedWorkflows(OdeBpelEngine.java:125)
    at org.eclipse.smila.processing.bpel.BpelWorkflowProcessor.deployPredefinedPipelines(BpelWorkflowProcessor.java:361)
    at org.eclipse.smila.processing.bpel.BpelWorkflowProcessor.initializeBpel(BpelWorkflowProcessor.java:338)
    at org.eclipse.smila.processing.bpel.BpelWorkflowProcessor.activate(BpelWorkflowProcessor.java:254)
    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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:227)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
    at org.eclipse.equinox.internal.ds.ServiceReg.getService(ServiceReg.java:53)
    at org.eclipse.osgi.internal.serviceregistry.ServiceUse$1.run(ServiceUse.java:138)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.internal.serviceregistry.ServiceUse.getService(ServiceUse.java:136)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:468)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:467)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getService(BundleContextImpl.java:594)
    at org.eclipse.equinox.internal.ds.InstanceProcess.getService(InstanceProcess.java:686)
    at org.eclipse.equinox.internal.ds.model.ComponentReference.getMethod(ComponentReference.java:111)
    at org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:322)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
    at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:344)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
    at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
    at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:441)
    at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:213)
    at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:800)
    at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:767)
    at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
    at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Caused by: java.lang.NullPointerException
    at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle.registerActivity(PipeletExtensionBundle.java:76)
    at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle.access$1(PipeletExtensionBundle.java:52)
    at org.eclipse.smila.processing.bpel.activities.PipeletExtensionBundle$InvokePipeletActivity.validate(PipeletExtensionBundle.java:119)
    at org.apache.ode.bpel.compiler.v2.ExtensionActivtityGenerator.compile(ExtensionActivtityGenerator.java:54)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl$7.run(BpelCompilerImpl.java:899)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:1068)
    at org.apache.ode.bpel.compiler.v2.BpelCompiler20.compile(BpelCompiler20.java:1)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compileActivity(BpelCompilerImpl.java:895)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:838)
    at org.apache.ode.bpel.compiler.v2.BpelCompiler20.compile(BpelCompiler20.java:1)
    at org.apache.ode.bpel.compiler.v2.SequenceGenerator.compileChildren(SequenceGenerator.java:55)
    at org.apache.ode.bpel.compiler.v2.SequenceGenerator.compile(SequenceGenerator.java:46)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl$7.run(BpelCompilerImpl.java:899)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:1068)
    at org.apache.ode.bpel.compiler.v2.BpelCompiler20.compile(BpelCompiler20.java:1)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compileActivity(BpelCompilerImpl.java:895)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:838)
    at org.apache.ode.bpel.compiler.v2.BpelCompiler20.compile(BpelCompiler20.java:1)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl$5.run(BpelCompilerImpl.java:744)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl$8.run(BpelCompilerImpl.java:1168)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:1068)
    at org.apache.ode.bpel.compiler.v2.BpelCompiler20.compile(BpelCompiler20.java:1)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compileScope(BpelCompilerImpl.java:1118)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:724)
    at org.apache.ode.bpel.compiler.v2.BpelCompiler20.compile(BpelCompiler20.java:1)
    at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:132)
    at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:268)
    at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:338)
    at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:171)
    at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:134)
    at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:183)
    at org.eclipse.smila.ode.ODEServer.deploy(ODEServer.java:172)
    at org.eclipse.smila.processing.bpel.internal.DeploymentManager.deployPredefinedWorkflows(DeploymentManager.java:108)
    ... 33 more


After some time spent to see what could be wrong, removing all my bpel and so on, I tried to debug that piece of code.

I found something strange in PipeletExtensionBundle.registerActivity.
A not Throwable NullPointerException was thorow.

I tried to spit in 2 lines
    PipeletManager.getServiceInstance().registerActivity(pipeletHolder);
so I had got
    PipeletManager pipeletManager = PipeletManager.getServiceInstance();
    pipeletManager.registerActivity(pipeletHolder);


And I saw that PipeletManager.getServiceInstance(); gave back a null pipeletManager.

If I wait few seconds here, the services are created and then the code runs right.

Now I wrote a workaround waiting that pipeletManager is not null.

It is a bug or there is something could be wrong in my configurations? Thanks
--

Lorenzo Eccher
lorenzo.eccher@xxxxxx

Research & Development Laboratory

Engineering Ingegneria informatica s.p.a

EngiWeb Security srl
Via Solteri, 38 - 38100 Trento
Tel. +39-0461.1822110
Fax. +39-0461.1822199
www.eng.it

  Le informazioni trasmesse sono destinate esclusivamente alla persona o alla società in indirizzo e sono da intendersi confidenziali e riservate. Ogni trasmissione, inoltro, diffusione o altro uso di queste informazioni a persone o società differenti dal destinatario è proibita. Se ricevete questa comunicazione per errore, contattate il mittente e cancellate le informazioni da ogni computer.
  The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.


Back to the top