Desperately need help with BPEL on BPS 1.1.0

tariq_islam.hotmail.com's picture
Hello, I realize this is not BPEL forum, but I am in a desperate situation and don't know who else to ask at this point. I'm very close to my deadline and still can't get my first BPEL to work. Your few minutes of time will save me days/weeks of frustration. So, thank you in advance for helping.... I am attaching my process FYI. I have a single web service implementation WorkspaceSearch, which needs to be wrapped with a process called DISAInternalSearch. So, I have the same schema for both wsdl. In the future, the DISAInternalSearch will orchestrate between WorkspaceSearch and other search web services. But I can't get this BPEL to deploy successfully due to incompatible data types. It shows a successful deploy message, but the process does not show up in the list. In my simple process, all I need to do is: 1. Receive input of SearchRequest type in DISAInternalSearch process. 2. Assign the input to WorkspaceSearch input - also SearchRequest type but in a separate namespace. 3. Invoke the WorkspaceSearch web service with copied input. 4. Assign the output of the service call to the output variable of the process - both SearchResponse type. Again, separate namespaces. 5. Return the output. The problem is the BPS is complaining about the Assignments to be of different types. I'm not sure how to handle this. Here is the error stack: [2009-11-24 11:51:23,162] ERROR - file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:51: error: [CopyToMessageFromNonMessage] Copy to message variable workspaceInput requires a message for the r-value. [2009-11-24 11:51:23,165] ERROR - file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:59: error: [MismatchedMessageAssignment] Copy to message variable workspaceInput of type {http://mil.disa.federatedsearch/wsdl/WorkspaceSearch}SearchRequest from message input of type {http://mil.disa.federatedsearch/wsdl/DISAInternalSearch}SearchRequest is not permitted (the message types do not match). [2009-11-24 11:51:23,172] ERROR - Deploy failed; error: [CompilationErrors] Compilation completed with 2 error(s): file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:51: error: [CopyToMessageFromNonMessage] Copy to message variable workspaceInput requires a message for the r-value. file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:59: error: [MismatchedMessageAssignment] Copy to message variable workspaceInput of type {http://mil.disa.federatedsearch/wsdl/WorkspaceSearch}SearchRequest from message input of type {http://mil.disa.federatedsearch/wsdl/DISAInternalSearch}SearchRequest is not permitted (the message types do not match). org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 2 error(s): file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:51: error: [CopyToMessageFromNonMessage] Copy to message variable workspaceInput requires a message for the r-value. file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:59: error: [MismatchedMessageAssignment] Copy to message variable workspaceInput of type {http://mil.disa.federatedsearch/wsdl/WorkspaceSearch}SearchRequest from message input of type {http://mil.disa.federatedsearch/wsdl/DISAInternalSearch}SearchRequest is not permitted (the message types do not match). at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:763) 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:172) at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:135) at org.wso2.carbon.bpel.ode.integration.store.RegistryBasedProcessStoreImpl.deploy(RegistryBasedProcessStoreImpl.java:269) at org.wso2.carbon.bpel.BPELDeployer.deploy(BPELDeployer.java:278) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:795) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:338) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:332) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:64) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:71) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:90) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) [2009-11-24 11:51:23,219] ERROR - Deploy failed; error: [CompilationErrors] Compilation completed with 2 error(s): file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:51: error: [CopyToMessageFromNonMessage] Copy to message variable workspaceInput requires a message for the r-value. file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:59: error: [MismatchedMessageAssignment] Copy to message variable workspaceInput of type {http://mil.disa.federatedsearch/wsdl/WorkspaceSearch}SearchRequest from message input of type {http://mil.disa.federatedsearch/wsdl/DISAInternalSearch}SearchRequest is not permitted (the message types do not match).
AttachmentSize
DISAInternalSearch.zip6.66 KB
milinda's picture

How to fix the issues

Hi, I deployed your process without a issues after some modification. But the process is still not working and have some selection failure. You have to correct those. I'll try to fix those if I could find some free time. According to your schema first assignment should look like following. $workspaceInput.SearchRequest $input.SearchRequest/ns2:pageNo $workspaceInput.SearchRequest/ns2:request/ns2.pageNo I didn't include correct XML in literal copy. The correct XML should look like following. Please modify the BPEL to reflect that. ? ? ? ? ? ? ? ? ? ? Now you have to copy the each field using XPath expression like I have done in the second copy. My XPath is wrong you have to use correct XPaths. there is a sample process called LoanProcess in BPS 1.1.0 distribution under BPS_HOME/repositories/bpel direcotry. Can you look at it and figure out how to use Xpath to copy value to request. Also Netbeans BPEL editor has more features for data manipulation than Eclipse editor. Please try to use that for creating BPEL assigns. Netbeans Data Mapper can be used to create XPath expressions. Thanks Milinda
tariq_islam.hotmail.com's picture

