-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The value returned from the findByID function is not of type entry. #23
Comments
Hi, |
forgot about the reset, so I did that and I get The value returned from the getConfig function is not of type bugLog.components.config. Sent from Mailbird [http://www.getmailbird.com/?utm_source=signature&utm_medium=email&utm_campaign=SentWithMailbird_Free]. It's free. |
Did you get that error right after you click on reset or after you typed in your username and password? |
after reset. The value returned from the getConfig function is not of type bugLog.components.config. If the component name is specified as a return type, it is possible that either a definition file for the component cannot be found or is not accessible. The error occurred in d:/Site/bugLog/components/hq/jiraService.cfc: line 42 coldfusion.runtime.UDFMethod$InvalidReturnTypeException: The value returned from the getConfig function is not of type bugLog.components.config. Sent from Mailbird [http://www.getmailbird.com/?utm_source=signature&utm_medium=email&utm_campaign=SentWithMailbird_Faster]. It's faster! |
Ok, looks like there is something wrong while initializing the Jira service. Try disabling it manually by editing /bugLog/config/buglog-config.xml.cfm and changing jira.enabled to false. Reset the app again and see if it comes up. Once it loads, re-enable Jira. |
JIRA wasn't enabled false Sent from awesome Mailbird [http://www.getmailbird.com/?utm_source=signature&utm_medium=email&utm_campaign=SentWithMailbird_Awesome]. |
From the stack trace I noticed that the resolved paths change from C:\HealthEndeavors_new\Site... to d:\Site... within the same request. Do you think that ColdFusion is getting confused into thinking that the CFC references are not the same due to the different paths? |
oh sorry, i just wanted to remove that private info. it is the C:. I commented it out, still same issue Sent from Mailbird [http://www.getmailbird.com/?utm_source=signature&utm_medium=email&utm_campaign=SentWithMailbird_Faster]. It's faster! |
ok, seems we will have to go under the hood to see what's going on. Try changing the getConfig() method in components.hq.appService (https://github.com/oarevalo/BugLogHQ/blob/master/components/hq/appService.cfc#L391) and add:
before the return statement. The reset again. The idea is to first make sure that you actually have a config object loaded. |
looks like it is crashing before it hits that even. Sent from awesome Mailbird [http://www.getmailbird.com/?utm_source=signature&utm_medium=email&utm_campaign=SentWithMailbird_Awesome]. |
Then the only thing I can think of is start tracing back and placing dumps/aborts to find the part where the problem is. Maybe on the Init() method of the appService.cfc component. Make sure that before that method returns, the config object is loaded properly. |
ok, I got one thing worked out. that was my fault. sorry, but back to the original issue I think The value returned from the getService function is not of type bugLogListener. 35 : Resources: Check the ColdFusion documentation to verify that you are using the correct syntax. Browser Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 coldfusion.runtime.UDFMethod$InvalidReturnTypeException: The value returned from the getService function is not of type bugLogListener. On Tuesday April 02. 2013 at 10:39 AM, Oscar Arevalo notifications@github.com wrote: Sent from Mailbird [http://www.getmailbird.com/?utm_source=signature&utm_medium=email&utm_campaign=SentWithMailbird_Free]. It's free. |
if i dump oService, it says it is the correct returntype function getService Roles: Access: public Output: On Tuesday April 02. 2013 at 10:55 AM, Derek dab@bowesmail.com wrote: The value returned from the getService function is not of type bugLogListener. 35 : Resources: Check the ColdFusion documentation to verify that you are using the correct syntax. Browser Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0 coldfusion.runtime.UDFMethod$InvalidReturnTypeException: The value returned from the getService function is not of type bugLogListener. On Tuesday April 02. 2013 at 10:39 AM, Oscar Arevalo notifications@github.com wrote: Sent from Mailbird [http://www.getmailbird.com/?utm_source=signature&utm_medium=email&utm_campaign=SentWithMailbird_Faster]. It's faster! |
on this stack trace, the error starts in d:/TestSite/bugLog/core/coreApp.cfc: line 94, the rest is the catch block on general.cfc and then trying to report the error back to itself (using the buglog client instance). Change line 74 in general.cfc to remove the catch(any e) and use something like catch(lock e) so that it breaks fully on the error and don't try to send the error back. That should give you more details. |
I changed it to returntype any in getService and it is working now. Sent from Mailbird [http://www.getmailbird.com/?utm_source=signature&utm_medium=email&utm_campaign=SentWithMailbird_Free]. It's free. |
yay for consistent type checking in coldfusion (/sarcasm). At least is working now, let me know or post here if you have any other problems. I'll be closing the issue now. Feel free to re-open if needed. |
I am getting the emails, but at the top it says This email is sent because the buglog server could not be contacted. The error was: The ENTRYBEAN argument passed to the logEntry function is not of type rawEntryBean.If the component name is specified as a type of this argument, it is possible that either a definition file for the component cannot be found or is not accessible. |
There is something wrong with the coldfusion mappings then. BugLog relies on a mapping "bugLog" to find all its components. This mapping should be created automatically on the main Application.cfc. |
Every one was successful Sent from Mailbird [http://www.getmailbird.com/?utm_source=signature&utm_medium=email&utm_campaign=SentWithMailbird_Free]. It's free. |
Any idea why I am getting this after upgrade from .1 to .4?
The text was updated successfully, but these errors were encountered: