summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-07-02 15:18:06 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-07-02 15:18:06 +0000
commit328a76a48a22d68eb7052a2c62391e7b333fb61c (patch)
tree0bd2b836b7d374ecca25ee345e12f32d43154d5a /java/sca
parent99fe502007e6118444072fab9686d9bbff4743e9 (diff)
Removing debug message to avoid NPE when response is FAULT
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@790622 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r--java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java3
-rw-r--r--java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELInvoker.java9
2 files changed, 3 insertions, 9 deletions
diff --git a/java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java b/java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java
index a0d1848c5b..1069015963 100644
--- a/java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java
+++ b/java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java
@@ -138,8 +138,9 @@ public class EmbeddedODEServer {
// TODO - provide a system property / environment variable to set the path to the DB
URL dbLocation = getClass().getClassLoader().getResource("jpadb");
- if (dbLocation == null)
+ if (dbLocation == null) {
throw new ODEInitializationException("Couldn't find database in the classpath");
+ }
// Handle OSGI bundle case
if( dbLocation.getProtocol() == "bundleresource" ) {
try {
diff --git a/java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELInvoker.java b/java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELInvoker.java
index 982f567824..2562d6b52b 100644
--- a/java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELInvoker.java
+++ b/java/sca/modules/implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELInvoker.java
@@ -158,13 +158,6 @@ public class BPELInvoker implements Invoker {
Status status = mex.getStatus();
- if (__log.isDebugEnabled()) {
- Element invocationResponse = mex.getResponse().getMessage();
- __log.debug(">>>Invocation status:" + status.name());
- __log.debug(">>>Response:\n" + DOMUtils.domToString(invocationResponse));
- __log.debug(">>>Response:\n" + DOMUtils.domToString(invocationResponse));
- } // end if
-
switch (status) {
case FAULT:
if (__log.isDebugEnabled())
@@ -184,7 +177,7 @@ public class BPELInvoker implements Invoker {
__log.debug("Failure response message: " + mex.getFault());
break;
default:
- throw new ODEInvocationException("FAILURE received from BPEL process : " + mex.getFault());
+ throw new ODEInvocationException("FAILURE received from BPEL process : " + mex.getStatus() + " - " + mex.getFault());
} // end switch
txMgr.commit();