RE: ORM/Hibernate generator issue

2011-12-03 Thread Bobby Hartsfield

Thanks Matt. I swear I did try that earlier but I just tried it again to
make sure I didn't typo it or something earlier and it got past the error.

Today has been one long caching nightmare.

Thanks!

.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com] 
Sent: Saturday, December 03, 2011 10:15 PM
To: cf-talk
Subject: Re: ORM/Hibernate generator issue


Try setting generator="native" instead.
On Dec 3, 2011 9:10 PM, "Bobby Hartsfield"  wrote:

>
> I've finally been playing around with ORM lately and I've hit an issue
that
> I'm having a hard time finding answers for on Google. Hopefully someone
> here
> knows what the deal.
>
>
>
> Below is a very basic "person" app with one component (outside of app.cfc)
> and a small index.cfm
>
>
>
> The error I'm seeing is:
>
> this id generator generates long, integer, short
>
> Root cause :org.hibernate.id.IdentifierGenerationException: this id
> generator generates long, integer, short
>
>
>
> Basically, I read a xls doc of first and last names and (attempt to) load
> it
> into a tblPeople table.
>
>
>
> The above error happens in inde.cfm when entitySave(obj) is triggered. I
> can
> comment out " entitySave(obj);" and not get any errors.
>
>
>
> There are only about 3000 records in people.xls and tblPeople doesn't
exist
> yet.
>
>
>
> It is a new, basic install of CF9 on server 2003.
>
>
>
> This worked earlier but I was using the old style  tags in
> person.cfc
>
>
>
> hopefully I'm just missing something obvious to someone else.
>
>
>
> Any help appreciated here.
>
>
>
> Thanks
>
>
>
> ---INDEX.CFM
>
>
>
> 
>
>  query="sheet" headerrow="1" />
>
>
>
> 
>
> 
>
>obj = EntityNew("person");
>
>
>
>obj.setPersonFname(sheet["personFname"][sheet.currentRow]);
>
>obj.setPersonLname(sheet["personLname"][sheet.currentRow]);
>
>
>
>entitySave(obj);
>
> 
>
> 
>
>
>
>
>
>
>
>
>
> ---PERSON.CFC
>
> component persistent="true" table="tblpeople"
>
> {
>
>property name="personId" fieldtype="id"
> generator="increment";
>
>property name="personFname";
>
>property name="personLname";
>
> }
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---APPLICATION.CFC
>
> component
>
> {
>
>this.name = "personTest";
>
>
>
>this.ormenabled = "true";
>
>this.datasource = "peopleTest";
>
>this.ormsettings={dbcreate="update", logsql="true"};
>
>this.ormsettings.savemapping = false;
>
>
>
>this.clientmanagement="false";
>
>this.sessionmanagement="true";
>
>this.sessiontimeout="#createtimespan(0,0,1,0)#";
>
>this.applicationtimeout="#createtimespan(0,0,1,0)#";
>
> }
>
>
>
>
>
> .:.:.:.:.:.:.:.:.:.:.:.
>
> Bobby Hartsfield
>
> http://acoderslife.com
>
> http://cf4em.com
>
>
>
>
>
>
> 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348946
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ORM/Hibernate generator issue

2011-12-03 Thread Matt Quackenbush

Try setting generator="native" instead.
On Dec 3, 2011 9:10 PM, "Bobby Hartsfield"  wrote:

>
> I've finally been playing around with ORM lately and I've hit an issue that
> I'm having a hard time finding answers for on Google. Hopefully someone
> here
> knows what the deal.
>
>
>
> Below is a very basic "person" app with one component (outside of app.cfc)
> and a small index.cfm
>
>
>
> The error I'm seeing is:
>
> this id generator generates long, integer, short
>
> Root cause :org.hibernate.id.IdentifierGenerationException: this id
> generator generates long, integer, short
>
>
>
> Basically, I read a xls doc of first and last names and (attempt to) load
> it
> into a tblPeople table.
>
>
>
> The above error happens in inde.cfm when entitySave(obj) is triggered. I
> can
> comment out " entitySave(obj);" and not get any errors.
>
>
>
> There are only about 3000 records in people.xls and tblPeople doesn't exist
> yet.
>
>
>
> It is a new, basic install of CF9 on server 2003.
>
>
>
> This worked earlier but I was using the old style  tags in
> person.cfc
>
>
>
> hopefully I'm just missing something obvious to someone else.
>
>
>
> Any help appreciated here.
>
>
>
> Thanks
>
>
>
> ---INDEX.CFM
>
>
>
> 
>
>  query="sheet" headerrow="1" />
>
>
>
> 
>
> 
>
>obj = EntityNew("person");
>
>
>
>obj.setPersonFname(sheet["personFname"][sheet.currentRow]);
>
>obj.setPersonLname(sheet["personLname"][sheet.currentRow]);
>
>
>
>entitySave(obj);
>
> 
>
> 
>
>
>
>
>
>
>
>
>
> ---PERSON.CFC
>
> component persistent="true" table="tblpeople"
>
> {
>
>property name="personId" fieldtype="id"
> generator="increment";
>
>property name="personFname";
>
>property name="personLname";
>
> }
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---APPLICATION.CFC
>
> component
>
> {
>
>this.name = "personTest";
>
>
>
>this.ormenabled = "true";
>
>this.datasource = "peopleTest";
>
>this.ormsettings={dbcreate="update", logsql="true"};
>
>this.ormsettings.savemapping = false;
>
>
>
>this.clientmanagement="false";
>
>this.sessionmanagement="true";
>
>this.sessiontimeout="#createtimespan(0,0,1,0)#";
>
>this.applicationtimeout="#createtimespan(0,0,1,0)#";
>
> }
>
>
>
>
>
> .:.:.:.:.:.:.:.:.:.:.:.
>
> Bobby Hartsfield
>
> http://acoderslife.com
>
> http://cf4em.com
>
>
>
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348945
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ORM/Hibernate generator issue

2011-12-03 Thread Bobby Hartsfield

I've finally been playing around with ORM lately and I've hit an issue that
I'm having a hard time finding answers for on Google. Hopefully someone here
knows what the deal.

 

Below is a very basic "person" app with one component (outside of app.cfc)
and a small index.cfm

 

The error I'm seeing is:

this id generator generates long, integer, short

Root cause :org.hibernate.id.IdentifierGenerationException: this id
generator generates long, integer, short

 

Basically, I read a xls doc of first and last names and (attempt to) load it
into a tblPeople table.

 

The above error happens in inde.cfm when entitySave(obj) is triggered. I can
comment out " entitySave(obj);" and not get any errors.

 

There are only about 3000 records in people.xls and tblPeople doesn't exist
yet.

 

It is a new, basic install of CF9 on server 2003.

 

This worked earlier but I was using the old style  tags in
person.cfc

 

hopefully I'm just missing something obvious to someone else.

 

Any help appreciated here.

 

Thanks

 

---INDEX.CFM

 





 





obj = EntityNew("person");

 

obj.setPersonFname(sheet["personFname"][sheet.currentRow]);

obj.setPersonLname(sheet["personLname"][sheet.currentRow]);

 

entitySave(obj);





 

 

 

 

---PERSON.CFC

component persistent="true" table="tblpeople"

{

property name="personId" fieldtype="id"
generator="increment";

property name="personFname";

property name="personLname";

}

 

 

 

 

 

 

---APPLICATION.CFC

component

{

this.name = "personTest";

 

this.ormenabled = "true";

this.datasource = "peopleTest";

this.ormsettings={dbcreate="update", logsql="true"};

this.ormsettings.savemapping = false;

 

this.clientmanagement="false";

this.sessionmanagement="true";

this.sessiontimeout="#createtimespan(0,0,1,0)#";

this.applicationtimeout="#createtimespan(0,0,1,0)#";

}

 

 

.:.:.:.:.:.:.:.:.:.:.:.

Bobby Hartsfield

http://acoderslife.com

http://cf4em.com

 




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348944
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Fckeditor Security Issues

2011-12-03 Thread Dean Lawrence

Terry,

It is a very easy fix. All you need to do is to add an additional
argument to the JVM settings in you CF Admin. Here is a blog post
which explains it.

http://www.petefreitag.com/item/718.cfm

