diff options
author | wjaniszewski <wjaniszewski@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-18 15:59:08 +0000 |
---|---|---|
committer | wjaniszewski <wjaniszewski@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-18 15:59:08 +0000 |
commit | 1ed4ff32332c595ae417e03f59092bda5da119b0 (patch) | |
tree | d33ef6b73af659fbeafe52b321d29ee589bd27f4 /java/sca/modules/binding-sca-corba | |
parent | b58a361da80d48a7b59cdbe45c08b5fbe73edcd8 (diff) |
Some code cleanups
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@686803 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-sca-corba')
-rw-r--r-- | java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvocationProxy.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvocationProxy.java b/java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvocationProxy.java index 361f4ba42a..40f55ddb71 100644 --- a/java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvocationProxy.java +++ b/java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAInvocationProxy.java @@ -22,6 +22,8 @@ package org.apache.tuscany.sca.binding.sca.corba.impl; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; import javax.xml.stream.XMLStreamException; @@ -45,6 +47,7 @@ import org.apache.tuscany.sca.runtime.RuntimeWire; */ public class CorbaSCAInvocationProxy implements InvocationProxy { + private static final Logger logger = Logger.getLogger(CorbaSCAInvocationProxy.class.getName()); private RuntimeWire wire; private Interface componentInterface; private OperationTypes types = new OperationTypes(); @@ -85,17 +88,15 @@ public class CorbaSCAInvocationProxy implements InvocationProxy { return omResult.toStringWithConsume(); } } catch (XMLStreamException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + logger.log(Level.WARNING, "XMLStreamException during handling invocation target exception", e); } catch (InvocationTargetException e) { OMElement omException = (OMElement)((FaultException)e.getCause()).getFaultInfo(); try { WrappedSCAException wrappedException = new WrappedSCAException(omException.toStringWithConsume()); InvocationException exception = new InvocationException(wrappedException); throw exception; - } catch (XMLStreamException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); + } catch (XMLStreamException xmle) { + logger.log(Level.WARNING, "XMLStreamException during handling invocation target exception", xmle); } } |