Modify

Ticket #96 (new defect)

Opened 3 years ago

Last modified 10 months ago

Error logging in first time

Reported by: steve@… Owned by: mattwoodward
Priority: blocker Component: General Functionality
Version: Keywords: login exception
Cc: Blocked By:
Blocking: Time planned: 1d
Time remaining: 1d Time spent: 1d
Estimated Number of Hours: 0 Add Hours to Ticket: 0
Billable?: yes Total Hours: 0

Description

I'm sorry in advance if this has already been addressed or if I just pooched it. I searched the tickets and did not find an reference. Anyway...

I installed Mach-ii v1.6, ColdSpring? v1.2 and MachBlog? v1.1, setup the database and datasource, and adjusted the dsn and dbtype accordingly in the properties.xml.cfm.

I then run it and it seems to be working until I login. When I attempt to login using the default admin values I receive the following:

Exception – MachBlog? Main Event processLoginAttempt

Message The USER argument passed to the setUser function is not of type machblog.org.machblog.user.User.

Detail If the component name is specified as a type of this argument, its possible that a definition file for the component cannot be found or is not accessible.

Extended Info

Tag Context C:\MachBlog?\branches\1.1\org\machblog\facades\UserFacade?.cfc (58) C:\MachBlog?\branches\1.1\org\machblog\security\LoginGateway_MSSQL.cfc (89) C:\MachBlog?\branches\1.1\org\machblog\security\LoginService?.cfc (62) C:\MachBlog?\branches\1.1\org\machblog\listeners\LoginListener?.cfc (54) C:\MachII\framework\invokers\EventInvoker?.cfc (67) C:\MachII\framework\commands\NotifyCommand?.cfc (68) C:\MachII\framework\EventHandler?.cfc (62) C:\MachII\framework\RequestHandler?.cfc (328) C:\MachII\framework\RequestHandler?.cfc (276) C:\MachII\framework\RequestHandler?.cfc (217) C:\MachII\framework\RequestHandler?.cfc (147) C:\MachII\mach-ii.cfc (153) C:\MachBlog?\branches\1.1\Application.cfc (84)

Caught Exception struct Detail If the component name is specified as a type of this argument, its possible that a definition file for the component cannot be found or is not accessible. Message The USER argument passed to the setUser function is not of type machblog.org.machblog.user.User.

