@@ -94,7 +94,6 @@ public static Map<String, String> decodeCompressedText(InputStream stream) {
94
94
throw new RuntimeException ("PNGImageDecoder0" );
95
95
}
96
96
} catch (Exception e ) {
97
- e .printStackTrace ();
98
97
throw new RuntimeException ("PNGImageDecoder1" );
99
98
}
100
99
@@ -120,14 +119,14 @@ public static Map<String, String> decodeCompressedText(InputStream stream) {
120
119
String value = URLDecoder .decode (Utils .inflate (bytes ), Utils .CHARSET_FOR_URL_ENCODING );
121
120
result .put (key , value );
122
121
} catch (Exception e ) {
123
- log .error ("" , e );
122
+ log .info ("" , e );
124
123
}
125
124
// No need to parse the rest of the PNG
126
125
return result ;
127
126
}
128
127
}
129
128
} catch (Exception e ) {
130
- e . printStackTrace ( );
129
+ log . info ( "" , e );
131
130
}
132
131
133
132
return null ;
@@ -137,10 +136,8 @@ public static Map<String, String> decodeCompressedText(InputStream stream) {
137
136
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
138
137
*/
139
138
@ Override
140
- protected void doPost (HttpServletRequest request ,
141
- HttpServletResponse response ) throws ServletException , IOException {
139
+ protected void doPost (HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException {
142
140
PrintWriter writer = response .getWriter ();
143
-
144
141
try {
145
142
if (request .getContentLength () < Constants .MAX_REQUEST_SIZE ) {
146
143
String filename = "" ;
@@ -235,10 +232,8 @@ protected void doPost(HttpServletRequest request,
235
232
writeScript (writer ,
236
233
"window.parent.alert('Out of memory');" );
237
234
} catch (Exception e ) {
238
- log .error ("" , e );
239
235
response .setStatus (HttpServletResponse .SC_INTERNAL_SERVER_ERROR );
240
- writeScript (writer ,
241
- "window.parent.alert(JSON.stringify(window.parent.mxResources.get('invalidOrMissingFile')));" );
236
+ writeScript (writer , "window.parent.alert(JSON.stringify(window.parent.mxResources.get('invalidOrMissingFile')));" );
242
237
}
243
238
244
239
writer .flush ();
0 commit comments