RE: Null Pointers are another name for undefined values

2009-12-17 Thread Sebastiaan GMC van Dijk

Yes, we've had this same error popping up at times. It is most often in 
combination with MySQL.


We got our hosting party to UNCHECK the 'maintain connections across client 
requests'. We then got a new error from time to time, namely that user 'dbuser' 
has exceeded the 'max_user_connections' resource (current value = 1). No idea 
where to look for this error, but at least it solved the Nullpointer exceptions 
errors. Maybe also our recent upgrade to the latest update of CF8 also has 
helped some.



Sebastiaan Naafs van Dijk
=
So long and thanx 4 all the fish

== Onlinebase.nl

 Date: Wed, 16 Dec 2009 23:11:31 -0500
 Subject: Re: Null Pointers are another name for undefined values
 From: police_kidnapped_your_child...@yahoo.com
 To: cf-talk@houseoffusion.com
 
 
 I've gotten this error before.  I don't know if this is the same thing or 
 not, but in my case, I got the null pointers error only on the application 
 start, a refresh would make it work.  anyway, it took me a few weeks, but the 
 solution (at least in my case) was either checking or unchecking (i can never 
 remember which... so just the opposite of whatever it is now) the maintain 
 connections box in the coldfusion admin under database connections.  I had 
 to call my hosting company to get it done, but they complied and I have never 
 had the problem since.  HTH! 
 
 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329214
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan

I have a friend who came to me a while ago with a site that wanted to change
hosts and have a new look and feel.  He would handle the look and feel and
I'd take care of the backend.  Originally he wanted to rewrite from CF to
ASP, but I told him keep it CF and I can do it a lot faster and cheaper.
That sold him.  Unfortunately, his client pre-paid for 3 years of hosting at
Network Solutions and is insisting on using their Coldfusion hosting.  Even
though I used to work for a hosting company that has really good CF hosting,
cheaper than NSI, they're sold on the reliability of the big boys.  Ugh -
fine.  Convert existing db from MySQL to Access, convert all SQL to be
compatible, test locally and it works like a charm.  Upload a test
Application.cfc and index.cfm file to NSI (it took NSI 7 days to add a DSN
for me) and immediately get an error as follows:

 

The system has attempted to use an undefined value, which usually indicates
a programming error, either in your code or some system code.

Null Pointers are another name for undefined values. 

 

I've trimmed the Application.cfc file down to just:

 

cfcomponent

cfscript

  this.name = ihatenetworksolutions;

  this.applicationTimeout = createTimeSpan(1,0,0,0);

  this.sessionTimeout = createTimeSpan(0,0,20,0);

  this.sessionmanagement = yes;

  this.setClientCookies = yes;

  this.setDomainCookies = no;

/cfscript

  cffunction name=onApplicationStart returntype=boolean output=false

cfreturn this/

  /cffunction

  

  cffunction name=onApplicationEnd returntype=void output=false 

   cfargument name=applicationScope required=true 

  /cffunction  

/cfcomponent  

 

If I don't upload an index.cfm file, I get a Directory Listing Denied error.
As soon as I upload an index.cfm file - even just a hello world one, I get
that null pointer error.

 

I'm assuming their NSI's support will be useless if it took them a week to
set a DSN.

 

Some googling on this error took me to several forums where there error is
there, but there seems to be a just a lot of ideas as to the cause (broke
JVM), and no real concrete solutions.

 

 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329174
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Null Pointers are another name for undefined values

2009-12-16 Thread Charlie Griefer

Can you upload just a hello world index.cfm without an Application.cfc (or
Application.cfm)?  Just curious as to whether or not the issue is definitely
in the Application.cfc.

On Wed, Dec 16, 2009 at 7:49 AM, Steve Logan st...@sagescholars.com wrote:


 I have a friend who came to me a while ago with a site that wanted to
 change
 hosts and have a new look and feel.  He would handle the look and feel
 and
 I'd take care of the backend.  Originally he wanted to rewrite from CF to
 ASP, but I told him keep it CF and I can do it a lot faster and cheaper.
 That sold him.  Unfortunately, his client pre-paid for 3 years of hosting
 at
 Network Solutions and is insisting on using their Coldfusion hosting.  Even
 though I used to work for a hosting company that has really good CF
 hosting,
 cheaper than NSI, they're sold on the reliability of the big boys.  Ugh -
 fine.  Convert existing db from MySQL to Access, convert all SQL to be
 compatible, test locally and it works like a charm.  Upload a test
 Application.cfc and index.cfm file to NSI (it took NSI 7 days to add a DSN
 for me) and immediately get an error as follows:



 The system has attempted to use an undefined value, which usually indicates
 a programming error, either in your code or some system code.

 Null Pointers are another name for undefined values.



 I've trimmed the Application.cfc file down to just:



 cfcomponent

 cfscript

  this.name = ihatenetworksolutions;

  this.applicationTimeout = createTimeSpan(1,0,0,0);

  this.sessionTimeout = createTimeSpan(0,0,20,0);

  this.sessionmanagement = yes;

  this.setClientCookies = yes;

  this.setDomainCookies = no;

 /cfscript

  cffunction name=onApplicationStart returntype=boolean output=false

