Value must be initialized before use - Its possible that a method called on a Java object created by CreateObject returned null

714 views
Skip to first unread message

www.clickfind.com.au

unread,
Oct 21, 2009, 9:56:48 PM10/21/09
to cfaussie
Hello all,

been a while, very long time actually since my last post! I really got
one here that stumps me!

I'm getting the following error when Google indexes some of my pages

Value must be initialized before use
Its possible that a method called on a Java object created by
CreateObject returned null

The problem points to line 179 which is the following

xmlResult = YahooCSE.doSearch( page = url.page, display =
url.display ).getResult();

Around this I have a try/catch statement but that doesn't seem to make
any difference at all.

It only errors when Google visits the following page in question
http://www.clickfind.com.au/business/explore-website.cfm?businessIdentity=42071&keyword=drysdale%20victoria

Your help is greatly appreciated.

Cheers
Taco Fleur

Joel Cass

unread,
Oct 22, 2009, 12:49:10 AM10/22/09
to cfau...@googlegroups.com
I've had this one before but with a different component. Usually there is an error that is being thrown by the Java object but is not being represented properly in ColdFusion. cftry/cfcatch will not actually work in this case as the problem is occuring in the Java Layer. I think the real error does turn up in the runtime logs, otherwise, capture the data going into the object and try making the same call from a JSP file.

Taco Fleur

unread,
Oct 22, 2009, 5:11:20 AM10/22/09
to cfau...@googlegroups.com
Thanks Joel,
 
I had a look in the log and found
 
"Error","jrpp-25","10/19/09","20:37:31","au_com_clickfind8","The request has exceeded the allowable time limit Tag: cfmail The specific sequence of files included or processed is: C:\Inetpub\wwwroot\au_com_clickfind\business\explore-website.cfm, line: 488 "
 
The weird thing is, there is no cfmail in that file. And why does it only time out for Google??
 hmmmm
 
Kind regards, Taco Fleur (CIO/CEO/Founder)

Advertise your business, products and services on www.clickfind.com.au Get more business!

 

This email (which includes any attachments) has been sent on behalf of Commerce Engine Pty Ltd or its Associated Entities (hereinafter called “clickfind”). The information contained in this communication may be privileged and confidential.  If you are not the intended recipient, any use, disclosure or copying of this communication is expressly prohibited.  If you have received this E-mail in error, please delete it immediately. Clickfind does not warrant or represent that this E-mail (including any attached files) is free from electronic viruses, faults or defects.  Confidentiality and legal privilege are not waived or lost by reason of mistaken delivery to you. For more information about use, disclosure and access see our privacy policy at http://www.clickfind.com.au/privacy-policy.cfm

 

P please consider the environment before printing this e-mail

 


From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Joel Cass
Sent: Thursday, 22 October 2009 2:49 PM
To: cfau...@googlegroups.com
Subject: [cfaussie] Re: Value must be initialized before use - Its possible that a method called on a Java object created by CreateObject returned null

Blair McKenzie

unread,
Oct 22, 2009, 5:32:05 AM10/22/09
to cfau...@googlegroups.com
Just throwing this out there, but I've seen similar errors when I turn off session for bots. Code tries to access session scope, and it doesn't exist. It's been a while though, so this may be red herring.

Blair

Taco Fleur

unread,
Oct 22, 2009, 5:37:20 AM10/22/09
to cfau...@googlegroups.com
How do you turn of sessions for bots?
 
Bot or not, the session gets initialized but not maintained as far as I'm aware?
 

Kind regards, Taco Fleur (CIO/CEO/Founder)


Advertise your business, products and services on www.clickfind.com.au Get more business!

 

This email (which includes any attachments) has been sent on behalf of Commerce Engine Pty Ltd or its Associated Entities (hereinafter called “clickfind”). The information contained in this communication may be privileged and confidential.  If you are not the intended recipient, any use, disclosure or copying of this communication is expressly prohibited.  If you have received this E-mail in error, please delete it immediately. Clickfind does not warrant or represent that this E-mail (including any attached files) is free from electronic viruses, faults or defects.  Confidentiality and legal privilege are not waived or lost by reason of mistaken delivery to you. For more information about use, disclosure and access see our privacy policy at http://www.clickfind.com.au/privacy-policy.cfm

 

P please consider the environment before printing this e-mail

 


From: cfau...@googlegroups.com [mailto:cfau...@googlegroups.com] On Behalf Of Blair McKenzie
Sent: Thursday, 22 October 2009 7:32 PM

Blair McKenzie

unread,
Oct 22, 2009, 5:45:55 AM10/22/09
to cfau...@googlegroups.com
Set sessionManagement depending on a bunch of rules including useragent checks.

Didn't think it was likely, but that's still a small chance of saving you some fustration. Good luck with the bug.

Blair

Joel Cass

unread,
Oct 22, 2009, 7:51:48 PM10/22/09
to cfau...@googlegroups.com
Weird, I got no idea about that. Perhaps cfmail is being called when there is an error on the server? If the error was a timeout and your cferror page sent the email, it may turn up as being the culprit.

Timeout in object initialisation could very well be the cause of your error. Especially if a Java object connecting to a webservice on initialisation is involved.

On Thu, Oct 22, 2009 at 8:11 PM, Taco Fleur <taco....@clickfind.com.au> wrote:

Taco Fleur

unread,
Oct 22, 2009, 8:02:42 PM10/22/09
to cfau...@googlegroups.com
Yeah, there is a webservice call there. But why would it only time out for Google. Anyways, I put a 2 minute timeout on there now, let's see if it keeps happening. Thanks for that.

cheers
--
Kind regards,
Taco Fleur
clickfind™ - The new Australian Online Marketing Platform (OMP)
http://www.onlinemarketingplatform.com.au
http://www.clickfind.com.au

Joel Cass

unread,
Oct 22, 2009, 8:10:03 PM10/22/09
to cfau...@googlegroups.com
Perhaps Googlebot is flooding your site and taxing your webservice. You could try changing google's crawl rate and see if that has any effect:

http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=48620

Taco Fleur

unread,
Oct 22, 2009, 8:35:46 PM10/22/09
to cfau...@googlegroups.com
Yeah, that's not bad thinking. Will look into this.

cheers
Reply all
Reply to author
Forward
0 new messages