On Sat, Dec 3, 2011 at 9:16 PM, Terry Troxel  wrote:
>
> Ok, so that's handled. Why will my standalone still giving me the xml error?
>
> Terry
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348943
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Fckeditor Security Issues

2011-12-03 Thread Terry Troxel

Ok, so that's handled. Why will my standalone still giving me the xml error?

Terry


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348942
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Fckeditor Security Issues

2011-12-03 Thread Russ Michaels

the security issues in built in version will be disabled simply by
installing the security patches and updates, you don't need to do
anything else.


On Sun, Dec 4, 2011 at 12:22 AM, Terry Troxel  wrote:
>
> Russ,
> Either I am speaking a different language then you or you are toying with
> me.
> I have spent an entire day reading your replies and have learned nothing.
> All I asked in the last post was "How else do I make sure the built-in
> version not the standalone is disabled."
>
> Which in my language means "Can you help me disable the built-in Version?"
>
>
> -Original Message-
> From: Russ Michaels [mailto:r...@michaels.me.uk]
> Sent: Saturday, December 03, 2011 4:08 PM
> To: cf-talk
> Subject: Re: Fckeditor Security Issues
>
>
> by only disabling the built in version and not the standalone version surely
> ?
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348941
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Fckeditor Security Issues

2011-12-03 Thread Terry Troxel

Russ,
Either I am speaking a different language then you or you are toying with
me.
I have spent an entire day reading your replies and have learned nothing.
All I asked in the last post was "How else do I make sure the built-in
version not the standalone is disabled."

Which in my language means "Can you help me disable the built-in Version?"


-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Saturday, December 03, 2011 4:08 PM
To: cf-talk
Subject: Re: Fckeditor Security Issues


by only disabling the built in version and not the standalone version surely
?



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348940
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Fckeditor Security Issues

2011-12-03 Thread Russ Michaels

by only disabling the built in version and not the standalone version surely ?

On Sat, Dec 3, 2011 at 11:43 PM, Terry Troxel  wrote:
>
> Russ,
> Ok, one of the fixit emails said to rename the cfide built-in fckeditor or
> delete it.
> I chose to rename it.
> How else do I make sure the built-in version not the standalone is disabled.
> Terry
>
> -Original Message-
> From: Russ Michaels [mailto:r...@michaels.me.uk]
> Sent: Saturday, December 03, 2011 2:29 PM
> To: cf-talk
> Subject: Re: Fckeditor Security Issues
>
>
> A coldfusion patch or update only makes changes to coldfusion and the
> cfadmin, it doesn't touch your website files, so if your fckeditor is
> breaking after and update then you must still be using the cf built in
> one or the error is related to CF and not to fckeditor.
>
> On Sat, Dec 3, 2011 at 5:03 PM, Terry Troxel  wrote:
>>
>> Russ,
>>
>> I am using the standalone editor and have been since the first attacks
> over
>> a year ago, but the last couple of Coldfusion security patches have made
> the
>> image browser inoperable in the standalone as well. I have file and image
>> uploading disabled and allow users to only see the image folder I give
> them.
>>
>> At the first patch I read a post that said rename your Fckeditor folder. I
>> did that and it was working fine until the second patch I believe on the
>> 11th.
>>
>> I just don't want to do something stupid.
>>
>>
>>
>> Terry
>>
>>
>>
>>
>>
>>
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348939
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Fckeditor Security Issues

2011-12-03 Thread Terry Troxel

Russ,
Ok, one of the fixit emails said to rename the cfide built-in fckeditor or
delete it.
I chose to rename it.
How else do I make sure the built-in version not the standalone is disabled.
Terry

-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Saturday, December 03, 2011 2:29 PM
To: cf-talk
Subject: Re: Fckeditor Security Issues


A coldfusion patch or update only makes changes to coldfusion and the
cfadmin, it doesn't touch your website files, so if your fckeditor is
breaking after and update then you must still be using the cf built in
one or the error is related to CF and not to fckeditor.