cfreturn this/

  /cffunction



  cffunction name=onApplicationEnd returntype=void output=false

   cfargument name=applicationScope required=true

  /cffunction

 /cfcomponent



 If I don't upload an index.cfm file, I get a Directory Listing Denied
 error.
 As soon as I upload an index.cfm file - even just a hello world one, I
 get
 that null pointer error.



 I'm assuming their NSI's support will be useless if it took them a week to
 set a DSN.



 Some googling on this error took me to several forums where there error is
 there, but there seems to be a just a lot of ideas as to the cause (broke
 JVM), and no real concrete solutions.







 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329175
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan

Yes - removing the application.cfc file and just putting up a simple index.cfm 
file works fine.

I have literally stripped everything out of the application.cfc file and except 
for onApplicationStart and onApplicationEnd.  I also changed the 
cfscriptthis.name=myapp/cfscript to cfset THIS.name = myapp/ and 
still getting that error.  

I've also loaded this application.cfc onto a CFMX7 server that I administer and 
it works fine there (development environment is CF8 as that's where I was 
anticipating hosting them until they insisted on NSI).

Can you upload just a hello world index.cfm without an Application.cfc (or
Application.cfm)?  Just curious as to whether or not the issue is definitely
in the Application.cfc.



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329176
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Null Pointers are another name for undefined values

2009-12-16 Thread Charlie Griefer

... and you're sure that the hosting environment is CF7?  does an
Application.cfm work?  can you dump the server scope to verify the CF
version?

On Wed, Dec 16, 2009 at 8:24 AM, Steve Logan st...@sagescholars.com wrote:


 Yes - removing the application.cfc file and just putting up a simple
 index.cfm file works fine.

 I have literally stripped everything out of the application.cfc file and
 except for onApplicationStart and onApplicationEnd.  I also changed the
 cfscriptthis.name=myapp/cfscript to cfset THIS.name = myapp/ and
 still getting that error.

 I've also loaded this application.cfc onto a CFMX7 server that I administer
 and it works fine there (development environment is CF8 as that's where I
 was anticipating hosting them until they insisted on NSI).

 Can you upload just a hello world index.cfm without an Application.cfc
 (or
 Application.cfm)?  Just curious as to whether or not the issue is
 definitely
 in the Application.cfc.
 


 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329177
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan

Application.cfm DOES work.

Appserver:  JRun4
ProductLevel: Enterprise
ProductVersion: 7,0,1,116466 

x86 Windows 2003 version 5.2

So why would Application.cfm work and not application.cfc on CF7?


... and you're sure that the hosting environment is CF7?  does an
Application.cfm work?  can you dump the server scope to verify the CF
version?



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329179
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Null Pointers are another name for undefined values

2009-12-16 Thread Charlie Griefer

Not a clue... but I'm wondering if it has anything to do with restrictions
enforced by NSI.

Can you manually instantiate any other CFCs?

On Wed, Dec 16, 2009 at 8:40 AM, Steve Logan st...@sagescholars.com wrote:


 Application.cfm DOES work.

 Appserver:  JRun4
 ProductLevel: Enterprise
 ProductVersion: 7,0,1,116466

 x86 Windows 2003 version 5.2

 So why would Application.cfm work and not application.cfc on CF7?


 ... and you're sure that the hosting environment is CF7?  does an
 Application.cfm work?  can you dump the server scope to verify the CF
 version?
 


 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329180
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan

Nope.  Both CreateObject and cfinvoke both throw the same null pointer errors.

Dammit!  I can hear it now I KNEW we should have just rewritten it from 
scratch in ASP - which is EXACTLY what they're going to say even though the 
site ran fine for years on the old host (that was charging them $200 / mo. for 
shared hosting), and at my host (which would be $200 / yr for CF8 + MySQL on a 
low volume shared server).


Not a clue... but I'm wondering if it has anything to do with restrictions
enforced by NSI.

Can you manually instantiate any other CFCs?


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329181
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Null Pointers are another name for undefined values

2009-12-16 Thread Charlie Griefer

Might want to ping NSI and see if they can do anything for you.

I had a shared host once that disabled createObject() by default, but upon
request they would enable it for whatever sandbox your site is in.

On Wed, Dec 16, 2009 at 9:08 AM, Steve Logan st...@sagescholars.com wrote:


 Nope.  Both CreateObject and cfinvoke both throw the same null pointer
 errors.

 Dammit!  I can hear it now I KNEW we should have just rewritten it from
 scratch in ASP - which is EXACTLY what they're going to say even though the
 site ran fine for years on the old host (that was charging them $200 / mo.
 for shared hosting), and at my host (which would be $200 / yr for CF8 +
 MySQL on a low volume shared server).


 Not a clue... but I'm wondering if it has anything to do with restrictions
 enforced by NSI.
 
 Can you manually instantiate any other CFCs?


 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329182
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Null Pointers are another name for undefined values

2009-12-16 Thread Steve Logan

I submitted a ticket but I don't have much hope for it.  It took 7 days to get 
a simple DSN setup


Might want to ping NSI and see if they can do anything for you.

I had a shared host once that disabled createObject() by default, but upon
request they would enable it for whatever sandbox your site is in.



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329183
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Null Pointers are another name for undefined values

2009-12-16 Thread Jessica Kennedy

I've gotten this error before.  I don't know if this is the same thing or not, 
but in my case, I got the null pointers error only on the application start, a 
refresh would make it work.  anyway, it took me a few weeks, but the solution 
(at least in my case) was either checking or unchecking (i can never remember 
which... so just the opposite of whatever it is now) the maintain connections 
box in the coldfusion admin under database connections.  I had to call my 
hosting company to get it done, but they complied and I have never had the 
problem since.  HTH! 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329209
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4