Exception occured before FW/1 was initialized

177 views
Skip to first unread message

mpa...@empowersis.com

unread,
May 17, 2013, 1:28:32 PM5/17/13
to framew...@googlegroups.com
Strange issue.

Moving code that works on localhost to Development yeilds the content of 

EG
component { /* Copyright (c) 2009-2012, Sean Corfield, Ryan Cogswell Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. framework-one-fw1-v2.1.1-0-g54dd08f */ this.name = hash( getBaseTemplatePath() ); if ( len( getContextRoot() ) ) { variables.cgiScriptName = replace( CGI.SCRIPT_NAME, getContextRoot(), '' ); variables.cgiPathInfo = replace( CGI.PATH_INFO, getContextRoot(), '' ); } else { variables.cgiScriptName = CGI.SCRIPT_NAME; variables.cgiPathInfo = CGI.PATH_INFO; } request._fw1 = { cgiScriptName = CGI.SCRIPT_NAME, cgiRequestMethod = CGI.REQUEST_METHOD, controllers = [ ], requestDefaultsInitialized = false, services = [ ], trace = [ ] }; // do not rely on these, they are meant to be true magic... variables.magicApplicationSubsystem = ']['; variables.magicApplicationController = '[]'; variables.magicApplicationAction = '__'; variables.magicBaseURL = '-[]-'; public void function abortController() { request._fw1.abortController = true; frameworkTrace( 'abortController() called' ); throw( type='FW1.AbortControllerException', message='abortController() called' ); } public boolean function actionSpecifiesSubsystem( string action ) { if ( !usingSubsystems() ) { return false; } return listLen( action, variables.framework.subsystemDelimiter ) > 1 || right( action, 1 ) == variables.framework.subsystemDelimiter; } public void function addRoute( any routes, string target, any methods = [ ], string statusCode = '' ) { if ( !isArray( routes ) ) 
.....

Exception occured before FW/1 was initialized

'); } else { writeOutput( '' & ( indirect ? 'Original exception ' : 'Exception' ) & ' in #event#' ); if ( structKeyExists( request, 'failedAction' ) ) { writeOutput( '

The action #request.failedAction# failed.

' ); } writeOutput( '#exception.message#' ); } writeOutput( '

#exception.detail# (#exception.type#)

' ); dumpException(exception); } private struct function findImplicitAndExplicitSetters( any cfc ) { var baseMetadata = getMetadata( cfc ); var setters = { }; // is it already attached to the CFC metadata? if ( structKeyExists( baseMetadata, '__fw1_setters' ) ) { setters = baseMetadata.__fw1_setters; } else { var md = { extends = baseMetadata }; do { md = md.extends; var implicitSetters = false; // we have implicit setters if: accessors="true" or persistent="true" if ( structKeyExists( md, 'persistent' ) && isBoolean( md.persistent ) ) { implicitSetters = md.persistent; } if ( structKeyExists( md, 'accessors' ) && isBoolean( md.accessors ) ) { implicitSetters = implicitSetters || md.accessors; } if ( structKeyExists( md, 'properties' ) ) { // due to a bug in ACF9.0.1, we cannot use var property in md.properties, // instead we must use an explicit loop index... ugh! var n = arrayLen( md.properties ); for ( var i = 1; i <= n; ++i ) { var property = md.properties[ i ]; if ( implicitSetters || structKeyExists( property, 'setter' ) && isBoolean( property.setter ) && property.setter ) { setters[ property.name ] = 'implicit'; } } } } while ( structKeyExists( md, 'extends' ) ); // cache it in the metadata (note: in Railo 3.2 metadata cannot be modified // which is why we return the local setters structure - it has to be built // on every controller call; fixed in Railo 3.3) baseMetadata.__fw1_setters = setters; } // gather up explicit setters as well for ( var member in cfc ) { var method = cfc[ member ]; var n = len( member ); if ( isCustomFunction( method ) && left( member, 3 ) == 'set' && n > 3 ) { var property = right( member, n - 3 ); setters[ property ] = 'explicit'; } } return setters; } private void function frameworkTrace( string message, string subsystem = '', string section = '', string item = '' ) { if ( variables.framework.trace ) { if ( isDefined( 'session._fw1_trace' ) && structKeyExists( session, '_fw1_trace' ) ) { request._fw1.trace = session._fw1_trace; structDelete( session, '_fw1_trace' ); } arrayAppend( request._fw1.trace, { tick = getTickCount(), msg = message, sub = subsystem, s = section, i = item } ); } } private void function frameworkTraceRender() { if ( variables.framework.trace && arrayLen( request._fw1.trace ) ) { var startTime = request._fw1.trace[1].tick; var font = 'font-family: verdana, helvetica;'; writeOutput( '

.....

HELP.. I have no ideas

mpa...@empowersis.com

unread,
May 17, 2013, 1:59:35 PM5/17/13
to framew...@googlegroups.com
LocalHost is CF 10

Development server is CF 8.

So at least, I found this source of issue.  Any suggestions on the CF8 server configuration that I can change to make this work?  not an admin

THanks

Jim Priest

unread,
May 17, 2013, 2:18:06 PM5/17/13
to framew...@googlegroups.com
I need to add this to the wiki - it's on RIAForge:

v2.1 supports:

* ColdFusion 9.0.1 or later
* Railo 3.2.2 or later (Railo 3.3 or later is recommended)

v1.2.1 supports:

* ColdFusion 8.0.1 / 9.0.
* Railo 3.1.x
* OpenBD 1.2 nightly build 11/30 or later! ** note: user manager
example will not run on OpenBD **
> --
> --
> FW/1 on RIAForge: http://fw1.riaforge.org/
>
> FW/1 on github: http://github.com/seancorfield/fw1
>
> FW/1 on Google Groups: http://groups.google.com/group/framework-one
>
> ---
> You received this message because you are subscribed to the Google Groups "framework-one" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to framework-on...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Sean Corfield

unread,
May 17, 2013, 3:18:56 PM5/17/13
to framew...@googlegroups.com
Thanx for updating the wiki. The system reqs are listed on
fw1.riaforge.org and I recently bloggëd about how to download old
versions of FW/1 so you can run it on older releases.

Sean
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
Reply all
Reply to author
Forward
0 new messages