How to handle ERXAttachmentExceedsLengthException in ERAttachmentUpload
How to handle ERXAttachmentExceedsLengthException in ERAttachmentUpload
- Subject: How to handle ERXAttachmentExceedsLengthException in ERAttachmentUpload
- From: Christoph Wick <email@hidden>
- Date: Fri, 01 Feb 2013 13:32:20 +0100
Hi List,
the ERAttachmentUpload component throws an ERXAttachmentExceedsLengthException in its invokeAction method, if the length of the attachment is bigger then the configured value (which is perfect so far). Stacktrace below, no Ajax.
How do I handle this exception? Can I catch it somewhere? At the moment it is caught in my Application's handleException(Exception anException, WOContext context) method, but that's too general.
Thanks for your help,
C.U.CW
--
Christoph Wick - Diplom Informatiker, Managing Director
i4innovation GmbH, Professor-Neu-Allee 39, 53225 Bonn, Germany
T +49 2 28 28 62 97 93
M +49 1 51 22 65 78 90
F +49 2 28 28 62 97 99
M email@hidden
W www.i4innovation.de
Geschäftsführer: Thomas Heep, Christoph Wick
Sitz der Gesellschaft: Bonn | Amtsgericht Bonn HRB 18548 | USt-IdNr.: DE276502600
> An exception of type "er.attachment.processors.ERAttachmentProcessor$ERXAttachmentExceedsLengthException" with message The attachment <b>TestDoc.docx</b> exceeds the maximum attachment size of <b>10485760 bytes</b>." raised on instance -1.
>
> Stacktrace is:
>
> er.attachment.processors.ERAttachmentProcessor.process (ERAttachmentProcessor.java: 307)
> er.attachment.processors.ERAttachmentProcessor.process (ERAttachmentProcessor.java: 282)
> er.attachment.components.ERAttachmentUpload._uploadSucceeded (ERAttachmentUpload.java: 177)
> er.attachment.components.ERAttachmentUpload.invokeAction (ERAttachmentUpload.java: 106)
> com.webobjects.appserver._private.WOComponentReference.invokeAction (WOComponentReference.java: 127)
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction (WODynamicGroup.java: 105)
> com.webobjects.appserver._private.WODynamicGroup.invokeAction (WODynamicGroup.java: 115)
> er.extensions.components._private.ERXWOForm.invokeAction (ERXWOForm.java: 218)
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction (WODynamicGroup.java: 105)
> com.webobjects.appserver._private.WOGenericContainer.invokeAction (WOGenericContainer.java: 29)
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction (WODynamicGroup.java: 105)
> com.webobjects.appserver._private.WODynamicGroup.invokeAction (WODynamicGroup.java: 115)
> com.webobjects.appserver.WOComponent.invokeAction (WOComponent.java: 1079)
> er.extensions.components.ERXComponent.invokeAction (ERXComponent.java: 102)
> com.webobjects.appserver._private.WOComponentReference.invokeAction (WOComponentReference.java: 127)
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction (WODynamicGroup.java: 105)
> com.webobjects.appserver._private.WODynamicGroup.invokeAction (WODynamicGroup.java: 115)
> com.webobjects.appserver._private.WOComponentContent.invokeAction (WOComponentContent.java: 38)
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction (WODynamicGroup.java: 105)
> com.webobjects.appserver._private.WODynamicGroup.invokeAction (WODynamicGroup.java: 115)
> com.webobjects.appserver._private.WOComponentContent.invokeAction (WOComponentContent.java: 38)
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction (WODynamicGroup.java: 105)
> com.webobjects.appserver._private.WODynamicGroup.invokeAction (WODynamicGroup.java: 115)
> com.webobjects.appserver.WOComponent.invokeAction (WOComponent.java: 1079)
> er.extensions.components.ERXComponent.invokeAction (ERXComponent.java: 102)
> com.webobjects.appserver._private.WOComponentReference.invokeAction (WOComponentReference.java: 127)
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction (WODynamicGroup.java: 105)
> com.webobjects.appserver._private.WODynamicGroup.invokeAction (WODynamicGroup.java: 115)
> com.webobjects.appserver.WOComponent.invokeAction (WOComponent.java: 1079)
> er.extensions.components.ERXComponent.invokeAction (ERXComponent.java: 102)
> com.webobjects.appserver._private.WOComponentReference.invokeAction (WOComponentReference.java: 127)
> com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction (WODynamicGroup.java: 105)
> com.webobjects.appserver._private.WODynamicGroup.invokeAction (WODynamicGroup.java: 115)
> com.webobjects.appserver.WOComponent.invokeAction (WOComponent.java: 1079)
> er.extensions.components.ERXComponent.invokeAction (ERXComponent.java: 102)
> com.webobjects.appserver.WOSession.invokeAction (WOSession.java: 1357)
> com.webobjects.appserver.WOApplication.invokeAction (WOApplication.java: 1745)
> er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction (ERXAjaxApplication.java: 95)
> er.extensions.appserver.ERXApplication.invokeAction (ERXApplication.java: 1963)
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage (WOComponentRequestHandler.java: 206)
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession (WOComponentRequestHandler.java: 298)
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication (WOComponentRequestHandler.java: 332)
> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest (WOComponentRequestHandler.java: 369)
> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest (WOComponentRequestHandler.java: 445)
> com.webobjects.appserver.WOApplication.dispatchRequest (WOApplication.java: 1687)
> er.extensions.appserver.ERXApplication.dispatchRequestImmediately (ERXApplication.java: 2085)
> er.extensions.appserver.ERXApplication.dispatchRequest (ERXApplication.java: 2050)
> com.webobjects.appserver._private.WOWorkerThread.runOnce (WOWorkerThread.java: 144)
> com.webobjects.appserver._private.WOWorkerThread.run (WOWorkerThread.java: 226)
> java.lang.Thread.run (Thread.java: 680)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden