Project

General

Profile

« Previous | Next » 

Revision 3731

Added by Jing Tao over 16 years ago

Add debug info for special charater.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
1859 1859
                nodename = rs.getString(5);
1860 1860
                nodeprefix = rs.getString(6);
1861 1861
                nodedata = rs.getString(7);
1862
                logMetacat.debug("Node data in read process before normalize=== "+nodedata);
1862 1863
                nodedata = MetaCatUtil.normalize(nodedata);
1864
                logMetacat.debug("Node data in read process after normalize==== "+nodedata);
1863 1865
                nodedatanumerical = rs.getFloat(8);
1864 1866

  
1865 1867
                // add the data to the node record list hashtable
......
1961 1963
                nodedata = rs.getString(7);
1962 1964
                try
1963 1965
                {
1966
                	logMetacat.debug("Node data in read process before normalize=== "+nodedata);
1964 1967
                	nodedata = MetaCatUtil.normalize(nodedata);
1968
                	logMetacat.debug("Node data in read process after normalize==== "+nodedata);
1965 1969
                } catch (java.lang.StringIndexOutOfBoundsException SIO){
1966 1970
                	logMetacat.warn("StringIndexOutOfBoundsException in normalize() while reading the document");
1967 1971
                }
src/edu/ucsb/nceas/metacat/DBSAXHandler.java
778 778
        String data = null;
779 779

  
780 780
        String normalizedData = strBuffer.toString();
781
        strBuffer = new StringBuffer(MetaCatUtil.normalize(normalizedData));
781
        logMetacat.debug("Before normailize in write process === "+normalizedData);
782
        String afterNormalize = MetaCatUtil.normalize(normalizedData);
783
        logMetacat.debug("After normailize in write process === "+afterNormalize);
784
        strBuffer = new StringBuffer(afterNormalize);;
782 785

  
783 786
        int bufferSize = strBuffer.length();
784 787
        int start = 0;

Also available in: Unified diff