On Sat, Dec 3, 2011 at 5:03 PM, Terry Troxel  wrote:
>
> Russ,
>
> I am using the standalone editor and have been since the first attacks
over
> a year ago, but the last couple of Coldfusion security patches have made
the
> image browser inoperable in the standalone as well. I have file and image
> uploading disabled and allow users to only see the image folder I give
them.
>
> At the first patch I read a post that said rename your Fckeditor folder. I
> did that and it was working fine until the second patch I believe on the
> 11th.
>
> I just don't want to do something stupid.
>
>
>
> Terry
>
>
>
>
>
> 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348938
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Fckeditor Security Issues

2011-12-03 Thread Russ Michaels

A coldfusion patch or update only makes changes to coldfusion and the
cfadmin, it doesn't touch your website files, so if your fckeditor is
breaking after and update then you must still be using the cf built in
one or the error is related to CF and not to fckeditor.

On Sat, Dec 3, 2011 at 5:03 PM, Terry Troxel  wrote:
>
> Russ,
>
> I am using the standalone editor and have been since the first attacks over
> a year ago, but the last couple of Coldfusion security patches have made the
> image browser inoperable in the standalone as well. I have file and image
> uploading disabled and allow users to only see the image folder I give them.
>
> At the first patch I read a post that said rename your Fckeditor folder. I
> did that and it was working fine until the second patch I believe on the
> 11th.
>
> I just don't want to do something stupid.
>
>
>
> Terry
>
>
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348937
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Fckeditor Security Issues

2011-12-03 Thread Terry Troxel

Russ,

I am using the standalone editor and have been since the first attacks over
a year ago, but the last couple of Coldfusion security patches have made the
image browser inoperable in the standalone as well. I have file and image
uploading disabled and allow users to only see the image folder I give them.

At the first patch I read a post that said rename your Fckeditor folder. I
did that and it was working fine until the second patch I believe on the
11th.

I just don't want to do something stupid.

 

Terry

 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348936
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Fckeditor Security Issues

2011-12-03 Thread Russ Michaels

see this article for options.
http://www.michaels.me.uk/post.cfm/fckeditor-security-threat-in-coldfusion-8

if you want more control then you will need to install a standalone
copy of fckeditor within your site and not use the one built into CF

Russ

On Sat, Dec 3, 2011 at 12:05 PM, Terry Troxel  wrote:
>
> Russ,
> Thank you for your reply, but you missed my point.
> I am looking for any Secure methods of locking down
> My (F)ckeditor's File Browser as I stated I am not
> A security expert nor do I know how to program in
> Java.
> I do not know how to re-enable the file browser and
> Lock it down. I just thought with all the CF'ers on
> Here someone had come up with an answer.
> Terry
>  up with an answer.
>
> Terry
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348935
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Fckeditor Security Issues

2011-12-03 Thread Terry Troxel

Russ,
Thank you for your reply, but you missed my point.
I am looking for any Secure methods of locking down
My (F)ckeditor's File Browser as I stated I am not
A security expert nor do I know how to program in
Java. 
I do not know how to re-enable the file browser and 
Lock it down. I just thought with all the CF'ers on
Here someone had come up with an answer.
Terry
 up with an answer.

Terry


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348934
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Fckeditor Security Issues

2011-12-03 Thread Russ Michaels

the version of Fckeditor that comes with CF is not the most current CK
editor and does not include the ckfinder, it just has a basic file
browser, so if you want a file manager then you would have to pay for
it anyway.
you are of course free to download and install the full version of
CKEDITOR to your site and us that instead of the one built into CF.
Ot if it is your own server then you could re-enable the file browser
and lock it down.


On Sat, Dec 3, 2011 at 1:22 AM, Terry Troxel  wrote:
>
> Am I correct in assuming the Adobe has turned off the Image Browser
> functionality entirely in Fckeditor in CF 8 & 9?
> Yes I have seen all sorts of posts trying to bypass this, but not
> Being a security expert myself or a Java programmer I sure would
> Like to hear from any of you out there what is out there for us
> To use in order to give our clients what Coldfusion gave us to
> Use quite a while back? I think Adobe paid to be able to embed it
> Into their product.
> I really cannot afford the price to buy a server license for Ckfinder
> Especially since who knows how long they will support that product
> After their track record with Coldfusion.
>
> Terry
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348933
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm