Help ! Unable to initialize Assert NX exception !

Hi, im new at coldfusion and i recently pay for a hosting with coldfusion 9, i customize my db,dsn and upload all the site... but when i try to run the site i get this exception :

coldfusion.runtime.CustomException: Unable to initialize AssetNow NX at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfApplication2ecfc1801135535$funcONAPPLICATIonstart.runFunction(E:\Domains\rivi eramayarent.com\wwwroot\Application.cfc:35) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368 ) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:88) at coldfusion.runtime.AppEventInvoker.onApplicationstart(AppEventInvoker.java:211) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:224) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFil ter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilt er.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320 ) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

i dont have any idea what does that mean, i have search on google but i doesnt show anything, and it doesnt happen when im working on my localhost ( i have CF8 in my laptop).

That will spit out the request scope variable from where you're trying to include the config.cfm file from (a very convoluted but perhaps necessary way to go about it) and it will also spit out the raw original error information. Right now, you have code in there to intercept the error message and spit out "Unable to initialize AssetNow NX"...which is the error your site shows when it's called.

Replace the catch block code with what I posted above on your site and re-run it and see what the error says. That entire method is to simply call the config.cfm fall and include it. It would set, I assume, a series of variables that the app needs to have available later. Unless your app is designed to be resold and re-deployed onto customer boxes or something where you may not know where your files are located, there are lots easier ways of doing what you're doing there.

Re: Help ! Unable to initialize Assert NX exception !

Hi, indeed its not my code, I hire somebody to make my the website of my company and im trying to change the sites servers and learn CF in case i need some modifications on it in the future.

I was able to make tests on my localhost but when i tried to upload the site on the server it started throw me those errors.

The error now is and element undefined in session, u can actually see the site (www.rivieramayarent.com), this is the stacktrace:

coldfusion.runtime.UndefinedElementException: Element ANUSER.USERID is undefined in SESSION. at coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1759) at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1677) at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1812) at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1805) at cfcheckheaders2ecfm954693884.runPage(E:\Domains\rivieramayarent.com\wwwroot\sys\cfincludes\assetnow\checkheaders.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfindex2ecfm2078857244.runPage(E:\Domains\rivieramayarent.com\wwwroot\index.cfm:4) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:342) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

And thanks for helping, ill be checking the code of the new error and try to do some modifications.

Re: Help ! Unable to initialize Assert NX exception !

Posted 19 April 2010 - 12:21 PM

Your English is fine.

Okay, your error now is that somewhere in your codebase (looks like perhaps in checkheaders.cfm) your code is looking for a session variable called ANUSER.USERID (it'll be referred to as session.ANUSER.USERID).

Now, as I don't know how your app is built, I don't know where in the process you're setting your session variables. You could try looking in your Application.cfc and seeing if you have a cffunction tag (properly called a "method" in this case) called "onSessionstart" and see if there is an attempt to set session variables in there.

I can understand your desire to learn CF so you can work on your site in the future. That said, this is a second indication that the sophistication of the site may be a little too far above your current skill level to allow you to successfully tinker with it. What your dev did here, so it would seem, is go through a process of setting a series of variables, stick them into a structure and place that struct, in turn, into the user's session scope. That's not terribly complex but it does tend to be beyond the typical skills found in CF beginners. I suspect, given what you showed us in the onApplicationstart method, that your dev could probably easily get the site up and running on your production server for you and it shouldn't take more than a few minutes. It's not because one of us here couldn't help you eventually find where/how to do it...it's just that it's not likely a code issue per se but an application setting that's working just fine (as evidenced by your saying you could get it working on your local machine)...you just don't know which setting(s) to change when you move it onto a new box.

Try getting with your dev, ask him/her how much it would take to get it up and running on a new box. It would seem that it would be a matter of changing a setting or two in your config.cfm file and that ought not take more than a few minutes. It'd probably be money well spent by you to avoid the headache and lost time trying to figure it out for yourself.

Re: Help ! Unable to initialize Assert NX exception !

Yes, i have been trying to contact my dev for a long time, but he doesnt answer any mail and it looks like he already change his phone number so i think im on my own u_u.

I have been reading and doing some tests on the code and it looks like that element isnt the only one undefined on the session, is there some difference between session variables on CF 8 and 9? something like.... when you try to access one on CF8 and it havent been initialized then is it created and assinged a default value like... 0 or null or something? and in CF9 if u try to access one that havent been initialized send and error?

Or there should all be initialized in any CF version and there must be one of the method that isnt doing its job?

Thanks in advance..

By the way... i have been looking or a new Dev on CF but its really hard to find one in my city, everybody is offering to remake the site on Php ... i actually know php and it would take me like 2 months to remake the site .

Re: Help ! Unable to initialize Assert NX exception !

Yes, i have been trying to contact my dev for a long time, but he doesnt answer any mail and it looks like he already change his phone number so i think im on my own

Atrum, I did a bit more digging through the zip file you posted up. The entire source for this originates with a product called AssetNow. It would appear that you have a copy of the "NX" version of their product. What would probably serve you best is to contact them through their support folks and/or take a moment to look over their documentation.

If your developer claimed he wrote this and is now nowhere to be found then he most likely stole this code and was reselling it to people like you. I doubt a guy who simply disappears once the site is delivered is going to be on the up and up so you may be out of luck on this. Try speaking with the AssetNow people and see what they can do for you. You may be able to purchase a legal copy of their software for a reduced price when you tell them your tale (companies sometimes take pity on people who have been duped like this). If you can, as you say, rewrite this in PHP in a matter of couple of months, then perhaps that is also an avenue you might explore.