FYI, I've added additional information to the exception message in the 
1.8 branch.

Teaman said the following on 06/22/2009 07:59 PM:
> I'm stumped on a m-ii error that isn't telling me enough info to go on
> to figure out where the error in my code is.
> The error msg:
> Event-handler for event 'processUploadDoc', module '' is not
> accessible.
>
> I look in the .xml file nad it's defined.  It is:
>               <event-handler event="processUploadDoc" access="private">
>                       <notify listener="documentListener" 
> method="uploadDocument" />
>               </event-handler>
>
> Listeners are:
>       <listeners>
>               <listener name="SecurityListener" type="listeners.users" />
>               <listener name="contentListener" type="listeners.content" />
>               <listener name="pageListener" type="listeners.pageListener" />
>               <listener name="documentListener" 
> type="listeners.documentListener" /
>   
>       </listeners>
>
> The function uploadDocument is defined in "documentListener.cfc" file.
>
>       <cffunction name="uploadDocument" output="false" access="public"
> returntype="void" hint="returns true when a document successfully
> uploaded to the server">
>               <cfargument name="event" type="MachII.framework.Event"
> required="true" />
>
>               <cfscript>
>               var validator = CreateObject("component",
> "model.documentValidator").init( DSN = getProperty("dsn"),
> formVariables = Arguments.event.getArgs() );
>
>               if ( Arguments.event.isArgDefined("btnUpload") ) {
>                       validator.getUploadErrors();
>               } else {
>                       validator.getSelectErrors();
>               }
>
>               if( validator.isValid() ) {
>                       try {
>                               //getCustomerService().addCustomer
> ( validator.getValidCustomerObject() );
>                               documentGateway.uploadDocument(event);
>                       }
>                       catch( ValidationError error ) {
>                               Arguments.event.setArg("arrDatabaseErrors", 
> "got an error during
> file upload");
>                       }
>               } else {
>                       Arguments.event.setArg("arrValidationErrors", 
> validator.Errors());
>               }
>               announceEvent("uploadDoc", Arguments.event.getArgs());
>               </cfscript>
>       </cffunction>
>
> Any ideas where this error is pointing? I need a file and line number
> from the framework. Usually it provides but now it's pointing to a
> line in the framework. Not very helpful.
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to