| Chunk |
|---|
| Conflicting content |
|---|
}
private void undeploy(String pakage) throws Exception {
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/DeploymentTest.java
// Prepare undeploy message
=======
// Prepare undeploy message
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/DeploymentTest.java
OMNamespace depns = _factory.createOMNamespace(Namespaces.ODE_DEPLOYAPI_NS, "deployapi");
OMElement root = _factory.createOMElement("undeploy", depns);
OMElement part = _factory.createOMElement("packageName", null); |
| Solution content |
|---|
}
private void undeploy(String pakage) throws Exception {
// Prepare undeploy message
OMNamespace depns = _factory.createOMNamespace(Namespaces.ODE_DEPLOYAPI_NS, "deployapi");
OMElement root = _factory.createOMElement("undeploy", depns);
OMElement part = _factory.createOMElement("packageName", null); |
| File |
|---|
| DeploymentTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
}
private OMElement sendToPM(OMElement msg) throws AxisFault {
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/DeploymentTest.java
return _client.send(msg, "http://localhost:8888/processes/ProcessManagement");
}
private OMElement sendToDeployment(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:8888/processes/DeploymentService");
=======
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/ProcessManagement");
}
private OMElement sendToDeployment(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/DeploymentService");
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/DeploymentTest.java
}
} |
| Solution content |
|---|
}
private OMElement sendToPM(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/ProcessManagement");
}
private OMElement sendToDeployment(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/DeploymentService");
}
} |
| File |
|---|
| DeploymentTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.tools.sendsoap.cline.HttpSoapSender; import org.apache.ode.utils.Namespaces; import org.apache.ode.il.OMUtils; <<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java ======= import org.apache.ode.axis2.ODEConfigDirAware; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.IteratorUtils; import org.testng.annotations.AfterMethod; |
| Solution content |
|---|
import org.apache.ode.tools.sendsoap.cline.HttpSoapSender; import org.apache.ode.utils.Namespaces; import org.apache.ode.il.OMUtils; import org.apache.ode.axis2.ODEConfigDirAware; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.IteratorUtils; import org.testng.annotations.AfterMethod; |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import static org.testng.AssertJUnit.assertTrue;
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
public class InstanceManagementTest extends Axis2TestBase {
=======
public class InstanceManagementTest extends Axis2TestBase implements ODEConfigDirAware {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
private OMFactory _factory;
private DateFormat xsdDF = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm"); |
| Solution content |
|---|
import static org.testng.AssertJUnit.assertTrue;
public class InstanceManagementTest extends Axis2TestBase implements ODEConfigDirAware {
private OMFactory _factory;
private DateFormat xsdDF = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm"); |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Class signature |
| Chunk |
|---|
| Conflicting content |
|---|
assertTrue(instanceNb(result) == 0);
}
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
/* @Test
public void testListAllInstances() throws Exception {
OMElement root = _client.buildMessage("listAllInstancesWithLimit", new String[] {"limit"}, new String[] {"1"});
OMElement result = sendToIM(root);
// We shold have only one instance (so 2 opening/closing elmts)
assert(result.toString().split("instance-info").length == 5);
=======
@Test
public void testListAllInstances() throws Exception {
OMElement root = _client.buildMessage("listAllInstancesWithLimit", new String[] {"limit"}, new String[] {"1"});
OMElement result = sendToIM(root);
// We should have only one instance (so 2 opening/closing elmts)
assertTrue("Must contain exactly 1 instance-info element", instanceNb(result) == 1);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
// And one of our executed instances are there
assertTrue(result.toString().indexOf("DynPartnerMain") >= 0 ||
result.toString().indexOf("DynPartnerResponder") >= 0); |
| Solution content |
|---|
assertTrue(instanceNb(result) == 0);
}
@Test
public void testListAllInstances() throws Exception {
OMElement root = _client.buildMessage("listAllInstancesWithLimit", new String[] {"limit"}, new String[] {"1"});
OMElement result = sendToIM(root);
// We should have only one instance (so 2 opening/closing elmts)
assertTrue("Must contain exactly 1 instance-info element", instanceNb(result) == 1);
// And one of our executed instances are there
assertTrue(result.toString().indexOf("DynPartnerMain") >= 0 ||
result.toString().indexOf("DynPartnerResponder") >= 0); |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Comment |
| Method invocation |
| Method signature |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
result.toString().indexOf("DynPartnerResponder") >= 0);
}*/
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
@Test
=======
@Test(dataProvider="configs")
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
public void testInstanceSummaryListProcess() throws Exception {
OMElement listRoot = _client.buildMessage("listProcesses", new String[] {"filter", "orderKeys"},
new String[] {"name=DynPartnerMain", ""}); |
| Solution content |
|---|
result.toString().indexOf("DynPartnerResponder") >= 0);
}
@Test(dataProvider="configs")
public void testInstanceSummaryListProcess() throws Exception {
OMElement listRoot = _client.buildMessage("listProcesses", new String[] {"filter", "orderKeys"},
new String[] {"name=DynPartnerMain", ""}); |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Chunk |
|---|
| Conflicting content |
|---|
assertTrue(count == 1);
}
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
@Test
public void testGetInstanceInfo() throws Exception {
OMElement root = _client.buildMessage("listAllInstances", new String[] {}, new String[] {});
OMElement result = sendToIM(root);
String iid = result.getFirstElement().getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "instance-info"))
.getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "iid")).getText();
=======
@Test
public void testGetInstanceInfo() throws Exception {
OMElement root = _client.buildMessage("listAllInstances", new String[] {}, new String[] {});
OMElement result = sendToIM(root);
String iid = instances(result).get(0).getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "iid")).getText();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
root = _client.buildMessage("getInstanceInfo", new String[] {"iid"}, new String[] {iid});
result = sendToIM(root);
assertTrue("Must return one |
| Solution content |
|---|
assertTrue(count == 1);
}
@Test
public void testGetInstanceInfo() throws Exception {
OMElement root = _client.buildMessage("listAllInstances", new String[] {}, new String[] {});
OMElement result = sendToIM(root);
String iid = instances(result).get(0).getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "iid")).getText();
root = _client.buildMessage("getInstanceInfo", new String[] {"iid"}, new String[] {iid});
result = sendToIM(root);
assertTrue("Must return one |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Method invocation |
| Method signature |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
@SuppressWarnings("unused")
OMElement result = sendToIM(root);
} catch (AxisFault axisFault) {
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
assert(axisFault.getMessage().indexOf("InstanceNotFoundException") > 0);
}
}
@Test
public void testGetScopeInfo() throws Exception {
OMElement root = _client.buildMessage("listInstances", new String[] {"filter", "order", "limit"},
new String[] {"name=DynPartnerMain", "", "10"});
OMElement result = sendToIM(root);
String siid = result.getFirstElement().getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "instance-info"))
=======
assertTrue("Should contain InstanceNotFoundException", axisFault.getMessage().contains("InstanceNotFoundException"));
}
}
@Test
public void testGetScopeInfo() throws Exception {
OMElement root = _client.buildMessage("listInstances", new String[] {"filter", "order", "limit"},
new String[] {"name=DynPartnerMain", "", "10"});
OMElement result = sendToIM(root);
String siid = instances(result).get(0)
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
.getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "root-scope"))
.getAttributeValue(new QName(null, "siid"));
root = _client.buildMessage("getScopeInfoWithActivity", new String[] {"siid", "activityInfo"}, |
| Solution content |
|---|
@SuppressWarnings("unused")
OMElement result = sendToIM(root);
} catch (AxisFault axisFault) {
assertTrue("Should contain InstanceNotFoundException", axisFault.getMessage().contains("InstanceNotFoundException"));
}
}
@Test
public void testGetScopeInfo() throws Exception {
OMElement root = _client.buildMessage("listInstances", new String[] {"filter", "order", "limit"},
new String[] {"name=DynPartnerMain", "", "10"});
OMElement result = sendToIM(root);
String siid = instances(result).get(0)
.getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "root-scope"))
.getAttributeValue(new QName(null, "siid"));
root = _client.buildMessage("getScopeInfoWithActivity", new String[] {"siid", "activityInfo"}, |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Assert statement |
| Method invocation |
| Method signature |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
OMElement root = _client.buildMessage("listInstances", new String[] {"filter", "order", "limit"},
new String[] {"name=DynPartnerMain", "", "10"});
OMElement result = sendToIM(root);
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
String siid = result.getFirstElement().getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "instance-info"))
=======
String siid = instances(result).get(0)
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
.getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "root-scope"))
.getAttributeValue(new QName(null, "siid"));
root = _client.buildMessage("getVariableInfo", new String[] {"sid", "varName"}, new String[] {siid, "dummy"}); |
| Solution content |
|---|
OMElement root = _client.buildMessage("listInstances", new String[] {"filter", "order", "limit"},
new String[] {"name=DynPartnerMain", "", "10"});
OMElement result = sendToIM(root);
String siid = instances(result).get(0)
.getFirstChildWithName(new QName(Namespaces.ODE_PMAPI_TYPES_NS, "root-scope"))
.getAttributeValue(new QName(null, "siid"));
root = _client.buildMessage("getVariableInfo", new String[] {"sid", "varName"}, new String[] {siid, "dummy"}); |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
assertTrue(result.toString().indexOf("fire!") >= 0);
}
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
// TODO uncomment when events querying is fixes on OpenJPA
// public void testListEvents() throws Exception {
// OMElement root = _client.buildMessage("listEvents", new String[] {"instanceFilter", "eventFilter", "maxCount"},
// new String[] {"", "", "0"});
// OMElement result = sendToIM(root);
// assert(result.toString().split("event-info").length > 10);
// }
//
// public void testGetEventTimeline() throws Exception {
// OMElement root = _client.buildMessage("getEventTimeline", new String[] {"instanceFilter", "eventFilter"},
// new String[] {"", ""});
// OMElement result = sendToIM(root);
// assert(result.toString().split("element").length > 10);
// }
@Test
=======
// TODO uncomment when events querying is fixes on OpenJPA
@Test(enabled = false)
public void testListEvents() throws Exception {
OMElement root = _client.buildMessage("listEvents", new String[]{"instanceFilter", "eventFilter", "maxCount"},
new String[]{"", "", "0"});
OMElement result = sendToIM(root);
assertTrue(result.toString().split("event-info").length > 10);
}
@Test(enabled = false)
public void testGetEventTimeline() throws Exception {
OMElement root = _client.buildMessage("getEventTimeline", new String[]{"instanceFilter", "eventFilter"},
new String[]{"", ""});
OMElement result = sendToIM(root);
assertTrue(result.toString().split("element").length > 10);
}
@Test
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
public void testDeleteInstances() throws Exception {
OMElement root = _client.buildMessage("listAllInstancesWithLimit", new String[] {"limit"}, new String[] {"1"});
OMElement result = sendToIM(root); |
| Solution content |
|---|
assertTrue(result.toString().indexOf("fire!") >= 0);
}
// TODO uncomment when events querying is fixes on OpenJPA
@Test(enabled = false)
public void testListEvents() throws Exception {
OMElement root = _client.buildMessage("listEvents", new String[]{"instanceFilter", "eventFilter", "maxCount"},
new String[]{"", "", "0"});
OMElement result = sendToIM(root);
assertTrue(result.toString().split("event-info").length > 10);
}
@Test(enabled = false)
public void testGetEventTimeline() throws Exception {
OMElement root = _client.buildMessage("getEventTimeline", new String[]{"instanceFilter", "eventFilter"},
new String[]{"", ""});
OMElement result = sendToIM(root);
assertTrue(result.toString().split("element").length > 10);
}
@Test
public void testDeleteInstances() throws Exception {
OMElement root = _client.buildMessage("listAllInstancesWithLimit", new String[] {"limit"}, new String[] {"1"});
OMElement result = sendToIM(root); |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
_deployedName = res.getFirstChildWithName(new QName(null, "response")).getFirstChildWithName(new QName("http://www.apache.org/ode/deployapi", "name")).getText();
// Execute
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
URL svcUrl = new URL("http://localhost:8888/processes/DynMainService");
InputStream sis = this.getClass().getClassLoader().getResourceAsStream("testDynPartnerRequest.soap");
System.out.println(HttpSoapSender.doSend(svcUrl, sis, null, 0, null, null, null));
=======
System.out.println(server.sendRequestFile("http://localhost:8888/processes/DynMainService", "testDynPartnerRequest.soap"));
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
// Just making sure the instance starts
Thread.sleep(1000);
} |
| Solution content |
|---|
_deployedName = res.getFirstChildWithName(new QName(null, "response")).getFirstChildWithName(new QName("http://www.apache.org/ode/deployapi", "name")).getText();
// Execute
System.out.println(server.sendRequestFile("http://localhost:8888/processes/DynMainService", "testDynPartnerRequest.soap"));
// Just making sure the instance starts
Thread.sleep(1000);
} |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
private OMElement sendToPM(OMElement msg) throws AxisFault {
<<<<<<< HEAD:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
return _client.send(msg, "http://localhost:8888/processes/ProcessManagement");
}
private OMElement sendToIM(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:8888/processes/InstanceManagement");
}
private OMElement sendToDeployment(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:8888/processes/DeploymentService");
=======
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/ProcessManagement");
}
private OMElement sendToIM(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/InstanceManagement");
}
private OMElement sendToDeployment(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/DeploymentService");
}
public String getODEConfigDir() {
return HIB_DERBY_CONF_DIR;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a:axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
}
} |
| Solution content |
|---|
}
private OMElement sendToPM(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/ProcessManagement");
}
private OMElement sendToIM(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/InstanceManagement");
}
private OMElement sendToDeployment(OMElement msg) throws AxisFault {
return _client.send(msg, "http://localhost:"+getTestPort(0)+"/processes/DeploymentService");
}
public String getODEConfigDir() {
return HIB_DERBY_CONF_DIR;
}
} |
| File |
|---|
| InstanceManagementTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Method invocation |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.commons.collections.map.MultiKeyMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
<<<<<<< HEAD
import org.apache.ode.axis2.hooks.ODEAxisService;
import org.apache.ode.axis2.hooks.ODEMessageReceiver;
import org.apache.ode.axis2.httpbinding.HttpExternalService;
import org.apache.ode.axis2.soapbinding.SoapExternalService;
import org.apache.ode.bpel.iapi.*;
import org.apache.ode.utils.wsdl.WsdlUtils;
import javax.wsdl.Definition;
import javax.wsdl.PortType;
import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.util.Iterator;
=======
import org.apache.ode.agents.memory.SizingAgent;
import org.apache.ode.axis2.hooks.ODEAxisService;
import org.apache.ode.axis2.hooks.ODEMessageReceiver;
import org.apache.ode.axis2.httpbinding.HttpExternalService;
import org.apache.ode.bpel.iapi.BindingContext;
import org.apache.ode.bpel.iapi.ContextException;
import org.apache.ode.bpel.iapi.Endpoint;
import org.apache.ode.bpel.iapi.EndpointReference;
import org.apache.ode.bpel.iapi.PartnerRoleChannel;
import org.apache.ode.bpel.iapi.ProcessConf;
import org.apache.ode.utils.wsdl.WsdlUtils;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
/**
* AXIS2 implementation of the {@link org.apache.ode.bpel.iapi.BindingContext} |
| Solution content |
|---|
import org.apache.commons.collections.map.MultiKeyMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.ode.agents.memory.SizingAgent;
import org.apache.ode.axis2.hooks.ODEAxisService;
import org.apache.ode.axis2.hooks.ODEMessageReceiver;
import org.apache.ode.axis2.httpbinding.HttpExternalService;
import org.apache.ode.bpel.iapi.BindingContext;
import org.apache.ode.bpel.iapi.ContextException;
import org.apache.ode.bpel.iapi.Endpoint;
import org.apache.ode.bpel.iapi.EndpointReference;
import org.apache.ode.bpel.iapi.PartnerRoleChannel;
import org.apache.ode.bpel.iapi.ProcessConf;
import org.apache.ode.utils.wsdl.WsdlUtils;
/**
* AXIS2 implementation of the {@link org.apache.ode.bpel.iapi.BindingContext} |
| File |
|---|
| BindingContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
private ODEServer _server;
private MultiKeyMap _services = new MultiKeyMap();
<<<<<<< HEAD
=======
private Map |
| Solution content |
|---|
private ODEServer _server;
private MultiKeyMap _services = new MultiKeyMap();
private Map |
| File |
|---|
| BindingContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
throw new ContextException("Unable to access WSDL definition to activate MyRole endpoint for service " + myRoleEndpoint.serviceName
+ " and port " + myRoleEndpoint.portName);
ODEService svc = createService(pconf, myRoleEndpoint.serviceName, myRoleEndpoint.portName);
<<<<<<< HEAD
return svc.getMyServiceRef();
=======
EndpointReference epr = svc.getMyServiceRef();
_serviceEprMap.put(svc, epr);
return epr;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} catch (AxisFault axisFault) {
throw new ContextException("Could not activate endpoint for service " + myRoleEndpoint.serviceName
+ " and port " + myRoleEndpoint.portName, axisFault); |
| Solution content |
|---|
throw new ContextException("Unable to access WSDL definition to activate MyRole endpoint for service " + myRoleEndpoint.serviceName
+ " and port " + myRoleEndpoint.portName);
ODEService svc = createService(pconf, myRoleEndpoint.serviceName, myRoleEndpoint.portName);
EndpointReference epr = svc.getMyServiceRef();
_serviceEprMap.put(svc, epr);
return epr;
} catch (AxisFault axisFault) {
throw new ContextException("Could not activate endpoint for service " + myRoleEndpoint.serviceName
+ " and port " + myRoleEndpoint.portName, axisFault); |
| File |
|---|
| BindingContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Return statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
public void deactivateMyRoleEndpoint(Endpoint myRoleEndpoint) {
<<<<<<< HEAD
destroyService(myRoleEndpoint.serviceName, myRoleEndpoint.portName);
=======
ODEService service = destroyService(myRoleEndpoint.serviceName, myRoleEndpoint.portName);
if (service != null) {
_serviceEprMap.remove(service);
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
public PartnerRoleChannel createPartnerRoleChannel(QName processId, PortType portType, |
| Solution content |
|---|
}
public void deactivateMyRoleEndpoint(Endpoint myRoleEndpoint) {
ODEService service = destroyService(myRoleEndpoint.serviceName, myRoleEndpoint.portName);
if (service != null) {
_serviceEprMap.remove(service);
}
}
public PartnerRoleChannel createPartnerRoleChannel(QName processId, PortType portType, |
| File |
|---|
| BindingContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
} else {
__log.debug("Couldn't find service " + serviceName + " port " + portName + " to destroy.");
}
<<<<<<< HEAD
=======
return createExternalService(pconf, initialPartnerEndpoint.serviceName, initialPartnerEndpoint.portName);
}
public long calculateSizeofService(EndpointReference epr) {
if (_server._odeConfig.isProcessSizeThrottled()) {
for (ODEService service : _serviceEprMap.keySet()) {
if (epr.equals(_serviceEprMap.get(epr))) {
return SizingAgent.deepSizeOf(service);
}
}
}
return 0;
}
protected ODEService createService(ProcessConf pconf, QName serviceName, String portName) throws AxisFault {
AxisService axisService = ODEAxisService.createService(_server._axisConfig, pconf, serviceName, portName);
ODEService odeService = new ODEService(axisService, pconf, serviceName, portName, _server._bpelServer, _server._txMgr);
destroyService(serviceName, portName);
_services.put(serviceName, portName, odeService);
// Setting our new service on the ODE receiver
}
}
Iterator operationIterator = axisService.getOperations();
while (operationIterator.hasNext()) {
AxisOperation op = (AxisOperation) operationIterator.next();
if (op.getMessageReceiver() instanceof ODEMessageReceiver) {
((ODEMessageReceiver) op.getMessageReceiver()).setService(odeService);
break;
}
}
// We're public!
_server._axisConfig.addService(axisService);
__log.debug("Created Axis2 service " + serviceName);
return odeService;
}
protected ODEService destroyService(QName serviceName, String portName) {
__log.debug("Destroying service " + serviceName + " port " + portName);
ODEService service = (ODEService) _services.remove(serviceName, portName);
if (service != null) {
// try to clean up the service after itself
try {
String axisServiceName = service.getAxisService().getName();
AxisService axisService = _server._axisConfig.getService(axisServiceName);
// first, de-allocate its schemas
axisService.releaseSchemaList();
// then, de-allocate its parameters
// the service's wsdl object model is stored as one of its parameters!
// can't stress strongly enough how important it is to clean this up.
ArrayList |
| Solution content |
|---|
}
}
return createExternalService(pconf, initialPartnerEndpoint.serviceName, initialPartnerEndpoint.portName);
}
public long calculateSizeofService(EndpointReference epr) {
if (_server._odeConfig.isProcessSizeThrottled()) {
for (ODEService service : _serviceEprMap.keySet()) {
if (epr.equals(_serviceEprMap.get(epr))) {
return SizingAgent.deepSizeOf(service);
}
}
}
return 0;
}
protected ODEService createService(ProcessConf pconf, QName serviceName, String portName) throws AxisFault {
AxisService axisService = ODEAxisService.createService(_server._axisConfig, pconf, serviceName, portName);
ODEService odeService = new ODEService(axisService, pconf, serviceName, portName, _server._bpelServer, _server._txMgr);
destroyService(serviceName, portName);
_services.put(serviceName, portName, odeService);
// Setting our new service on the ODE receiver
Iterator operationIterator = axisService.getOperations();
while (operationIterator.hasNext()) {
AxisOperation op = (AxisOperation) operationIterator.next();
if (op.getMessageReceiver() instanceof ODEMessageReceiver) {
((ODEMessageReceiver) op.getMessageReceiver()).setService(odeService);
break;
}
}
// We're public!
_server._axisConfig.addService(axisService);
__log.debug("Created Axis2 service " + serviceName);
return odeService;
}
protected ODEService destroyService(QName serviceName, String portName) {
__log.debug("Destroying service " + serviceName + " port " + portName);
ODEService service = (ODEService) _services.remove(serviceName, portName);
if (service != null) {
// try to clean up the service after itself
try {
String axisServiceName = service.getAxisService().getName();
AxisService axisService = _server._axisConfig.getService(axisServiceName);
// first, de-allocate its schemas
axisService.releaseSchemaList();
// then, de-allocate its parameters
// the service's wsdl object model is stored as one of its parameters!
// can't stress strongly enough how important it is to clean this up.
ArrayList |
| File |
|---|
| BindingContextImpl.java |
| Developer's decision |
|---|
| Combination |
| Kind of conflict |
|---|
| Comment |
| If statement |
| Method declaration |
| Method invocation |
| Method signature |
| Return statement |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; <<<<<<< HEAD import org.apache.ode.il.epr.EndpointFactory; import org.apache.ode.il.epr.MutableEndpoint; ======= import org.apache.ode.bpel.epr.EndpointFactory; import org.apache.ode.bpel.epr.MutableEndpoint; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.bpel.iapi.EndpointReference; import org.apache.ode.bpel.iapi.EndpointReferenceContext; import org.apache.ode.utils.DOMUtils; |
| Solution content |
|---|
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.ode.bpel.epr.EndpointFactory; import org.apache.ode.bpel.epr.MutableEndpoint; import org.apache.ode.bpel.iapi.EndpointReference; import org.apache.ode.bpel.iapi.EndpointReferenceContext; import org.apache.ode.utils.DOMUtils; |
| File |
|---|
| EndpointReferenceContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.w3c.dom.Element;
import java.util.Map;
<<<<<<< HEAD
=======
import java.util.HashMap;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public class EndpointReferenceContextImpl implements EndpointReferenceContext {
|
| Solution content |
|---|
import org.w3c.dom.Element;
import java.util.Map;
import java.util.HashMap;
public class EndpointReferenceContextImpl implements EndpointReferenceContext {
|
| File |
|---|
| EndpointReferenceContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.bpel.iapi.PartnerRoleChannel; import org.apache.ode.bpel.iapi.PartnerRoleMessageExchange; <<<<<<< HEAD import javax.xml.namespace.QName; /** + * @author Alexis Midon ======= import javax.xml.namespace.QName; /** * @author Alexis Midon >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a */ public interface ExternalService extends PartnerRoleChannel { void invoke(PartnerRoleMessageExchange odeMex); |
| Solution content |
|---|
import org.apache.ode.bpel.iapi.PartnerRoleChannel; import org.apache.ode.bpel.iapi.PartnerRoleMessageExchange; import javax.xml.namespace.QName; /** * @author Alexis Midon */ public interface ExternalService extends PartnerRoleChannel { void invoke(PartnerRoleMessageExchange odeMex); |
| File |
|---|
| ExternalService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
return format("Registered message exchange interceptor: {0}", interceptorCN);
}
<<<<<<< HEAD
public String msgContextInterceptorRegistered(String interceptorCN) {
return format("Registered context interceptor: {0}", interceptorCN);
}
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public String msgOdeShutdownCompleted() {
return "Shutdown completed. ";
} |
| Solution content |
|---|
return format("Registered message exchange interceptor: {0}", interceptorCN);
}
public String msgOdeShutdownCompleted() {
return "Shutdown completed. ";
} |
| File |
|---|
| Messages.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
return "Shutdown completed. ";
}
<<<<<<< HEAD
public String msgOdeUsingBpelDAOImpl(String className) {
return format("Using Bpel DAO Connection Factory class {0}.", className);
}
public String msgOdeUsingStoreDAOImpl(String className) {
return format("Using Conf Store DAO Connection Factory class {0}.", className);
}
public String msgOdeUsingSchedDAOImpl(String className) {
return format("Using Scheduler DAO Connection Factory class {0}.", className);
=======
public String msgOdeUsingDAOImpl(String className) {
return format("Using DAO Connection Factory class {0}.", className);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
public String msgDAOInstantiationFailed(String className) { |
| Solution content |
|---|
return "Shutdown completed. ";
}
public String msgOdeUsingDAOImpl(String className) {
return format("Using DAO Connection Factory class {0}.", className);
}
public String msgDAOInstantiationFailed(String className) { |
| File |
|---|
| Messages.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Method invocation |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
<<<<<<< HEAD import java.io.File; import java.io.FileNotFoundException; import java.util.HashMap; import java.util.Map; import java.util.Iterator; ======= import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Properties; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import java.util.StringTokenizer; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; |
| Solution content |
|---|
import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Properties; import java.util.StringTokenizer; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import javax.transaction.Transaction; import javax.transaction.TransactionManager; import javax.transaction.xa.XAResource; <<<<<<< HEAD import javax.wsdl.Definition; import javax.xml.namespace.QName; ======= >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.axis2.AxisFault; import org.apache.axis2.engine.AxisConfiguration; |
| Solution content |
|---|
import javax.transaction.Transaction; import javax.transaction.TransactionManager; import javax.transaction.xa.XAResource; import org.apache.axis2.AxisFault; import org.apache.axis2.engine.AxisConfiguration; |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.commons.httpclient.util.IdleConnectionTimeoutThread; import org.apache.commons.httpclient.params.HttpConnectionManagerParams; import org.apache.ode.axis2.deploy.DeploymentPoller; <<<<<<< HEAD import org.apache.ode.axis2.hooks.ODEAxisService; import org.apache.ode.axis2.hooks.ODEMessageReceiver; import org.apache.ode.axis2.httpbinding.HttpExternalService; import org.apache.ode.axis2.service.DeploymentWebService; import org.apache.ode.axis2.service.ManagementService; import org.apache.ode.axis2.soapbinding.SoapExternalService; import org.apache.ode.bpel.extension.ExtensionValidator; import org.apache.ode.bpel.extension.ExtensionBundleRuntime; import org.apache.ode.bpel.extension.ExtensionBundleValidation; ======= import org.apache.ode.axis2.service.DeploymentWebService; import org.apache.ode.axis2.service.ManagementService; import org.apache.ode.axis2.util.ClusterUrlTransformer; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.bpel.connector.BpelServerConnector; import org.apache.ode.bpel.context.ContextInterceptor; import org.apache.ode.dao.bpel.BpelDAOConnectionFactory; |
| Solution content |
|---|
import org.apache.ode.axis2.deploy.DeploymentPoller; import org.apache.ode.axis2.service.DeploymentWebService; import org.apache.ode.axis2.service.ManagementService; import org.apache.ode.axis2.util.ClusterUrlTransformer; import org.apache.ode.bpel.connector.BpelServerConnector; |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.bpel.engine.BpelServerImpl; import org.apache.ode.bpel.engine.CountLRUDehydrationPolicy; import org.apache.ode.bpel.engine.cron.CronScheduler; <<<<<<< HEAD import org.apache.ode.bpel.evtproc.DebugBpelEventListener; import org.apache.ode.bpel.extvar.jdbc.JdbcExternalVariableModule; import org.apache.ode.bpel.iapi.BpelEventListener; import org.apache.ode.bpel.iapi.ContextException; ======= import org.apache.ode.bpel.extvar.jdbc.JdbcExternalVariableModule; import org.apache.ode.bpel.iapi.BpelEventListener; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.bpel.iapi.EndpointReferenceContext; import org.apache.ode.bpel.iapi.ProcessConf; import org.apache.ode.bpel.iapi.ProcessStoreEvent; |
| Solution content |
|---|
import org.apache.ode.bpel.engine.BpelServerImpl; import org.apache.ode.bpel.engine.CountLRUDehydrationPolicy; import org.apache.ode.bpel.engine.cron.CronScheduler; import org.apache.ode.bpel.extvar.jdbc.JdbcExternalVariableModule; import org.apache.ode.bpel.iapi.BpelEventListener; import org.apache.ode.bpel.iapi.EndpointReferenceContext; import org.apache.ode.bpel.iapi.ProcessConf; import org.apache.ode.bpel.iapi.ProcessStoreEvent; |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.bpel.iapi.ProcessStoreListener; import org.apache.ode.bpel.iapi.Scheduler; import org.apache.ode.bpel.intercept.MessageExchangeInterceptor; <<<<<<< HEAD import org.apache.ode.bpel.pmapi.InstanceManagement; import org.apache.ode.bpel.pmapi.ProcessManagement; import org.apache.ode.dao.scheduler.SchedulerDAOConnectionFactory; import org.apache.ode.dao.store.ConfStoreDAOConnectionFactory; ======= import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl; import org.apache.ode.bpel.pmapi.InstanceManagement; import org.apache.ode.bpel.pmapi.ProcessManagement; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.il.dbutil.Database; import org.apache.ode.il.txutil.TxManager; import org.apache.ode.scheduler.simple.SimpleScheduler; |
| Solution content |
|---|
import org.apache.ode.bpel.iapi.ProcessStoreListener; import org.apache.ode.bpel.iapi.Scheduler; import org.apache.ode.bpel.intercept.MessageExchangeInterceptor; import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl; import org.apache.ode.bpel.pmapi.InstanceManagement; import org.apache.ode.bpel.pmapi.ProcessManagement; import org.apache.ode.il.dbutil.Database; import org.apache.ode.scheduler.simple.JdbcDelegate; import org.apache.ode.scheduler.simple.SimpleScheduler; |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.store.ProcessStoreImpl; import org.apache.ode.utils.GUID; import org.apache.ode.utils.fs.TempFileManager; <<<<<<< HEAD import org.apache.ode.utils.wsdl.WsdlUtils; ======= >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a /** * Server class called by our Axis hooks to handle all ODE lifecycle management. |
| Solution content |
|---|
import org.apache.ode.store.ProcessStoreImpl; import org.apache.ode.utils.GUID; import org.apache.ode.utils.fs.TempFileManager; /** * Server class called by our Axis hooks to handle all ODE lifecycle management. |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
protected File _appRoot;
protected File _configRoot;
protected File _workRoot;
<<<<<<< HEAD
protected BpelServerImpl _bpelServer;
=======
protected File _configRoot;
protected BpelServerImpl _bpelServer;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
protected ProcessStoreImpl _store;
protected ODEConfigProperties _odeConfig;
protected AxisConfiguration _axisConfig; |
| Solution content |
|---|
protected File _appRoot;
protected File _workRoot;
protected File _configRoot;
protected BpelServerImpl _bpelServer;
protected ProcessStoreImpl _store;
protected ODEConfigProperties _odeConfig;
protected AxisConfiguration _axisConfig; |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
protected ProcessStoreImpl _store;
protected ODEConfigProperties _odeConfig;
protected AxisConfiguration _axisConfig;
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
protected TransactionManager _txMgr;
protected BpelDAOConnectionFactory _bpelDaoCF;
protected ConfStoreDAOConnectionFactory _storeDaoCF; |
| Solution content |
|---|
protected ProcessStoreImpl _store;
protected ODEConfigProperties _odeConfig;
protected AxisConfiguration _axisConfig;
protected TransactionManager _txMgr; |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
protected Scheduler _scheduler;
protected ExecutorService _executorService;
<<<<<<< HEAD
=======
protected Scheduler _scheduler;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
protected CronScheduler _cronScheduler;
protected Database _db; |
| Solution content |
|---|
protected ExecutorService _executorService;
protected Scheduler _scheduler;
protected CronScheduler _cronScheduler;
protected Database _db; |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
protected Database _db;
private DeploymentPoller _poller;
<<<<<<< HEAD
private MultiKeyMap _services = new MultiKeyMap();
private BpelServerConnector _connector;
private ManagementService _mgtService;
protected MultiThreadedHttpConnectionManager httpConnectionManager;
protected IdleConnectionTimeoutThread idleConnectionTimeoutThread;
=======
private BpelServerConnector _connector;
private ManagementService _mgtService;
protected ClusterUrlTransformer _clusterUrlTransformer;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
protected MultiThreadedHttpConnectionManager httpConnectionManager;
protected IdleConnectionTimeoutThread idleConnectionTimeoutThread; |
| Solution content |
|---|
protected Database _db;
private DeploymentPoller _poller;
private BpelServerConnector _connector;
private ManagementService _mgtService;
protected ClusterUrlTransformer _clusterUrlTransformer;
protected MultiThreadedHttpConnectionManager httpConnectionManager;
protected IdleConnectionTimeoutThread idleConnectionTimeoutThread; |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
public void init(ServletConfig config, AxisConfiguration axisConf) throws ServletException {
init(config.getServletContext().getRealPath("/WEB-INF"), axisConf);
}
<<<<<<< HEAD
public void init(String contextPath, AxisConfiguration axisConf) throws ServletException {
boolean success = false;
try {
_axisConfig = axisConf;
String rootDir = System.getProperty("org.apache.ode.rootDir");
if (rootDir != null) _appRoot = new File(rootDir);
else _appRoot = new File(contextPath);
if(!_appRoot.isDirectory()) throw new IllegalArgumentException(_appRoot+" does not exist or is not a directory");
TempFileManager.setWorkingDirectory(_appRoot);
__log.debug("Loading properties");
String confDir = System.getProperty("org.apache.ode.configDir");
_configRoot = confDir == null ? new File(_appRoot, "conf") : new File(confDir);
if(!_configRoot.isDirectory()) throw new IllegalArgumentException(_configRoot+" does not exist or is not a directory");
_odeConfig = new ODEConfigProperties(_configRoot);
=======
public void init(String contextPath, AxisConfiguration axisConf) throws ServletException {
_axisConfig = axisConf;
String rootDir = System.getProperty("org.apache.ode.rootDir");
if (rootDir != null) _appRoot = new File(rootDir);
else _appRoot = new File(contextPath);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
if (!_appRoot.isDirectory())
throw new IllegalArgumentException(_appRoot + " does not exist or is not a directory"); |
| Solution content |
|---|
public void init(ServletConfig config, AxisConfiguration axisConf) throws ServletException {
init(config.getServletContext().getRealPath("/WEB-INF"), axisConf);
}
public void init(String contextPath, AxisConfiguration axisConf) throws ServletException {
_axisConfig = axisConf;
String rootDir = System.getProperty("org.apache.ode.rootDir");
if (rootDir != null) _appRoot = new File(rootDir);
else _appRoot = new File(contextPath);
if (!_appRoot.isDirectory())
throw new IllegalArgumentException(_appRoot + " does not exist or is not a directory"); |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| If statement |
| Method invocation |
| Method signature |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
String wdir = _odeConfig.getWorkingDir();
if (wdir == null) _workRoot = _appRoot;
else _workRoot = new File(wdir.trim());
<<<<<<< HEAD
if(!_workRoot.isDirectory()) throw new IllegalArgumentException(_workRoot+" does not exist or is not a directory");
__log.debug("Initializing transaction manager");
initTxMgr();
__log.debug("Creating data source.");
initDataSource();
__log.debug("Starting DAO.");
initDAO();
EndpointReferenceContextImpl eprContext = new EndpointReferenceContextImpl(this);
__log.debug("Initializing BPEL process store.");
initProcessStore(eprContext);
__log.debug("Initializing BPEL server.");
initBpelServer(eprContext);
__log.debug("Initializing HTTP connection manager");
initHttpConnectionManager();
// Register BPEL event listeners configured in axis2.properties file.
registerEventListeners();
registerMexInterceptors();
registerContextInterceptors();
registerExtensionActivityBundles();
registerExternalVariableModules();
try {
_bpelServer.start();
} catch (Exception ex) {
String errmsg = __msgs.msgOdeBpelServerStartFailure();
__log.error(errmsg, ex);
throw new ServletException(errmsg, ex);
}
=======
if (!_workRoot.isDirectory())
throw new IllegalArgumentException(_workRoot + " does not exist or is not a directory");
__log.debug("Initializing transaction manager");
initTxMgr();
__log.debug("Creating data source.");
initDataSource();
__log.debug("Starting DAO.");
initDAO();
EndpointReferenceContextImpl eprContext = new EndpointReferenceContextImpl(this);
__log.debug("Initializing BPEL process store.");
initProcessStore(eprContext);
__log.debug("Initializing BPEL server.");
initBpelServer(eprContext);
__log.debug("Initializing HTTP connection manager");
initHttpConnectionManager();
// Register BPEL event listeners configured in axis2.properties file.
registerEventListeners();
registerMexInterceptors();
registerExternalVariableModules();
_store.loadAll();
try {
_bpelServer.start();
} catch (Exception ex) {
String errmsg = __msgs.msgOdeBpelServerStartFailure();
__log.error(errmsg, ex);
throw new ServletException(errmsg, ex);
}
_poller = getDeploymentPollerExt();
if( _poller == null ) {
_poller = new DeploymentPoller(_store.getDeployDir(), this);
}
_mgtService = new ManagementService();
_mgtService.enableService(_axisConfig, _bpelServer, _store, _appRoot.getAbsolutePath());
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
try {
__log.debug("Initializing Deployment Web Service"); |
| Solution content |
|---|
String wdir = _odeConfig.getWorkingDir();
if (wdir == null) _workRoot = _appRoot;
else _workRoot = new File(wdir.trim());
if (!_workRoot.isDirectory())
throw new IllegalArgumentException(_workRoot + " does not exist or is not a directory");
__log.debug("Initializing transaction manager");
initTxMgr();
__log.debug("Creating data source.");
initDataSource();
__log.debug("Starting DAO.");
initDAO();
EndpointReferenceContextImpl eprContext = new EndpointReferenceContextImpl(this);
__log.debug("Initializing BPEL process store.");
initProcessStore(eprContext);
__log.debug("Initializing BPEL server.");
initBpelServer(eprContext);
__log.debug("Initializing HTTP connection manager");
initHttpConnectionManager();
// Register BPEL event listeners configured in axis2.properties file.
registerEventListeners();
registerMexInterceptors();
registerExternalVariableModules();
_store.loadAll();
try {
_bpelServer.start();
} catch (Exception ex) {
String errmsg = __msgs.msgOdeBpelServerStartFailure();
__log.error(errmsg, ex);
throw new ServletException(errmsg, ex);
}
_poller = getDeploymentPollerExt();
if( _poller == null ) {
_poller = new DeploymentPoller(_store.getDeployDir(), this);
}
_mgtService = new ManagementService();
_mgtService.enableService(_axisConfig, _bpelServer, _store, _appRoot.getAbsolutePath());
try {
__log.debug("Initializing Deployment Web Service"); |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| If statement |
| Method invocation |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
throw new ServletException(e);
}
<<<<<<< HEAD
_mgtService = new ManagementService();
_mgtService.enableService(_axisConfig, _bpelServer, _store, _appRoot.getAbsolutePath());
try {
__log.debug("Initializing Deployment Web Service");
new DeploymentWebService().enableService(_axisConfig, _store, _poller, _appRoot.getAbsolutePath(), _workRoot
.getAbsolutePath());
} catch (Exception e) {
throw new ServletException(e);
}
_store.loadAll();
=======
__log.debug("Starting scheduler");
_scheduler.start();
__log.debug("Initializing JCA adapter.");
initConnector();
_poller.start();
__log.info(__msgs.msgPollingStarted(_store.getDeployDir().getAbsolutePath())); |
| Solution content |
|---|
throw new ServletException(e);
}
__log.debug("Starting scheduler");
_scheduler.start();
__log.debug("Initializing JCA adapter.");
initConnector();
_poller.start();
__log.info(__msgs.msgPollingStarted(_store.getDeployDir().getAbsolutePath())); |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Try statement |
| Chunk |
|---|
| Conflicting content |
|---|
__log.info(__msgs.msgOdeStarted());
}
<<<<<<< HEAD
_poller.start();
__log.info(__msgs.msgPollingStarted(deploymentDir.getAbsolutePath()));
__log.info(__msgs.msgOdeStarted());
success = true;
} catch (RuntimeException re) {
__log.error("ODE server could not be started.", re);
throw re;
} finally {
if (!success)
=======
@SuppressWarnings("unchecked")
private DeploymentPoller getDeploymentPollerExt() {
DeploymentPoller poller = null;
InputStream is = null;
try {
is = ODEServer.class.getResourceAsStream("/deploy-ext.properties");
if( is != null ) {
__log.info("A deploy-ext.properties found; will use the provided class if applicable.");
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
try {
Properties props = new Properties();
props.load(is); |
| Solution content |
|---|
@SuppressWarnings("unchecked")
__log.info(__msgs.msgOdeStarted());
}
private DeploymentPoller getDeploymentPollerExt() {
DeploymentPoller poller = null;
InputStream is = null;
try {
is = ODEServer.class.getResourceAsStream("/deploy-ext.properties");
if( is != null ) {
__log.info("A deploy-ext.properties found; will use the provided class if applicable.");
try {
Properties props = new Properties();
props.load(is); |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Catch clause |
| If statement |
| Method invocation |
| Method signature |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
} catch (Exception ex) {
}
__log.error("Could not create external service.", ex);
return null;
}
@SuppressWarnings("unchecked")
<<<<<<< HEAD
public ODEService createService(ProcessConf pconf, QName serviceName, String portName) throws AxisFault {
AxisService axisService = ODEAxisService.createService(_axisConfig, pconf, serviceName, portName);
ODEService odeService = new ODEService(axisService, pconf, serviceName, portName, _bpelServer);
destroyService(serviceName, portName);
_services.put(serviceName, portName, odeService);
// Setting our new service on the ODE receiver
Iterator operationIterator = axisService.getOperations();
while(operationIterator.hasNext()){
AxisOperation op = (AxisOperation) operationIterator.next();
if(op.getMessageReceiver() instanceof ODEMessageReceiver){
((ODEMessageReceiver) op.getMessageReceiver()).setService(odeService);
break;
}
}
// We're public!
_axisConfig.addService(axisService);
__log.debug("Created Axis2 service " + serviceName);
return odeService;
}
public ExternalService createExternalService(ProcessConf pconf, QName serviceName, String portName) throws ContextException {
ExternalService extService = null;
Definition def = pconf.getDefinitionForService(serviceName);
try {
if (WsdlUtils.useHTTPBinding(def, serviceName, portName)) {
if(__log.isDebugEnabled())__log.debug("Creating HTTP-bound external service " + serviceName);
extService = new HttpExternalService(pconf, serviceName, portName, _bpelServer, httpConnectionManager);
} else if (WsdlUtils.useSOAPBinding(def, serviceName, portName)) {
if(__log.isDebugEnabled())__log.debug("Creating SOAP-bound external service " + serviceName);
extService = new SoapExternalService(def, serviceName, portName, _axisConfig, pconf, httpConnectionManager);
}
throw new ContextException("Error creating external service! name:"+serviceName+", port:"+portName, ex);
}
// if not SOAP nor HTTP binding
if (extService == null) throw new ContextException("Only SOAP and HTTP binding supported!");
__log.debug("Created external service " + serviceName);
return extService;
}
public void destroyService(QName serviceName, String portName) {
__log.debug("Destroying service " + serviceName + " port " + portName);
ODEService service = (ODEService) _services.remove(serviceName, portName);
if (service != null) {
try {
_axisConfig.removeService(service.getAxisService().getName());
_axisConfig.removeServiceGroup(service.getAxisService().getAxisServiceGroup().getServiceGroupName());
} catch (AxisFault axisFault) {
__log.error("Couldn't destroy service " + serviceName);
}
} else {
}
__log.debug("Couldn't find service " + serviceName + " port " + portName + " to destroy.");
}
}
public ODEService getService(QName serviceName, String portName) {
return (ODEService) _services.get(serviceName, portName);
}
public ODEService getService(QName serviceName, QName portTypeName) {
@SuppressWarnings("unchecked")
private void initTxMgr() throws ServletException {
try {
TxManager mgr = new TxManager(_odeConfig);
// TODO Normally this lookup should't exist as there could be more one
// than port
// TODO for a portType. See MessageExchangeContextImpl.
for (Object o : _services.values()) {
ODEService service = (ODEService) o;
if (service.respondsTo(serviceName, portTypeName))
return service;
_txMgr = mgr.createTransactionManager();
_axisConfig.addParameter("ode.transaction.manager", _txMgr);
=======
private void initTxMgr() throws ServletException {
String txFactoryName = _odeConfig.getTxFactoryClass();
__log.debug("Initializing transaction manager using " + txFactoryName);
try {
Class txFactClass = this.getClass().getClassLoader().loadClass(txFactoryName);
Object txFact = txFactClass.newInstance();
_txMgr = (TransactionManager) txFactClass.getMethod("getTransactionManager", (Class[]) null).invoke(txFact);
if (__logTx.isDebugEnabled() && System.getProperty("ode.debug.tx") != null)
_txMgr = new DebugTxMgr(_txMgr);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} catch (Exception e) {
__log.fatal("Couldn't initialize a transaction manager", e);
throw new ServletException("Couldn't initialize a transaction manager", e); |
| Solution content |
|---|
}
@SuppressWarnings("unchecked")
private void initTxMgr() throws ServletException {
String txFactoryName = _odeConfig.getTxFactoryClass();
__log.debug("Initializing transaction manager using " + txFactoryName);
try {
Class txFactClass = this.getClass().getClassLoader().loadClass(txFactoryName);
Object txFact = txFactClass.newInstance();
_txMgr = (TransactionManager) txFactClass.getMethod("getTransactionManager", (Class[]) null).invoke(txFact);
if (__logTx.isDebugEnabled() && System.getProperty("ode.debug.tx") != null)
_txMgr = new DebugTxMgr(_txMgr);
} catch (Exception e) { |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Attribute |
| Cast expression |
| If statement |
| Method declaration |
| Method invocation |
| Method signature |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
protected void initProcessStore(EndpointReferenceContext eprContext) {
_store = createProcessStore(eprContext, _db.getDataSource());
_store.registerListener(new ProcessStoreListenerImpl());
<<<<<<< HEAD
_store.setDeployDir(new File(_workRoot, "processes"));
=======
_store.setDeployDir(
_odeConfig.getDeployDir() != null ?
new File(_odeConfig.getDeployDir()) :
new File(_workRoot, "processes"));
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
_store.setConfigDir(_configRoot);
}
|
| Solution content |
|---|
protected void initProcessStore(EndpointReferenceContext eprContext) {
_store = createProcessStore(eprContext, _db.getDataSource());
_store.registerListener(new ProcessStoreListenerImpl());
_store.setDeployDir(
_odeConfig.getDeployDir() != null ?
new File(_odeConfig.getDeployDir()) :
new File(_workRoot, "processes"));
_store.setConfigDir(_configRoot);
}
|
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
private void initBpelServer(EndpointReferenceContextImpl eprContext) {
if (__log.isDebugEnabled()) {
__log.debug("ODE initializing");
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
ThreadFactory threadFactory = new ThreadFactory() {
int threadNumber = 0;
public Thread newThread(Runnable r) {
return scheduler;
}
}
protected ProcessStoreImpl createProcessStore(EndpointReferenceContext eprContext, DataSource ds) {
<<<<<<< HEAD
return new ProcessStoreImpl(eprContext,_txMgr,_storeDaoCF);
}
protected Scheduler createScheduler() {
return new SimpleScheduler(new GUID().toString(),_schedDaoCF,_txMgr, _odeConfig.getProperties());
}
protected void initBpelServer(EndpointReferenceContextImpl eprContext) {
if (__log.isDebugEnabled()) {
__log.debug("ODE initializing");
}
=======
return new ProcessStoreImpl(eprContext, ds, _odeConfig.getDAOConnectionFactory(), _odeConfig, false);
}
protected Scheduler createScheduler() {
SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),
new JdbcDelegate(_db.getDataSource()), _odeConfig.getProperties());
scheduler.setExecutorService(_executorService);
scheduler.setTransactionManager(_txMgr); |
| Solution content |
|---|
}
protected ProcessStoreImpl createProcessStore(EndpointReferenceContext eprContext, DataSource ds) {
return new ProcessStoreImpl(eprContext, ds, _odeConfig.getDAOConnectionFactory(), _odeConfig, false);
}
protected Scheduler createScheduler() {
SimpleScheduler scheduler = new SimpleScheduler(new GUID().toString(),
new JdbcDelegate(_db.getDataSource()), _odeConfig.getProperties());
scheduler.setExecutorService(_executorService);
scheduler.setTransactionManager(_txMgr);
return scheduler;
}
private void initBpelServer(EndpointReferenceContextImpl eprContext) {
if (__log.isDebugEnabled()) {
__log.debug("ODE initializing");
}
ThreadFactory threadFactory = new ThreadFactory() {
int threadNumber = 0;
public Thread newThread(Runnable r) { |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Method declaration |
| Method invocation |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
int threadNumber = 0;
public Thread newThread(Runnable r) {
threadNumber += 1;
<<<<<<< HEAD
Thread t = new Thread(r, "BULK-"+threadNumber);
=======
Thread t = new Thread(r, "ODEServer-"+threadNumber);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
t.setDaemon(true);
return t;
} |
| Solution content |
|---|
int threadNumber = 0;
public Thread newThread(Runnable r) {
threadNumber += 1;
Thread t = new Thread(r, "ODEServer-"+threadNumber);
t.setDaemon(true);
return t;
} |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
_bpelServer = new BpelServerImpl();
_scheduler = createScheduler();
_executorService = Executors.newCachedThreadPool(threadFactory);
else
_executorService = Executors.newFixedThreadPool(_odeConfig.getThreadPoolMaxSize(), threadFactory);
<<<<<<< HEAD
_bpelServer = new BpelServerImpl();
_scheduler = createScheduler();
_scheduler.setJobProcessor(_bpelServer);
_cronScheduler = new CronScheduler();
_cronScheduler.setScheduledTaskExec(_executorService);
_cronScheduler.setContexts(_bpelServer.getContexts());
_bpelServer.setCronScheduler(_cronScheduler);
=======
_scheduler.setJobProcessor(_bpelServer);
{
List |
| Solution content |
|---|
_executorService = Executors.newCachedThreadPool(threadFactory);
else
_executorService = Executors.newFixedThreadPool(_odeConfig.getThreadPoolMaxSize(), threadFactory);
{
List |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
polledRunnableProcessor.setContexts(_bpelServer.getContexts());
_scheduler.setPolledRunnableProcesser(polledRunnableProcessor);
<<<<<<< HEAD
_bpelServer.setDaoConnectionFactory(_bpelDaoCF);
=======
_cronScheduler = new CronScheduler();
_cronScheduler.setScheduledTaskExec(_executorService);
_cronScheduler.setContexts(_bpelServer.getContexts());
_bpelServer.setCronScheduler(_cronScheduler);
_bpelServer.setDaoConnectionFactory(_daoCF);
_bpelServer.setInMemDaoConnectionFactory(new BpelDAOConnectionFactoryImpl(_scheduler, _odeConfig.getInMemMexTtl()));
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
_bpelServer.setEndpointReferenceContext(eprContext);
_bpelServer.setMessageExchangeContext(new MessageExchangeContextImpl(this));
_bpelServer.setBindingContext(new BindingContextImpl(this)); |
| Solution content |
|---|
_bpelServer.setEndpointReferenceContext(eprContext);
polledRunnableProcessor.setContexts(_bpelServer.getContexts());
_scheduler.setPolledRunnableProcesser(polledRunnableProcessor);
_cronScheduler = new CronScheduler();
_cronScheduler.setScheduledTaskExec(_executorService);
_cronScheduler.setContexts(_bpelServer.getContexts());
_bpelServer.setMessageExchangeContext(new MessageExchangeContextImpl(this));
_bpelServer.setBindingContext(new BindingContextImpl(this));
_bpelServer.setCronScheduler(_cronScheduler);
_bpelServer.setDaoConnectionFactory(_daoCF);
_bpelServer.setInMemDaoConnectionFactory(new BpelDAOConnectionFactoryImpl(_scheduler, _odeConfig.getInMemMexTtl())); |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
_bpelServer.setConfigProperties(_odeConfig.getProperties());
_bpelServer.init();
_bpelServer.setMessageExchangeContext(new MessageExchangeContextImpl(this));
_bpelServer.setBindingContext(new BindingContextImpl(this));
_bpelServer.setScheduler(_scheduler);
<<<<<<< HEAD
_bpelServer.setTransactionManager(_txMgr);
if (_odeConfig.isDehydrationEnabled()) {
CountLRUDehydrationPolicy dehy = new CountLRUDehydrationPolicy();
// dehy.setProcessMaxAge(10000);
_bpelServer.setDehydrationPolicy(dehy);
}
_bpelServer.setConfigProperties(_odeConfig);
_bpelServer.init();
}
private void initHttpConnectionManager() throws ServletException {
httpConnectionManager = new MultiThreadedHttpConnectionManager();
// settings may be overridden from ode-axis2.properties using the same properties as HttpClient
int max_per_host = Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS, "2"));
int max_total = Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, "20"));
if(__log.isDebugEnabled()) {
__log.debug(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS+"="+max_per_host);
__log.debug(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS+"="+max_total);
}
if(max_per_host<1 || max_total <1){
String errmsg = HttpConnectionManagerParams.MAX_HOST_CONNECTIONS+" and "+ HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS+" must be positive integers!";
__log.error(errmsg);
throw new ServletException(errmsg);
}
=======
if (_odeConfig.isDehydrationEnabled()) {
CountLRUDehydrationPolicy dehy = new CountLRUDehydrationPolicy();
dehy.setProcessMaxAge(_odeConfig.getDehydrationMaximumAge());
dehy.setProcessMaxCount(_odeConfig.getDehydrationMaximumCount());
_bpelServer.setDehydrationPolicy(dehy);
}
_bpelServer.setMigrationTransactionTimeout(_odeConfig.getMigrationTransactionTimeout());
_bpelServer.setInstanceThrottledMaximumCount(_odeConfig.getInstanceThrottledMaximumCount());
_bpelServer.setProcessThrottledMaximumCount(_odeConfig.getProcessThrottledMaximumCount());
_bpelServer.setProcessThrottledMaximumSize(_odeConfig.getProcessThrottledMaximumSize());
_bpelServer.setHydrationLazy(_odeConfig.isHydrationLazy());
_bpelServer.setHydrationLazyMinimumSize(_odeConfig.getHydrationLazyMinimumSize());
}
private void initHttpConnectionManager() throws ServletException {
httpConnectionManager = new MultiThreadedHttpConnectionManager();
// settings may be overridden from ode-axis2.properties using the same properties as HttpClient
// /!\ If the size of the conn pool is smaller than the size of the thread pool, the thread pool might get starved.
int max_per_host = Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS, ""+_odeConfig.getPoolMaxSize()));
int max_total = Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, ""+_odeConfig.getPoolMaxSize()));
if(__log.isDebugEnabled()) {
__log.debug(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS+"="+max_per_host);
httpConnectionManager.getParams().setMaxTotalConnections(max_total);
__log.debug(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS+"="+max_total);
}
if(max_per_host<1 || max_total <1){
String errmsg = HttpConnectionManagerParams.MAX_HOST_CONNECTIONS+" and "+ HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS+" must be positive integers!";
__log.error(errmsg);
throw new ServletException(errmsg);
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
httpConnectionManager.getParams().setDefaultMaxConnectionsPerHost(max_per_host); |
| Solution content |
|---|
_bpelServer.setDehydrationPolicy(dehy);
}
_bpelServer.setMessageExchangeContext(new MessageExchangeContextImpl(this));
_bpelServer.setBindingContext(new BindingContextImpl(this));
_bpelServer.setScheduler(_scheduler);
if (_odeConfig.isDehydrationEnabled()) {
CountLRUDehydrationPolicy dehy = new CountLRUDehydrationPolicy();
dehy.setProcessMaxAge(_odeConfig.getDehydrationMaximumAge());
dehy.setProcessMaxCount(_odeConfig.getDehydrationMaximumCount());
_bpelServer.setMigrationTransactionTimeout(_odeConfig.getMigrationTransactionTimeout());
_bpelServer.setConfigProperties(_odeConfig.getProperties());
_bpelServer.init();
_bpelServer.setInstanceThrottledMaximumCount(_odeConfig.getInstanceThrottledMaximumCount());
_bpelServer.setProcessThrottledMaximumCount(_odeConfig.getProcessThrottledMaximumCount());
_bpelServer.setProcessThrottledMaximumSize(_odeConfig.getProcessThrottledMaximumSize());
_bpelServer.setHydrationLazy(_odeConfig.isHydrationLazy());
_bpelServer.setHydrationLazyMinimumSize(_odeConfig.getHydrationLazyMinimumSize());
}
private void initHttpConnectionManager() throws ServletException {
httpConnectionManager = new MultiThreadedHttpConnectionManager();
// settings may be overridden from ode-axis2.properties using the same properties as HttpClient
// /!\ If the size of the conn pool is smaller than the size of the thread pool, the thread pool might get starved.
int max_per_host = Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS, ""+_odeConfig.getPoolMaxSize()));
int max_total = Integer.parseInt(_odeConfig.getProperty(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS, ""+_odeConfig.getPoolMaxSize()));
if(__log.isDebugEnabled()) {
__log.debug(HttpConnectionManagerParams.MAX_HOST_CONNECTIONS+"="+max_per_host);
__log.debug(HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS+"="+max_total);
}
if(max_per_host<1 || max_total <1){
String errmsg = HttpConnectionManagerParams.MAX_HOST_CONNECTIONS+" and "+ HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS+" must be positive integers!";
__log.error(errmsg);
throw new ServletException(errmsg);
}
httpConnectionManager.getParams().setDefaultMaxConnectionsPerHost(max_per_host);
httpConnectionManager.getParams().setMaxTotalConnections(max_total);
|
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| If statement |
| Method invocation |
| Method signature |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
<<<<<<< HEAD
/**
public File getConfigRoot() {
return _configRoot;
* Register event listeners configured in the configuration.
*
*/
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
private void registerEventListeners() {
// let's always register the debugging listener.... |
| Solution content |
|---|
public File getConfigRoot() {
return _configRoot;
}
private void registerEventListeners() { |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
<<<<<<< HEAD
private void registerExtensionActivityBundles() {
String extensionsRTStr = _odeConfig.getExtensionActivityBundlesRT();
String extensionsValStr = _odeConfig.getExtensionActivityBundlesValidation();
if (extensionsRTStr != null) {
// TODO replace StringTokenizer by regex
for (StringTokenizer tokenizer = new StringTokenizer(extensionsRTStr, ",;"); tokenizer.hasMoreTokens();) {
String bundleCN = tokenizer.nextToken();
try {
// instantiate bundle
ExtensionBundleRuntime bundleRT = (ExtensionBundleRuntime) Class.forName(bundleCN).newInstance();
// register extension bundle (BPEL server)
_bpelServer.registerExtensionBundle(bundleRT);
} catch (Exception e) {
__log.warn("Couldn't register the extension bundle runtime " + bundleCN + ", the class couldn't be " +
"loaded properly.");
}
}
}
if (extensionsValStr != null) {
Map |
| Solution content |
|---|
*/
}
protected void initDAO() throws ServletException {
}
import org.apache.commons.httpclient.util.IdleConnectionTimeoutThread;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.ode.axis2;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Properties;
import java.util.StringTokenizer;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.sql.DataSource;
import javax.transaction.HeuristicMixedException;
import javax.transaction.HeuristicRollbackException;
import javax.transaction.InvalidTransactionException;
import javax.transaction.NotSupportedException;
import javax.transaction.RollbackException;
import javax.transaction.Synchronization;
import javax.transaction.SystemException;
import javax.transaction.Transaction;
import javax.transaction.TransactionManager;
import javax.transaction.xa.XAResource;
import org.apache.axis2.AxisFault;
import org.apache.axis2.engine.AxisConfiguration;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
String confDir = System.getProperty("org.apache.ode.configDir");
import org.apache.commons.httpclient.params.HttpConnectionManagerParams;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.ode.axis2.deploy.DeploymentPoller;
import org.apache.ode.axis2.service.DeploymentWebService;
import org.apache.ode.axis2.service.ManagementService;
import org.apache.ode.axis2.util.ClusterUrlTransformer;
import org.apache.ode.bpel.connector.BpelServerConnector;
import org.apache.ode.bpel.dao.BpelDAOConnectionFactory;
import org.apache.ode.bpel.engine.BpelServerImpl;
import org.apache.ode.bpel.engine.CountLRUDehydrationPolicy;
import org.apache.ode.bpel.engine.cron.CronScheduler;
import org.apache.ode.bpel.extvar.jdbc.JdbcExternalVariableModule;
import org.apache.ode.bpel.iapi.BpelEventListener;
import org.apache.ode.bpel.iapi.EndpointReferenceContext;
import org.apache.ode.bpel.iapi.ProcessConf;
import org.apache.ode.bpel.iapi.ProcessStoreEvent;
import org.apache.ode.bpel.iapi.ProcessStoreListener;
import org.apache.ode.bpel.iapi.Scheduler;
import org.apache.ode.bpel.intercept.MessageExchangeInterceptor;
import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl;
import org.apache.ode.bpel.pmapi.InstanceManagement;
import org.apache.ode.bpel.pmapi.ProcessManagement;
import org.apache.ode.il.dbutil.Database;
import org.apache.ode.scheduler.simple.JdbcDelegate;
import org.apache.ode.scheduler.simple.SimpleScheduler;
import org.apache.ode.store.ProcessStoreImpl;
import org.apache.ode.utils.GUID;
import org.apache.ode.utils.fs.TempFileManager;
/**
* Server class called by our Axis hooks to handle all ODE lifecycle management.
*
* @author Matthieu Riou |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
}
break;
ProcessConf pconf = _store.getProcessConfiguration(pse.pid);
__log.debug("Process store event: " + pse);
ProcessConf pconf = _store.getProcessConfiguration(pse.pid);
switch (pse.type) {
<<<<<<< HEAD
case ACTIVATED:
case RETIRED:
// bounce the process
_bpelServer.unregister(pse.pid);
if (pconf != null) _bpelServer.register(pconf);
else __log.debug("slighly odd: recevied event " + pse + " for process not in store!");
=======
case DEPLOYED:
if (pconf != null) {
/*
* If and only if an old process exists with the same pid, the old process is cleaned up.
* The following line is IMPORTANT and used for the case when the deployment and store
* do not have the process while the process itself exists in the BPEL_PROCESS table.
* Notice that the new process is actually created on the 'ACTIVATED' event.
*/
_bpelServer.cleanupProcess(pconf);
}
break;
case ACTVIATED:
// bounce the process
_bpelServer.unregister(pse.pid);
if (pconf != null) {
_bpelServer.register(pconf);
} else {
__log.debug("slighly odd: recevied event " +
pse + " for process not in store!");
case RETIRED:
// are there are instances of this process running?
boolean instantiated = _bpelServer.hasActiveInstances(pse.pid);
// remove the process
_bpelServer.unregister(pse.pid);
// bounce the process if necessary
if (instantiated) {
if (pconf != null) {
_bpelServer.register(pconf);
} else {
__log.debug("slighly odd: recevied event " +
pse + " for process not in store!");
}
} else {
// we may have potentially created a lot of garbage, so,
// let's hope the garbage collector is configured properly.
if (pconf != null) {
_bpelServer.cleanupProcess(pconf);
}
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
break;
case DISABLED:
case UNDEPLOYED: |
| Solution content |
|---|
__log.debug("Process store event: " + pse);
ProcessConf pconf = _store.getProcessConfiguration(pse.pid);
switch (pse.type) {
case DEPLOYED:
if (pconf != null) {
/*
* If and only if an old process exists with the same pid, the old process is cleaned up.
* The following line is IMPORTANT and used for the case when the deployment and store
* do not have the process while the process itself exists in the BPEL_PROCESS table.
* Notice that the new process is actually created on the 'ACTIVATED' event.
*/
_bpelServer.cleanupProcess(pconf);
}
break;
case ACTVIATED:
// bounce the process
_bpelServer.unregister(pse.pid);
if (pconf != null) {
_bpelServer.register(pconf);
} else {
__log.debug("slighly odd: recevied event " +
pse + " for process not in store!");
}
break;
case RETIRED:
// are there are instances of this process running?
boolean instantiated = _bpelServer.hasActiveInstances(pse.pid);
// remove the process
_bpelServer.unregister(pse.pid);
// bounce the process if necessary
if (instantiated) {
if (pconf != null) {
_bpelServer.register(pconf);
} else {
__log.debug("slighly odd: recevied event " +
pse + " for process not in store!");
}
} else {
// we may have potentially created a lot of garbage, so,
// let's hope the garbage collector is configured properly.
if (pconf != null) {
_bpelServer.cleanupProcess(pconf);
}
}
break;
case DISABLED:
case UNDEPLOYED: |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Break statement |
| Case statement |
| Comment |
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
case DISABLED:
case UNDEPLOYED:
_bpelServer.unregister(pse.pid);
<<<<<<< HEAD
_bpelServer.cleanupProcess(pse.pid);
=======
if (pconf != null) {
_bpelServer.cleanupProcess(pconf);
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
break;
default:
__log.debug("Ignoring store event: " + pse); |
| Solution content |
|---|
case DISABLED:
case UNDEPLOYED:
_bpelServer.unregister(pse.pid);
if (pconf != null) {
_bpelServer.cleanupProcess(pconf);
}
break;
default:
__log.debug("Ignoring store event: " + pse); |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
default:
__log.debug("Ignoring store event: " + pse);
}
<<<<<<< HEAD
ProcessConf pconf = _store.getProcessConfiguration(pse.pid);
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
if( pconf != null ) {
if( pse.type == ProcessStoreEvent.Type.UNDEPLOYED) {
__log.debug("Cancelling all cron scheduled jobs on store event: " + pse); |
| Solution content |
|---|
default:
__log.debug("Ignoring store event: " + pse);
}
if( pconf != null ) {
if( pse.type == ProcessStoreEvent.Type.UNDEPLOYED) {
__log.debug("Cancelling all cron scheduled jobs on store event: " + pse); |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
_tx.rollback();
}
// Except for undeploy event, we need to re-schedule process dependent jobs
__log.debug("(Re)scheduling cron scheduled jobs on store event: " + pse);
public int getStatus() throws SystemException {
if( pse.type == ProcessStoreEvent.Type.UNDEPLOYED) {
__log.debug("Cancelling all cron scheduled jobs on store event: " + pse);
_bpelServer.getContexts().cronScheduler.cancelProcessCronJobs(pse.pid, true);
<<<<<<< HEAD
}
// Except for undeploy event, we need to re-schedule process dependent jobs
__log.debug("(Re)scheduling cron scheduled jobs on store event: " + pse);
if( pse.type != ProcessStoreEvent.Type.UNDEPLOYED) {
_bpelServer.getContexts().cronScheduler.scheduleProcessCronJobs(pse.pid, pconf);
}
=======
}
if( pse.type != ProcessStoreEvent.Type.UNDEPLOYED) {
_bpelServer.getContexts().cronScheduler.scheduleProcessCronJobs(pse.pid, pconf);
}
}
}
// Transactional debugging stuff, to track down all these little annoying bugs.
private class DebugTxMgr implements TransactionManager {
private TransactionManager _tm;
public DebugTxMgr(TransactionManager tm) {
_tm = tm;
}
public void begin() throws NotSupportedException, SystemException {
__logTx.debug("Txm begin");
_tm.begin();
}
public void commit() throws HeuristicMixedException, HeuristicRollbackException, IllegalStateException, RollbackException, SecurityException, SystemException {
__logTx.debug("Txm commit");
for (StackTraceElement traceElement : Thread.currentThread().getStackTrace()) {
__logTx.debug(traceElement.toString());
}
_tm.commit();
}
__logTx.debug("Txm status");
public void rollback() throws IllegalStateException, SystemException {
__logTx.debug("Tx rollback");
return _tm.getStatus();
}
public Transaction getTransaction() throws SystemException {
Transaction tx = _tm.getTransaction();
__logTx.debug("Txm get tx " + tx);
return tx == null ? null : new DebugTx(tx);
}
public void resume(Transaction transaction) throws IllegalStateException, InvalidTransactionException, SystemException {
__logTx.debug("Txm resume");
_tm.resume(transaction);
}
public void rollback() throws IllegalStateException, SecurityException, SystemException {
__logTx.debug("Txm rollback");
_tm.rollback();
}
public void setRollbackOnly() throws IllegalStateException, SystemException {
__logTx.debug("Txm set rollback");
_tm.setRollbackOnly();
}
public void setTransactionTimeout(int i) throws SystemException {
__logTx.debug("Txm set tiemout " + i);
_tm.setTransactionTimeout(i);
}
public Transaction suspend() throws SystemException {
__logTx.debug("Txm suspend");
return _tm.suspend();
}
}
private class DebugTx implements Transaction {
private Transaction _tx;
public DebugTx(Transaction tx) {
_tx = tx;
}
public void commit() throws HeuristicMixedException, HeuristicRollbackException, RollbackException, SecurityException, SystemException {
__logTx.debug("Tx commit");
_tx.commit();
}
public boolean delistResource(XAResource xaResource, int i) throws IllegalStateException, SystemException {
return _tx.delistResource(xaResource, i);
}
public boolean enlistResource(XAResource xaResource) throws IllegalStateException, RollbackException, SystemException {
return _tx.enlistResource(xaResource);
}
public int getStatus() throws SystemException {
return _tx.getStatus();
}
public void registerSynchronization(Synchronization synchronization) throws IllegalStateException, RollbackException, SystemException {
__logTx.debug("Synchronization registration on " + synchronization.getClass().getName());
_tx.registerSynchronization(synchronization);
}
public void setRollbackOnly() throws IllegalStateException, SystemException {
__logTx.debug("Tx set rollback");
_tx.setRollbackOnly();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
}
|
| Solution content |
|---|
if( pse.type == ProcessStoreEvent.Type.UNDEPLOYED) {
__log.debug("Cancelling all cron scheduled jobs on store event: " + pse);
_bpelServer.getContexts().cronScheduler.cancelProcessCronJobs(pse.pid, true);
}
// Except for undeploy event, we need to re-schedule process dependent jobs
__log.debug("(Re)scheduling cron scheduled jobs on store event: " + pse);
if( pse.type != ProcessStoreEvent.Type.UNDEPLOYED) {
_bpelServer.getContexts().cronScheduler.scheduleProcessCronJobs(pse.pid, pconf);
}
}
}
// Transactional debugging stuff, to track down all these little annoying bugs.
private class DebugTxMgr implements TransactionManager {
private TransactionManager _tm;
public DebugTxMgr(TransactionManager tm) {
_tm = tm;
}
public void begin() throws NotSupportedException, SystemException {
__logTx.debug("Txm begin");
_tm.begin();
}
public void commit() throws HeuristicMixedException, HeuristicRollbackException, IllegalStateException, RollbackException, SecurityException, SystemException {
__logTx.debug("Txm commit");
for (StackTraceElement traceElement : Thread.currentThread().getStackTrace()) {
__logTx.debug(traceElement.toString());
}
_tm.commit();
}
public int getStatus() throws SystemException {
__logTx.debug("Txm status");
return _tm.getStatus();
}
public Transaction getTransaction() throws SystemException {
Transaction tx = _tm.getTransaction();
__logTx.debug("Txm get tx " + tx);
return tx == null ? null : new DebugTx(tx);
}
public void resume(Transaction transaction) throws IllegalStateException, InvalidTransactionException, SystemException {
__logTx.debug("Txm resume");
_tm.resume(transaction);
}
public void rollback() throws IllegalStateException, SecurityException, SystemException {
__logTx.debug("Txm rollback");
_tm.rollback();
}
public void setRollbackOnly() throws IllegalStateException, SystemException {
__logTx.debug("Txm set rollback");
_tm.setRollbackOnly();
}
public void setTransactionTimeout(int i) throws SystemException {
__logTx.debug("Txm set tiemout " + i);
_tm.setTransactionTimeout(i);
}
public Transaction suspend() throws SystemException {
__logTx.debug("Txm suspend");
return _tm.suspend();
}
}
private class DebugTx implements Transaction {
private Transaction _tx;
public DebugTx(Transaction tx) {
_tx = tx;
}
public void commit() throws HeuristicMixedException, HeuristicRollbackException, RollbackException, SecurityException, SystemException {
__logTx.debug("Tx commit");
_tx.commit();
}
public boolean delistResource(XAResource xaResource, int i) throws IllegalStateException, SystemException {
return _tx.delistResource(xaResource, i);
}
public boolean enlistResource(XAResource xaResource) throws IllegalStateException, RollbackException, SystemException {
return _tx.enlistResource(xaResource);
}
public int getStatus() throws SystemException {
return _tx.getStatus();
}
public void registerSynchronization(Synchronization synchronization) throws IllegalStateException, RollbackException, SystemException {
__logTx.debug("Synchronization registration on " + synchronization.getClass().getName());
_tx.registerSynchronization(synchronization);
}
public void rollback() throws IllegalStateException, SystemException {
__logTx.debug("Tx rollback");
_tx.rollback();
}
public void setRollbackOnly() throws IllegalStateException, SystemException {
__logTx.debug("Tx set rollback");
_tx.setRollbackOnly();
}
} |
| File |
|---|
| ODEServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Class declaration |
| Class signature |
| Comment |
| If statement |
| Method declaration |
| Method invocation |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
package org.apache.ode.axis2; <<<<<<< HEAD ======= import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.Map; import javax.transaction.TransactionManager; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import javax.wsdl.Definition; import javax.wsdl.Port; import javax.wsdl.Service; |
| Solution content |
|---|
package org.apache.ode.axis2; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.Map; import javax.transaction.TransactionManager; import javax.wsdl.Definition; import javax.wsdl.Port; import javax.wsdl.Service; |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.il.epr.WSAEndpoint; import org.apache.axis2.transport.jms.JMSConstants; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; <<<<<<< HEAD import org.apache.ode.axis2.soapbinding.SoapMessageConverter; import org.apache.ode.il.epr.EndpointFactory; import org.apache.ode.il.epr.MutableEndpoint; import org.apache.ode.utils.*; import org.apache.ode.bpel.iapi.*; import org.apache.ode.bpel.iapi.MessageExchange.AckType; import org.apache.ode.bpel.iapi.ProcessConf.CLEANUP_CATEGORY; ======= import org.apache.ode.axis2.util.SoapMessageConverter; import org.apache.ode.bpel.epr.EndpointFactory; import org.apache.ode.bpel.epr.MutableEndpoint; import org.apache.ode.bpel.epr.WSAEndpoint; import org.apache.ode.bpel.iapi.BpelServer; import org.apache.ode.bpel.iapi.EndpointReference; import org.apache.ode.bpel.iapi.Message; import org.apache.ode.bpel.iapi.MessageExchange; import org.apache.ode.bpel.iapi.MyRoleMessageExchange; import org.apache.ode.bpel.iapi.ProcessConf; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.GUID; import org.apache.ode.utils.Namespaces; |
| Solution content |
|---|
import org.apache.axis2.transport.jms.JMSConstants; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.ode.axis2.util.SoapMessageConverter; import org.apache.ode.bpel.epr.EndpointFactory; import org.apache.ode.bpel.epr.MutableEndpoint; import org.apache.ode.bpel.epr.WSAEndpoint; import org.apache.ode.bpel.iapi.BpelServer; import org.apache.ode.bpel.iapi.EndpointReference; import org.apache.ode.bpel.iapi.Message; import org.apache.ode.bpel.iapi.MessageExchange; import org.apache.ode.bpel.iapi.MyRoleMessageExchange; import org.apache.ode.bpel.iapi.ProcessConf; import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.GUID; import org.apache.ode.utils.Namespaces; |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.w3c.dom.Element; /** <<<<<<< HEAD * A running service, encapsulates the Axis service, its receivers and our receivers as well. * * @author Matthieu Riou |
| Solution content |
|---|
import org.w3c.dom.Element;
/**
* A running service, encapsulates the Axis service, its receivers and our
* receivers as well.
*/
public class ODEService { |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
*/
public class ODEService {
private static final Log __log = LogFactory.getLog(ODEService.class);
<<<<<<< HEAD
public static final String TARGET_SESSION_ENDPOINT = "targetSessionEndpoint";
public static final String CALLBACK_SESSION_ENDPOINT = "callbackSessionEndpoint";
private AxisService _axisService;
private BpelServer _server;
=======
private AxisService _axisService;
private BpelServer _server;
private TransactionManager _txManager;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
private ProcessConf _pconf;
private Definition _wsdlDef;
private QName _serviceName; |
| Solution content |
|---|
*/
public class ODEService {
private static final Log __log = LogFactory.getLog(ODEService.class);
private AxisService _axisService;
private BpelServer _server;
private TransactionManager _txManager;
private ProcessConf _pconf;
private Definition _wsdlDef;
private QName _serviceName; |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
_pconf = pconf;
private WSAEndpoint _serviceRef;
private SoapMessageConverter _converter;
<<<<<<< HEAD
public ODEService(AxisService axisService, ProcessConf pconf, QName serviceName, String portName, BpelServer server) throws AxisFault {
_axisService = axisService;
_server = server;
=======
public ODEService(AxisService axisService, ProcessConf pconf, QName serviceName, String portName, BpelServer server,
TransactionManager txManager) throws AxisFault {
_axisService = axisService;
_server = server;
_txManager = txManager;
_pconf = pconf;
_wsdlDef = pconf.getDefinitionForService(serviceName);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
_serviceName = serviceName;
_wsdlDef = pconf.getDefinitionForService(serviceName); |
| Solution content |
|---|
private WSAEndpoint _serviceRef;
private SoapMessageConverter _converter;
public ODEService(AxisService axisService, ProcessConf pconf, QName serviceName, String portName, BpelServer server,
TransactionManager txManager) throws AxisFault {
_axisService = axisService;
_server = server;
_txManager = txManager;
_pconf = pconf;
_wsdlDef = pconf.getDefinitionForService(serviceName);
_serviceName = serviceName; |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Combination |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Method signature |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
_portName = portName;
_serviceRef = EndpointFactory.convertToWSA(createServiceRef(genEPRfromWSDL(_wsdlDef, serviceName, portName)));
_converter = new SoapMessageConverter(_wsdlDef, serviceName, portName);
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
public String getName() { |
| Solution content |
|---|
_portName = portName;
_serviceRef = EndpointFactory.convertToWSA(createServiceRef(genEPRfromWSDL(_wsdlDef, serviceName, portName)));
_converter = new SoapMessageConverter(_wsdlDef, serviceName, portName);
}
public String getName() { |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
throws AxisFault {
MyRoleMessageExchange odeMex = null;
try {
<<<<<<< HEAD
// Creating mesage exchange
=======
_txManager.begin();
if (__log.isDebugEnabled()) __log.debug("Starting transaction.");
// Creating message exchange
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
String messageId = new GUID().toString();
odeMex = _server.createMessageExchange(InvocationStyle.UNRELIABLE, _serviceName,
msgContext.getAxisOperation().getName().getLocalPart(), "" + messageId); |
| Solution content |
|---|
throws AxisFault {
boolean success = true;
MyRoleMessageExchange odeMex = null;
Future responseFuture = null;
try {
_txManager.begin();
if (__log.isDebugEnabled()) __log.debug("Starting transaction.");
// Creating message exchange
String messageId = new GUID().toString(); |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Comment |
| If statement |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
msgContext.getAxisOperation().getName().getLocalPart(), "" + messageId);
__log.debug("ODE routed to operation " + odeMex.getOperation() + " from service " + _serviceName);
<<<<<<< HEAD
if (odeMex.getOperation() == null) {
String errmsg = "Call to " + _serviceName + "." + odeMex.getOperationName() + " was not routable.";
__log.error(errmsg);
throw new OdeFault(errmsg);
}
// Preparing message to send to ODE
Message odeRequest = odeMex.createMessage(odeMex.getOperation().getInput().getMessage().getQName());
_converter.parseSoapRequest(odeRequest, msgContext.getEnvelope(), odeMex.getOperation());
readHeader(msgContext, odeMex);
if (__log.isDebugEnabled()) {
__log.debug("Invoking ODE using MEX " + odeMex);
__log.debug("Message content: " + DOMUtils.domToString(odeRequest.getMessage()));
=======
odeMex.setProperty("isTwoWay", Boolean.toString(msgContext.getAxisOperation() instanceof TwoChannelAxisOperation));
if (odeMex.getOperation() != null) {
// Preparing message to send to ODE
Message odeRequest = odeMex.createMessage(odeMex.getOperation().getInput().getMessage().getQName());
_converter.parseSoapRequest(odeRequest, msgContext.getEnvelope(), odeMex.getOperation());
readHeader(msgContext, odeMex);
if (__log.isDebugEnabled()) {
__log.debug("Invoking ODE using MEX " + odeMex);
__log.debug("Message content: " + DOMUtils.domToString(odeRequest.getMessage()));
}
// Invoke ODE
responseFuture = odeMex.invoke(odeRequest);
__log.debug("Commiting ODE MEX " + odeMex);
try {
if (__log.isDebugEnabled()) __log.debug("Commiting transaction.");
_txManager.commit();
} catch (Exception e) {
__log.error("Commit failed", e);
success = false;
}
} else {
success = false;
}
} catch (Exception e) {
__log.error("Exception occured while invoking ODE", e);
success = false;
String message = e.getMessage();
if (message == null) {
message = "An exception occured while invoking ODE.";
}
throw new OdeFault(message, e);
} finally {
if (!success) {
if (odeMex != null) odeMex.release(success);
try {
_txManager.rollback();
} catch (Exception e) {
throw new OdeFault("Rollback failed", e);
}
}
}
if (odeMex.getOperation().getOutput() != null) {
// Waits for the response to arrive
try {
responseFuture.get(getTimeout(), TimeUnit.MILLISECONDS);
} catch (Exception e) {
String errorMsg = "Timeout or execution error when waiting for response to MEX "
+ odeMex + " " + e.toString();
__log.error(errorMsg, e);
throw new OdeFault(errorMsg);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
odeMex.setRequest(odeRequest); |
| Solution content |
|---|
readHeader(msgContext, odeMex);
if (__log.isDebugEnabled()) {
__log.debug("ODE routed to operation " + odeMex.getOperation() + " from service " + _serviceName);
odeMex.setProperty("isTwoWay", Boolean.toString(msgContext.getAxisOperation() instanceof TwoChannelAxisOperation));
if (odeMex.getOperation() != null) {
// Preparing message to send to ODE
Message odeRequest = odeMex.createMessage(odeMex.getOperation().getInput().getMessage().getQName());
_converter.parseSoapRequest(odeRequest, msgContext.getEnvelope(), odeMex.getOperation());
__log.debug("Invoking ODE using MEX " + odeMex);
__log.debug("Message content: " + DOMUtils.domToString(odeRequest.getMessage()));
}
// Invoke ODE
responseFuture = odeMex.invoke(odeRequest);
__log.debug("Commiting ODE MEX " + odeMex);
try {
if (__log.isDebugEnabled()) __log.debug("Commiting transaction.");
_txManager.commit();
} catch (Exception e) {
__log.error("Commit failed", e);
success = false;
}
} else {
success = false;
}
} catch (Exception e) {
__log.error("Exception occured while invoking ODE", e);
success = false;
String message = e.getMessage();
if (message == null) {
message = "An exception occured while invoking ODE.";
}
throw new OdeFault(message, e);
} finally {
if (!success) {
if (odeMex != null) odeMex.release(success);
try {
_txManager.rollback();
} catch (Exception e) {
throw new OdeFault("Rollback failed", e);
}
}
}
if (odeMex.getOperation().getOutput() != null) {
// Waits for the response to arrive
try {
responseFuture.get(getTimeout(), TimeUnit.MILLISECONDS);
} catch (Exception e) {
String errorMsg = "Timeout or execution error when waiting for response to MEX "
+ odeMex + " " + e.toString();
__log.error(errorMsg, e);
throw new OdeFault(errorMsg);
}
|
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Catch clause |
| Comment |
| If statement |
| Method invocation |
| Throw statement |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
// Hopefully we have a response
__log.debug("Handling response for MEX " + odeMex);
onResponse(odeMex, outMsgContext);
<<<<<<< HEAD
} finally {
boolean instanceSucceeded = odeMex.getAckType() == AckType.ONEWAY || odeMex.getAckType() == AckType.RESPONSE;
odeMex.release(_pconf.isCleanupCategoryEnabled(instanceSucceeded, CLEANUP_CATEGORY.MESSAGES));
}
}
} catch (java.util.concurrent.TimeoutException te) {
String errmsg = "Call to " + _serviceName + "." + odeMex.getOperationName() + " timed out(" + resolveTimeout() + " ms).";
__log.error(errmsg, te);
throw new OdeFault(errmsg);
} catch (Exception e) {
String errmsg = "Call to " + _serviceName + "." + odeMex.getOperationName() + " caused an exception.";
__log.error(errmsg, e);
throw new OdeFault(errmsg, e);
} finally {
// we cannot release ode mex here since it's outside of the transaction
=======
commit = true;
} catch (AxisFault af) {
__log.warn("MEX produced a fault " + odeMex, af);
commit = true;
throw af;
} catch (Exception e) {
__log.error("Error processing response for MEX " + odeMex, e);
throw new OdeFault("An exception occured when invoking ODE.", e);
} finally {
odeMex.release(commit);
if (commit) {
try {
if (__log.isDebugEnabled()) __log.debug("Comitting transaction.");
_txManager.commit();
} catch (Exception e) {
throw new OdeFault("Commit failed!", e);
}
} else {
try {
_txManager.rollback();
} catch (Exception ex) {
throw new OdeFault("Rollback failed!", ex);
}
}
}
}
if (!success) {
throw new OdeFault("Message was either unroutable or timed out!");
}
} else {
// One ways cleanup
odeMex.release(true);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
}
|
| Solution content |
|---|
}
try {
// Refreshing the message exchange
odeMex = (MyRoleMessageExchange) _server.getEngine().getMessageExchange(odeMex.getMessageExchangeId());
onResponse(odeMex, outMsgContext);
commit = true;
} catch (AxisFault af) {
__log.warn("MEX produced a fault " + odeMex, af);
commit = true;
throw af;
} catch (Exception e) {
__log.error("Error processing response for MEX " + odeMex, e);
throw new OdeFault("An exception occured when invoking ODE.", e);
} finally {
odeMex.release(commit);
if (commit) {
try {
if (__log.isDebugEnabled()) __log.debug("Comitting transaction.");
_txManager.commit();
} catch (Exception e) {
throw new OdeFault("Commit failed!", e);
}
} else {
try {
_txManager.rollback();
} catch (Exception ex) {
throw new OdeFault("Rollback failed!", ex);
}
}
}
}
if (!success) {
throw new OdeFault("Message was either unroutable or timed out!");
}
} else {
// One ways cleanup
odeMex.release(true);
}
}
|
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Catch clause |
| Comment |
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
/**
* do not store the value so it can be dynamically updated
*/
<<<<<<< HEAD
private long resolveTimeout() {
=======
private long getTimeout() {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
String timeout = _pconf.getEndpointProperties(_serviceRef).get(Properties.PROP_MEX_TIMEOUT);
if (timeout != null) {
try { |
| Solution content |
|---|
if (timeout != null) {
/**
* do not store the value so it can be dynamically updated
*/
private long getTimeout() {
String timeout = _pconf.getEndpointProperties(_serviceRef).get(Properties.PROP_MEX_TIMEOUT);
try { |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
return Properties.DEFAULT_MEX_TIMEOUT;
}
<<<<<<< HEAD
=======
/**
*
* @return an Option instance containing the properties for this endpoint
* @see org.apache.ode.bpel.iapi.ProcessConf#getEndpointProperties(org.apache.ode.bpel.iapi.EndpointReference)
*/
public Options getOptions(){
return Properties.Axis2.translate(_pconf.getEndpointProperties(_serviceRef));
}
private void onResponse(MyRoleMessageExchange mex, MessageContext msgContext) throws AxisFault {
switch (mex.getAckType()) {
case FAULT: |
| Solution content |
|---|
}
return Properties.DEFAULT_MEX_TIMEOUT;
/**
*
* @return an Option instance containing the properties for this endpoint
* @see org.apache.ode.bpel.iapi.ProcessConf#getEndpointProperties(org.apache.ode.bpel.iapi.EndpointReference)
*/
public Options getOptions(){
return Properties.Axis2.translate(_pconf.getEndpointProperties(_serviceRef));
}
private void onResponse(MyRoleMessageExchange mex, MessageContext msgContext) throws AxisFault {
switch (mex.getStatus()) {
case FAULT: |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
if (__log.isDebugEnabled())
__log.debug("Returning fault: " + msgContext.getEnvelope().toString());
break;
<<<<<<< HEAD
case ONEWAY:
=======
case ASYNC:
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
case RESPONSE:
_converter.createSoapResponse(msgContext, mex.getResponse(), mex.getOperation());
if (__log.isDebugEnabled()) |
| Solution content |
|---|
if (__log.isDebugEnabled())
__log.debug("Returning fault: " + msgContext.getEnvelope().toString());
break;
case ASYNC:
case RESPONSE:
_converter.createSoapResponse(msgContext, mex.getResponse(), mex.getOperation());
if (__log.isDebugEnabled()) |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Case statement |
| Chunk |
|---|
| Conflicting content |
|---|
* Extracts endpoint information from Axis MessageContext (taken from WSA headers) to stuff them into ODE mesage exchange.
*/
private void readHeader(MessageContext msgContext, MyRoleMessageExchange odeMex) {
<<<<<<< HEAD
Object otse = msgContext.getProperty(TARGET_SESSION_ENDPOINT);
Object ocse = msgContext.getProperty(CALLBACK_SESSION_ENDPOINT);
if (otse != null) {
Element serviceEpr = (Element) otse;
WSAEndpoint endpoint = new WSAEndpoint();
endpoint.set(serviceEpr);
// Extract the session ID for the local process.
odeMex.setProperty(WSMessageExchange.PROPERTY_SEP_MYROLE_SESSIONID, endpoint.getSessionId());
=======
String correlationId = (String) msgContext.getProperty(JMSConstants.JMS_COORELATION_ID);
if (correlationId != null) {
odeMex.setProperty(MessageExchange.PROPERTY_SEP_MYROLE_SESSIONID, correlationId);
} else {
Object otse = msgContext.getProperty("targetSessionEndpoint");
if (otse != null) {
Element serviceEpr = (Element) otse;
WSAEndpoint endpoint = new WSAEndpoint();
endpoint.set(serviceEpr);
// Extract the session ID for the local process.
odeMex.setProperty(MessageExchange.PROPERTY_SEP_MYROLE_SESSIONID, endpoint.getSessionId());
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
Object ocse = msgContext.getProperty("callbackSessionEndpoint"); |
| Solution content |
|---|
*/
private void readHeader(MessageContext msgContext, MyRoleMessageExchange odeMex) {
String correlationId = (String) msgContext.getProperty(JMSConstants.JMS_COORELATION_ID);
if (correlationId != null) {
odeMex.setProperty(MessageExchange.PROPERTY_SEP_MYROLE_SESSIONID, correlationId);
} else {
Object otse = msgContext.getProperty("targetSessionEndpoint");
if (otse != null) {
Element serviceEpr = (Element) otse;
WSAEndpoint endpoint = new WSAEndpoint();
endpoint.set(serviceEpr);
// Extract the session ID for the local process.
odeMex.setProperty(MessageExchange.PROPERTY_SEP_MYROLE_SESSIONID, endpoint.getSessionId());
}
}
Object ocse = msgContext.getProperty("callbackSessionEndpoint"); |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Cast expression |
| Comment |
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
/**
<<<<<<< HEAD
* Return the service-ref element that will be used to represent this endpoint.
*
=======
* Return the service-ref element that will be used to represent this
* endpoint.
*
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
* @return my service endpoint
*/
public EndpointReference getMyServiceRef() { |
| Solution content |
|---|
}
/**
* Return the service-ref element that will be used to represent this
* endpoint.
*
* @return my service endpoint
*/
public EndpointReference getMyServiceRef() { |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
/**
* Get the EPR of this service from the WSDL.
<<<<<<< HEAD
*
* @param name
* service name
* @param portName
* port name
=======
*
* @param name service name
* @param portName port name
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
* @return XML representation of the EPR
*/
public static Element genEPRfromWSDL(Definition wsdlDef, QName name, String portName) { |
| Solution content |
|---|
/**
* Get the EPR of this service from the WSDL.
*
* @param name service name
* @param portName port name
* @return XML representation of the EPR
*/
public static Element genEPRfromWSDL(Definition wsdlDef, QName name, String portName) { |
| File |
|---|
| ODEService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
private static final FileFilter _fileFilter = new FileFilter() {
public boolean accept(File path) {
return new File(path, "deploy.xml").exists();
@SuppressWarnings("unchecked")
private WatchDog _systemCronConfigWatchDog;
<<<<<<< HEAD
private SystemSchedulesConfig _systemSchedulesConf;
@SuppressWarnings("unchecked")
private Map |
| Solution content |
|---|
@SuppressWarnings("unchecked")
private WatchDog _systemCronConfigWatchDog;
/** Filter accepting directories containing a ode dd file. */
private static final FileFilter _fileFilter = new FileFilter() {
public boolean accept(File path) {
return new File(path, "deploy.xml").exists(); |
| File |
|---|
| DeploymentPoller.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Attribute |
| Comment |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
}
File[] files = _deployDir.listFiles(_fileFilter);
// Checking for new deployment directories
<<<<<<< HEAD
for (File file : files) {
File deployXml = new File(file, "deploy.xml");
File deployedMarker = new File(_deployDir, file.getName() + ".deployed");
if (!deployXml.exists()) {
// Skip if deploy.xml is abset
__log.debug("Not deploying " + file + " (missing deploy.xml)");
}
WatchDog ddWatchDog = ensureDeployXmlWatchDog(file, deployXml);
if (deployedMarker.exists()) {
checkDeployXmlWatchDog(ddWatchDog);
continue;
try {
deployedMarker.createNewFile();
} catch (IOException e1) {
__log.error("Error creating deployed marker file, " + file + " will not be deployed");
continue;
}
=======
if (isDeploymentFromODEFileSystemAllowed() && files != null) {
for (File file : files) {
File deployXml = new File(file, "deploy.xml");
File deployedMarker = new File(_deployDir, file.getName() + ".deployed");
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
if (!deployXml.exists()) {
// Skip if deploy.xml is abset |
| Solution content |
|---|
File[] files = _deployDir.listFiles(_fileFilter);
// Checking for new deployment directories
if (isDeploymentFromODEFileSystemAllowed() && files != null) {
for (File file : files) {
File deployXml = new File(file, "deploy.xml");
File deployedMarker = new File(_deployDir, file.getName() + ".deployed");
if (!deployXml.exists()) {
// Skip if deploy.xml is abset |
| File |
|---|
| DeploymentPoller.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| For statement |
| If statement |
| Method invocation |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
__log.info("Successfully undeployed " + pkg);
}
}
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
checkSystemCronConfigWatchDog(_systemCronConfigWatchDog);
}
|
| Solution content |
|---|
__log.info("Successfully undeployed " + pkg);
}
}
checkSystemCronConfigWatchDog(_systemCronConfigWatchDog);
}
|
| File |
|---|
| DeploymentPoller.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.axis2.util.Axis2WSDLLocator; import org.apache.ode.axis2.util.AxisUtils; import org.apache.ode.bpel.iapi.ProcessConf; <<<<<<< HEAD import org.apache.ode.utils.Properties; import org.apache.ode.il.epr.WSDL11Endpoint; ======= import org.apache.ode.bpel.epr.WSDL11Endpoint; import org.apache.ode.utils.Properties; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ws.commons.schema.XmlSchema; import org.apache.ws.commons.schema.XmlSchemaCollection; import org.w3c.dom.Element; |
| Solution content |
|---|
import org.apache.ode.axis2.util.Axis2WSDLLocator; import org.apache.ode.axis2.util.AxisUtils; import org.apache.ode.bpel.iapi.ProcessConf; import org.apache.ode.bpel.epr.WSDL11Endpoint; import org.apache.ode.utils.Properties; import org.apache.ws.commons.schema.XmlSchema; import org.apache.ws.commons.schema.XmlSchemaCollection; import org.w3c.dom.Element; |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
InputStream is = null;
try {
URI baseUri = pconf.getBaseURI().resolve(wsdlDefinition.getDocumentBaseURI());
<<<<<<< HEAD
InputStream is = baseUri.toURL().openStream();
=======
is = baseUri.toURL().openStream();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
WSDL11ToAxisServiceBuilder serviceBuilder = new WSDL11ToAxisPatchedBuilder(is, wsdlServiceName, portName);
serviceBuilder.setBaseUri(baseUri.toString());
serviceBuilder.setCustomResolver(new Axis2UriResolver()); |
| Solution content |
|---|
serviceBuilder.setBaseUri(baseUri.toString());
InputStream is = null;
try {
URI baseUri = pconf.getBaseURI().resolve(wsdlDefinition.getDocumentBaseURI());
WSDL11ToAxisServiceBuilder serviceBuilder = new WSDL11ToAxisPatchedBuilder(is, wsdlServiceName, portName);
serviceBuilder.setCustomResolver(new Axis2UriResolver());
is = baseUri.toURL().openStream(); |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
axisService.setWsdlFound(true);
axisService.setCustomWsdl(true);
axisService.setClassLoader(axisConfig.getServiceClassLoader());
<<<<<<< HEAD
URL wsdlUrl = null;
for (File file : pconf.getFiles()) {
if (file.getAbsolutePath().indexOf(wsdlDefinition.getDocumentBaseURI()) > 0)
wsdlUrl = file.toURI().toURL();
}
if (wsdlUrl != null) axisService.setFileName(wsdlUrl);
=======
URL wsdlUrl = null;
for (File file : pconf.getFiles()) {
if (file.getAbsolutePath().indexOf(wsdlDefinition.getDocumentBaseURI()) > 0)
wsdlUrl = file.toURI().toURL();
}
if (wsdlUrl != null) axisService.setFileName(wsdlUrl);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
// axis2 service configuration
URL service_file = pconf.getBaseURI().resolve(wsdlServiceName.getLocalPart()+".axis2").toURL();
LOG.debug("Looking for Axis2 service configuration file: "+service_file); |
| Solution content |
|---|
axisService.setWsdlFound(true);
axisService.setCustomWsdl(true);
axisService.setClassLoader(axisConfig.getServiceClassLoader());
URL wsdlUrl = null;
for (File file : pconf.getFiles()) {
if (file.getAbsolutePath().indexOf(wsdlDefinition.getDocumentBaseURI()) > 0)
wsdlUrl = file.toURI().toURL();
}
if (wsdlUrl != null) axisService.setFileName(wsdlUrl);
// axis2 service configuration
URL service_file = pconf.getBaseURI().resolve(wsdlServiceName.getLocalPart()+".axis2").toURL();
LOG.debug("Looking for Axis2 service configuration file: "+service_file); |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| For statement |
| If statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
AxisUtils.applySecurityPolicy(axisService, properties.get(Properties.PROP_SECURITY_POLICY));
=======
final WSDL11Endpoint endpoint = new WSDL11Endpoint(wsdlServiceName, portName);
final Map |
| Solution content |
|---|
final WSDL11Endpoint endpoint = new WSDL11Endpoint(wsdlServiceName, portName);
final Map |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
operation.setMessageReceiver(msgReceiver);
}
}
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
// Set the JMS destination name on the Axis Service
if (isJmsEndpoint(pconf, wsdlServiceName, portName)) {
axisService.addParameter(new Parameter(JMSConstants.DEST_PARAM, |
| Solution content |
|---|
operation.setMessageReceiver(msgReceiver);
}
}
// Set the JMS destination name on the Axis Service
if (isJmsEndpoint(pconf, wsdlServiceName, portName)) {
axisService.addParameter(new Parameter(JMSConstants.DEST_PARAM, |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
axisService.addParameter(new Parameter(JMSConstants.DEST_PARAM,
extractJMSDestinationName(axisServiceName, deriveBaseServiceUri(pconf))));
}
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
return axisService;
} catch (Exception e) {
throw AxisFault.makeFault(e); |
| Solution content |
|---|
axisService.addParameter(new Parameter(JMSConstants.DEST_PARAM,
extractJMSDestinationName(axisServiceName, deriveBaseServiceUri(pconf))));
}
return axisService;
} catch (Exception e) {
throw AxisFault.makeFault(e); |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
destinationPrefix = "dynamicTopics/";
index = axisServiceName.indexOf(destinationPrefix);
}
<<<<<<< HEAD
}
public static AxisService createService(AxisConfiguration axisConfig, QName serviceQName, String port,
String axisName, Definition wsdlDef, MessageReceiver receiver) throws AxisFault {
=======
if (index == -1) {
destinationPrefix = baseUri + "/";
index = axisServiceName.indexOf(destinationPrefix);
return (index != -1) ? axisServiceName.substring(destinationPrefix.length()) : axisServiceName;
} else {
return axisServiceName.substring(index);
}
}
public static AxisService createService(AxisConfiguration axisConfig, QName serviceQName, String port,
String axisName, Definition wsdlDef, MessageReceiver receiver) throws AxisFault {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
WSDL11ToAxisServiceBuilder serviceBuilder = new WSDL11ToAxisServiceBuilder(wsdlDef, serviceQName, port);
AxisService axisService = serviceBuilder.populateService();
axisService.setName(axisName); |
| Solution content |
|---|
destinationPrefix = "dynamicTopics/";
index = axisServiceName.indexOf(destinationPrefix);
}
if (index == -1) {
destinationPrefix = baseUri + "/";
index = axisServiceName.indexOf(destinationPrefix);
return (index != -1) ? axisServiceName.substring(destinationPrefix.length()) : axisServiceName;
} else {
return axisServiceName.substring(index);
}
}
public static AxisService createService(AxisConfiguration axisConfig, QName serviceQName, String port,
String axisName, Definition wsdlDef, MessageReceiver receiver) throws AxisFault {
WSDL11ToAxisServiceBuilder serviceBuilder = new WSDL11ToAxisServiceBuilder(wsdlDef, serviceQName, port);
AxisService axisService = serviceBuilder.populateService();
axisService.setName(axisName); |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
return axisService;
}
<<<<<<< HEAD
/**
* Extract the JMS destination name that is embedded in the Axis service name.
* @param axisServiceName the name of the axis service
* @return the corresponding JMS destination name
*/
private static String extractJMSDestinationName(String axisServiceName, String baseUri) {
String destinationPrefix = "dynamicQueues/";
int index = axisServiceName.indexOf(destinationPrefix);
if (index == -1) {
destinationPrefix = "dynamicTopics/";
index = axisServiceName.indexOf(destinationPrefix);
}
if (index == -1) {
destinationPrefix = baseUri + "/";
index = axisServiceName.indexOf(destinationPrefix);
return (index != -1) ? axisServiceName.substring(destinationPrefix.length()) : axisServiceName;
} else {
return axisServiceName.substring(index);
}
}
private static String extractEndpointUri(ProcessConf pconf, QName wsdlServiceName, String portName)
throws AxisFault {
=======
private static String extractEndpointUri(ProcessConf pconf, QName wsdlServiceName, String portName)
throws AxisFault {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
Definition wsdlDefinition = pconf.getDefinitionForService(wsdlServiceName);
String url = null;
Service service = wsdlDefinition.getService(wsdlServiceName); |
| Solution content |
|---|
return axisService;
}
private static String extractEndpointUri(ProcessConf pconf, QName wsdlServiceName, String portName)
throws AxisFault {
Definition wsdlDefinition = pconf.getDefinitionForService(wsdlServiceName);
String url = null;
Service service = wsdlDefinition.getService(wsdlServiceName); |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
String url = extractEndpointUri(pconf, wsdlServiceName, portName);
return url.startsWith("jms:");
}
private static boolean isJmsEndpoint(ProcessConf pconf, QName wsdlServiceName, String portName)
throws AxisFault {
if (url == null) {
throw new OdeFault("Could not extract any soap:address from service WSDL definition " + wsdlServiceName
+ " (necessary to establish the process target address)!");
<<<<<<< HEAD
}
return url;
}
private static boolean isJmsEndpoint(ProcessConf pconf, QName wsdlServiceName, String portName)
throws AxisFault {
String url = extractEndpointUri(pconf, wsdlServiceName, portName);
return url.startsWith("jms:");
}
private static String extractServiceName(ProcessConf pconf, QName wsdlServiceName, String portName)
throws AxisFault {
=======
}
return url;
}
private static String extractServiceName(ProcessConf pconf, QName wsdlServiceName, String portName)
throws AxisFault {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
String endpointUri = extractEndpointUri(pconf, wsdlServiceName, portName);
String derivedUri = deriveBaseServiceUri(pconf);
String serviceName = parseURLForService(endpointUri, derivedUri); |
| Solution content |
|---|
if (url == null) {
throw new OdeFault("Could not extract any soap:address from service WSDL definition " + wsdlServiceName
+ " (necessary to establish the process target address)!");
}
return url;
}
private static boolean isJmsEndpoint(ProcessConf pconf, QName wsdlServiceName, String portName)
throws AxisFault {
String url = extractEndpointUri(pconf, wsdlServiceName, portName);
return url.startsWith("jms:");
}
private static String extractServiceName(ProcessConf pconf, QName wsdlServiceName, String portName)
throws AxisFault {
String endpointUri = extractEndpointUri(pconf, wsdlServiceName, portName);
String derivedUri = deriveBaseServiceUri(pconf);
String serviceName = parseURLForService(endpointUri, derivedUri); |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method declaration |
| Method signature |
| Return statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
/*
+ portName + " should be of the form http://hostname:port/ode/processes/myProcessEndpointName");
}
return serviceName;
<<<<<<< HEAD
}
/**
* Obtain the service name from the request URL. The request URL is expected to use the path "/processes/" under
* which all processes and their services are listed. Returns null if the path does not contain this part.
*/
protected static String parseURLForService(String path, String baseUri) {
// Assume that path is HTTP-based, by default
String servicePrefix = "/processes/";
// Don't assume JMS-based paths start the same way
if (path.startsWith("jms://")) {
servicePrefix = "jms://";
}
int index = path.indexOf(servicePrefix);
if (-1 != index) {
String service;
int serviceStart = index + servicePrefix.length();
if (path.length() > serviceStart + 1) {
service = path.substring(serviceStart);
// Path may contain query string, not interesting for us.
int queryIndex = service.indexOf('?');
if (queryIndex > 0) {
service = service.substring(0, queryIndex);
}
// Qualify shared JMS names with unique baseUri
// Since multiple processes may provide services at the same (JMS) endpoint, qualify
// the (JMS) endpoint-specific NCName with a process-relative URI, if necessary.
if (path.startsWith("jms")) {
boolean slashPresent = baseUri.endsWith("/") || service.startsWith("/");
service = baseUri + (slashPresent ? "" : "/") + service;
}
return service;
}
}
return null;
}
=======
}
/**
* Obtain the service name from the request URL. The request URL is expected to use the path "/processes/" under
* which all processes and their services are listed. Returns null if the path does not contain this part.
*/
protected static String parseURLForService(String path, String baseUri) {
// Assume that path is HTTP-based, by default
String servicePrefix = "/processes/";
// Don't assume JMS-based paths start the same way
if (path.startsWith("jms:/")) {
servicePrefix = "jms:/";
}
int index = path.indexOf(servicePrefix);
if (-1 != index) {
String service;
int serviceStart = index + servicePrefix.length();
if (path.length() > serviceStart + 1) {
service = path.substring(serviceStart);
// Path may contain query string, not interesting for us.
int queryIndex = service.indexOf('?');
if (queryIndex > 0) {
service = service.substring(0, queryIndex);
}
// Qualify shared JMS names with unique baseUri
// Since multiple processes may provide services at the same (JMS) endpoint, qualify
// the (JMS) endpoint-specific NCName with a process-relative URI, if necessary.
if (path.startsWith("jms:/")) {
boolean slashPresent = baseUri.endsWith("/") || service.startsWith("/");
// service = baseUri + (slashPresent ? "" : "/") + service; // allow successive slashes ("//") in the URI
service = baseUri + "/" + service;
}
return service;
}
}
return null;
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
* Generates a URI of the following form: |
| Solution content |
|---|
* Obtain the service name from the request URL. The request URL is expected to use the path "/processes/" under
+ portName + " should be of the form http://hostname:port/ode/processes/myProcessEndpointName");
}
return serviceName;
}
/**
* which all processes and their services are listed. Returns null if the path does not contain this part.
*/
protected static String parseURLForService(String path, String baseUri) {
// Assume that path is HTTP-based, by default
String servicePrefix = "/processes/";
// Don't assume JMS-based paths start the same way
if (path.startsWith("jms:/")) {
servicePrefix = "jms:/";
}
int index = path.indexOf(servicePrefix);
if (-1 != index) {
String service;
int serviceStart = index + servicePrefix.length();
if (path.length() > serviceStart + 1) {
service = path.substring(serviceStart);
// Path may contain query string, not interesting for us.
int queryIndex = service.indexOf('?');
if (queryIndex > 0) {
service = service.substring(0, queryIndex);
}
// Qualify shared JMS names with unique baseUri
// Since multiple processes may provide services at the same (JMS) endpoint, qualify
// the (JMS) endpoint-specific NCName with a process-relative URI, if necessary.
if (path.startsWith("jms:/")) {
boolean slashPresent = baseUri.endsWith("/") || service.startsWith("/");
// service = baseUri + (slashPresent ? "" : "/") + service; // allow successive slashes ("//") in the URI
service = baseUri + "/" + service;
}
return service;
}
}
return null;
}
|
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
.getLocalPart());
}
}
<<<<<<< HEAD
}
// Axis2 monkey patching to force the usage of the read(element,baseUri) method
// of XmlSchema as the normal read is broken.
public static class WSDL11ToAxisPatchedBuilder extends WSDL11ToAxisServiceBuilder {
public WSDL11ToAxisPatchedBuilder(InputStream in, QName serviceName, String portName) {
super(in, serviceName, portName);
}
}
public WSDL11ToAxisPatchedBuilder(Definition def, QName serviceName, String portName) {
super(def, serviceName, portName);
}
public WSDL11ToAxisPatchedBuilder(Definition def, QName serviceName, String portName, boolean isAllPorts) {
super(def, serviceName, portName, isAllPorts);
}
public WSDL11ToAxisPatchedBuilder(InputStream in, AxisService service) {
super(in, service);
}
public WSDL11ToAxisPatchedBuilder(InputStream in) {
super(in);
}
protected XmlSchema getXMLSchema(Element element, String baseUri) {
XmlSchemaCollection schemaCollection = new XmlSchemaCollection();
if (baseUri != null) {
schemaCollection.setBaseUri(baseUri);
}
return schemaCollection.read(element, baseUri);
}
=======
}
// Axis2 monkey patching to force the usage of the read(element,baseUri) method
// of XmlSchema as the normal read is broken.
public static class WSDL11ToAxisPatchedBuilder extends WSDL11ToAxisServiceBuilder {
public WSDL11ToAxisPatchedBuilder(InputStream in, QName serviceName, String portName) {
super(in, serviceName, portName);
}
public WSDL11ToAxisPatchedBuilder(Definition def, QName serviceName, String portName) {
super(def, serviceName, portName);
}
public WSDL11ToAxisPatchedBuilder(Definition def, QName serviceName, String portName, boolean isAllPorts) {
super(def, serviceName, portName, isAllPorts);
}
public WSDL11ToAxisPatchedBuilder(InputStream in, AxisService service) {
super(in, service);
}
public WSDL11ToAxisPatchedBuilder(InputStream in) {
super(in);
}
protected XmlSchema getXMLSchema(Element element, String baseUri) {
XmlSchemaCollection schemaCollection = new XmlSchemaCollection();
if (baseUri != null) {
schemaCollection.setBaseUri(baseUri);
}
return schemaCollection.read(element, baseUri);
}
}
/*
* Generates a URI of the following form:
* ${deploy_bundleNcName}/${diagram_relativeURL}/${process_relativeURL}
* When a service name (local part only) is qualified (prefixed) with the above,
* it results in a unique identifier that may be used as that service's name.
*/
public static String deriveBaseServiceUri(ProcessConf pconf) {
if (pconf != null) {
StringBuffer baseServiceUri = new StringBuffer();
String bundleName = pconf.getPackage();
if (bundleName != null) {
baseServiceUri.append(bundleName).append("/");
if (pconf.getBpelDocument() != null) {
String bpelDocumentName = pconf.getBpelDocument();
if (bpelDocumentName.indexOf(".") > 0) {
bpelDocumentName = bpelDocumentName.substring(0, bpelDocumentName.indexOf("."));
}
baseServiceUri.append(bpelDocumentName).append("/");
String processName = pconf.getType() != null
? pconf.getType().getLocalPart() : null;
if (processName != null) {
baseServiceUri.append(processName);
return baseServiceUri.toString();
}
return null;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
} |
| Solution content |
|---|
.getLocalPart());
}
}
}
// Axis2 monkey patching to force the usage of the read(element,baseUri) method
// of XmlSchema as the normal read is broken.
public static class WSDL11ToAxisPatchedBuilder extends WSDL11ToAxisServiceBuilder {
public WSDL11ToAxisPatchedBuilder(InputStream in, QName serviceName, String portName) {
super(in, serviceName, portName);
}
public WSDL11ToAxisPatchedBuilder(Definition def, QName serviceName, String portName) {
super(def, serviceName, portName);
}
public WSDL11ToAxisPatchedBuilder(Definition def, QName serviceName, String portName, boolean isAllPorts) {
super(def, serviceName, portName, isAllPorts);
}
public WSDL11ToAxisPatchedBuilder(InputStream in, AxisService service) {
super(in, service);
}
public WSDL11ToAxisPatchedBuilder(InputStream in) {
super(in);
}
protected XmlSchema getXMLSchema(Element element, String baseUri) {
XmlSchemaCollection schemaCollection = new XmlSchemaCollection();
if (baseUri != null) {
schemaCollection.setBaseUri(baseUri);
}
return schemaCollection.read(element, baseUri);
}
}
/*
* Generates a URI of the following form:
* ${deploy_bundleNcName}/${diagram_relativeURL}/${process_relativeURL}
* When a service name (local part only) is qualified (prefixed) with the above,
* it results in a unique identifier that may be used as that service's name.
*/
public static String deriveBaseServiceUri(ProcessConf pconf) {
if (pconf != null) {
StringBuffer baseServiceUri = new StringBuffer();
String bundleName = pconf.getPackage();
if (bundleName != null) {
baseServiceUri.append(bundleName).append("/");
if (pconf.getBpelDocument() != null) {
String bpelDocumentName = pconf.getBpelDocument();
if (bpelDocumentName.indexOf(".") > 0) {
bpelDocumentName = bpelDocumentName.substring(0, bpelDocumentName.indexOf("."));
}
baseServiceUri.append(bpelDocumentName).append("/");
String processName = pconf.getType() != null
? pconf.getType().getLocalPart() : null;
if (processName != null) {
baseServiceUri.append(processName);
return baseServiceUri.toString();
}
}
}
}
return null;
}
} |
| File |
|---|
| ODEAxisService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Class declaration |
| Class signature |
| Comment |
| If statement |
| Method declaration |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.axis2.transport.http.AxisServlet; import org.apache.ode.axis2.ODEServer; import org.apache.ode.axis2.service.DeploymentBrowser; <<<<<<< HEAD ======= import java.io.*; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a /** * Overrides standard AxisServlet to handle our service configurations and |
| Solution content |
|---|
import org.apache.axis2.transport.http.AxisServlet; import org.apache.ode.axis2.ODEServer; import org.apache.ode.axis2.service.DeploymentBrowser; import java.io.*; /** * Overrides standard AxisServlet to handle our service configurations and |
| File |
|---|
| ODEAxisServlet.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
_odeServer = createODEServer();
_odeServer.init(config, axisConfiguration);
_browser = new DeploymentBrowser(_odeServer.getProcessStore(), axisConfiguration, _odeServer.getAppRoot());
<<<<<<< HEAD
=======
}
// Prevents a stack overflow on WAS 6.1 due to the axis2 init delegation chain
public void init() throws ServletException {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { |
| Solution content |
|---|
_odeServer = createODEServer();
_odeServer.init(config, axisConfiguration);
_browser = new DeploymentBrowser(_odeServer.getProcessStore(), axisConfiguration, _odeServer.getAppRoot());
}
// Prevents a stack overflow on WAS 6.1 due to the axis2 init delegation chain
public void init() throws ServletException {
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { |
| File |
|---|
| ODEAxisServlet.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
+ msgContext.getAxisOperation().getName());
// Client is expecting a response, running in the same thread
MessageContext outMsgContext = MessageContextBuilder.createOutMessageContext(msgContext);
<<<<<<< HEAD
=======
// pass on the endpoint properties for output context
outMsgContext.getOptions().setParent(_service.getOptions());
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
outMsgContext.getOperationContext().addMessageContext(outMsgContext);
invokeBusinessLogic(msgContext, outMsgContext);
if (__log.isDebugEnabled()) { |
| Solution content |
|---|
+ msgContext.getAxisOperation().getName());
// Client is expecting a response, running in the same thread
MessageContext outMsgContext = MessageContextBuilder.createOutMessageContext(msgContext);
// pass on the endpoint properties for output context
outMsgContext.getOptions().setParent(_service.getOptions());
outMsgContext.getOperationContext().addMessageContext(outMsgContext);
invokeBusinessLogic(msgContext, outMsgContext);
if (__log.isDebugEnabled()) { |
| File |
|---|
| ODEMessageReceiver.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
public InvocationResponse invoke(MessageContext messageContext) throws AxisFault {
<<<<<<< HEAD
EndpointReference otargetSession = (EndpointReference) messageContext.getProperty(ODEService.TARGET_SESSION_ENDPOINT);
EndpointReference ocallbackSession = (EndpointReference) messageContext.getProperty(ODEService.CALLBACK_SESSION_ENDPOINT);
=======
// Skip this handler if ask to do so
if(messageContext.isPropertyTrue(AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES)){
if(__log.isDebugEnabled()) __log.debug("Skipped WS-Adressing Headers for sessions");
return InvocationResponse.CONTINUE;
}
EndpointReference otargetSession = (EndpointReference) messageContext.getProperty("targetSessionEndpoint");
EndpointReference ocallbackSession = (EndpointReference) messageContext.getProperty("callbackSessionEndpoint");
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
if (otargetSession == null)
otargetSession = (EndpointReference) messageContext.getOptions().getProperty(ODEService.TARGET_SESSION_ENDPOINT);
if (ocallbackSession == null) |
| Solution content |
|---|
public InvocationResponse invoke(MessageContext messageContext) throws AxisFault {
// Skip this handler if ask to do so
if(messageContext.isPropertyTrue(AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES)){
if(__log.isDebugEnabled()) __log.debug("Skipped WS-Adressing Headers for sessions");
return InvocationResponse.CONTINUE;
}
EndpointReference otargetSession = (EndpointReference) messageContext.getProperty("targetSessionEndpoint");
EndpointReference ocallbackSession = (EndpointReference) messageContext.getProperty("callbackSessionEndpoint");
if (otargetSession == null)
otargetSession = (EndpointReference) messageContext.getOptions().getProperty("targetSessionEndpoint");
if (ocallbackSession == null) |
| File |
|---|
| SessionOutHandler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Cast expression |
| Comment |
| If statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
if (otargetSession != null || ocallbackSession != null) {
SOAPHeader header = messageContext.getEnvelope().getHeader();
SOAPFactory factory = (SOAPFactory) messageContext.getEnvelope().getOMFactory();
<<<<<<< HEAD
=======
OMNamespace intalioSessNS = factory.createOMNamespace(Namespaces.INTALIO_SESSION_NS, "intalio");
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
OMNamespace odeSessNS = factory.createOMNamespace(Namespaces.ODE_SESSION_NS, "odesession");
OMNamespace wsAddrNS = factory.createOMNamespace(Namespaces.WS_ADDRESSING_NS, "addr");
if (header == null) { |
| Solution content |
|---|
if (otargetSession != null || ocallbackSession != null) {
SOAPHeader header = messageContext.getEnvelope().getHeader();
SOAPFactory factory = (SOAPFactory) messageContext.getEnvelope().getOMFactory();
OMNamespace intalioSessNS = factory.createOMNamespace(Namespaces.INTALIO_SESSION_NS, "intalio");
OMNamespace odeSessNS = factory.createOMNamespace(Namespaces.ODE_SESSION_NS, "odesession");
OMNamespace wsAddrNS = factory.createOMNamespace(Namespaces.WS_ADDRESSING_NS, "addr");
if (header == null) { |
| File |
|---|
| SessionOutHandler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
if (targetEpr.getSessionId() != null) {
OMElement session = factory.createSOAPHeaderBlock("session", odeSessNS);
<<<<<<< HEAD
=======
header.addChild(session);
session.setText(targetEpr.getSessionId());
// same for intalio
session = factory.createSOAPHeaderBlock("session", intalioSessNS);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
header.addChild(session);
session.setText(targetEpr.getSessionId());
} |
| Solution content |
|---|
if (targetEpr.getSessionId() != null) {
OMElement session = factory.createSOAPHeaderBlock("session", odeSessNS);
header.addChild(session);
session.setText(targetEpr.getSessionId());
// same for intalio
session = factory.createSOAPHeaderBlock("session", intalioSessNS);
header.addChild(session);
session.setText(targetEpr.getSessionId());
} |
| File |
|---|
| SessionOutHandler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
if (ocallbackSession != null && ocallbackSession instanceof MutableEndpoint) {
WSAEndpoint callbackEpr = EndpointFactory.convertToWSA((MutableEndpoint) ocallbackSession);
<<<<<<< HEAD
OMElement callback = factory.createSOAPHeaderBlock("callback", odeSessNS);
header.addChild(callback);
=======
OMElement odeCallback = factory.createSOAPHeaderBlock("callback", odeSessNS);
OMElement intCallback = factory.createSOAPHeaderBlock("callback", intalioSessNS);
header.addChild(odeCallback);
header.addChild(intCallback);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
OMElement address = factory.createOMElement("Address", wsAddrNS);
odeCallback.addChild(address);
intCallback.addChild(address.cloneOMElement()); |
| Solution content |
|---|
if (ocallbackSession != null && ocallbackSession instanceof MutableEndpoint) {
WSAEndpoint callbackEpr = EndpointFactory.convertToWSA((MutableEndpoint) ocallbackSession);
OMElement odeCallback = factory.createSOAPHeaderBlock("callback", odeSessNS);
OMElement intCallback = factory.createSOAPHeaderBlock("callback", intalioSessNS);
header.addChild(odeCallback);
header.addChild(intCallback);
OMElement address = factory.createOMElement("Address", wsAddrNS);
odeCallback.addChild(address);
intCallback.addChild(address.cloneOMElement()); |
| File |
|---|
| SessionOutHandler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
intCallback.addChild(address.cloneOMElement());
address.setText(callbackEpr.getUrl());
if (callbackEpr.getSessionId() != null) {
<<<<<<< HEAD
OMElement session = factory.createOMElement("session", odeSessNS);
session.setText(callbackEpr.getSessionId());
callback.addChild(session);
=======
OMElement odeSession = factory.createOMElement("session", odeSessNS);
OMElement intSession = factory.createOMElement("session", intalioSessNS);
odeSession.setText(callbackEpr.getSessionId());
intSession.setText(callbackEpr.getSessionId());
odeCallback.addChild(odeSession);
intCallback.addChild(intSession);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
__log.debug("Sending stateful FROM epr in message header using session " + callbackEpr.getSessionId());
} |
| Solution content |
|---|
intCallback.addChild(address.cloneOMElement());
address.setText(callbackEpr.getUrl());
if (callbackEpr.getSessionId() != null) {
OMElement odeSession = factory.createOMElement("session", odeSessNS);
OMElement intSession = factory.createOMElement("session", intalioSessNS);
odeSession.setText(callbackEpr.getSessionId());
intSession.setText(callbackEpr.getSessionId());
odeCallback.addChild(odeSession);
intCallback.addChild(intSession);
}
__log.debug("Sending stateful FROM epr in message header using session " + callbackEpr.getSessionId());
} |
| File |
|---|
| SessionOutHandler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
if (operation.equals("deploy")) {
OMElement deployElement = messageContext.getEnvelope().getBody().getFirstElement();
OMElement namePart = deployElement.getFirstChildWithName(new QName(null, "name"));
<<<<<<< HEAD
=======
// "be liberal in what you accept from others"
if (namePart == null) {
namePart = OMUtils.getFirstChildWithName(deployElement, "name");
if( namePart == null ) {
throw new OdeFault("The name part is missing");
} else if (__log.isWarnEnabled()) {
__log.warn("Invalid incoming request detected for operation " + messageContext.getAxisOperation().getName() + ". Name part should have no namespace but has " + namePart.getQName().getNamespaceURI());
}
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
OMElement packagePart = deployElement.getFirstChildWithName(new QName(null, "package"));
// "be liberal in what you accept from others" |
| Solution content |
|---|
if (operation.equals("deploy")) {
OMElement deployElement = messageContext.getEnvelope().getBody().getFirstElement();
OMElement namePart = deployElement.getFirstChildWithName(new QName(null, "name"));
// "be liberal in what you accept from others"
if (namePart == null) {
namePart = OMUtils.getFirstChildWithName(deployElement, "name");
if( namePart == null ) {
throw new OdeFault("The name part is missing");
} else if (__log.isWarnEnabled()) {
__log.warn("Invalid incoming request detected for operation " + messageContext.getAxisOperation().getName() + ". Name part should have no namespace but has " + namePart.getQName().getNamespaceURI());
}
}
OMElement packagePart = deployElement.getFirstChildWithName(new QName(null, "package"));
// "be liberal in what you accept from others" |
| File |
|---|
| DeploymentWebService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| If statement |
| Chunk |
|---|
| Conflicting content |
|---|
public ProcessManagement getProcessMgmt() {
return _processMgmt;
<<<<<<< HEAD
}
public InstanceManagement getInstanceMgmt() {
return _instanceMgmt;
}
static class DynamicMessageReceiver |
| Solution content |
|---|
}
public ProcessManagement getProcessMgmt() {
return _processMgmt;
}
public InstanceManagement getInstanceMgmt() {
return _instanceMgmt;
}
class DynamicMessageReceiver |
| File |
|---|
| ManagementService.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Class signature |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
package org.apache.ode.axis2.util;
<<<<<<< HEAD
import org.apache.geronimo.gbean.AbstractName;
import org.apache.geronimo.gbean.AbstractNameQuery;
import org.apache.geronimo.kernel.GBeanNotFoundException;
import org.apache.geronimo.kernel.Kernel;
import org.apache.geronimo.kernel.KernelRegistry;
import org.apache.geronimo.kernel.config.MultiParentClassLoader;
import org.apache.geronimo.kernel.repository.Artifact;
import org.apache.geronimo.kernel.repository.Repository;
import javax.transaction.TransactionManager;
import java.io.File;
import java.net.MalformedURLException;
import java.util.Collections;
import java.util.Iterator;
import java.util.Set;
import org.apache.geronimo.transaction.context.TransactionContextManager;
import org.apache.geronimo.transaction.context.GeronimoTransactionManager;
=======
import javax.transaction.TransactionManager;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public class GeronimoFactory {
|
| Solution content |
|---|
package org.apache.ode.axis2.util;
import javax.transaction.TransactionManager;
public class GeronimoFactory {
|
| File |
|---|
| GeronimoFactory.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.axis2.context.MessageContext; import org.apache.ode.axis2.soapbinding.SoapMessageConverter; import org.apache.ode.utils.DOMUtils; <<<<<<< HEAD import org.apache.ode.bpel.engine.MemBackedMessageImpl; ======= import org.apache.ode.bpel.engine.MessageImpl; import org.apache.ode.bpel.memdao.MessageDAOImpl; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.w3c.dom.Document; import org.w3c.dom.Element; |
| Solution content |
|---|
import org.apache.axis2.context.MessageContext; import org.apache.ode.axis2.util.SoapMessageConverter; import org.apache.ode.utils.DOMUtils; import org.apache.ode.bpel.engine.MessageImpl; import org.apache.ode.bpel.memdao.MessageDAOImpl; import org.w3c.dom.Document; import org.w3c.dom.Element; |
| File |
|---|
| SoapMessageConverterTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
public void testCreateSOAPRequest() throws Exception {
MessageContext msgCtx = new MessageContext();
<<<<<<< HEAD
MemBackedMessageImpl odeMsg = new MemBackedMessageImpl(null, req1.getDocumentElement(), null, false);
=======
MessageImpl odeMsg = new MessageImpl(new MessageDAOImpl(null));
odeMsg.setMessage(req1.getDocumentElement());
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
portmapper.createSoapRequest(msgCtx, odeMsg, portType.getOperation("getObjectId", null, null));
SOAPEnvelope env = msgCtx.getEnvelope();
System.out.println("testCreateSOAPRequest: " + env); |
| Solution content |
|---|
public void testCreateSOAPRequest() throws Exception {
MessageContext msgCtx = new MessageContext();
MessageImpl odeMsg = new MessageImpl(new MessageDAOImpl(null));
odeMsg.setMessage(req1.getDocumentElement());
portmapper.createSoapRequest(msgCtx, odeMsg, portType.getOperation("getObjectId", null, null));
SOAPEnvelope env = msgCtx.getEnvelope();
System.out.println("testCreateSOAPRequest: " + env); |
| File |
|---|
| SoapMessageConverterTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
public void testCreateSOAPRequestFail() throws Exception {
MessageContext msgCtx = new MessageContext();
<<<<<<< HEAD
MemBackedMessageImpl odeMsg = new MemBackedMessageImpl(null, req1bad.getDocumentElement(), null, false);
=======
MessageImpl odeMsg = new MessageImpl(new MessageDAOImpl(null));
odeMsg.setMessage(req1bad.getDocumentElement());
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
try {
portmapper.createSoapRequest(msgCtx, odeMsg, portType.getOperation("getObjectId", null, null));
fail("Should have caused an ex"); |
| Solution content |
|---|
public void testCreateSOAPRequestFail() throws Exception {
MessageContext msgCtx = new MessageContext();
MessageImpl odeMsg = new MessageImpl(new MessageDAOImpl(null));
odeMsg.setMessage(req1bad.getDocumentElement());
try {
portmapper.createSoapRequest(msgCtx, odeMsg, portType.getOperation("getObjectId", null, null));
fail("Should have caused an ex"); |
| File |
|---|
| SoapMessageConverterTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
public void testParseRequest() throws Exception {
MessageContext msgCtx = new MessageContext();
<<<<<<< HEAD
MemBackedMessageImpl odeMsg1 = new MemBackedMessageImpl(null, req1.getDocumentElement(), null, false);
=======
MessageImpl odeMsg1 = new MessageImpl(new MessageDAOImpl(null));
odeMsg1.setMessage(req1.getDocumentElement());
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
odeMsg1.setHeaderPart("DocumentumRequestHeader", DOMUtils.findChildByName(req1.getDocumentElement(),
new QName("http://documentum.com/ws/2005/services", "DocumentumSecurityToken")));
portmapper.createSoapRequest(msgCtx, odeMsg1, op1); |
| Solution content |
|---|
public void testParseRequest() throws Exception {
MessageContext msgCtx = new MessageContext();
MessageImpl odeMsg1 = new MessageImpl(new MessageDAOImpl(null));
odeMsg1.setMessage(req1.getDocumentElement());
odeMsg1.setHeaderPart("DocumentumRequestHeader", DOMUtils.findChildByName(req1.getDocumentElement(),
new QName("http://documentum.com/ws/2005/services", "DocumentumSecurityToken")));
portmapper.createSoapRequest(msgCtx, odeMsg1, op1); |
| File |
|---|
| SoapMessageConverterTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
SOAPEnvelope env = msgCtx.getEnvelope();
System.out.println("testParseRequest: " + env);
Element odeMsgElmt = DOMUtils.stringToDOM(" |
| Solution content |
|---|
SOAPEnvelope env = msgCtx.getEnvelope();
System.out.println("testParseRequest: " + env);
Element odeMsgElmt = DOMUtils.stringToDOM(" |
| File |
|---|
| SoapMessageConverterTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
SOAPEnvelope se = builder.getSOAPEnvelope();
Element msg = DOMUtils.stringToDOM(" |
| Solution content |
|---|
SOAPEnvelope se = builder.getSOAPEnvelope();
Element msg = DOMUtils.stringToDOM(" |
| File |
|---|
| SoapMessageConverterTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
private static final long serialVersionUID = 1L;
<<<<<<< HEAD
/** CorrelationSet identifier. */
private int _csetId;
/** Key values. */
private final String _keyValues[];
/** System-Wide Unique? */
private boolean unique = false;
=======
/** CorrelationSet name. */
private String _csetName;
/** Key values. */
private String _keyValues[];
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
/**
* Constructor. |
| Solution content |
|---|
private static final long serialVersionUID = 1L;
/** CorrelationSet name. */
private String _csetName;
/** Key values. */
private String _keyValues[];
/**
* Constructor. |
| File |
|---|
| CorrelationKey.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
}
public CorrelationKey(String canonicalForm) {
<<<<<<< HEAD
int firstTilde = -1;
if (canonicalForm != null) {
firstTilde = canonicalForm.indexOf('~') ;
_csetId = Integer.parseInt(canonicalForm.substring(0, firstTilde == -1 ? canonicalForm.length() : firstTilde));
}
=======
int firstTilde = canonicalForm.indexOf('~');
_csetName = canonicalForm.substring(0, firstTilde == -1 ? canonicalForm.length() : firstTilde);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
if (firstTilde != -1) {
List |
| Solution content |
|---|
}
public CorrelationKey(String canonicalForm) {
int firstTilde = canonicalForm.indexOf('~');
_csetName = canonicalForm.substring(0, firstTilde == -1 ? canonicalForm.length() : firstTilde);
if (firstTilde != -1) {
List |
| File |
|---|
| CorrelationKey.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
* |
| Solution content |
|---|
* |
| File |
|---|
| FaultException.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| Method declaration |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
/** If set, will filter on the process id (PID) and select all matching process definitions */
private List |
| Solution content |
|---|
/** If set, will filter on the process id (PID) and select all matching process definitions */
private List |
| File |
|---|
| InstanceFilter.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
PID {
void process(InstanceFilter filter, String key, String op, String value) {
filter.pids = parse(value);
<<<<<<< HEAD
=======
filter.arePidsNegative = "<>".equals(op);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
},
NAME { |
| Solution content |
|---|
PID {
void process(InstanceFilter filter, String key, String op, String value) {
filter.pids = parse(value);
filter.arePidsNegative = "<>".equals(op);
}
},
NAME { |
| File |
|---|
| InstanceFilter.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Enum value |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
return pids;
}
<<<<<<< HEAD
=======
public boolean arePidsNegative() {
return arePidsNegative;
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public List |
| Solution content |
|---|
return pids;
}
public boolean arePidsNegative() {
return arePidsNegative;
}
public List |
| File |
|---|
| InstanceFilter.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
StringBuffer buf = new StringBuffer();
buf.append("InstanceFilter {");
buf.append("iids="+iids);
<<<<<<< HEAD
buf.append(",pids="+pids);
=======
if( !arePidsNegative ) {
buf.append(",pids="+pids);
} else {
buf.append(",-pids="+pids);
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
buf.append(",name="+nameFilter);
buf.append(",namespace="+namespaceFilter);
buf.append(",status="+statusFilter); |
| Solution content |
|---|
StringBuffer buf = new StringBuffer();
buf.append("InstanceFilter {");
buf.append("iids="+iids);
if( !arePidsNegative ) {
buf.append(",pids="+pids);
} else {
buf.append(",-pids="+pids);
}
buf.append(",name="+nameFilter);
buf.append(",namespace="+namespaceFilter);
buf.append(",status="+statusFilter); |
| File |
|---|
| InstanceFilter.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
* Correlation matched a process instance on inbound message.
*/
public class CorrelationMatchEvent extends ProcessMessageExchangeEvent {
<<<<<<< HEAD
private static final long serialVersionUID = 1L;
private CorrelationKey _correlationKey;
public CorrelationMatchEvent(
QName processName, QName processId, Long processInstanceId, CorrelationKey correlationKey) {
super(PROCESS_INPUT, processName,processId,processInstanceId);
_correlationKey = correlationKey;
}
public CorrelationKey getCorrelationKey() {
return _correlationKey;
}
public void setCorrelationKey(CorrelationKey correlationKey) {
_correlationKey = correlationKey;
}
public TYPE getType() {
return TYPE.correlation;
}
}
=======
private static final long serialVersionUID = 1L;
// left out for backward-compatibility
private CorrelationKey _correlationKey;
private CorrelationKeySet _correlationKeySet;
public CorrelationMatchEvent(QName processName, QName processId, Long processInstanceId, CorrelationKeySet correlationKeySet) {
super(PROCESS_INPUT, processName, processId, processInstanceId);
_correlationKeySet = correlationKeySet;
}
public CorrelationKeySet getCorrelationKeySet() {
// backward compatibility; add up
if (_correlationKey != null) {
if( _correlationKeySet == null ) {
_correlationKeySet = new CorrelationKeySet();
}
if(!_correlationKeySet.contains(_correlationKey)) {
_correlationKeySet.add(_correlationKey);
}
}
return _correlationKeySet;
}
public void setCorrelationKey(CorrelationKeySet correlationKeySet) {
_correlationKeySet = correlationKeySet;
}
public TYPE getType() {
return TYPE.correlation;
}
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a |
| Solution content |
|---|
* Correlation matched a process instance on inbound message.
*/
public class CorrelationMatchEvent extends ProcessMessageExchangeEvent {
private static final long serialVersionUID = 1L;
// left out for backward-compatibility
private CorrelationKey _correlationKey;
private CorrelationKeySet _correlationKeySet;
public CorrelationMatchEvent(QName processName, QName processId, Long processInstanceId, CorrelationKeySet correlationKeySet) {
super(PROCESS_INPUT, processName, processId, processInstanceId);
_correlationKeySet = correlationKeySet;
}
public CorrelationKeySet getCorrelationKeySet() {
// backward compatibility; add up
if (_correlationKey != null) {
if( _correlationKeySet == null ) {
_correlationKeySet = new CorrelationKeySet();
}
if(!_correlationKeySet.contains(_correlationKey)) {
_correlationKeySet.add(_correlationKey);
}
}
return _correlationKeySet;
}
public void setCorrelationKey(CorrelationKeySet correlationKeySet) {
_correlationKeySet = correlationKeySet;
}
public TYPE getType() {
return TYPE.correlation;
}
} |
| File |
|---|
| CorrelationMatchEvent.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
private QName _portType;
private String _operation;
<<<<<<< HEAD
private String _resource;
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
private String _mexId;
private short _aspect;
|
| Solution content |
|---|
private QName _portType;
private String _operation;
private String _mexId;
private short _aspect;
|
| File |
|---|
| ProcessMessageExchangeEvent.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
public void setPortType(QName portType) {
_portType = portType;
}
<<<<<<< HEAD
public String getResource() {
return _resource;
}
public void setResource(String resource) {
this._resource = resource;
}
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} |
| Solution content |
|---|
public void setPortType(QName portType) {
_portType = portType;
}
} |
| File |
|---|
| ProcessMessageExchangeEvent.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
public ScopeCompletionEvent() {
}
<<<<<<< HEAD
/**
* @param fault The fault to set.
*/
public void setFault(QName fault) {
_fault = fault;
}
/**
* @return Returns the fault.
*/
public QName getFault() {
return _fault;
}
public boolean isSuccess() {
return _success;
}
public void setSuccess(boolean success) {
_success = success;
}
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} |
| Solution content |
|---|
public ScopeCompletionEvent() {
}
} |
| File |
|---|
| ScopeCompletionEvent.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
*/
package org.apache.ode.bpel.evt;
<<<<<<< HEAD
=======
import org.w3c.dom.Element;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
import org.w3c.dom.Node;
public class VariableModificationEvent extends VariableEvent { |
| Solution content |
|---|
*/
package org.apache.ode.bpel.evt;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
public class VariableModificationEvent extends VariableEvent { |
| File |
|---|
| VariableModificationEvent.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
public class VariableModificationEvent extends VariableEvent {
private static final long serialVersionUID = 1L;
<<<<<<< HEAD
private Node newValue;
=======
private transient Node newValue;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public VariableModificationEvent() {
super(); |
| Solution content |
|---|
public class VariableModificationEvent extends VariableEvent {
private static final long serialVersionUID = 1L;
private transient Node newValue;
public VariableModificationEvent() {
super(); |
| File |
|---|
| VariableModificationEvent.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
*/
void unregister(QName pid) throws BpelEngineException;
<<<<<<< HEAD
/**
* Inquire of the engine the invocation styles that are supported for a given service.
* @param serviceId service identifier
* @return set of supported {@link InvocationStyle}s
*/
Set |
| Solution content |
|---|
*/
void unregister(QName pid) throws BpelEngineException;
void cleanupProcess(ProcessConf conf) throws BpelEngineException;
/**
* @param pid The process definition QName
* @return The debugger support.
* @throws BpelEngineException if we could not find the process
*/
DebuggerContext getDebugger(QName pid) throws BpelEngineException;
} |
| File |
|---|
| BpelServer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method interface |
| Chunk |
|---|
| Conflicting content |
|---|
*/
@Override
public boolean equals(Object other) {
<<<<<<< HEAD
if (other == null) {
return false;
}
=======
if (!(other instanceof Endpoint)) {
return false;
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
Endpoint o = (Endpoint) other;
return o.serviceName.equals(serviceName) && o.portName.equals(portName);
} |
| Solution content |
|---|
*/
@Override
public boolean equals(Object other) {
if (!(other instanceof Endpoint)) {
return false;
}
Endpoint o = (Endpoint) other;
return o.serviceName.equals(serviceName) && o.portName.equals(portName);
} |
| File |
|---|
| Endpoint.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Chunk |
|---|
| Conflicting content |
|---|
EndpointReference convertEndpoint(QName targetType, Element sourceEndpoint);
/**
<<<<<<< HEAD
* Convert an endpoint reference into a set of key/value pairs that may be necessary to look up config information.
* This implies a contract between the implementation and the caller.
* For instance a WSDL endpoint reference may be converted into {service => foo, port => bar}.
* @param epr
* @return a map containing the relevant information for config lookup
=======
*
* @param epr
* @return
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
*/
Map getConfigLookup(EndpointReference epr);
} |
| Solution content |
|---|
EndpointReference convertEndpoint(QName targetType, Element sourceEndpoint);
/**
*
* @param epr
* @return
*/
Map getConfigLookup(EndpointReference epr);
} |
| File |
|---|
| EndpointReferenceContext.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
* @return the final status of the operation
*
*/
<<<<<<< HEAD
MessageExchange.Status invokeBlocking() throws BpelEngineException, TimeoutException;
=======
@SuppressWarnings("unchecked")
Future invoke(Message request);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
/**
* Invoke a transactional process: this method must be invoked in a transaction. The invoking thread |
| Solution content |
|---|
*/
@SuppressWarnings("unchecked")
Future invoke(Message request);
/** |
| File |
|---|
| MyRoleMessageExchange.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method interface |
| Chunk |
|---|
| Conflicting content |
|---|
void release(boolean instanceSucceeded);
* @return service name
*/
QName getServiceName();
<<<<<<< HEAD
=======
/**
* Should be called by the external partner when it's done with the
* message exchange. Ncessary for a better resource management and
* proper mex cleanup.
*/
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} |
| Solution content |
|---|
* @return service name
*/
QName getServiceName();
/**
* Should be called by the external partner when it's done with the
* message exchange. Ncessary for a better resource management and
* proper mex cleanup.
*/
void release(boolean instanceSucceeded);
} |
| File |
|---|
| MyRoleMessageExchange.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
import javax.xml.namespace.QName; import org.apache.ode.bpel.evt.BpelEvent; <<<<<<< HEAD import org.apache.ode.bpel.iapi.Scheduler.JobDetails; import org.apache.ode.bpel.rapi.ProcessModel; ======= import org.apache.ode.bpel.o.OFailureHandling; import org.apache.ode.bpel.iapi.Scheduler.JobDetails; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.utils.CronExpression; import org.w3c.dom.Element; import org.w3c.dom.Node; |
| Solution content |
|---|
import javax.xml.namespace.QName; import org.apache.ode.bpel.evt.BpelEvent; import org.apache.ode.bpel.o.OFailureHandling; import org.apache.ode.bpel.iapi.Scheduler.JobDetails; import org.apache.ode.utils.CronExpression; import org.w3c.dom.Element; import org.w3c.dom.Node; |
| File |
|---|
| ProcessConf.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
boolean isEventEnabled(List |
| Solution content |
|---|
boolean isEventEnabled(List |
| File |
|---|
| ProcessConf.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
Set |
| Solution content |
|---|
Set |
| File |
|---|
| ProcessConf.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
return valueOf(CLEANUP_CATEGORY.class, lowerCase.toUpperCase());
}
}
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public class CronJob {
private CronExpression _cronExpression;
|
| Solution content |
|---|
return valueOf(CLEANUP_CATEGORY.class, lowerCase.toUpperCase());
}
}
public class CronJob {
private CronExpression _cronExpression;
|
| File |
|---|
| ProcessConf.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
<<<<<<< HEAD
public class CleanupInfo implements Serializable {
=======
public class CleanupInfo implements java.io.Serializable {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
private List |
| Solution content |
|---|
}
}
public class CleanupInfo implements java.io.Serializable {
private List |
| File |
|---|
| ProcessConf.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Class signature |
| Chunk |
|---|
| Conflicting content |
|---|
return buf.toString();
}
}
<<<<<<< HEAD
public class PropagationRule implements Serializable {
private static final long serialVersionUID = 5496856170262204149L;
private String fromPL;
private String toPL;
private List |
| Solution content |
|---|
return buf.toString();
}
}
} |
| File |
|---|
| ProcessConf.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Class declaration |
| Chunk |
|---|
| Conflicting content |
|---|
/** A process property was changed. */
PROPERTY_CHANGED,
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
/** Cron schedule settings have been changed for the process */
SCHEDULE_SETTINGS_CHANGED
} |
| Solution content |
|---|
/** A process property was changed. */
PROPERTY_CHANGED,
/** Cron schedule settings have been changed for the process */
SCHEDULE_SETTINGS_CHANGED
} |
| File |
|---|
| ProcessStoreEvent.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
*/
public interface Scheduler {
void setJobProcessor(JobProcessor processor) throws ContextException;
<<<<<<< HEAD
void setPolledRunnableProcesser(JobProcessor polledRunnableProcessor);
=======
void setPolledRunnableProcesser(JobProcessor polledRunnableProcessor);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
/**
* Schedule a persisted job. Persisted jobs MUST survive system failure.
* They also must not be scheduled unless the transaction associated with |
| Solution content |
|---|
*/
public interface Scheduler {
void setJobProcessor(JobProcessor processor) throws ContextException;
void setPolledRunnableProcesser(JobProcessor polledRunnableProcessor);
/**
* Schedule a persisted job. Persisted jobs MUST survive system failure.
* They also must not be scheduled unless the transaction associated with |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method interface |
| Chunk |
|---|
| Conflicting content |
|---|
* @return
* @param when
* @throws ContextException
<<<<<<< HEAD
*/
String scheduleMapSerializableRunnable(MapSerializableRunnable runnable, Date when) throws ContextException;
void jobCompleted(String jobId);
=======
*/
String scheduleMapSerializableRunnable(MapSerializableRunnable runnable, Date when) throws ContextException;
/**
* Schedule a volatile (non-persisted) job. Volatile jobs should not be
* saved in the database and should not survive system crash. Volatile
* jobs scheduled from a transactional context should be scheduled
* regardless of whether the transaction commits.
*
* @param transacted should the job be executed in a transaction?
* @param jobDetail information about the job
* @param when does the job should be executed?
* @return unique (as far as the scheduler is concerned) job identifier
*/
String scheduleVolatileJob(boolean transacted, JobDetails jobDetail, Date when) throws ContextException;
/**
* Schedule a volatile job for right now
* @see #scheduleVolatileJob(boolean, java.util.Map, java.util.Date)
*/
String scheduleVolatileJob(boolean transacted, JobDetails jobDetail) throws ContextException;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
/**
* Make a good effort to cancel the job. If its already running no big |
| Solution content |
|---|
* @param when
* @return
* @throws ContextException
*/
String scheduleMapSerializableRunnable(MapSerializableRunnable runnable, Date when) throws ContextException;
/**
* Schedule a volatile (non-persisted) job. Volatile jobs should not be
* saved in the database and should not survive system crash. Volatile
* jobs scheduled from a transactional context should be scheduled
* regardless of whether the transaction commits.
*
* @param transacted should the job be executed in a transaction?
* @param jobDetail information about the job
* @param when does the job should be executed?
* @return unique (as far as the scheduler is concerned) job identifier
*/
String scheduleVolatileJob(boolean transacted, JobDetails jobDetail, Date when) throws ContextException;
/**
* Schedule a volatile job for right now
* @see #scheduleVolatileJob(boolean, java.util.Map, java.util.Date)
*/
String scheduleVolatileJob(boolean transacted, JobDetails jobDetail) throws ContextException;
/**
* Make a good effort to cancel the job. If its already running no big |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method interface |
| Chunk |
|---|
| Conflicting content |
|---|
*/
void cancelJob(String jobId) throws ContextException;
<<<<<<< HEAD
=======
/**
* Execute a {@link Callable} in a transactional context. If the callable
* throws an exception, then the transaction will be rolled back, otherwise
* the transaction will commit.
*
* @param |
| Solution content |
|---|
*/
void cancelJob(String jobId) throws ContextException;
/**
* Execute a {@link Callable} in a transactional context. If the callable
* throws an exception, then the transaction will be rolled back, otherwise
* the transaction will commit.
*
* @param |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method interface |
| Chunk |
|---|
| Conflicting content |
|---|
void shutdown();
<<<<<<< HEAD
=======
public interface Synchronizer {
/**
* Called after the transaction is completed.
* @param success indicates whether the transaction was comitted
*/
void afterCompletion(boolean success);
/**
* Called before the transaction is completed.
*/
void beforeCompletion();
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
/**
* Interface implemented by the object responsible for job execution.
* @author mszefler |
| Solution content |
|---|
void shutdown();
public interface Synchronizer {
/**
* Called after the transaction is completed.
* @param success indicates whether the transaction was comitted
*/
void afterCompletion(boolean success);
/**
* Called before the transaction is completed.
*/
void beforeCompletion();
}
/**
* Interface implemented by the object responsible for job execution.
* @author mszefler |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Interface declaration |
| Chunk |
|---|
| Conflicting content |
|---|
public enum JobType {
TIMER,
<<<<<<< HEAD
RESUME,
/** Response from partner (i.e. the result of a partner-role invoke) has been received. */
PARTNER_RESPONSE,
MATCHER,
/** Invoke a "my role" operation (i.e. implemented by the process). */
MYROLE_INVOKE,
MYROLE_INVOKE_ASYNC_RESPONSE,
INVOKE_CHECK
}
public static class JobDetails implements Cloneable {
=======
RESUME,
INVOKE_INTERNAL,
INVOKE_RESPONSE,
MATCHER,
INVOKE_CHECK
}
public static class JobDetails {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public Long instanceId;
public String mexId;
public String processId; |
| Solution content |
|---|
public enum JobType {
TIMER,
RESUME,
INVOKE_INTERNAL,
INVOKE_RESPONSE,
MATCHER,
INVOKE_CHECK
}
public static class JobDetails {
public Long instanceId;
public String mexId;
public String processId; |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Class signature |
| Comment |
| Enum value |
| Chunk |
|---|
| Conflicting content |
|---|
public String type;
public String channel;
public String correlatorId;
<<<<<<< HEAD
public String correlationKey;
public Integer retryCount;
public Boolean inMem;
public Map |
| Solution content |
|---|
public String type;
public String channel;
public String correlatorId;
public String correlationKeySet;
public Integer retryCount;
public Boolean inMem;
public Map |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Attribute |
| Method declaration |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
public void setCorrelatorId(String correlatorId) {
this.correlatorId = correlatorId;
}
<<<<<<< HEAD
public CorrelationKey getCorrelationKey() {
return new CorrelationKey(correlationKey);
}
public void setCorrelationKey(CorrelationKey correlationKey) {
this.correlationKey = correlationKey == null ? null : correlationKey.toCanonicalString();
=======
public CorrelationKeySet getCorrelationKeySet() {
return new CorrelationKeySet(correlationKeySet);
}
public void setCorrelationKeySet(CorrelationKeySet correlationKeySet) {
this.correlationKeySet = correlationKeySet == null ? null : correlationKeySet.toCanonicalString();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
public Integer getRetryCount() {
return retryCount == null ? 0 : retryCount; |
| Solution content |
|---|
public void setCorrelatorId(String correlatorId) {
this.correlatorId = correlatorId;
}
public CorrelationKeySet getCorrelationKeySet() {
return new CorrelationKeySet(correlationKeySet);
}
public void setCorrelationKeySet(CorrelationKeySet correlationKeySet) {
this.correlationKeySet = correlationKeySet == null ? null : correlationKeySet.toCanonicalString();
}
public Integer getRetryCount() {
return retryCount == null ? 0 : retryCount; |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method declaration |
| Method invocation |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
+ " type: " + type
+ " channel: " + channel
+ " correlatorId: " + correlatorId
<<<<<<< HEAD
+ " correlationKey: " + correlationKey
=======
+ " correlationKeySet: " + correlationKeySet
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
+ " retryCount: " + retryCount
+ " inMem: " + inMem
+ " detailsExt: " + detailsExt |
| Solution content |
|---|
+ " type: " + type
+ " channel: " + channel
+ " correlatorId: " + correlatorId
+ " correlationKeySet: " + correlationKeySet
+ " retryCount: " + retryCount
+ " inMem: " + inMem
+ " detailsExt: " + detailsExt |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
this.retry = retry;
}
<<<<<<< HEAD
}
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public interface MapSerializableRunnable extends Runnable, Serializable {
void storeToDetails(JobDetails details);
void restoreFromDetails(JobDetails details); |
| Solution content |
|---|
this.retry = retry;
}
}
public interface MapSerializableRunnable extends Runnable, Serializable {
void storeToDetails(JobDetails details);
void restoreFromDetails(JobDetails details); |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Other |
| Chunk |
|---|
| Conflicting content |
|---|
void storeToDetails(JobDetails details);
void restoreFromDetails(JobDetails details);
}
<<<<<<< HEAD
}
=======
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a |
| Solution content |
|---|
void storeToDetails(JobDetails details);
void restoreFromDetails(JobDetails details);
}
} |
| File |
|---|
| Scheduler.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Other |
| Chunk |
|---|
| Conflicting content |
|---|
*/
InstanceInfoListDocument listInstancesSummary(String filter, String order, int limit);
<<<<<<< HEAD
/** @deprecated use listInstances instead */
=======
/**
* @deprecated As of Ode 1.3, this method is deprecated in favor of
* listInstances(filter, order, limit)
*/
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
InstanceInfoListDocument queryInstances(String query);
/** |
| Solution content |
|---|
*/
InstanceInfoListDocument listInstancesSummary(String filter, String order, int limit);
/**
* @deprecated As of Ode 1.3, this method is deprecated in favor of
* listInstances(filter, order, limit)
*/
InstanceInfoListDocument queryInstances(String query);
/** |
| File |
|---|
| InstanceManagement.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
import java.io.OutputStream; import java.net.URI; import java.util.Map; <<<<<<< HEAD ======= >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import javax.xml.namespace.QName; import org.apache.commons.logging.Log; |
| Solution content |
|---|
import java.io.OutputStream; import java.net.URI; import java.util.Map; import javax.xml.namespace.QName; import org.apache.commons.logging.Log; |
| File |
|---|
| BpelC.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
ProcessModel pmodel;
try {
<<<<<<< HEAD
pmodel = compiler.compile(process, wf);
=======
oprocess = compiler.compile(process,wf,version);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
catch (CompilationException cex) {
this.invalidate(); |
| Solution content |
|---|
OProcess oprocess;
try {
oprocess = compiler.compile(process,wf,version);
}
catch (CompilationException cex) {
this.invalidate(); |
| File |
|---|
| BpelC.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
package org.apache.ode.bpel.compiler;
<<<<<<< HEAD
import org.apache.ode.bpel.compiler.api.CompileListener;
import org.apache.ode.bpel.extension.ExtensionValidator;
import org.apache.ode.bpel.compiler.bom.Process;
import org.apache.ode.bpel.rapi.ProcessModel;
import org.w3c.dom.Node;
import javax.xml.namespace.QName;
import java.util.Map;
import java.net.URI;
public interface BpelCompiler {
=======
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Stack;
import javax.wsdl.Definition;
import javax.wsdl.Message;
import javax.wsdl.Operation;
import javax.wsdl.Part;
import javax.wsdl.PortType;
import javax.wsdl.WSDLException;
import javax.wsdl.xml.WSDLReader;
import javax.xml.namespace.QName;
import javax.xml.transform.Source;
import javax.xml.transform.dom.DOMSource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.ode.bpel.compiler.api.CompilationException;
import org.apache.ode.bpel.compiler.api.CompilationMessage;
import org.apache.ode.bpel.compiler.api.CompileListener;
import org.apache.ode.bpel.compiler.api.CompilerContext;
return msgType;
}
} else {
default:
import org.apache.ode.utils.xsl.XslTransformHandler;
} else {
import org.apache.xerces.xni.parser.XMLEntityResolver;
import org.apache.ode.bpel.compiler.api.ExpressionCompiler;
import org.apache.ode.bpel.compiler.api.ExpressionValidator;
import org.apache.ode.bpel.compiler.api.SourceLocation;
import org.apache.ode.bpel.compiler.bom.Activity;
import org.apache.ode.bpel.compiler.bom.Bpel11QNames;
import org.apache.ode.bpel.compiler.bom.Bpel20QNames;
import org.apache.ode.bpel.compiler.bom.BpelObject;
import org.apache.ode.bpel.compiler.bom.Catch;
import org.apache.ode.bpel.compiler.bom.CompensationHandler;
import org.apache.ode.bpel.compiler.bom.Correlation;
import org.apache.ode.bpel.compiler.bom.CorrelationSet;
import org.apache.ode.bpel.compiler.bom.Expression;
import org.apache.ode.bpel.compiler.bom.Expression11;
import org.apache.ode.bpel.compiler.bom.FaultHandler;
import org.apache.ode.bpel.compiler.bom.Import;
import org.apache.ode.bpel.compiler.bom.LinkSource;
import org.apache.ode.bpel.compiler.bom.LinkTarget;
import org.apache.ode.bpel.compiler.bom.OnAlarm;
import org.apache.ode.bpel.compiler.bom.OnEvent;
import org.apache.ode.bpel.compiler.bom.PartnerLink;
import org.apache.ode.bpel.compiler.bom.PartnerLinkType;
import org.apache.ode.bpel.compiler.bom.Process;
import org.apache.ode.bpel.compiler.bom.Property;
import org.apache.ode.bpel.compiler.bom.PropertyAlias;
import org.apache.ode.bpel.compiler.bom.Scope;
import org.apache.ode.bpel.compiler.bom.ScopeActivity;
import org.apache.ode.bpel.compiler.bom.ScopeLikeActivity;
import org.apache.ode.bpel.compiler.bom.TerminationHandler;
import org.apache.ode.bpel.compiler.bom.Variable;
import org.apache.ode.bpel.compiler.wsdl.Definition4BPEL;
import org.apache.ode.bpel.compiler.wsdl.WSDLFactory4BPEL;
import org.apache.ode.bpel.o.DebugInfo;
import org.apache.ode.bpel.o.OActivity;
import org.apache.ode.bpel.o.OAssign;
import org.apache.ode.bpel.o.OCatch;
import org.apache.ode.bpel.o.OCompensate;
import org.apache.ode.bpel.o.OCompensationHandler;
import org.apache.ode.bpel.o.OConstantExpression;
import org.apache.ode.bpel.o.OConstantVarType;
import org.apache.ode.bpel.o.OConstants;
import org.apache.ode.bpel.o.OElementVarType;
import org.apache.ode.bpel.o.OEventHandler;
import org.apache.ode.bpel.o.OExpression;
import org.apache.ode.bpel.o.OExpressionLanguage;
import org.apache.ode.bpel.o.OExtVar;
import org.apache.ode.bpel.o.OFaultHandler;
import org.apache.ode.bpel.o.OFlow;
import org.apache.ode.bpel.o.OLValueExpression;
import org.apache.ode.bpel.o.OLink;
import org.apache.ode.bpel.o.OMessageVarType;
import org.apache.ode.bpel.o.OPartnerLink;
import org.apache.ode.bpel.o.OProcess;
import org.apache.ode.bpel.o.ORethrow;
import org.apache.ode.bpel.o.OScope;
import org.apache.ode.bpel.o.OSequence;
import org.apache.ode.bpel.o.OTerminationHandler;
import org.apache.ode.bpel.o.OVarType;
import org.apache.ode.bpel.o.OXsdTypeVarType;
import org.apache.ode.bpel.o.OXslSheet;
import org.apache.ode.utils.GUID;
import org.apache.ode.utils.NSContext;
import org.apache.ode.utils.Namespaces;
import org.apache.ode.utils.StreamUtils;
import org.apache.ode.utils.fs.FileUtils;
import org.apache.ode.utils.msg.MessageBundle;
import org.apache.ode.utils.stl.CollectionsX;
import org.apache.ode.utils.stl.MemberOfFunction;
import org.apache.ode.utils.stl.UnaryFunction;
import org.apache.ode.utils.xsd.SchemaModel;
import org.apache.ode.utils.xsd.XSUtils;
import org.apache.ode.utils.xsd.XsdException;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
/**
* Compiler for converting BPEL process descriptions (and their associated WSDL
* and XSD documents) into compiled representations suitable for execution by
* the ODE BPEL Service Provider. TODO: Move process validation into this class.
*/
public abstract class BpelCompiler implements CompilerContext {
/** Class-severity logger. */
protected static final Log __log = LogFactory.getLog(BpelCompiler.class);
/** Standardized compiler messages. */
OScope.Variable var = resolveMessageVariable(inputVar);
private static final CommonCompilationMessages __cmsgs = MessageBundle.getMessages(CommonCompilationMessages.class);
private org.apache.ode.bpel.compiler.bom.Process _processDef;
private Date _generatedDate;
@SuppressWarnings("unchecked")
private HashMap |
| Solution content |
|---|
package org.apache.ode.bpel.compiler;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Stack;
import javax.wsdl.Definition;
import javax.wsdl.Message;
import javax.wsdl.Operation;
import javax.wsdl.Part;
import javax.wsdl.PortType;
import javax.wsdl.WSDLException;
import javax.wsdl.xml.WSDLReader;
import javax.xml.namespace.QName;
import javax.xml.transform.Source;
import javax.xml.transform.dom.DOMSource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.ode.bpel.compiler.api.CompilationException;
import org.apache.ode.bpel.compiler.api.CompilationMessage;
import org.apache.ode.bpel.compiler.api.CompileListener;
import org.apache.ode.bpel.compiler.api.CompilerContext;
import org.apache.ode.bpel.compiler.api.ExpressionCompiler;
import org.apache.ode.bpel.compiler.api.ExpressionValidator;
import org.apache.ode.bpel.compiler.api.SourceLocation;
import org.apache.ode.bpel.compiler.bom.Activity;
import org.apache.ode.bpel.compiler.bom.Bpel11QNames;
import org.apache.ode.bpel.compiler.bom.Bpel20QNames;
import org.apache.ode.bpel.compiler.bom.BpelObject;
import org.apache.ode.bpel.compiler.bom.Catch;
import org.apache.ode.bpel.compiler.bom.CompensationHandler;
import org.apache.ode.bpel.compiler.bom.Correlation;
import org.apache.ode.bpel.compiler.bom.CorrelationSet;
import org.apache.ode.bpel.compiler.bom.Expression;
import org.apache.ode.bpel.compiler.bom.Expression11;
import org.apache.ode.bpel.compiler.bom.FaultHandler;
import org.apache.ode.bpel.compiler.bom.Import;
import org.apache.ode.bpel.compiler.bom.LinkSource;
import org.apache.ode.bpel.compiler.bom.LinkTarget;
import org.apache.ode.bpel.compiler.bom.OnAlarm;
import org.apache.ode.bpel.compiler.bom.OnEvent;
import org.apache.ode.bpel.compiler.bom.PartnerLink;
import org.apache.ode.bpel.compiler.bom.PartnerLinkType;
import org.apache.ode.bpel.compiler.bom.Process;
import org.apache.ode.bpel.compiler.bom.Property;
import org.apache.ode.bpel.compiler.bom.PropertyAlias;
import org.apache.ode.bpel.compiler.bom.Scope;
import org.apache.ode.bpel.compiler.bom.ScopeActivity;
import org.apache.ode.bpel.compiler.bom.ScopeLikeActivity;
import org.apache.ode.bpel.compiler.bom.TerminationHandler;
import org.apache.ode.bpel.compiler.bom.Variable;
import org.apache.ode.bpel.compiler.wsdl.Definition4BPEL;
import org.apache.ode.bpel.compiler.wsdl.WSDLFactory4BPEL;
import org.apache.ode.bpel.o.DebugInfo;
import org.apache.ode.bpel.o.OActivity;
import org.apache.ode.bpel.o.OAssign;
import org.apache.ode.bpel.o.OCatch;
import org.apache.ode.bpel.o.OCompensate;
import org.apache.ode.bpel.o.OCompensationHandler;
import org.apache.ode.bpel.o.OConstantExpression;
import org.apache.ode.bpel.o.OConstantVarType;
import org.apache.ode.bpel.o.OConstants;
import org.apache.ode.bpel.o.OElementVarType;
import org.apache.ode.bpel.o.OEventHandler;
import org.apache.ode.bpel.o.OExpression;
import org.apache.ode.bpel.o.OExpressionLanguage;
import org.apache.ode.bpel.o.OExtVar;
import org.apache.ode.bpel.o.OFaultHandler;
import org.apache.ode.bpel.o.OFlow;
import org.apache.ode.bpel.o.OLValueExpression;
import org.apache.ode.bpel.o.OLink;
import org.apache.ode.bpel.o.OMessageVarType;
import org.apache.ode.bpel.o.OPartnerLink;
import org.apache.ode.bpel.o.OProcess;
import org.apache.ode.bpel.o.ORethrow;
import org.apache.ode.bpel.o.OScope;
import org.apache.ode.bpel.o.OSequence;
import org.apache.ode.bpel.o.OTerminationHandler;
import org.apache.ode.bpel.o.OVarType;
import org.apache.ode.bpel.o.OXsdTypeVarType;
import org.apache.ode.bpel.o.OXslSheet;
import org.apache.ode.utils.GUID;
import org.apache.ode.utils.NSContext;
import org.apache.ode.utils.Namespaces;
import org.apache.ode.utils.StreamUtils;
import org.apache.ode.utils.fs.FileUtils;
import org.apache.ode.utils.msg.MessageBundle;
import org.apache.ode.utils.stl.CollectionsX;
import org.apache.ode.utils.stl.MemberOfFunction;
import org.apache.ode.utils.stl.UnaryFunction;
import org.apache.ode.utils.xsd.SchemaModel;
import org.apache.ode.utils.xsd.XSUtils;
import org.apache.ode.utils.xsd.XsdException;
import org.apache.ode.utils.xsl.XslTransformHandler;
import org.apache.xerces.xni.parser.XMLEntityResolver;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
/**
* Compiler for converting BPEL process descriptions (and their associated WSDL
* and XSD documents) into compiled representations suitable for execution by
* the ODE BPEL Service Provider. TODO: Move process validation into this class.
*/
public abstract class BpelCompiler implements CompilerContext {
/** Class-severity logger. */
protected static final Log __log = LogFactory.getLog(BpelCompiler.class);
/** Standardized compiler messages. */
private static final CommonCompilationMessages __cmsgs = MessageBundle.getMessages(CommonCompilationMessages.class);
private org.apache.ode.bpel.compiler.bom.Process _processDef;
private Date _generatedDate;
@SuppressWarnings("unchecked")
private HashMap |
| File |
|---|
| BpelCompiler.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Attribute |
| Class signature |
| Comment |
| Import |
| Interface signature |
| Method declaration |
| Method interface |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
}
return this.formatCompilationMessage("Empty scopes are forbidden.");
<<<<<<< HEAD
public CompilationMessage errEmptySequence() {
return this.formatCompilationMessage("Empty sequences are forbidden.");
=======
public CompilationMessage errEmptyCatch() {
return this.formatCompilationMessage("Empty catch faut handlers are forbidden.");
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
public CompilationMessage errMustSpecifyRelatedVariable(String name) { |
| Solution content |
|---|
return this.formatCompilationMessage("Empty scopes are forbidden.");
}
public CompilationMessage errEmptyCatch() {
return this.formatCompilationMessage("Empty catch faut handlers are forbidden.");
}
public CompilationMessage errMustSpecifyRelatedVariable(String name) { |
| File |
|---|
| CommonCompilationMessages.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
return this.formatCompilationMessage("The external variable declaration for \"{0}\" must specify an external variable identifier.", name);
}
<<<<<<< HEAD
public CompilationMessage errEmptyCatch() {
return this.formatCompilationMessage("Empty catch faut handlers are forbidden.");
}
/** Context propagation must define a context attribute */
public CompilationMessage errMissingContextAttribute() {
return this.formatCompilationMessage(" |
| Solution content |
|---|
return this.formatCompilationMessage("The external variable declaration for \"{0}\" must specify an external variable identifier.", name);
}
public CompilationMessage errEmptySequence() {
return this.formatCompilationMessage("Empty sequences are forbidden.");
}
} |
| File |
|---|
| CommonCompilationMessages.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
if (__log.isDebugEnabled()) __log.debug("resolveEntity: no schema location for "+resourceIdentifier.getNamespace());
try {
if (_internalSchemas.get(new URI(resourceIdentifier.getNamespace())) != null) {
<<<<<<< HEAD
src.setByteStream(new ByteArrayInputStream(_internalSchemas.get(new URI(resourceIdentifier.getNamespace())).getBytes()));
=======
src.setByteStream(new ByteArrayInputStream(_internalSchemas.get(new URI(resourceIdentifier.getNamespace()))));
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
return src;
}
} catch (URISyntaxException e) { |
| Solution content |
|---|
if (__log.isDebugEnabled()) __log.debug("resolveEntity: no schema location for "+resourceIdentifier.getNamespace());
try {
if (_internalSchemas.get(new URI(resourceIdentifier.getNamespace())) != null) {
src.setByteStream(new ByteArrayInputStream(_internalSchemas.get(new URI(resourceIdentifier.getNamespace()))));
return src;
}
} catch (URISyntaxException e) { |
| File |
|---|
| WsdlFinderXMLEntityResolver.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
public boolean isIgnoreMissingFromData() {
return getAttribute("ignoreMissingFromData", "no").equals("yes");
}
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public boolean isIgnoreUninitializedFromVariable() {
return getAttribute("ignoreUninitializedFromVariable", "no").equals("yes");
} |
| Solution content |
|---|
public boolean isIgnoreMissingFromData() {
return getAttribute("ignoreMissingFromData", "no").equals("yes");
}
public boolean isIgnoreUninitializedFromVariable() {
return getAttribute("ignoreUninitializedFromVariable", "no").equals("yes");
} |
| File |
|---|
| Copy.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
<<<<<<< HEAD
/**
public String getRelated() {
return getAttribute(ExtensibilityQNames.EXTVAR_RELATED, null);
}
* Returns from-spec Element for variable inline initialization
* @author madars.vitolins _at gmail.com
* @return
*/
public From getFrom() {
return getFirstChild(From.class);
}
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} |
| Solution content |
|---|
public String getRelated() {
return getAttribute(ExtensibilityQNames.EXTVAR_RELATED, null);
}
} |
| File |
|---|
| Variable.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
private static String WRONG_PARAMETER_CODE = "WrongParameter";
private CompilationTestMessages _bundle;
<<<<<<< HEAD
private SourceLocation sloc;
=======
private SourceLocationImpl sloc;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
private Locale oldLocale;
@Override
protected void setUp() throws Exception { |
| Solution content |
|---|
private static String WRONG_PARAMETER_CODE = "WrongParameter";
private CompilationTestMessages _bundle;
private SourceLocationImpl sloc;
private Locale oldLocale;
@Override
protected void setUp() throws Exception { |
| File |
|---|
| CompilationMessageTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
oldLocale = Locale.getDefault();
Locale.setDefault(Locale.ENGLISH);
_bundle = MessageBundle.getMessages(CompilationTestMessages.class);
<<<<<<< HEAD
sloc = new SourceLocation(new URI("urn:foo"));
=======
sloc = new SourceLocationImpl(new URI("urn:foo"));
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
@Override |
| Solution content |
|---|
oldLocale = Locale.getDefault();
Locale.setDefault(Locale.ENGLISH);
_bundle = MessageBundle.getMessages(CompilationTestMessages.class);
sloc = new SourceLocationImpl(new URI("urn:foo"));
}
@Override |
| File |
|---|
| CompilationMessageTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
public class StaticCheckSuite extends TestCase {
*/
<<<<<<< HEAD
public static Test suite() throws Exception {
TestSuite suite = new StaticCheckSuite();
suite.addTest(new StaticCheckTCase("NoRootActivity"));
suite.addTest(new StaticCheckTCase("PortTypeMismatch"));
suite.addTest(new StaticCheckTCase("UndeclaredPropertyAlias"));
suite.addTest(new StaticCheckTCase("UnknownBpelFunction"));
suite.addTest(new StaticCheckTCase("UndeclaredVariable"));
suite.addTest(new StaticCheckTCase("DuplicateLinkTarget"));
suite.addTest(new StaticCheckTCase("DuplicateLinkSource"));
suite.addTest(new StaticCheckTCase("DuplicateLinkDecl"));
suite.addTest(new StaticCheckTCase("LinkMissingSourceActivity"));
suite.addTest(new StaticCheckTCase("LinkMissingTargetActivity"));
suite.addTest(new StaticCheckTCase("DuplicateVariableDecl"));
suite.addTest(new StaticCheckTCase("UndeclaredExtensionActivity"));
suite.addTest(new StaticCheckTCase("UndeclaredExtensionAssignOperation"));
suite.addTest(new StaticCheckTCase("MissingExtensionActivityElement"));
suite.addTest(new StaticCheckTCase("MissingExtensionAssignOperationElement"));
suite.addTest(new StaticCheckTCase("ExtensibleAssignNotSupported"));
// We simply can't test the next one without using the BOM; both the parser
// and schema validation would rule it out.
//suite.addTest(new StaticCheckTest("CompensateNAtoContext"));
return suite;
}
=======
/**
* @return a test suite of tests that show compilation failures.
* @throws Exception
*/
public static Test suite() throws Exception {
TestSuite suite = new TestSuite();
suite.addTest(new StaticCheckTCase("NoRootActivity"));
suite.addTest(new StaticCheckTCase("PortTypeMismatch"));
suite.addTest(new StaticCheckTCase("UndeclaredPropertyAlias"));
suite.addTest(new StaticCheckTCase("UnknownBpelFunction"));
suite.addTest(new StaticCheckTCase("UndeclaredVariable"));
suite.addTest(new StaticCheckTCase("DuplicateLinkTarget"));
suite.addTest(new StaticCheckTCase("DuplicateLinkSource"));
suite.addTest(new StaticCheckTCase("DuplicateLinkDecl"));
suite.addTest(new StaticCheckTCase("LinkMissingSourceActivity"));
suite.addTest(new StaticCheckTCase("LinkMissingTargetActivity"));
suite.addTest(new StaticCheckTCase("DuplicateVariableDecl"));
// We simply can't test the next one without using the BOM; both the parser
// and schema validation would rule it out.
//suite.addTest(new StaticCheckTest("CompensateNAtoContext"));
return suite;
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} |
| Solution content |
|---|
}
*/
public class StaticCheckSuite extends TestCase {
/**
* @return a test suite of tests that show compilation failures.
* @throws Exception
*/
public static Test suite() throws Exception {
TestSuite suite = new TestSuite();
suite.addTest(new StaticCheckTCase("NoRootActivity"));
suite.addTest(new StaticCheckTCase("PortTypeMismatch"));
suite.addTest(new StaticCheckTCase("UndeclaredPropertyAlias"));
suite.addTest(new StaticCheckTCase("UnknownBpelFunction"));
suite.addTest(new StaticCheckTCase("UndeclaredVariable"));
suite.addTest(new StaticCheckTCase("DuplicateLinkTarget"));
suite.addTest(new StaticCheckTCase("DuplicateLinkSource"));
suite.addTest(new StaticCheckTCase("DuplicateLinkDecl"));
suite.addTest(new StaticCheckTCase("LinkMissingSourceActivity"));
suite.addTest(new StaticCheckTCase("LinkMissingTargetActivity"));
suite.addTest(new StaticCheckTCase("DuplicateVariableDecl"));
// We simply can't test the next one without using the BOM; both the parser
// and schema validation would rule it out.
//suite.addTest(new StaticCheckTest("CompensateNAtoContext"));
return suite;
} |
| File |
|---|
| StaticCheckSuite.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.bpel.compiler.api.CompilationException;
import org.apache.ode.bpel.compiler.api.CompilationMessage;
import org.apache.ode.bpel.compiler.api.CompileListener;
<<<<<<< HEAD
import org.junit.*;
=======
import org.apache.ode.utils.xsl.XslTransformHandler;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
/**
* JUnit {@link TestCase} of static-analysis checking in the ODE BPEL compiler. |
| Solution content |
|---|
import org.apache.ode.bpel.compiler.api.CompilationException;
import org.apache.ode.bpel.compiler.api.CompilationMessage;
import org.apache.ode.bpel.compiler.api.CompileListener;
import org.apache.ode.utils.xsl.XslTransformHandler;
/**
* JUnit {@link TestCase} of static-analysis checking in the ODE BPEL compiler. |
| File |
|---|
| StaticCheckTCase.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import java.io.IOException; import java.net.URI; <<<<<<< HEAD ======= import java.util.ArrayList; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import java.util.HashMap; import java.util.ArrayList; import java.util.List; |
| Solution content |
|---|
import java.io.IOException; import java.net.URI; import java.util.ArrayList; import java.util.HashMap; import java.util.List; |
| File |
|---|
| XPathTest.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import junit.framework.TestCase; import org.apache.ode.bpel.compiler.api.CompilationException; <<<<<<< HEAD import org.apache.ode.bpel.compiler.v2.CompilerContext; import org.apache.ode.bpel.compiler.v2.ExpressionCompiler; import org.apache.ode.bpel.extension.ExtensionValidator; import org.apache.ode.bpel.compiler.bom.*; import org.apache.ode.bpel.compiler.v2.xpath10.XPath10ExpressionCompilerBPEL11; import org.apache.ode.bpel.compiler.v2.xpath10.XPath10ExpressionCompilerBPEL20; import org.apache.ode.bpel.compiler.v2.xpath10.XPath10ExpressionCompilerBPEL20Draft; import org.apache.ode.bpel.compiler.v2.xpath20.XPath20ExpressionCompilerBPEL20; import org.apache.ode.bpel.compiler.v2.xpath20.XPath20ExpressionCompilerBPEL20Draft; import org.apache.ode.bpel.rtrep.v2.*; ======= import org.apache.ode.bpel.compiler.api.CompilerContext; import org.apache.ode.bpel.compiler.api.ExpressionCompiler; import org.apache.ode.bpel.compiler.api.SourceLocation; import org.apache.ode.bpel.compiler.bom.Activity; import org.apache.ode.bpel.compiler.bom.BpelObject; import org.apache.ode.bpel.compiler.bom.Expression; import org.apache.ode.bpel.compiler.bom.ScopeLikeActivity; import org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL11; import org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20; import org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20Draft; import org.apache.ode.bpel.elang.xpath20.compiler.XPath20ExpressionCompilerBPEL20; import org.apache.ode.bpel.elang.xpath20.compiler.XPath20ExpressionCompilerBPEL20Draft; import org.apache.ode.bpel.o.OActivity; import org.apache.ode.bpel.o.OElementVarType; import org.apache.ode.bpel.o.OExpression; import org.apache.ode.bpel.o.OLValueExpression; import org.apache.ode.bpel.o.OLink; import org.apache.ode.bpel.o.OMessageVarType; import org.apache.ode.bpel.o.OPartnerLink; import org.apache.ode.bpel.o.OProcess; import org.apache.ode.bpel.o.OScope; import org.apache.ode.bpel.o.OVarType; import org.apache.ode.bpel.o.OXsdTypeVarType; import org.apache.ode.bpel.o.OXslSheet; import org.apache.ode.bpel.o.OMessageVarType.Part; import org.apache.ode.bpel.o.OProcess.OProperty; import org.apache.ode.bpel.o.OProcess.OPropertyAlias; import org.apache.ode.bpel.o.OScope.CorrelationSet; import org.apache.ode.bpel.o.OScope.Variable; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.NSContext; import org.w3c.dom.Element; |
| Solution content |
|---|
import junit.framework.TestCase; import org.apache.ode.bpel.compiler.api.CompilationException; import org.apache.ode.bpel.compiler.api.CompilerContext; import org.apache.ode.bpel.compiler.api.ExpressionCompiler; import org.apache.ode.bpel.compiler.api.SourceLocation; import org.apache.ode.bpel.compiler.bom.Activity; import org.apache.ode.bpel.compiler.bom.BpelObject; import org.apache.ode.bpel.compiler.bom.Expression; import org.apache.ode.bpel.compiler.bom.ScopeLikeActivity; import org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL11; import org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20; import org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL20Draft; import org.apache.ode.bpel.elang.xpath20.compiler.XPath20ExpressionCompilerBPEL20; import org.apache.ode.bpel.elang.xpath20.compiler.XPath20ExpressionCompilerBPEL20Draft; import org.apache.ode.bpel.o.OActivity; import org.apache.ode.bpel.o.OElementVarType; import org.apache.ode.bpel.o.OExpression; import org.apache.ode.bpel.o.OLValueExpression; import org.apache.ode.bpel.o.OLink; import org.apache.ode.bpel.o.OMessageVarType; import org.apache.ode.bpel.o.OPartnerLink; import org.apache.ode.bpel.o.OProcess; import org.apache.ode.bpel.o.OScope; import org.apache.ode.bpel.o.OVarType; import org.apache.ode.bpel.o.OXsdTypeVarType; import org.apache.ode.bpel.o.OXslSheet; import org.apache.ode.bpel.o.OMessageVarType.Part; import org.apache.ode.bpel.o.OProcess.OProperty; import org.apache.ode.bpel.o.OProcess.OPropertyAlias; import org.apache.ode.bpel.o.OScope.CorrelationSet; import org.apache.ode.bpel.o.OScope.Variable; import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.NSContext; import org.w3c.dom.Element; |
| File |
|---|
| XPathTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
CompilationException error) {
}
<<<<<<< HEAD
public boolean isExtensionDeclared(String namespace) {
return false;
}
public ExtensionValidator getExtensionValidator(QName extensionElementName) {
return null;
}
public OMessageVarType.Part resolveHeaderPart(OScope.Variable variable, String partname) throws CompilationException {
=======
public Part resolveHeaderPart(Variable variable, String partname) throws CompilationException {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
return null;
}
|
| Solution content |
|---|
CompilationException error) {
}
public Part resolveHeaderPart(Variable variable, String partname) throws CompilationException {
return null;
}
|
| File |
|---|
| XPathTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
}
public Map |
| Solution content |
|---|
}
public Map |
| File |
|---|
| XPathTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
org.apache.ode.ql.jcc.ASTStart start = new Parser(query).start();
return build(start);
}catch(ParseException ex) {
<<<<<<< HEAD
=======
//TODO create common exception which will indicate parsing exception
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
throw new RuntimeException(ex.getMessage(), ex);
}
} |
| Solution content |
|---|
org.apache.ode.ql.jcc.ASTStart start = new Parser(query).start();
return build(start);
}catch(ParseException ex) {
//TODO create common exception which will indicate parsing exception
throw new RuntimeException(ex.getMessage(), ex);
}
} |
| File |
|---|
| TreeBuilder.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
ASTOrderType astType = (ASTOrderType)extractChildNode(node, 1);
type = OrderByType.valueOf(astType.getValue().toUpperCase());
} else {
<<<<<<< HEAD
=======
//TODO
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
throw new IllegalArgumentException();
}
Identifier id = createIdentifier(node, 0); |
| Solution content |
|---|
} else {
//TODO
ASTOrderType astType = (ASTOrderType)extractChildNode(node, 1);
type = OrderByType.valueOf(astType.getValue().toUpperCase());
throw new IllegalArgumentException();
}
Identifier id = createIdentifier(node, 0); |
| File |
|---|
| TreeBuilder.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
if(node instanceof ASTProperty) {
return new org.apache.ode.ql.tree.nodes.Property(((ASTProperty)node).getName());
}
<<<<<<< HEAD
=======
//TODO
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
throw new IllegalArgumentException("");
}
private ASTValue extractValue(Node parentNode, int index) { |
| Solution content |
|---|
if(node instanceof ASTProperty) {
return new org.apache.ode.ql.tree.nodes.Property(((ASTProperty)node).getName());
}
//TODO
throw new IllegalArgumentException("");
}
private ASTValue extractValue(Node parentNode, int index) { |
| File |
|---|
| TreeBuilder.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
private Node extractChildNode(Node parentNode, int index, Class expected) {
Node node = extractChildNode(parentNode, index);
if(!(expected.isAssignableFrom(node.getClass()))) {
<<<<<<< HEAD
=======
//TODO
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
throw new IllegalArgumentException("");
}
return node; |
| Solution content |
|---|
private Node extractChildNode(Node parentNode, int index, Class expected) {
Node node = extractChildNode(parentNode, index);
if(!(expected.isAssignableFrom(node.getClass()))) {
//TODO
throw new IllegalArgumentException("");
}
return node; |
| File |
|---|
| TreeBuilder.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
}
private Node extractChildNode(Node parentNode, int index) {
if(parentNode.jjtGetNumChildren()<=index) {
<<<<<<< HEAD
=======
//TODO
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
throw new IllegalArgumentException("");
}
return parentNode.jjtGetChild(index); |
| Solution content |
|---|
}
private Node extractChildNode(Node parentNode, int index) {
if(parentNode.jjtGetNumChildren()<=index) {
//TODO
throw new IllegalArgumentException("");
}
return parentNode.jjtGetChild(index); |
| File |
|---|
| TreeBuilder.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
public class SyntaxTest extends TestCase {
<<<<<<< HEAD
private final static String TESTS_DIR = "target/test/resources";
=======
private final static String TESTS_DIR = "target/test-classes";
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
private File[] casesFiles = new File(TESTS_DIR).listFiles();
|
| Solution content |
|---|
public class SyntaxTest extends TestCase {
private final static String TESTS_DIR = "target/test-classes";
private File[] casesFiles = new File(TESTS_DIR).listFiles();
|
| File |
|---|
| SyntaxTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
@Override
protected void setUp() throws Exception {
super.setUp();
<<<<<<< HEAD
if (!new File(TESTS_DIR).exists())
casesFiles = new File("target/test-classes").listFiles();
=======
casesFiles = new File(System.getProperty("baseDir")).listFiles();
//casesFiles = new File(TESTS_DIR).listFiles();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
public void test() throws Exception { |
| Solution content |
|---|
@Override
protected void setUp() throws Exception {
super.setUp();
casesFiles = new File(System.getProperty("baseDir")).listFiles();
//casesFiles = new File(TESTS_DIR).listFiles();
}
public void test() throws Exception { |
| File |
|---|
| SyntaxTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| If statement |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.bpel.dd.TDeployment; import org.apache.ode.bpel.dd.TDeployment.Process; import org.apache.ode.bpel.iapi.ContextException; <<<<<<< HEAD import org.apache.ode.bpel.rapi.Serializer; ======= import org.apache.ode.bpel.o.Serializer; import org.apache.ode.utils.InternPool; import org.apache.ode.utils.InternPool.InternableBlock; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.utils.fs.FileUtils; import org.apache.xmlbeans.XmlOptions; import org.springframework.beans.BeansException; |
| Solution content |
|---|
import org.apache.ode.bpel.dd.TDeployment; import org.apache.ode.bpel.dd.TDeployment.Process; import org.apache.ode.bpel.iapi.ContextException; import org.apache.ode.bpel.o.Serializer; import org.apache.ode.utils.InternPool; import org.apache.ode.utils.InternPool.InternableBlock; import org.apache.ode.utils.fs.FileUtils; import org.apache.xmlbeans.XmlOptions; import org.springframework.beans.BeansException; |
| File |
|---|
| DeploymentUnitDir.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.springframework.core.io.Resource; import org.w3c.dom.Node; <<<<<<< HEAD import javax.wsdl.Definition; import javax.wsdl.WSDLException; import javax.wsdl.xml.WSDLReader; import javax.xml.namespace.QName; import java.io.File; import java.io.FileFilter; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; ======= >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a /** * Container providing various functions on the deployment directory. */ |
| Solution content |
|---|
import org.springframework.core.io.Resource; import org.w3c.dom.Node; /** * Container providing various functions on the deployment directory. * * @author mriou * @author Maciej Szefler |
| File |
|---|
| DeploymentUnitDir.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
private File _descriptorFile;
private Properties _properties = new Properties();
<<<<<<< HEAD
private HashMap |
| Solution content |
|---|
private File _descriptorFile;
private Properties _properties = new Properties();
private HashMap |
| File |
|---|
| DeploymentUnitDir.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
return !_duDirectory.exists();
}
<<<<<<< HEAD
private void compile(File bpelFile) {
BpelC bpelc = BpelC.newBpelCompiler();
=======
private void compile(final File bpelFile) {
final BpelC bpelc = BpelC.newBpelCompiler();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
// BPEL 1.1 does not suport the |
| Solution content |
|---|
return !_duDirectory.exists();
}
private void compile(final File bpelFile) {
final BpelC bpelc = BpelC.newBpelCompiler();
// BPEL 1.1 does not suport the |
| File |
|---|
| DeploymentUnitDir.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Method signature |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
});
bpelc.setCompileProperties(prepareCompileProperties(bpelFile));
bpelc.setExtensionValidators(_extensionValidators);
bpelc.setBaseDirectory(_duDirectory);
<<<<<<< HEAD
try {
bpelc.compile(bpelFile);
} catch (IOException e) {
__log.error("Compile error in " + bpelFile, e);
throw new RuntimeException(e);
}
=======
// Create process such that immutable objects are intern'ed.
InternPool.runBlock(new InternableBlock() {
public void run() {
try {
bpelc.compile(bpelFile, getVersion());
} catch (IOException e) {
__log.error("Compile error in " + bpelFile, e);
}
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
/** |
| Solution content |
|---|
bpelc.setCompileProperties(prepareCompileProperties(bpelFile));
bpelc.setBaseDirectory(_duDirectory);
// Create process such that immutable objects are intern'ed.
InternPool.runBlock(new InternableBlock() {
public void run() {
try {
bpelc.compile(bpelFile, getVersion());
} catch (IOException e) {
__log.error("Compile error in " + bpelFile, e);
}
}
});
}
/** |
| File |
|---|
| DeploymentUnitDir.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method invocation |
| Try statement |
| Chunk |
|---|
| Conflicting content |
|---|
try {
is = new FileInputStream(f);
Serializer ofh = new Serializer(is);
<<<<<<< HEAD
return new CBPInfo(ofh.getType(), ofh.getGuid(), f);
=======
CBPInfo info = new CBPInfo(ofh.type, ofh.guid, f);
return info;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} catch (Exception e) {
throw new ContextException("Couldn't read compiled BPEL process " + f.getAbsolutePath(), e);
} finally { |
| Solution content |
|---|
try {
is = new FileInputStream(f);
Serializer ofh = new Serializer(is);
CBPInfo info = new CBPInfo(ofh.type, ofh.guid, f);
return info;
} catch (Exception e) {
throw new ContextException("Couldn't read compiled BPEL process " + f.getAbsolutePath(), e);
} finally { |
| File |
|---|
| DeploymentUnitDir.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Return statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
/**
<<<<<<< HEAD
* The list of endpoint configuration files contained in the deployment directory and its subdirectories.
* Files are ordered lexicographically but for each directory, files come before its sudirectories.
* |
| Solution content |
|---|
}
/**
*
* The list of endpoint configuration files contained in the deployment directory and its subdirectories.
* Files are ordered lexicographically but for each directory, files come before its sudirectories.
* |
| File |
|---|
| DeploymentUnitDir.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
return result;
}
<<<<<<< HEAD
public static final class CBPInfo {
=======
public final class CBPInfo {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
final QName processName;
final String guid;
final File cbp; |
| Solution content |
|---|
return result;
}
public final class CBPInfo {
final QName processName;
final String guid;
final File cbp; |
| File |
|---|
| DeploymentUnitDir.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Class signature |
| Chunk |
|---|
| Conflicting content |
|---|
_version = version;
}
<<<<<<< HEAD
public void setExtensionValidators(Map |
| Solution content |
|---|
_version = version;
}
public Properties getProperties() {
return _properties;
}
} |
| File |
|---|
| DeploymentUnitDir.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method signature |
| Return statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
======= package org.apache.ode.store; import java.io.File; <<<<<<< HEAD import java.io.FileFilter; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; |
| Solution content |
|---|
package org.apache.ode.store; import java.io.File; import java.io.FileFilter; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; <<<<<<< HEAD import java.io.FileFilter; import java.net.URI; import java.text.ParseException; import java.util.*; ======= import java.net.URI; import java.text.ParseException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import javax.wsdl.Definition; import javax.xml.namespace.QName; |
| Solution content |
|---|
import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.text.ParseException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import javax.wsdl.Definition; import javax.xml.namespace.QName; |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; <<<<<<< HEAD import org.apache.ode.bpel.dd.TCleanup; import org.apache.ode.bpel.dd.TContextInterceptor; ======= import org.apache.ode.activityRecovery.FailureHandlingDocument.FailureHandling; import org.apache.ode.bpel.dd.TCleanup; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.bpel.dd.TDeployment; import org.apache.ode.bpel.dd.TInvoke; import org.apache.ode.bpel.dd.TMexInterceptor; |
| Solution content |
|---|
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.ode.activityRecovery.FailureHandlingDocument.FailureHandling; import org.apache.ode.bpel.dd.TCleanup; import org.apache.ode.bpel.dd.TDeployment; import org.apache.ode.bpel.dd.TInvoke; import org.apache.ode.bpel.dd.TMexInterceptor; |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.bpel.iapi.EndpointReferenceContext; import org.apache.ode.bpel.iapi.ProcessConf; import org.apache.ode.bpel.iapi.ProcessState; <<<<<<< HEAD import org.apache.ode.bpel.iapi.EndpointReferenceContext; import org.apache.ode.bpel.iapi.EndpointReference; import org.apache.ode.bpel.iapi.Scheduler.JobDetails; import org.apache.ode.bpel.rapi.ProcessModel; import org.apache.ode.store.DeploymentUnitDir.CBPInfo; ======= import org.apache.ode.bpel.iapi.Scheduler.JobDetails; import org.apache.ode.bpel.o.OFailureHandling; import org.apache.ode.store.DeploymentUnitDir.CBPInfo; import org.apache.ode.utils.CollectionUtils; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.utils.CronExpression; import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.HierarchicalProperties; |
| Solution content |
|---|
import org.apache.ode.bpel.iapi.EndpointReferenceContext; import org.apache.ode.bpel.iapi.ProcessConf; import org.apache.ode.bpel.iapi.ProcessState; import org.apache.ode.bpel.iapi.Scheduler.JobDetails; import org.apache.ode.bpel.o.OFailureHandling; import org.apache.ode.store.DeploymentUnitDir.CBPInfo; import org.apache.ode.utils.CollectionUtils; import org.apache.ode.utils.CronExpression; import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.HierarchicalProperties; |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.HierarchicalProperties; import org.apache.ode.utils.WatchDog; <<<<<<< HEAD import org.apache.ode.utils.CollectionUtils; import org.w3c.dom.Document; ======= >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.w3c.dom.Element; import org.w3c.dom.Node; |
| Solution content |
|---|
import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.HierarchicalProperties; import org.apache.ode.utils.WatchDog; import org.w3c.dom.Element; import org.w3c.dom.Node; |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
private File _configDir;
private final Map |
| Solution content |
|---|
private File _configDir;
private final Map |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
// cache the inMemory flag because XMLBeans objects are heavily synchronized (guarded by a coarse-grained lock)
private volatile boolean _inMemory = false;
<<<<<<< HEAD
// monitor the EPR property file and reload it if necessary
=======
// monitor the IL property file and reload it if necessary
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
private WatchDog |
| Solution content |
|---|
// cache the inMemory flag because XMLBeans objects are heavily synchronized (guarded by a coarse-grained lock)
private volatile boolean _inMemory = false;
// monitor the IL property file and reload it if necessary
private WatchDog |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
private EndpointReferenceContext eprContext;
private final ProcessCleanupConfImpl processCleanupConfImpl;
<<<<<<< HEAD
ProcessConfImpl(QName pid, QName type, long version, DeploymentUnitDir du, TDeployment.Process pinfo, Date deployDate,
Map |
| Solution content |
|---|
private EndpointReferenceContext eprContext;
private final ProcessCleanupConfImpl processCleanupConfImpl;
private final boolean generateProcessEventsAll;
ProcessConfImpl(QName pid, QName type, long version, DeploymentUnitDir du, TDeployment.Process pinfo, Date deployDate,
Map |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
this.generateProcessEventsAll = generateProcessEventsAll;
this.eprContext = eprContext;
_state = pstate;
_type = type;
_inMemory = _pinfo.isSetInMemory() && _pinfo.getInMemory();
<<<<<<< HEAD
this.eprContext = eprContext;
=======
propertiesWatchDog = new WatchDog |
| Solution content |
|---|
_state = pstate;
_type = type;
_inMemory = _pinfo.isSetInMemory() && _pinfo.getInMemory();
this.generateProcessEventsAll = generateProcessEventsAll;
this.eprContext = eprContext;
propertiesWatchDog = new WatchDog |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
initLinks();
initMexInterceptors();
initEventList();
<<<<<<< HEAD
initPropagationRules();
initContextInterceptors();
processCleanupConfImpl = new ProcessCleanupConfImpl(pinfo);
initCronSchedules();
=======
processCleanupConfImpl = new ProcessCleanupConfImpl(pinfo);
initSchedules();
}
private List |
| Solution content |
|---|
initLinks();
initMexInterceptors();
initEventList();
processCleanupConfImpl = new ProcessCleanupConfImpl(pinfo);
initSchedules();
}
private List |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| If statement |
| Method invocation |
| Method signature |
| Return statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
__log.debug("Processing |
| Solution content |
|---|
__log.debug("Processing |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
<<<<<<< HEAD
public ProcessModel getProcessModel() {
throw new UnsupportedOperationException();
}
=======
public long getCBPFileSize() {
CBPInfo cbpInfo = _du.getCBPInfo(getType());
if (cbpInfo == null)
throw new ContextException("CBP record not found for type " + getType());
return cbpInfo.cbp.length();
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public String getBpelDocument() {
CBPInfo cbpInfo = _du.getCBPInfo(getType());
if (cbpInfo == null) |
| Solution content |
|---|
}
}
public long getCBPFileSize() {
CBPInfo cbpInfo = _du.getCBPInfo(getType());
if (cbpInfo == null)
throw new ContextException("CBP record not found for type " + getType());
return cbpInfo.cbp.length();
}
public String getBpelDocument() {
CBPInfo cbpInfo = _du.getCBPInfo(getType());
if (cbpInfo == null) |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
public Map |
| Solution content |
|---|
}
public Map |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Comment |
| Method declaration |
| Method invocation |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
return _inMemory;
}
<<<<<<< HEAD
public boolean isRestful() {
return getProvideEndpoints().size() == 0;
}
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public void setTransient(boolean t) {
_pinfo.setInMemory(t);
_inMemory = t; |
| Solution content |
|---|
return _inMemory;
}
public void setTransient(boolean t) {
_pinfo.setInMemory(t);
_inMemory = t; |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
}
_events.put(null, all);
}
<<<<<<< HEAD
_events.put(null, all);
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
return;
}
|
| Solution content |
|---|
}
_events.put(null, all);
}
return;
}
|
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
@Override
public String toString() {
<<<<<<< HEAD
return "Endpoint files for " + _du.toString();
=======
return "Endpoint files for "+_du.toString();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
}
|
| Solution content |
|---|
@Override
public String toString() {
return "Endpoint files for "+_du.toString();
}
}
|
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
private void initSchedules() {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public Set |
| Solution content |
|---|
public Set |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
return jobs;
}
<<<<<<< HEAD
public Map |
| Solution content |
|---|
return jobs;
}
} |
| File |
|---|
| ProcessConfImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.bpel.dd.DeployDocument; import org.apache.ode.bpel.dd.TDeployment; import org.apache.ode.bpel.iapi.*; <<<<<<< HEAD ======= import org.apache.ode.il.config.OdeConfigProperties; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.store.DeploymentUnitDir.CBPInfo; import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.msg.MessageBundle; |
| Solution content |
|---|
import org.apache.ode.bpel.dd.DeployDocument; import org.apache.ode.bpel.dd.TDeployment; import org.apache.ode.bpel.iapi.*; import org.apache.ode.il.config.OdeConfigProperties; import org.apache.ode.store.DeploymentUnitDir.CBPInfo; import org.apache.ode.utils.DOMUtils; import org.apache.ode.utils.GUID; import org.apache.ode.utils.msg.MessageBundle; |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Concatenation |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import org.w3c.dom.Element; import org.w3c.dom.Node; <<<<<<< HEAD ======= import javax.sql.DataSource; import javax.xml.namespace.QName; import java.io.File; import java.io.IOException; import java.sql.SQLException; import java.util.*; import java.util.concurrent.*; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.regex.Matcher; import java.util.regex.Pattern; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a /** * |
| Solution content |
|---|
import org.w3c.dom.Element; import org.w3c.dom.Node; import javax.sql.DataSource; import javax.xml.namespace.QName; import java.io.File; import java.io.IOException; import java.sql.SQLException; import java.util.*; import java.util.concurrent.*; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
/** Guards access to the _processes and _deploymentUnits */
private final ReadWriteLock _rw = new ReentrantReadWriteLock();
<<<<<<< HEAD
final private ConfStoreDAOConnectionFactory _cf;
final private EndpointReferenceContext _eprContext;
final private TransactionManager _txm;
=======
private ConfStoreConnectionFactory _cf;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
private EndpointReferenceContext eprContext;
|
| Solution content |
|---|
/** Guards access to the _processes and _deploymentUnits */
private final ReadWriteLock _rw = new ReentrantReadWriteLock();
private EndpointReferenceContext eprContext;
private ConfStoreConnectionFactory _cf;
|
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
} else {
<<<<<<< HEAD
/**
* Constructor that hardwires OpenJPA on a new in-memory database. Suitable for tests.
*/
public |
| Solution content |
|---|
/**
* In-memory DataSource, or |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| Method declaration |
| Method invocation |
| Method signature |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
// Create the DU and compile/scan it before acquiring lock.
final DeploymentUnitDir du = new DeploymentUnitDir(deploymentUnitDirectory);
<<<<<<< HEAD
du.setExtensionValidators(_extensionValidators);
=======
if( duName != null ) {
// Override the package name if given from the parameter
du.setName(duName);
}
long version;
if (autoincrementVersion || du.getStaticVersion() == -1) {
// Process and DU use a monotonically increased single version number by default.
version = exec(new Callable |
| Solution content |
|---|
// Create the DU and compile/scan it before acquiring lock.
final DeploymentUnitDir du = new DeploymentUnitDir(deploymentUnitDirectory);
if( duName != null ) {
// Override the package name if given from the parameter
du.setName(duName);
}
long version;
if (autoincrementVersion || du.getStaticVersion() == -1) {
// Process and DU use a monotonically increased single version number by default.
version = exec(new Callable |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
Collection |
| Solution content |
|---|
Collection |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
ProcessConfImpl pconf = new ProcessConfImpl(pid, processDD.getName(), version, du, processDD, deployDate,
<<<<<<< HEAD
calcInitialProperties(processDD), calcInitialState(processDD), _eprContext, _configDir);
=======
calcInitialProperties(du.getProperties(), processDD), calcInitialState(processDD), eprContext, _configDir, generateProcessEventsAll);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
processes.add(pconf);
}
|
| Solution content |
|---|
}
ProcessConfImpl pconf = new ProcessConfImpl(pid, processDD.getName(), version, du, processDD, deployDate,
calcInitialProperties(du.getProperties(), processDD), calcInitialState(processDD), eprContext, _configDir, generateProcessEventsAll);
processes.add(pconf);
}
|
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
private void retirePreviousPackageVersions(DeploymentUnitDir du) {
//retire all the other versions of the same DU
String[] nameParts = du.getName().split("/");
<<<<<<< HEAD
/* Replace the version number (if any) with regexp to match any version number */
nameParts[0] = nameParts[0].replaceAll("([-\\Q.\\E](\\d)+)?\\z", "");
nameParts[0] += "([-\\Q.\\E](\\d)+)?";
=======
/* Replace the version number (if any) with regexp to match any version number */
nameParts[0] = nameParts[0].replaceAll("([-\\Q.\\E](\\d)+)?\\z", "");
nameParts[0] += "([-\\Q.\\E](\\d)+)?";
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
StringBuilder duNameRegExp = new StringBuilder(du.getName().length() * 2);
for (int i = 0, n = nameParts.length; i < n; i++) {
if (i > 0) duNameRegExp.append("/"); |
| Solution content |
|---|
nameParts[0] += "([-\\Q.\\E](\\d)+)?";
private void retirePreviousPackageVersions(DeploymentUnitDir du) {
//retire all the other versions of the same DU
String[] nameParts = du.getName().split("/");
/* Replace the version number (if any) with regexp to match any version number */
nameParts[0] = nameParts[0].replaceAll("([-\\Q.\\E](\\d)+)?\\z", "");
StringBuilder duNameRegExp = new StringBuilder(du.getName().length() * 2);
for (int i = 0, n = nameParts.length; i < n; i++) {
if (i > 0) duNameRegExp.append("/"); |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Array access |
| Comment |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
public Collection |
| Solution content |
|---|
public Collection |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Method signature |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
private void fireStateChange(QName processId, ProcessState state, String duname) {
switch (state) {
<<<<<<< HEAD
case ACTIVE:
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.ACTIVATED, processId, duname));
break;
case DISABLED:
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.DISABLED, processId, duname));
break;
case RETIRED:
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.RETIRED, processId, duname));
break;
=======
case ACTIVE:
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.ACTVIATED, processId, duname));
break;
case DISABLED:
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.DISABLED, processId, duname));
break;
case RETIRED:
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.RETIRED, processId, duname));
break;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
} |
| Solution content |
|---|
private void fireStateChange(QName processId, ProcessState state, String duname) {
switch (state) {
case ACTIVE:
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.ACTVIATED, processId, duname));
break;
case DISABLED:
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.DISABLED, processId, duname));
break;
case RETIRED:
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.RETIRED, processId, duname));
break;
}
} |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Break statement |
| Case statement |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
File dudir = findDeployDir(dudao);
if (dudir == null || !dudir.exists())
<<<<<<< HEAD
throw new ContextException("Deployed directory " +
(dudir == null ? "(unknown)" : dudir) + " no longer there!");
=======
throw new ContextException("Deployed directory " + (dudir == null ? "(unknown)" : dudir) + " no longer there!");
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
DeploymentUnitDir dud = new DeploymentUnitDir(dudir);
// set the name with the one from database
dud.setName(dudao.getName()); |
| Solution content |
|---|
File dudir = findDeployDir(dudao);
if (dudir == null || !dudir.exists())
throw new ContextException("Deployed directory " + (dudir == null ? "(unknown)" : dudir) + " no longer there!");
DeploymentUnitDir dud = new DeploymentUnitDir(dudir);
// set the name with the one from database
dud.setName(dudao.getName()); |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Throw statement |
| Chunk |
|---|
| Conflicting content |
|---|
.getDeployDate(), props, p.getState(), eprContext, _configDir, generateProcessEventsAll);
// TODO: update the props based on the values in the DB.
ProcessConfImpl pconf = new ProcessConfImpl(p.getPID(), p.getType(), p.getVersion(), dud, pinfo, dudao
<<<<<<< HEAD
.getDeployDate(), props, p.getState(), _eprContext, _configDir);
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
version = p.getVersion();
_processes.put(pconf.getProcessId(), pconf); |
| Solution content |
|---|
// TODO: update the props based on the values in the DB.
ProcessConfImpl pconf = new ProcessConfImpl(p.getPID(), p.getType(), p.getVersion(), dud, pinfo, dudao
.getDeployDate(), props, p.getState(), eprContext, _configDir, generateProcessEventsAll);
version = p.getVersion();
_processes.put(pconf.getProcessId(), pconf); |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
boolean success = false;
<<<<<<< HEAD
abstract class Callable |
| Solution content |
|---|
abstract class Callable |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| If statement |
| Method invocation |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
if (!success && _txm != null)
try {
<<<<<<< HEAD
} finally {
_txm.rollback();
=======
_cf.rollbackTransaction();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} catch (Exception ex) {
__log.error("TxError", ex);
} |
| Solution content |
|---|
} finally {
if (!success)
try {
_cf.rollbackTransaction();
} catch (Exception ex) {
__log.error("DbError", ex);
} |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
} catch (Exception ex) {
__log.error("TxError", ex);
}
<<<<<<< HEAD
conn.close();
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
// session is closed automatically when committed or rolled back under JTA
} |
| Solution content |
|---|
} catch (Exception ex) {
__log.error("DbError", ex);
}
}
// session is closed automatically when committed or rolled back under JTA
} |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
}
public void setDeployDir(File depDir) {
<<<<<<< HEAD
if (depDir != null && !depDir.isDirectory())
throw new IllegalArgumentException("Deploy directory is not a directory or does not exist: " + depDir);
=======
if (depDir != null) {
if( !depDir.exists() ) {
depDir.mkdirs();
__log.warn("Deploy directory: " + depDir.getAbsolutePath() + " does not exist; created it.");
} else if(!depDir.isDirectory()) {
throw new IllegalArgumentException("Deploy directory is not a directory: " + depDir);
}
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
_deployDir = depDir;
}
|
| Solution content |
|---|
}
public void setDeployDir(File depDir) {
if (depDir != null) {
if( !depDir.exists() ) {
depDir.mkdirs();
__log.warn("Deploy directory: " + depDir.getAbsolutePath() + " does not exist; created it.");
} else if(!depDir.isDirectory()) {
throw new IllegalArgumentException("Deploy directory is not a directory: " + depDir);
}
}
_deployDir = depDir;
}
|
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Chunk |
|---|
| Conflicting content |
|---|
public File getDeployDir() {
return _deployDir;
<<<<<<< HEAD
=======
}
public File getConfigDir() {
return _configDir;
}
public void setConfigDir(File configDir) {
if (configDir != null && !configDir.isDirectory())
throw new IllegalArgumentException("Config directory is not a directory or does not exist: " + configDir);
this._configDir = configDir;
}
public static DataSource createInternalDS(String guid) {
jdbcDataSource hsqlds = new jdbcDataSource();
hsqlds.setDatabase("jdbc:hsqldb:mem:" + guid);
hsqlds.setUser("sa");
hsqlds.setPassword("");
return hsqlds;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
public File getConfigDir() { |
| Solution content |
|---|
public File getDeployDir() {
return _deployDir;
}
public File getConfigDir() {
return _configDir;
}
public void setConfigDir(File configDir) {
if (configDir != null && !configDir.isDirectory())
throw new IllegalArgumentException("Config directory is not a directory or does not exist: " + configDir);
this._configDir = configDir;
}
public static DataSource createInternalDS(String guid) {
jdbcDataSource hsqlds = new jdbcDataSource();
hsqlds.setDatabase("jdbc:hsqldb:mem:" + guid);
hsqlds.setUser("sa");
hsqlds.setPassword("");
return hsqlds;
}
|
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Method invocation |
| Method signature |
| Return statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
public Thread newThread(Runnable r) {
return new QName(processType.getNamespaceURI(), processType.getLocalPart() + "-" + version);
}
<<<<<<< HEAD
public void setExtensionValidators(Map |
| Solution content |
|---|
return new QName(processType.getNamespaceURI(), processType.getLocalPart() + "-" + version);
}
private class SimpleThreadFactory implements ThreadFactory {
int threadNumber = 0;
public Thread newThread(Runnable r) {
threadNumber += 1; |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Class signature |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
<<<<<<< HEAD
=======
return t;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
public void refreshSchedules(String packageName) {
for( QName pid : listProcesses(packageName) ) {
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.SCHEDULE_SETTINGS_CHANGED, pid, packageName)); |
| Solution content |
|---|
return t;
}
}
public void refreshSchedules(String packageName) {
for( QName pid : listProcesses(packageName) ) {
fireEvent(new ProcessStoreEvent(ProcessStoreEvent.Type.SCHEDULE_SETTINGS_CHANGED, pid, packageName)); |
| File |
|---|
| ProcessStoreImpl.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
public void setUp() throws Exception {
import junit.framework.TestCase;
import org.apache.ode.bpel.iapi.ProcessConf;
<<<<<<< HEAD
import org.apache.ode.dao.store.ConfStoreDAOConnectionFactory;
import org.apache.ode.il.config.OdeConfigProperties;
import org.apache.ode.il.dbutil.Database;
import org.apache.ode.il.txutil.TxManager;
import org.apache.ode.utils.DOMUtils;
public class ProcessStoreTest extends TestCase {
ProcessStoreImpl _ps;
Database _db;
ConfStoreDAOConnectionFactory _cf;
private File _testdd;
Properties props = new Properties();
props.setProperty(OdeConfigProperties.PROP_DAOCF_STORE,System.getProperty(OdeConfigProperties.PROP_DAOCF_STORE,OdeConfigProperties.DEFAULT_DAOCF_STORE_CLASS));
OdeConfigProperties odeProps = new OdeConfigProperties(props, "");
_db = new Database(odeProps);
TxManager tx = new TxManager(odeProps);
TransactionManager txm = tx.createTransactionManager();
_db.setTransactionManager(txm);
_db.start();
_cf = _db.createDaoStoreCF();
_ps = new ProcessStoreImpl(null,txm, _cf);
_ps.loadAll();
URI tdd = getClass().getResource("/testdd/deploy.xml").toURI();
_testdd = new File(tdd.getPath()).getParentFile();
}
public void tearDown() throws Exception {
_ps.shutdown();
_cf.shutdown();
_db.shutdown();
}
public void testSanity() {
assertEquals(0, _ps.getProcesses().size());
assertEquals(0, _ps.getPackages().size());
assertNull(_ps.listProcesses("foobar"));
}
public void testDeploy() {
Collection |
| Solution content |
|---|
import junit.framework.TestCase;
import org.apache.ode.bpel.iapi.ProcessConf;
import org.apache.ode.bpel.iapi.ProcessConf.CLEANUP_CATEGORY;
public class ProcessStoreTest extends TestCase {
ProcessStoreImpl _ps;
private File _testdd;
public void setUp() throws Exception {
System.setProperty("openjpa.properties", "/openjpa.xml");
_ps = new ProcessStoreImpl();
_ps.loadAll();
URI tdd= getClass().getResource("/testdd/deploy.xml").toURI();
_testdd = new File(tdd.getPath()).getParentFile();
}
public void tearDown() throws Exception {
_ps.shutdown();
}
public void testSanity() {
assertEquals(0,_ps.getProcesses().size());
assertEquals(0,_ps.getPackages().size());
assertNull(_ps.listProcesses("foobar"));
}
public void testDeploy() {
Collection |
| File |
|---|
| ProcessStoreTest.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Class signature |
| Import |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
import java.io.InputStream; import java.net.URISyntaxException; import java.net.URL; <<<<<<< HEAD import java.util.*; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.Future; ======= import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Properties; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import java.util.regex.Matcher; import java.util.regex.Pattern; |
| Solution content |
|---|
import java.io.InputStream; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Properties; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; import java.util.regex.Pattern; |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; <<<<<<< HEAD import javax.xml.namespace.QName; import org.apache.commons.lang.exception.ExceptionUtils; import org.apache.ode.bpel.engine.BpelServerImpl; import org.apache.ode.bpel.evtproc.DebugBpelEventListener; import org.apache.ode.bpel.iapi.*; import org.apache.ode.bpel.iapi.MessageExchange.AckType; import org.apache.ode.bpel.iapi.MessageExchange.Status; import org.apache.ode.bpel.iapi.MyRoleMessageExchange.CorrelationStatus; import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl; import org.apache.ode.bpel.rtrep.common.extension.AbstractExtensionBundle; import org.apache.ode.dao.bpel.BpelDAOConnectionFactory; import org.apache.ode.dao.store.ConfStoreDAOConnectionFactory; import org.apache.ode.il.MockScheduler; import org.apache.ode.il.config.OdeConfigProperties; import org.apache.ode.il.dbutil.Database; ======= import javax.persistence.Persistence; import javax.xml.namespace.QName; import org.apache.ode.bpel.common.evt.DebugBpelEventListener; import org.apache.ode.bpel.dao.BpelDAOConnectionFactory; import org.apache.ode.bpel.engine.BpelServerImpl; import org.apache.ode.bpel.iapi.Message; import org.apache.ode.bpel.iapi.MessageExchange; import org.apache.ode.bpel.iapi.MyRoleMessageExchange; import org.apache.ode.bpel.iapi.ProcessStore; import org.apache.ode.bpel.iapi.ProcessStoreEvent; import org.apache.ode.bpel.iapi.ProcessStoreListener; import org.apache.ode.bpel.iapi.MessageExchange.Status; import org.apache.ode.bpel.iapi.MyRoleMessageExchange.CorrelationStatus; import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl; import org.apache.ode.il.MockScheduler; import org.apache.ode.il.config.OdeConfigProperties; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.store.ProcessConfImpl; import org.apache.ode.store.ProcessStoreImpl; import org.apache.ode.utils.DOMUtils; |
| Solution content |
|---|
import org.apache.ode.store.ProcessConfImpl; import org.apache.ode.store.ProcessStoreImpl; import org.apache.ode.utils.DOMUtils; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import javax.xml.namespace.QName; import org.apache.ode.bpel.common.evt.DebugBpelEventListener; import org.apache.ode.bpel.dao.BpelDAOConnectionFactory; import org.apache.ode.bpel.engine.BpelServerImpl; import org.apache.ode.bpel.iapi.Message; import org.apache.ode.bpel.iapi.MessageExchange; import org.apache.ode.bpel.iapi.MyRoleMessageExchange; import org.apache.ode.bpel.iapi.ProcessStore; import org.apache.ode.bpel.iapi.ProcessStoreEvent; import org.apache.ode.bpel.iapi.ProcessStoreListener; import org.apache.ode.bpel.iapi.MessageExchange.Status; import org.apache.ode.bpel.iapi.MyRoleMessageExchange.CorrelationStatus; import org.apache.ode.bpel.memdao.BpelDAOConnectionFactoryImpl; import org.apache.ode.il.MockScheduler; import org.apache.ode.il.config.OdeConfigProperties; |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
=======
import org.w3c.dom.Element;
public abstract class BPELTestAbstract {
<<<<<<< HEAD
private static final String SHOW_EVENTS_ON_CONSOLE = "no";
public static final long WAIT_BEFORE_INVOKE_TIMEOUT = 2000;
private static final String SHOW_EVENTS_ON_CONSOLE = "no";
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
protected BpelServerImpl _server;
|
| Solution content |
|---|
import org.w3c.dom.Element;
public abstract class BPELTestAbstract {
public static final long WAIT_BEFORE_INVOKE_TIMEOUT = 2000;
private static final String SHOW_EVENTS_ON_CONSOLE = "no";
protected BpelServerImpl _server;
|
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
_server.setDaoConnectionFactory(_cf);
_db.start();
if (Boolean.getBoolean("org.apache.ode.test.persistent")) {
<<<<<<< HEAD
_server.setDaoConnectionFactory(_bcf);
scheduler = new MockScheduler(_txm);
=======
emf = Persistence.createEntityManagerFactory("ode-unit-test-embedded");
em = emf.createEntityManager();
_cf = new org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryImpl();
scheduler = new MockScheduler() {
@Override
public void beginTransaction() {
super.beginTransaction();
em.getTransaction().begin();
}
@Override
public void commitTransaction() {
super.commitTransaction();
em.getTransaction().commit();
}
@Override
public void rollbackTransaction() {
super.rollbackTransaction();
em.getTransaction().rollback();
}
};
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} else {
scheduler = new MockScheduler(_txm);
_bcf = new BpelDAOConnectionFactoryImpl(); |
| Solution content |
|---|
if (Boolean.getBoolean("org.apache.ode.test.persistent")) {
emf = Persistence.createEntityManagerFactory("ode-unit-test-embedded");
em = emf.createEntityManager();
_cf = new org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryImpl();
_server.setDaoConnectionFactory(_cf);
scheduler = new MockScheduler() {
@Override
public void beginTransaction() {
super.beginTransaction();
em.getTransaction().begin();
}
@Override
public void commitTransaction() {
super.commitTransaction();
em.getTransaction().commit();
}
@Override
public void rollbackTransaction() {
super.rollbackTransaction();
em.getTransaction().rollback();
}
};
} else { |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
_server.setMessageExchangeContext(mexContext);
_server.setTransactionManager(_txm);
scheduler.setJobProcessor(_server);
<<<<<<< HEAD
final EndpointReferenceContext eprContext = new EndpointReferenceContext() {
public EndpointReference resolveEndpointReference(Element epr) {
return null;
}
public EndpointReference convertEndpoint(QName targetType, Element sourceEndpoint) {
return null;
=======
store = new ProcessStoreImpl(null, null, "hibernate", new OdeConfigProperties(new Properties(), ""), true);
store.registerListener(new ProcessStoreListener() {
public void onProcessStoreEvent(ProcessStoreEvent event) {
// bounce the process
_server.unregister(event.pid);
if (event.type != ProcessStoreEvent.Type.UNDEPLOYED) {
ProcessConfImpl conf = (ProcessConfImpl) store.getProcessConfiguration(event.pid);
// Test processes always run with in-mem DAOs
conf.setTransient(true);
_server.register(conf);
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
public Map getConfigLookup(EndpointReference epr) { |
| Solution content |
|---|
return deployment;
}
_server.setMessageExchangeContext(mexContext);
scheduler.setJobProcessor(_server);
store = new ProcessStoreImpl(null, null, "hibernate", new OdeConfigProperties(new Properties(), ""), true);
store.registerListener(new ProcessStoreListener() {
public void onProcessStoreEvent(ProcessStoreEvent event) {
// bounce the process
_server.unregister(event.pid);
if (event.type != ProcessStoreEvent.Type.UNDEPLOYED) {
ProcessConfImpl conf = (ProcessConfImpl) store.getProcessConfiguration(event.pid);
// Test processes always run with in-mem DAOs
conf.setTransient(true);
_server.register(conf);
}
}
});
_server.setConfigProperties(getConfigProperties());
_server.registerBpelEventListener(new DebugBpelEventListener());
_server.init();
_server.start();
}
@After
public void tearDown() throws Exception {
for (Deployment d : _deployed) {
try {
store.undeploy(d.deployDir);
} catch (Exception ex) {
ex.printStackTrace();
System.err.println("Error undeploying " + d);
}
}
if (em != null) em.close();
if (emf != null) emf.close();
_server.stop();
_failures = null;
_deployed = null;
_deployments = null;
_invocations = null;
}
protected void negative(String deployDir) throws Throwable {
try {
go(new File(deployDir));
} catch (junit.framework.AssertionFailedError ex) {
return;
}
Assert.fail("Expecting test to fail");
}
protected void go(String deployDir) throws Exception {
go(makeDeployDir(deployDir));
}
protected Deployment addDeployment(String deployDir) {
return addDeployment(makeDeployDir(deployDir));
}
protected Deployment addDeployment(File deployDir) {
Deployment deployment = new Deployment(deployDir);
protected void go(File deployDir) throws Exception {
_deployments.add(deployment);
protected File makeDeployDir(String deployDir) {
setup(deployDir);
go();
}
protected void setup(File deployDir) throws Exception {
addDeployment(deployDir);
int propsFileCnt = 0;
File testPropsFile = new File(deployDir, "test.properties");
if (!testPropsFile.exists()) {
propsFileCnt++;
testPropsFile = new File(deployDir, "test" + propsFileCnt + ".properties");
if (!testPropsFile.exists()) {
System.err.println("can't find " + testPropsFile);
}
}
if (!testPropsFile.exists()) {
Assert.fail("Test property file not found in " + deployDir);
}
while (testPropsFile.exists()) {
Properties testProps = new Properties();
InputStream is = new FileInputStream(testPropsFile);
try {
testProps.load(is);
} finally {
is.close();
}
final QName serviceId = new QName(testProps.getProperty("namespace"), testProps.getProperty("service"));
final String operation = testProps.getProperty("operation");
Boolean sequential = Boolean.parseBoolean(testProps.getProperty("sequential", "false"));
Invocation last = null;
for (int i = 1; testProps.getProperty("request" + i) != null; i++) {
final String in = testProps.getProperty("request" + i);
final String responsePattern = testProps.getProperty("response" + i);
last = addInvoke(testPropsFile + "#" + i, serviceId, operation, in, responsePattern, sequential ? last : null);
}
propsFileCnt++;
testPropsFile = new File(deployDir, "test" + propsFileCnt + ".properties");
}
}
protected Invocation addInvoke(String id, QName target, String operation, String request, String responsePattern) throws Exception {
return addInvoke(id, target, operation, request, responsePattern, null);
}
protected Invocation addInvoke(String id, QName target, String operation, String request, String responsePattern, Invocation synchronizeWith)
throws Exception {
Invocation inv = new Invocation(id, synchronizeWith);
inv.target = target;
inv.operation = operation;
inv.request = DOMUtils.stringToDOM(request);
inv.expectedStatus = null;
if (responsePattern != null) {
inv.expectedFinalStatus = MessageExchange.Status.RESPONSE;
inv.expectedResponsePattern = Pattern.compile(responsePattern, Pattern.DOTALL);
}
_invocations.add(inv);
return inv;
}
protected void go() throws Exception {
try {
doDeployments();
doInvokes();
} finally {
checkFailure();
}
}
protected void checkFailure() {
StringBuffer sb = new StringBuffer("Failure report:\n");
for (Failure failure : _failures) {
sb.append(failure);
sb.append('\n');
}
if (_failures.size() != 0) {
System.err.println(sb.toString());
Assert.fail(sb.toString());
}
}
protected Deployment deploy(String location) {
Deployment deployment = new Deployment(makeDeployDir(location));
doDeployment(deployment);
return deployment;
}
protected void doDeployments() {
for (Deployment d : _deployments)
doDeployment(d);
}
/**
* Do all the registered deployments.
*
* @param d
*/
protected void doDeployment(Deployment d) {
Collection |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Manual |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
_deployed = null;
_deployments = null;
_invocations = null;
<<<<<<< HEAD
_bcf.shutdown();
_scf.shutdown();
_db.shutdown();
}
public void registerExtensionBundle(AbstractExtensionBundle bundle) {
_server.registerExtensionBundle(bundle);
}
public void unregisterExtensionBundle(AbstractExtensionBundle bundle) {
_server.unregisterExtensionBundle(bundle.getNamespaceURI());
}
public void unregisterExtensionBundle(String nsURI) {
_server.unregisterExtensionBundle(nsURI);
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
protected void negative(String deployDir) throws Throwable { |
| Solution content |
|---|
_deployed = null;
_deployments = null;
_invocations = null;
}
protected void negative(String deployDir) throws Throwable { |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Method invocation |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
<<<<<<< HEAD
return inv;
}
public void go() throws Exception {
=======
protected void go() throws Exception {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
try {
doDeployments();
doInvokes(); |
| Solution content |
|---|
return inv;
}
protected void go() throws Exception {
try {
doDeployments();
doInvokes(); |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
doDeployment(deployment);
}
}
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
protected Deployment deploy(String location) {
Deployment deployment = new Deployment(makeDeployDir(location)); |
| Solution content |
|---|
}
}
protected Deployment deploy(String location) {
Deployment deployment = new Deployment(makeDeployDir(location));
doDeployment(deployment); |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
ex.printStackTrace();
failure(d, "DEPLOY: Wrong exception; expected " + d.expectedException + " but got " + ex.getClass(), ex);
}
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
return;
}
|
| Solution content |
|---|
ex.printStackTrace();
failure(d, "DEPLOY: Wrong exception; expected " + d.expectedException + " but got " + ex.getClass(), ex);
}
return;
}
|
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
for (Thread testThread : testThreads) {
testThread.start();
<<<<<<< HEAD
if (testThreads.size() > 0) Thread.sleep(2000);
=======
if (testThreads.size() > 0) Thread.sleep(getWaitBeforeInvokeTimeout());
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
for (Thread testThread : testThreads) |
| Solution content |
|---|
for (Thread testThread : testThreads) {
testThread.start();
if (testThreads.size() > 0) Thread.sleep(getWaitBeforeInvokeTimeout());
}
for (Thread testThread : testThreads) |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Chunk |
|---|
| Conflicting content |
|---|
}
/**
<<<<<<< HEAD
* Override this to provide configuration properties for Ode extensions like BpelEventListeners.
*
=======
* Override this to provide configuration properties for Ode extensions
* like BpelEventListeners.
*
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
* @return
*/
protected Properties getConfigProperties() { |
| Solution content |
|---|
}
/**
* Override this to provide configuration properties for Ode extensions
* like BpelEventListeners.
*
* @return
*/
protected Properties getConfigProperties() { |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
// could also return null, returning an empty properties
// object is more fail-safe.
Properties p = new Properties();
<<<<<<< HEAD
p.setProperty("debugeventlistener.dumpToStdOut", SHOW_EVENTS_ON_CONSOLE);
=======
p.setProperty("debugeventlistener.dumpToStdOut", SHOW_EVENTS_ON_CONSOLE);
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
return p;
}
|
| Solution content |
|---|
// could also return null, returning an empty properties
// object is more fail-safe.
Properties p = new Properties();
p.setProperty("debugeventlistener.dumpToStdOut", SHOW_EVENTS_ON_CONSOLE);
return p;
}
|
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
public String toString() {
StringBuffer sbuf = new StringBuffer(where + ": " + msg);
if (ex != null) {
<<<<<<< HEAD
sbuf.append("; got exception:\n");
sbuf.append(ExceptionUtils.getFullStackTrace(ex));
=======
sbuf.append("; got exception msg: " + ex.getMessage());
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
if (actual != null)
sbuf.append("; got " + actual + ", expected " + expected); |
| Solution content |
|---|
public String toString() {
StringBuffer sbuf = new StringBuffer(where + ": " + msg);
if (ex != null) {
sbuf.append("; got exception msg: " + ex.getMessage());
}
if (actual != null)
sbuf.append("; got " + actual + ", expected " + expected); |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
}
}
<<<<<<< HEAD
=======
scheduler.beginTransaction();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
try {
mex = _server.createMessageExchange(InvocationStyle.UNRELIABLE, _invocation.target, _invocation.operation,
new GUID().toString()); |
| Solution content |
|---|
}
}
scheduler.beginTransaction();
try { |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
failure(_invocation, "Unexpected invocation exception.", _invocation.expectedInvokeException, ex.getClass());
return;
<<<<<<< HEAD
=======
} finally {
scheduler.commitTransaction();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
if (mex.getStatus() != Status.ACK) |
| Solution content |
|---|
failure(_invocation, "Unexpected invocation exception.", _invocation.expectedInvokeException, ex.getClass());
return;
} finally {
scheduler.commitTransaction();
}
|
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
if (isFailed())
return;
<<<<<<< HEAD
AckType finalstat = mex.getAckType();
if (_invocation.expectedFinalStatus != null && _invocation.expectedFinalStatus != finalstat) {
if (finalstat.equals(AckType.FAULT)) {
if (!matcher.matches())
&& !_invocation.expectedFinalCorrelationStatus.equals(mex.getCorrelationStatus())) {
failure(_invocation, "Unexpected final correlation status", _invocation.expectedFinalCorrelationStatus, mex
.getCorrelationStatus());
}
if (_invocation.expectedResponsePattern != null) {
if (mex.getResponse() == null)
failure(_invocation, "Expected response, but got none.", null);
String responseStr = DOMUtils.domToString(mex.getResponse().getMessage());
Matcher matcher = _invocation.expectedResponsePattern.matcher(responseStr);
failure(_invocation, "Unexpected final message exchange status", _invocation.expectedFinalStatus, "FAULT: "
+ mex.getFault() + " | " + mex.getFaultExplanation());
} else {
failure(_invocation, "Unexpected final message exchange status", _invocation.expectedFinalStatus, finalstat);
}
}
if (_invocation.expectedFinalCorrelationStatus != null
failure(_invocation, "Response does not match expected pattern", _invocation.expectedResponsePattern,
responseStr);
=======
if (_invocation.expectedResponsePattern != null) {
scheduler.beginTransaction();
try {
Status finalstat = mex.getStatus();
if (_invocation.expectedFinalStatus != null && !_invocation.expectedFinalStatus.equals(finalstat))
if (finalstat.equals(Status.FAULT)) {
failure(_invocation, "Unexpected final message exchange status", _invocation.expectedFinalStatus, "FAULT: "
+ mex.getFault() + " | " + mex.getFaultExplanation());
} else {
failure(_invocation, "Unexpected final message exchange status", _invocation.expectedFinalStatus, finalstat);
}
if (_invocation.expectedFinalCorrelationStatus != null
&& !_invocation.expectedFinalCorrelationStatus.equals(mex.getCorrelationStatus())) {
failure(_invocation, "Unexpected final correlation status", _invocation.expectedFinalCorrelationStatus, mex
.getCorrelationStatus());
}
if (mex.getResponse() == null)
failure(_invocation, "Expected response, but got none.", null);
String responseStr = DOMUtils.domToString(mex.getResponse().getMessage());
//System.out.println("=>" + responseStr);
Matcher matcher = _invocation.expectedResponsePattern.matcher(responseStr);
if (!matcher.matches())
failure(_invocation, "Response does not match expected pattern", _invocation.expectedResponsePattern, responseStr);
} finally {
scheduler.commitTransaction();
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
}
} |
| Solution content |
|---|
if (isFailed())
return;
if (_invocation.expectedResponsePattern != null) {
scheduler.beginTransaction();
try {
Status finalstat = mex.getStatus();
if (_invocation.expectedFinalStatus != null && !_invocation.expectedFinalStatus.equals(finalstat))
if (finalstat.equals(Status.FAULT)) {
failure(_invocation, "Unexpected final message exchange status", _invocation.expectedFinalStatus, "FAULT: "
+ mex.getFault() + " | " + mex.getFaultExplanation());
} else {
failure(_invocation, "Unexpected final message exchange status", _invocation.expectedFinalStatus, finalstat);
}
if (_invocation.expectedFinalCorrelationStatus != null
&& !_invocation.expectedFinalCorrelationStatus.equals(mex.getCorrelationStatus())) {
failure(_invocation, "Unexpected final correlation status", _invocation.expectedFinalCorrelationStatus, mex
.getCorrelationStatus());
}
if (mex.getResponse() == null)
failure(_invocation, "Expected response, but got none.", null);
String responseStr = DOMUtils.domToString(mex.getResponse().getMessage());
//System.out.println("=>" + responseStr);
Matcher matcher = _invocation.expectedResponsePattern.matcher(responseStr);
if (!matcher.matches())
failure(_invocation, "Response does not match expected pattern", _invocation.expectedResponsePattern, responseStr);
} finally {
scheduler.commitTransaction();
}
}
}
} |
| File |
|---|
| BPELTestAbstract.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Method invocation |
| Try statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
import javax.wsdl.PortType; import javax.xml.namespace.QName; <<<<<<< HEAD import org.apache.ode.bpel.iapi.*; ======= import org.apache.ode.bpel.iapi.BindingContext; import org.apache.ode.bpel.iapi.Endpoint; import org.apache.ode.bpel.iapi.EndpointReference; import org.apache.ode.bpel.iapi.PartnerRoleChannel; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.utils.DOMUtils; import org.w3c.dom.Document; import org.w3c.dom.Element; |
| Solution content |
|---|
import javax.wsdl.PortType; import javax.xml.namespace.QName; import org.apache.ode.bpel.iapi.BindingContext; import org.apache.ode.bpel.iapi.Endpoint; import org.apache.ode.bpel.iapi.EndpointReference; import org.apache.ode.bpel.iapi.PartnerRoleChannel; import org.apache.ode.utils.DOMUtils; import org.w3c.dom.Document; import org.w3c.dom.Element; |
| File |
|---|
| BindingContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
return new PartnerRoleChannelImpl();
}
<<<<<<< HEAD
public void activateProvidedResource(Resource resource) {
throw new UnsupportedOperationException();
}
public void deactivateProvidedResource(Resource resource) {
throw new UnsupportedOperationException();
}
=======
public long calculateSizeofService(EndpointReference epr) {
return 0;
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} |
| Solution content |
|---|
return new PartnerRoleChannelImpl();
}
public long calculateSizeofService(EndpointReference epr) {
return 0;
}
} |
| File |
|---|
| BindingContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
* or more contributor license agreements. See the NOTICE file ======= /* * under the License. */ <<<<<<< HEAD package org.apache.ode.test; import java.io.IOException; import java.util.Collections; import java.util.Set; import javax.xml.namespace.QName; import org.apache.ode.bpel.iapi.*; * Licensed to the Apache Software Foundation (ASF) under one * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ode.test; import java.io.IOException; import javax.xml.namespace.QName; import org.apache.ode.bpel.iapi.BpelEngineException; import org.apache.ode.bpel.iapi.ContextException; import org.apache.ode.bpel.iapi.Message; import org.apache.ode.bpel.iapi.MessageExchangeContext; import org.apache.ode.bpel.iapi.MyRoleMessageExchange; import org.apache.ode.bpel.iapi.PartnerRoleMessageExchange; import org.apache.ode.bpel.iapi.MessageExchange.Status; >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a import org.apache.ode.utils.DOMUtils; import org.w3c.dom.Element; import org.xml.sax.SAXException; |
| Solution content |
|---|
* under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ode.test; import java.io.IOException; import javax.xml.namespace.QName; import org.apache.ode.bpel.iapi.BpelEngineException; import org.apache.ode.bpel.iapi.ContextException; import org.apache.ode.bpel.iapi.Message; import org.apache.ode.bpel.iapi.MessageExchangeContext; import org.apache.ode.bpel.iapi.MyRoleMessageExchange; import org.apache.ode.bpel.iapi.PartnerRoleMessageExchange; import org.apache.ode.bpel.iapi.MessageExchange.Status; import org.apache.ode.utils.DOMUtils; import org.w3c.dom.Element; import org.xml.sax.SAXException; |
| File |
|---|
| MessageExchangeContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Import |
| Package declaration |
| Chunk |
|---|
| Conflicting content |
|---|
// Probe Service is a simple concatination service
private static final QName probePT = new QName(PROBE_NS,"probeMessagePT");
private static final QName faultPT = new QName(FAULT_NS,"faultMessagePT");
<<<<<<< HEAD
public void invokePartnerUnreliable(PartnerRoleMessageExchange mex)
=======
private Message currentResponse;
public void invokePartner(PartnerRoleMessageExchange mex)
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
throws ContextException {
QName calledPT = mex.getPortType().getQName();
|
| Solution content |
|---|
// Probe Service is a simple concatination service
private static final QName probePT = new QName(PROBE_NS,"probeMessagePT");
private static final QName faultPT = new QName(FAULT_NS,"faultMessagePT");
private Message currentResponse;
public void invokePartner(PartnerRoleMessageExchange mex)
throws ContextException {
QName calledPT = mex.getPortType().getQName();
|
| File |
|---|
| MessageExchangeContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
}
<<<<<<< HEAD
public void onMyRoleMessageExchangeStateChanged(MyRoleMessageExchange myRoleMex)
throws BpelEngineException {
=======
public void onAsyncReply(MyRoleMessageExchange myRoleMex)
throws BpelEngineException {
Status mStat = myRoleMex.getStatus();
if ( mStat == Status.RESPONSE ) {
currentResponse = myRoleMex.getResponse();
}
myRoleMex.complete();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
private void invokeProbeService(PartnerRoleMessageExchange prmx) { |
| Solution content |
|---|
}
public void onAsyncReply(MyRoleMessageExchange myRoleMex)
throws BpelEngineException {
Status mStat = myRoleMex.getStatus();
if ( mStat == Status.RESPONSE ) {
currentResponse = myRoleMex.getResponse();
}
myRoleMex.complete();
}
private void invokeProbeService(PartnerRoleMessageExchange prmx) { |
| File |
|---|
| MessageExchangeContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| If statement |
| Method invocation |
| Method signature |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
if ( elm1 != null && elm2 != null ) {
String cat = elm2.getTextContent()+" -> "+elm1.getTextContent();
elm2.setTextContent(cat);
<<<<<<< HEAD
final Message response = prmx.createMessage(prmx.getOperation().getOutput().getMessage().getQName());
response.setMessage(msg.getMessage());
response.setPart("probeData", elm2);
=======
msg.setPart("probeData", elm2);
final Message response = prmx.createMessage(prmx.getOperation().getOutput().getMessage().getQName());
response.setMessage(msg.getMessage());
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
prmx.reply(response);
}
} |
| Solution content |
|---|
if ( elm1 != null && elm2 != null ) {
String cat = elm2.getTextContent()+" -> "+elm1.getTextContent();
elm2.setTextContent(cat);
msg.setPart("probeData", elm2);
final Message response = prmx.createMessage(prmx.getOperation().getOutput().getMessage().getQName());
response.setMessage(msg.getMessage());
prmx.reply(response);
}
} |
| File |
|---|
| MessageExchangeContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
public Message getCurrentResponse() {
}
}
<<<<<<< HEAD
public void cancel(PartnerRoleMessageExchange mex) throws ContextException {
// TODO Auto-generated method stub
}
public Set |
| Solution content |
|---|
}
}
public Message getCurrentResponse() {
return currentResponse;
}
public void clearCurrentResponse() {
currentResponse = null;
}
} |
| File |
|---|
| MessageExchangeContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
* under the License. */ <<<<<<< HEAD ======= /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ >>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a package org.apache.ode.test; import org.apache.ode.bpel.iapi.EndpointReference; |
| Solution content |
|---|
* under the License. */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.ode.test; import org.apache.ode.bpel.iapi.EndpointReference; |
| File |
|---|
| PartnerRoleChannelImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
import org.apache.ode.bpel.iapi.ContextException;
import org.apache.ode.bpel.iapi.MessageExchange;
<<<<<<< HEAD
import org.apache.ode.bpel.iapi.MessageExchange.AckType;
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
import org.junit.Test;
public class BasicActivities20Test extends BPELTestAbstract { |
| Solution content |
|---|
import org.apache.ode.bpel.iapi.ContextException;
import org.apache.ode.bpel.iapi.MessageExchange;
import org.junit.Test;
public class BasicActivities20Test extends BPELTestAbstract { |
| File |
|---|
| BasicActivities20Test.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
" |
| Solution content |
|---|
" |
| File |
|---|
| BasicActivities20Test.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
}
@Test public void testAssignActivity2() throws Throwable {
go("/bpel/2.0/TestAssignActivity2");
}
*/
package org.apache.ode.test;
<<<<<<< HEAD
import org.junit.Ignore;
import org.junit.Test;
public class DataHandling20Test extends BPELTestAbstract {
@Test public void testComposeUrl() throws Throwable {
go("/bpel/2.0/TestComposeUrl");
}
@Test public void testCombineUrl() throws Throwable {
go("/bpel/2.0/TestCombineUrl");
}
@Test public void testExpandTemplate() throws Throwable {
go("/bpel/2.0/TestExpandTemplate");
}
@Test public void testXPathNamespace1() throws Throwable {
go("/bpel/2.0/TestXPathNamespace1");
}
@Test public void testXPathNamespace2() throws Throwable {
go("/bpel/2.0/TestXPathNamespace2");
}
@Test public void testSubTreeAssign() throws Throwable {
go("/bpel/2.0/TestSubTreeAssign");
}
@Test public void testAssignActivity1() throws Throwable {
go("/bpel/2.0/TestAssignActivity1");
@Test public void testAssignActivity3() throws Throwable {
go("/bpel/2.0/TestAssignActivity3");
}
go("/bpel/2.0/TestXslTransform");
}
@Test public void testAssignComplex() throws Throwable {
go("/bpel/2.0/TestAssignComplex");
}
@Test public void testSimpleTypeParts() throws Throwable {
go("/bpel/2.0/TestSimpleTypeParts");
}
@Test public void testSimpleVariableType() throws Throwable {
go("/bpel/2.0/TestSimpleVariableType");
}
@Test public void testXslTransform() throws Throwable {
@Test public void testSplit() throws Throwable {
go("/bpel/2.0/TestSplit");
}
@Test public void testCounter() throws Throwable {
=======
import org.junit.Test;
public class DataHandling20Test extends BPELTestAbstract {
@Test
public void testComposeUrl() throws Throwable {
go("/bpel/2.0/TestComposeUrl");
}
@Test
public void testCombineUrl() throws Throwable {
go("/bpel/2.0/TestCombineUrl");
}
@Test
public void testExpandTemplate() throws Throwable {
go("/bpel/2.0/TestExpandTemplate");
}
@Test
public void testXPathNamespace1() throws Throwable {
go("/bpel/2.0/TestXPathNamespace1");
}
@Test
public void testXPathNamespace2() throws Throwable {
go("/bpel/2.0/TestXPathNamespace2");
}
@Test
public void testToQuery() throws Throwable {
go("/bpel/2.0/TestToQuery");
}
@Test
public void testSubTreeAssign() throws Throwable {
go("/bpel/2.0/TestSubTreeAssign");
}
@Test
public void testAssignActivity1() throws Throwable {
go("/bpel/2.0/TestAssignActivity1");
}
@Test
public void testAssignActivity2() throws Throwable {
go("/bpel/2.0/TestAssignActivity2");
}
@Test
public void testAssignComplex() throws Throwable {
go("/bpel/2.0/TestAssignComplex");
}
@Test
public void testSimpleTypeParts() throws Throwable {
go("/bpel/2.0/TestSimpleTypeParts");
}
@Test
public void testSimpleVariableType() throws Throwable {
go("/bpel/2.0/TestSimpleVariableType");
}
@Test
public void testXslTransform() throws Throwable {
go("/bpel/2.0/TestXslTransform");
}
@Test
public void testSplit() throws Throwable {
go("/bpel/2.0/TestSplit");
}
@Test
public void testCounter() throws Throwable {
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
go("/bpel/2.0/TestCounter");
}
|
| Solution content |
|---|
*/
package org.apache.ode.test;
import org.junit.Test;
public class DataHandling20Test extends BPELTestAbstract {
@Test
public void testComposeUrl() throws Throwable {
go("/bpel/2.0/TestComposeUrl");
}
@Test
public void testCombineUrl() throws Throwable {
go("/bpel/2.0/TestCombineUrl");
}
@Test
public void testExpandTemplate() throws Throwable {
go("/bpel/2.0/TestExpandTemplate");
}
@Test
public void testXPathNamespace1() throws Throwable {
go("/bpel/2.0/TestXPathNamespace1");
}
@Test
public void testXPathNamespace2() throws Throwable {
go("/bpel/2.0/TestXPathNamespace2");
}
@Test
public void testToQuery() throws Throwable {
go("/bpel/2.0/TestToQuery");
}
@Test
public void testSubTreeAssign() throws Throwable {
go("/bpel/2.0/TestSubTreeAssign");
}
@Test
public void testAssignActivity1() throws Throwable {
go("/bpel/2.0/TestAssignActivity1");
}
@Test
public void testAssignActivity2() throws Throwable {
go("/bpel/2.0/TestAssignActivity2");
}
@Test
public void testAssignComplex() throws Throwable {
go("/bpel/2.0/TestAssignComplex");
}
@Test
public void testSimpleTypeParts() throws Throwable {
go("/bpel/2.0/TestSimpleTypeParts");
}
@Test
public void testSimpleVariableType() throws Throwable {
go("/bpel/2.0/TestSimpleVariableType");
}
@Test
public void testXslTransform() throws Throwable {
go("/bpel/2.0/TestXslTransform");
}
@Test
public void testSplit() throws Throwable {
go("/bpel/2.0/TestSplit");
}
@Test
public void testCounter() throws Throwable {
go("/bpel/2.0/TestCounter");
}
|
| File |
|---|
| DataHandling20Test.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Class signature |
| Import |
| Method declaration |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
@Test
<<<<<<< HEAD
public void testAssignDate() throws Throwable {
go("/bpel/2.0/TestAssignDate");
}
@Test
public void testAssignDate2() throws Throwable {
go("/bpel/2.0/TestAssignDate2");
}
=======
public void testDate() throws Throwable {
go("/bpel/2.0/TestAssignDate");
}
@Test
public void testMsgDate() throws Throwable { |
| Solution content |
|---|
}
@Test
public void testDate() throws Throwable {
go("/bpel/2.0/TestAssignDate");
}
@Test
public void testMsgDate() throws Throwable { |
| File |
|---|
| DataHandling20Test.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
@Test public void testAssignMissingData() throws Throwable {
go("/bpel/2.0/TestAssignMissingData");
}
public void testMsgDate() throws Throwable {
go("/bpel/2.0/TestMsgDate");
}
<<<<<<< HEAD
@Test public void testDuration() throws Throwable {
go("/bpel/2.0/TestDuration");
}
@Test public void testXQueryExpression() throws Throwable {
go("/bpel/2.0/TestXQueryExpression");
}
//madars.vitolins _at gmail.com 2009.04.11
//Inline variable initialization test
@Test public void testInlineVarInit() throws Throwable {
go("/bpel/2.0/TestInlineVarInit");
=======
@Test
public void testDuration() throws Throwable {
go("/bpel/2.0/TestDuration");
}
@Test
public void testAssignMissingData() throws Throwable {
go("/bpel/2.0/TestAssignMissingData");
}
@Test
public void testXQueryExpression() throws Throwable {
go("/bpel/2.0/TestXQueryExpression");
}
@Test
public void testInsertMissingData() throws Throwable {
go("/bpel/2.0/TestInsertMissingData");
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
} |
| Solution content |
|---|
public void testMsgDate() throws Throwable {
go("/bpel/2.0/TestMsgDate");
}
@Test
public void testDuration() throws Throwable {
go("/bpel/2.0/TestDuration");
}
@Test
public void testAssignMissingData() throws Throwable {
go("/bpel/2.0/TestAssignMissingData");
}
@Test
public void testXQueryExpression() throws Throwable {
go("/bpel/2.0/TestXQueryExpression");
}
@Test
public void testInsertMissingData() throws Throwable {
go("/bpel/2.0/TestInsertMissingData");
}
} |
| File |
|---|
| DataHandling20Test.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Comment |
| Method declaration |
| Method invocation |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
import org.junit.Test;
public class MessageRouting20Test extends BPELTestAbstract {
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
@Test public void testCorrelation() throws Throwable {
go("/bpel/2.0/TestCorrelation");
} |
| Solution content |
|---|
import org.junit.Test;
public class MessageRouting20Test extends BPELTestAbstract {
@Test public void testCorrelation() throws Throwable {
go("/bpel/2.0/TestCorrelation");
} |
| File |
|---|
| MessageRouting20Test.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
go("/bpel/2.0/TestCorrelation1");
}
<<<<<<< HEAD
=======
@Test public void testCorrelationJoin() throws Throwable {
go("/bpel/2.0/TestCorrelationJoin");
}
@Test public void testCorrelationJoinReceive() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinReceive");
}
@Test public void testCorrelationJoinInvoke() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinInvoke");
}
@Test public void testCorrelationJoinOnMessage() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinOnMessage");
}
@Test public void testCorrelationJoinEvent() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinEvent");
}
@Test public void testCorrelationJoinReply() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinReply");
}
@Test public void testCorrelationMulti() throws Throwable {
go("/bpel/2.0/TestCorrelationMulti");
}
@Test public void testCorrelationMultiNegative() throws Throwable {
go("/bpel/2.0/TestCorrelationMultiNegative");
}
@Test public void testCorrelationMultiJoin() throws Throwable {
go("/bpel/2.0/TestCorrelationMultiJoin");
}
@Test public void testCorrelationMultiComplex() throws Throwable {
go("/bpel/2.0/TestCorrelationMultiComplex");
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
@Ignore("fix test bed for handling ASYNC mex") @Test public void testCorrelationOpaque() throws Throwable {
//TODO Fix me, we need to capture the session id to send it in the second test message
go("/bpel/2.0/TestCorrelationOpaque"); |
| Solution content |
|---|
go("/bpel/2.0/TestCorrelation1");
}
@Test public void testCorrelationJoin() throws Throwable {
go("/bpel/2.0/TestCorrelationJoin");
}
@Test public void testCorrelationJoinReceive() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinReceive");
}
@Test public void testCorrelationJoinInvoke() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinInvoke");
}
@Test public void testCorrelationJoinOnMessage() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinOnMessage");
}
@Test public void testCorrelationJoinEvent() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinEvent");
}
@Test public void testCorrelationJoinReply() throws Throwable {
go("/bpel/2.0/TestCorrelationJoinReply");
}
@Test public void testCorrelationMulti() throws Throwable {
go("/bpel/2.0/TestCorrelationMulti");
}
@Test public void testCorrelationMultiNegative() throws Throwable {
go("/bpel/2.0/TestCorrelationMultiNegative");
}
@Test public void testCorrelationMultiJoin() throws Throwable {
go("/bpel/2.0/TestCorrelationMultiJoin");
}
@Test public void testCorrelationMultiComplex() throws Throwable {
go("/bpel/2.0/TestCorrelationMultiComplex");
}
@Ignore("fix test bed for handling ASYNC mex") @Test public void testCorrelationOpaque() throws Throwable {
//TODO Fix me, we need to capture the session id to send it in the second test message
go("/bpel/2.0/TestCorrelationOpaque"); |
| File |
|---|
| MessageRouting20Test.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
* See JIRA ODE-64 * ======= * * See JIRA ODE-64 * * |
| Solution content |
|---|
* |
| File |
|---|
| MessageRouting20Test.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
<<<<<<< HEAD
*
* See JIRA ODE-61.
*
* compiler should throw an exception indicating
* the BPEL error ( verify with spec ) or at runtime
* a clear initialization exception should be thrown.
* The message exchange should return with a Fault/Failure.
*
=======
*
* See JIRA ODE-61.
*
* The message exchange should return with a Fault/Failure.
*
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
*/
// TODO fix the bug first
negative("target/test-classes/bpel/2.0/NegativeInitializationTest"); |
| Solution content |
|---|
* compiler should throw an exception indicating
* the BPEL error ( verify with spec ) or at runtime
* a clear initialization exception should be thrown.
*
* See JIRA ODE-61.
*
* The message exchange should return with a Fault/Failure.
*
*/
// TODO fix the bug first
negative("target/test-classes/bpel/2.0/NegativeInitializationTest"); |
| File |
|---|
| MessageRouting20Test.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Comment |
| Chunk |
|---|
| Conflicting content |
|---|
negative("target/test-classes/bpel/2.0/NegativeInitializationTest");
}
<<<<<<< HEAD
@Test public void testCorrelationUnique() throws Throwable {
go("/bpel/2.0/TestCorrelationUnique");
=======
@Test public void testConcurrentSyncMex() throws Throwable {
go("/bpel/2.0/TestConcurrentSyncMex");
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
@Test public void testIMA() throws Throwable { |
| Solution content |
|---|
negative("target/test-classes/bpel/2.0/NegativeInitializationTest");
}
@Test public void testConcurrentSyncMex() throws Throwable {
go("/bpel/2.0/TestConcurrentSyncMex");
}
@Test public void testIMA() throws Throwable { |
| File |
|---|
| MessageRouting20Test.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
// Test Flow with XPath10
go("/bpel/2.0/TestFlowActivity2");
}
<<<<<<< HEAD
@Test public void testFlowLinks() throws Throwable {
// Test Flow with XPath10
go("/bpel/2.0/TestFlowLinks");
}
@Test public void testIsolatedScopes1() throws Throwable {
// Test Flow with XPath10
go("/bpel/2.0/TestIsolatedScopes1");
}
@Ignore
@Test public void testForEach() throws Throwable {
go("/bpel/2.0/TestForEach");
}
@Test public void testPickOneWay() throws Throwable {
// Test Flow with XPath10
go("/bpel/2.0/TestPickOneWay");
}
@Override
protected int getMaximumWaitInMillis() {
return 120 * 1000;
}
=======
@Test public void testFlowLinks() throws Throwable {
// Test Flow with XPath10
go("/bpel/2.0/TestFlowLinks");
}
@Test public void testForEach() throws Throwable {
// Test Flow with XPath10
go("/bpel/2.0/TestForEach");
}
@Test public void testPickOneWay() throws Throwable {
// Test Flow with XPath10
go("/bpel/2.0/TestPickOneWay");
}
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
} |
| Solution content |
|---|
// Test Flow with XPath10
go("/bpel/2.0/TestFlowActivity2");
}
@Test public void testFlowLinks() throws Throwable {
// Test Flow with XPath10
go("/bpel/2.0/TestFlowLinks");
}
@Test public void testForEach() throws Throwable {
// Test Flow with XPath10
go("/bpel/2.0/TestForEach");
}
@Test public void testPickOneWay() throws Throwable {
// Test Flow with XPath10
go("/bpel/2.0/TestPickOneWay");
}
} |
| File |
|---|
| StructuredActivities20Test.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
import org.w3c.dom.NodeList;
import java.util.Map;
<<<<<<< HEAD
=======
import java.util.HashMap;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
/**
* Implementation of the ODE {@link org.apache.ode.bpel.iapi.EndpointReferenceContext} |
| Solution content |
|---|
import org.w3c.dom.NodeList;
import java.util.Map;
import java.util.HashMap;
/**
* Implementation of the ODE {@link org.apache.ode.bpel.iapi.EndpointReferenceContext} |
| File |
|---|
| EndpointReferenceContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
}
public Map getConfigLookup(EndpointReference epr) {
<<<<<<< HEAD
return ((MutableEndpoint)epr).toMap();
=======
Map m = new HashMap();
m.put("service", ((JbiEndpointReference)epr).getServiceEndpoint().getServiceName());
return m;
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
} |
| Solution content |
|---|
}
public Map getConfigLookup(EndpointReference epr) {
Map m = new HashMap();
m.put("service", ((JbiEndpointReference)epr).getServiceEndpoint().getServiceName());
return m;
}
} |
| File |
|---|
| EndpointReferenceContextImpl.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Return statement |
| Variable |
| Chunk |
|---|
| Conflicting content |
|---|
*
private OdeLifeCycle _lifeCycle;
public OdeComponent() {
<<<<<<< HEAD
_lifeCycle = new OdeLifeCycle();
}
public ComponentLifeCycle getLifeCycle() {
return _lifeCycle;
}
public ServiceUnitManager getServiceUnitManager() {
return _lifeCycle.getSUManager();
}
/**
*
* @param ref ServiceEndpoint object
*
* @return Descriptor Object implementing
* {@link javax.jbi.servicedesc.Descriptor} interface.
*/
public Document getServiceDescription(ServiceEndpoint ref) {
return _lifeCycle.getOdeContext().getServiceDescription(ref.getServiceName());
}
/**
* This method is called by JBI to check if this component, in the role of
* provider of the service indicated by the given exchange, can actually
* perform the operation desired. The consumer is described by the given
* capabilities, and JBI has already ensured that a fit exists between the set
* of required capabilities of the provider and the available capabilities of
* the consumer, and vice versa. This matching consists of simple set matching
* based on capability names only. |
| Solution content |
|---|
private OdeLifeCycle _lifeCycle;
public OdeComponent() {
this(new OdeLifeCycle());
}
public OdeComponent(OdeLifeCycle lifeCycle) {
_lifeCycle = lifeCycle;
}
public ComponentLifeCycle getLifeCycle() {
return _lifeCycle;
}
public ServiceUnitManager getServiceUnitManager() {
return _lifeCycle.getSUManager();
}
/**
*
* @param ref ServiceEndpoint object
*
* @return Descriptor Object implementing
* {@link javax.jbi.servicedesc.Descriptor} interface.
*/
public Document getServiceDescription(ServiceEndpoint ref) {
return _lifeCycle.getOdeContext().getServiceDescription(ref.getServiceName());
}
/** |
| File |
|---|
| OdeComponent.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| Method declaration |
| Method invocation |
| Method signature |
| Return statement |
| Chunk |
|---|
| Conflicting content |
|---|
/**
* This method is called by JBI to check if this component, in the role of
<<<<<<< HEAD
* consumer of the service indicated by the given exchange, can actually
* interact with the the provider completely. Ths provider is described by the
* given capabilities, and JBI has already ensure that a fit exists between
* the set of required capabilities of the consumer and the available
* capabilities of the provider, and vice versa. This matching consists of
* simple set matching based on capability names only. |
| Solution content |
|---|
/**
* This method is called by JBI to check if this component, in the role of
* provider of the service indicated by the given exchange, can actually
* perform the operation desired. The consumer is described by the given
* capabilities, and JBI has already ensured that a fit exists between the set
* of required capabilities of the provider and the available capabilities of
* the consumer, and vice versa. This matching consists of simple set matching
* based on capability names only. |
| File |
|---|
| OdeComponent.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method signature |
| Chunk |
|---|
| Conflicting content |
|---|
}
/**
<<<<<<< HEAD
=======
* This method is called by JBI to check if this component, in the role of
* consumer of the service indicated by the given exchange, can actually
* interact with the the provider completely. Ths provider is described by the
* given capabilities, and JBI has already ensure that a fit exists between
* the set of required capabilities of the consumer and the available
* capabilities of the provider, and vice versa. This matching consists of
* simple set matching based on capability names only. |
| Solution content |
|---|
}
/**
* This method is called by JBI to check if this component, in the role of
* consumer of the service indicated by the given exchange, can actually
* interact with the the provider completely. Ths provider is described by the
* given capabilities, and JBI has already ensure that a fit exists between
* the set of required capabilities of the consumer and the available
* capabilities of the provider, and vice versa. This matching consists of
* simple set matching based on capability names only. |
| File |
|---|
| OdeComponent.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Comment |
| Method declaration |
| Chunk |
|---|
| Conflicting content |
|---|
<<<<<<< HEAD
=======
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
// We are an engine, so we don't have to worry about this.
return null;
} |
| Solution content |
|---|
// We are an engine, so we don't have to worry about this.
return null;
}
} |
| File |
|---|
| OdeComponent.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Blank |
| Chunk |
|---|
| Conflicting content |
|---|
NormalizedMessage nmsg = inonly.createMessage();
mapper.toNMS(nmsg, odeMex.getRequest(), odeMex.getOperation().getInput().getMessage(), null);
inonly.setInMessage(nmsg);
<<<<<<< HEAD
doSendJBI(odeMex, inonly);
=======
copyMexProperties(jbiMex, odeMex);
_ode._scheduler.registerSynchronizer(new Scheduler.Synchronizer() {
public void afterCompletion(boolean success) {
if (success) {
doSendOneWay(odeMex, inonly);
}
}
public void beforeCompletion() {
}
});
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
odeMex.replyOneWayOk();
} else {
final InOut inout = (InOut) jbiMex; |
| Solution content |
|---|
NormalizedMessage nmsg = inonly.createMessage();
mapper.toNMS(nmsg, odeMex.getRequest(), odeMex.getOperation().getInput().getMessage(), null);
inonly.setInMessage(nmsg);
copyMexProperties(jbiMex, odeMex);
_ode._scheduler.registerSynchronizer(new Scheduler.Synchronizer() {
public void afterCompletion(boolean success) {
if (success) {
doSendOneWay(odeMex, inonly);
}
}
public void beforeCompletion() {
}
});
odeMex.replyOneWayOk();
} else {
final InOut inout = (InOut) jbiMex; |
| File |
|---|
| OdeConsumer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
NormalizedMessage nmsg = inout.createMessage();
mapper.toNMS(nmsg, odeMex.getRequest(), odeMex.getOperation().getInput().getMessage(), null);
inout.setInMessage(nmsg);
<<<<<<< HEAD
doSendJBI(odeMex, inout);
odeMex.replyAsync(inout.getExchangeId());
=======
copyMexProperties(jbiMex, odeMex);
_ode._scheduler.registerSynchronizer(new Scheduler.Synchronizer() {
public void afterCompletion(boolean success) {
if (success) {
doSendTwoWay(odeMex, inout);
}
}
public void beforeCompletion() {
}
});
odeMex.replyAsync();
>>>>>>> 90d713417eb2cbf0b8f4ec83ebec5043d33aed4a
}
} catch (MessagingException me) {
String errmsg = "JBI messaging error for ODE MEX " + odeMex; |
| Solution content |
|---|
NormalizedMessage nmsg = inout.createMessage();
mapper.toNMS(nmsg, odeMex.getRequest(), odeMex.getOperation().getInput().getMessage(), null);
inout.setInMessage(nmsg);
copyMexProperties(jbiMex, odeMex);
_ode._scheduler.registerSynchronizer(new Scheduler.Synchronizer() {
public void afterCompletion(boolean success) {
if (success) {
doSendTwoWay(odeMex, inout);
}
}
public void beforeCompletion() {
}
});
odeMex.replyAsync();
}
} catch (MessagingException me) {
String errmsg = "JBI messaging error for ODE MEX " + odeMex; |
| File |
|---|
| OdeConsumer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
__log.warn("Received a response for unknown partner role message exchange " + jbiMex.getExchangeId());
return;
}
<<<<<<< HEAD
String mapperName = pmex.getProperty(Mapper.class.getName());
Mapper mapper = mapperName == null ? _ode.getDefaultMapper() : _ode.getMapper(mapperName);
if (mapper == null) {
String errmsg = "Mapper not found.";
__log.error(errmsg);
pmex.replyWithFailure(FailureType.FORMAT_ERROR, errmsg, null);
} else {
try {
Fault jbiFlt = jbiMex.getFault();
if (jbiFlt != null) {
javax.wsdl.Fault wsdlFlt = mapper.toFaultType(jbiFlt, (Collection |