From: Dave B. <bla...@us...> - 2013-08-20 12:30:38
|
Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/wbem In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13474/src/org/sblim/cimclient/internal/wbem Modified Files: WBEMClientCIMXML.java Log Message: 2651 IOException when tracing the cimxml Index: WBEMClientCIMXML.java =================================================================== RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/wbem/WBEMClientCIMXML.java,v retrieving revision 1.82 retrieving revision 1.83 diff -u -d -r1.82 -r1.83 --- WBEMClientCIMXML.java 9 Mar 2013 12:29:56 -0000 1.82 +++ WBEMClientCIMXML.java 20 Aug 2013 12:30:35 -0000 1.83 @@ -72,12 +72,12 @@ * 3601894 2013-01-23 blaschke-oss Enhance HTTP and CIM-XML tracing * 2614 2013-02-21 blaschke-oss Remove redundant code in transmitRequest * 2616 2013-02-23 blaschke-oss Add new API WBEMClientSBLIM.sendIndication() + * 2651 2013-07-31 blaschke-oss IOException when tracing the cimxml */ package org.sblim.cimclient.internal.wbem; import java.io.ByteArrayOutputStream; import java.io.File; -import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; @@ -163,8 +163,6 @@ private final WBEMConfiguration iConfiguration = new WBEMConfiguration(new Properties()); - private FileOutputStream iCimXmlTraceFile = null; - private Locale[] iLocales; // final private HttpClientPool iHttpClientPool; // final @@ -255,27 +253,6 @@ throw new RuntimeException(e); } - if (this.iConfiguration.isCimXmlTracingEnabled() - && LogAndTraceBroker.getBroker().getXmlTraceStream() == null) { - String filename = this.iConfiguration.getCimXmlTraceStream(); - if (filename != null && filename.length() > 0) { - if (filename.equalsIgnoreCase("System.out")) { - LogAndTraceBroker.getBroker().setXmlTraceStream(System.out); - } else if (filename.equalsIgnoreCase("System.err")) { - LogAndTraceBroker.getBroker().setXmlTraceStream(System.err); - } else { - try { - this.iCimXmlTraceFile = new FileOutputStream(filename); - LogAndTraceBroker.getBroker().setXmlTraceStream(this.iCimXmlTraceFile); - } catch (IOException e) { - logger.trace(Level.FINE, "Unable to open " - + WBEMConfigurationProperties.CIMXML_TRACE_STREAM + "=" - + filename, e); - } - } - } - } - this.iInitialized = true; } finally { @@ -629,11 +606,6 @@ if (this.iHttpClientPool != null) { this.iHttpClientPool.closePool(); } - if (this.iCimXmlTraceFile != null) { - this.iCimXmlTraceFile.close(); - } - } catch (IOException e) { - // Ignore CIM-XML trace file exception } finally { this.iClosed = true; logger.exit(); |