StackTrace? coldfusion.runtime.UDFMethod$InvalidArgumentTypeException?: The USER argument passed to the setUser function is not of type machblog.org.machblog.user.User. at coldfusion.runtime.UDFMethod._validateArg(UDFMethod.java:793) at coldfusion.runtime.UDFMethod._validateArg(UDFMethod.java:802) at cfUserFacade2ecfc798867013$funcSETUSER.runFunction(C:\MachBlog?\branches\1.1\org\machblog\facades\UserFacade?.cfc:58) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418) at coldfusion.filter.SilentFilter?.invoke(SilentFilter?.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter?.invoke...

TagContext? array

1 struct COLUMN 0 ID CF_UDFMETHOD LINE 58 RAW_TRACE at cfUserFacade2ecfc798867013$funcSETUSER.runFunction(C:\MachBlog?\branches\1.1\org\machblog\facades\UserFacade?.cfc:58) TEMPLATE C:\MachBlog?\branches\1.1\org\machblog\facades\UserFacade?.cfc TYPE CFML

2 struct COLUMN 0 ID CF_TEMPLATEPROXY LINE 89 RAW_TRACE at cfLoginGateway_MSSQL2ecfc1341066959$funcVALIDATELOGIN.runFunction(C:\MachBlog?\branches\1.1\org\machblog\security\LoginGateway_MSSQL.cfc:89) TEMPLATE C:\MachBlog?\branches\1.1\org\machblog\security\LoginGateway_MSSQL.cfc TYPE CFML

3 struct COLUMN 0 ID CF_TEMPLATEPROXY LINE 62 RAW_TRACE at cfLoginService2ecfc722661816$funcVALIDATELOGIN.runFunction(C:\MachBlog?\branches\1.1\org\machblog\security\LoginService?.cfc:62) TEMPLATE C:\MachBlog?\branches\1.1\org\machblog\security\LoginService?.cfc TYPE CFML

4 struct COLUMN 0 ID CF_TEMPLATEPROXY LINE 54 RAW_TRACE at cfLoginListener2ecfc17039375$funcPROCESSLOGINATTEMPT.runFunction(C:\MachBlog?\branches\1.1\org\machblog\listeners\LoginListener?.cfc:54) TEMPLATE C:\MachBlog?\branches\1.1\org\machblog\listeners\LoginListener?.cfc TYPE CFML

5 struct COLUMN 0 ID CFINVOKE LINE 67 RAW_TRACE at cfEventInvoker2ecfc1577203368$funcINVOKELISTENER.runFunction(C:\MachII\framework\invokers\EventInvoker?.cfc:67) TEMPLATE C:\MachII\framework\invokers\EventInvoker?.cfc TYPE CFML

6 struct COLUMN 0 ID CF_TEMPLATEPROXY LINE 68 RAW_TRACE at cfNotifyCommand2ecfc1554470130$funcEXECUTE.runFunction(C:\MachII\framework\commands\NotifyCommand?.cfc:68) TEMPLATE C:\MachII\framework\commands\NotifyCommand?.cfc TYPE CFML

7 struct COLUMN 0 ID CF_TEMPLATEPROXY LINE 62 RAW_TRACE at cfEventHandler2ecfc1266557968$funcHANDLEEVENT.runFunction(C:\MachII\framework\EventHandler?.cfc:62) TEMPLATE C:\MachII\framework\EventHandler?.cfc TYPE CFML

8 struct COLUMN 0 ID CF_TEMPLATEPROXY LINE 328 RAW_TRACE at cfRequestHandler2ecfc1587369479$funcHANDLEEVENT.runFunction(C:\MachII\framework\RequestHandler?.cfc:328) TEMPLATE C:\MachII\framework\RequestHandler?.cfc TYPE CFML

9 struct COLUMN 0 ID CF_UDFMETHOD LINE 276 RAW_TRACE at cfRequestHandler2ecfc1587369479$funcHANDLENEXTEVENT.runFunction(C:\MachII\framework\RequestHandler?.cfc:276) TEMPLATE C:\MachII\framework\RequestHandler?.cfc TYPE CFML

10 struct COLUMN 0 ID CF_UDFMETHOD LINE 217 RAW_TRACE at cfRequestHandler2ecfc1587369479$funcPROCESSEVENTS.runFunction(C:\MachII\framework\RequestHandler?.cfc:217) TEMPLATE C:\MachII\framework\RequestHandler?.cfc TYPE CFML

11 struct COLUMN 0 ID CF_UDFMETHOD LINE 147 RAW_TRACE at cfRequestHandler2ecfc1587369479$funcHANDLEREQUEST.runFunction(C:\MachII\framework\RequestHandler?.cfc:147) TEMPLATE C:\MachII\framework\RequestHandler?.cfc TYPE CFML

12 struct COLUMN 0 ID CF_TEMPLATEPROXY LINE 153 RAW_TRACE at cfmach2dii2ecfc39513017$funcHANDLEREQUEST.runFunction(C:\MachII\mach-ii.cfc:153) TEMPLATE C:\MachII\mach-ii.cfc TYPE CFML

13 struct COLUMN 0 ID CF_UDFMETHOD LINE 84 RAW_TRACE at cfApplication2ecfc1196417700$funcONREQUESTSTART.runFunction(C:\MachBlog?\branches\1.1\Application.cfc:84) TEMPLATE C:\MachBlog?\branches\1.1\Application.cfc TYPE CFML

Type machblog.org.machblog.user.User arg USER functionName setUser type machblog.org.machblog.user.User

Attachments

Change History

comment:1 Changed 3 years ago by mattwoodward

I have a strong suspicion you didn't put it in the right place with respect to your web server settings.

IIRC version 1.1 is set to run in a subdirectory UNDER a web root, meaning you'd have a web site/virtual host and inside there you would have a machblog directory. You would then access it via  http://yourvirtualhost/machblog

You can of course reconfigure things to run in the root but that's probably why the return type is wrong--if that machblog subdirectory doesn't exist, the return type will not be correct.

comment:2 Changed 3 years ago by anonymous

You may be right but please clarify for me.

I created a c:\mach-ii directory. I pointed my SVN client to this directory and checked out the entire tree. I then created a virtual directory under my wwwroot that points to C:\MachBlog?\branches\1.1

Was this incorrect? Also, my wwwroot does not have any cfm templates at all.

comment:3 Changed 3 years ago by anonymous

Hmm. I removed the virtual directory and copied the C:\MachBlog??\branches\1.1 to a machblog subdirectory under my wwwroot. Now when I try logging in I get a "login failed" message. I use the forgot password link and I get an "email address not found" message. I look in the machblog_user table and it's there.

comment:4 Changed 3 years ago by anonymous

Regarding my second comment -- I created a c:\machblog directory -- not c:\mach-ii. Although, I already had a c:\mach-ii directory and a CF mapping to it.

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.