I'm sorry, I still can't get it to deploy - please help

Hi Milinda, I feel like such a dumb engineer. I tried to follow your suggestion but it still doesn't deploy. I get pretty much the same error messages. I understand if you are too busy with other things. But if you are curious, I'm adding the latest along with error messages FYI. Seems like I just can't get over the hump for this one. Thanks, Tariq. Error Messages: [2009-11-25 23:55:29,130] ERROR - Deploy failed; error: [CompilationErrors] Compilation completed with 2 error(s): file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:51: error: [CopyToMessageFromNonM essage] Copy to message variable workspaceInput requires a message for the r-value. file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:59: error: [MismatchedMessageAssi gnment] Copy to message variable workspaceInput of type {http://mil.disa.federatedsearch/wsdl/WorkspaceSearch}SearchRequest from message input of type {http://mil.disa.federatedsearch/wsdl/DISAInternalSearch}SearchRequest is not permitted (the message types do not match).
waruna's picture

Hi, I am able to deploy the

Hi, I am able to deploy the process (http://wso2.org/files/DISAInternalSearch_4.zip) without a problem in WSO2 BPS 1.1.0
tariq_islam.hotmail.com's picture

Are you sure it actually deployed?

Hello Waruna, Thanks for your response. But are you sure it actually deployed and shows up in the process list? Because, I took your zip file and tried to deploy it on my machine, and I got exactly the same error as I explained in this post. Here is the error message again fyi... The admin console says it deployed successfully, but the error message shows up in the log. [2009-12-04 00:46:37,728] INFO - Starting deployment of processes from directory "D:\programs\WSO2BP~1.0\bin\..\tmp\bpel\DISAInternalSearch-6". [2009-12-04 00:46:37,786] INFO - info: [CompilingProcess] Compiling BPEL process. [2009-12-04 00:46:37,848] INFO - info: [CompilingProcess] Compiling BPEL process. [2009-12-04 00:46:37,877] ERROR - file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:51: er ror: [CopyToMessageFromNonMessage] Copy to message variable workspaceInput requires a message for the r-value. [2009-12-04 00:46:37,880] ERROR - file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:59: er ror: [MismatchedMessageAssignment] Copy to message variable workspaceInput of type {http://mil.disa.federatedsearch/wsdl/WorkspaceSearch}SearchRequest from message input of type {http://mil.disa.federatedsearch/wsdl/DISAInternalSearch}SearchRequest is not permitted (the message types do not match). [2009-12-04 00:46:37,887] ERROR - Deploy failed; error: [CompilationErrors] Compilation completed with 2 error(s): file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:51: error: [CopyToMessageFromNonM essage] Copy to message variable workspaceInput requires a message for the r-value. file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:59: error: [MismatchedMessageAssi gnment] Copy to message variable workspaceInput of type {http://mil.disa.federatedsearch/wsdl/WorkspaceSearch}SearchRequest from message input of type {http://mil.disa.federatedsearch/wsdl/DISAInternalSearch}SearchRequest is not permitted (the message types do not match). org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 2 error(s): file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:51: error: [CopyToMessageFromNonM essage] Copy to message variable workspaceInput requires a message for the r-value. file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:59: error: [MismatchedMessageAssi gnment] Copy to message variable workspaceInput of type {http://mil.disa.federatedsearch/wsdl/WorkspaceSearch}SearchRequest from message input of type {http://mil.disa.federatedsearch/wsdl/DISAInternalSearch}SearchRequest is not permitted (the message types do not match). at org.apache.ode.bpel.compiler.v2.BpelCompilerImpl.compile(BpelCompilerImpl.java:763) 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:172) at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:135) at org.wso2.carbon.bpel.ode.integration.store.RegistryBasedProcessStoreImpl.deploy(RegistryBasedProcessStoreImpl.java:269) at org.wso2.carbon.bpel.BPELDeployer.deploy(BPELDeployer.java:278) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:795) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:338) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:332) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:64) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:71) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:90) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) [2009-12-04 00:46:37,932] ERROR - Deploy failed; error: [CompilationErrors] Compilation completed with 2 error(s): file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:51: error: [CopyToMessageFromNonM essage] Copy to message variable workspaceInput requires a message for the r-value. file:/D:/programs/WSO2BP~1.0/bin/../tmp/bpel/DISAInternalSearch-6/DISAInternalSearch/DISAInternalSearch.bpel:59: error: [MismatchedMessageAssi gnment] Copy to message variable workspaceInput of type {http://mil.disa.federatedsearch/wsdl/WorkspaceSearch}SearchRequest from message input of type {http://mil.disa.federatedsearch/wsdl/DISAInternalSearch}SearchRequest is not permitted (the message types do not match).
waruna's picture

Yes, it appears in the process list

I'm using WSO2 BPS 1.1.0 May be try using a new BPS instance. Please use Management Console to upload bpel processes.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)