OK, it seems my problem was not with the OutputStream but rather with the
autosize feature. Just before writing to the workbook I autosize all the
columns:
for (int j=0; j< fields.length;j++) {
s.autoSizeColumn((short)j); //adjust width of this column
}
Locally this works but with the reverse proxy this causes a
java.lang.NoClassDefFoundError:
270 Exception: java.lang.NoClassDefFoundError
271 Stack Trace follows:
272 java.lang.NoClassDefFoundError
273 at java.lang.Class.forName0(Native Method)
274 at java.lang.Class.forName(Class.java:141)
275 at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:62)
276 at java.awt.Font.initializeFont(Font.java:308)
277 at java.awt.Font.initFromMap(Font.java:413)
278 at java.awt.Font.(Font.java:374)
279 at java.awt.Font.get(Font.java:447)
280 at java.awt.Font.getFont(Font.java:432)
281 at
java.awt.font.TextLayout.singleFont(TextLayout.java:544)
282 at java.awt.font.TextLayout.(TextLayout.java:606)
283 at
org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1415)
This may be because it cannot find a local graphics environment when reverse
proxied. Is there a workaround?
Thanks,
Bruce
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]