RE: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Bobby Hartsfield

Well, we thought we were finally rid of this one by disabling the Save
Class Files setting in the CFAdmin but we just had another report of the
error.

Short of a rewrite in java or the like, if anyone has any ideas at all, I'd
love to hear them.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: Tuesday, January 25, 2011 4:07 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Weird, I wonder why it doesn't clear the cfclasses for me...

And yes, this is definitely a hacked solution until it gets fixed (if it
ever does)... it is still an issue in CF9.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 4:04 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I know, I thought that aswell. But for me, regardless of if the trusted
cache option is on in the cfadmin, it does clear the files from cfclasses
and it does temporarily resolve the problem. Its still a big problem
though...

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 12:13 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


You did send some code you were using to manually clear the trustedCache but
all that I noticed it doing was logging in, building a list of files, and
passing them to the clearTrustedCache() method of admin.api.runtime

Running the clearTrsutedCache() method (or clicking the Clear Template Cache
Now button in cfadmin) does not affect the contents of cfclasses for me and
I didn't see another method in the API that looked like it would do that.

I must be missing something somewhere. Without Trusted Cache enabled in
CFAdmin. I wouldn't think admin.api.runtime.clearTrustedCache() would have
anything to do.

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Tuesday, January 25, 2011 2:39 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think

ADOBE PLEASE FIX THIS! RE: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Brook Davies

Would adobe please fix this bug!! Pretty please?

http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: February-22-11 8:13 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Well, we thought we were finally rid of this one by disabling the Save
Class Files setting in the CFAdmin but we just had another report of the
error.

Short of a rewrite in java or the like, if anyone has any ideas at all, I'd
love to hear them.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 4:07 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Weird, I wonder why it doesn't clear the cfclasses for me...

And yes, this is definitely a hacked solution until it gets fixed (if it
ever does)... it is still an issue in CF9.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 4:04 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I know, I thought that aswell. But for me, regardless of if the trusted
cache option is on in the cfadmin, it does clear the files from cfclasses
and it does temporarily resolve the problem. Its still a big problem
though...

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 12:13 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


You did send some code you were using to manually clear the trustedCache but
all that I noticed it doing was logging in, building a list of files, and
passing them to the clearTrustedCache() method of admin.api.runtime

Running the clearTrsutedCache() method (or clicking the Clear Template Cache
Now button in cfadmin) does not affect the contents of cfclasses for me and
I didn't see another method in the API that looked like it would do that.

I must be missing something somewhere. Without Trusted Cache enabled in
CFAdmin. I wouldn't think admin.api.runtime.clearTrustedCache() would have
anything to do.

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Tuesday, January 25, 2011 2:39 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

RE: ADOBE PLEASE FIX THIS! RE: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Bobby Hartsfield

And in CF8, not just CF9!

:-)

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, February 22, 2011 12:37 PM
To: cf-talk
Subject: ADOBE PLEASE FIX THIS! RE: Linkage Error - attempted duplicate
class definition for name


Would adobe please fix this bug!! Pretty please?

http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: February-22-11 8:13 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Well, we thought we were finally rid of this one by disabling the Save
Class Files setting in the CFAdmin but we just had another report of the
error.

Short of a rewrite in java or the like, if anyone has any ideas at all, I'd
love to hear them.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 4:07 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Weird, I wonder why it doesn't clear the cfclasses for me...

And yes, this is definitely a hacked solution until it gets fixed (if it
ever does)... it is still an issue in CF9.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 4:04 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I know, I thought that aswell. But for me, regardless of if the trusted
cache option is on in the cfadmin, it does clear the files from cfclasses
and it does temporarily resolve the problem. Its still a big problem
though...

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 12:13 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


You did send some code you were using to manually clear the trustedCache but
all that I noticed it doing was logging in, building a list of files, and
passing them to the clearTrustedCache() method of admin.api.runtime

Running the clearTrsutedCache() method (or clicking the Clear Template Cache
Now button in cfadmin) does not affect the contents of cfclasses for me and
I didn't see another method in the API that looked like it would do that.

I must be missing something somewhere. Without Trusted Cache enabled in
CFAdmin. I wouldn't think admin.api.runtime.clearTrustedCache() would have
anything to do.

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Tuesday, January 25, 2011 2:39 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield

Re: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Dain Anderson

I wonder if there's a way to load class files into the template cache
manually. If so, perhaps you could clear your cfclasses, enable trusted
cache, load all class files into trusted cache, and at this point all files
would be in memory, never again creating a class file that could conflict
with your existing files. You would need to ensure the Maximum number of
cached templates value was set high enough to hold all of your templates in
memory.

On another note, as I'm not sure this was clear, but clearing trusted cache
doesn't remove class files -- it removes the contents of those class files
from the memory cache. Upon the next request, the class file is read from
disc (if it exists; if not, it re-compiles it) back into the cache.

-Dain


On Tue, Feb 22, 2011 at 11:12 AM, Bobby Hartsfield bo...@acoderslife.comwrote:


 Well, we thought we were finally rid of this one by disabling the Save
 Class Files setting in the CFAdmin but we just had another report of the
 error.

 Short of a rewrite in java or the like, if anyone has any ideas at all, I'd
 love to hear them.



~|
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:342480
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Bobby Hartsfield

Hi Dain, 

Thanks for the response and suggestion. We actually never had trusted cache
enabled. We did, however, have Save Class Files enabled and were getting
the error regularly.

Brook Davies was also having the same issue and ended up writing some code
that deleted the specific class files. It resolved the issue temporarily if
I remember correctly.

We decided to just disable the Save Class Files instead of writing code to
delete related files. It resolved the issue for us for a while; we didn't
hear anything for about 2-3 weeks. Unfortunately, about 3 days ago, we
finally got another report of it.

Personally, I know of no way to load files into the trusted cache manually.
Is the Trusted Cache related to the saved classes? 

We also have thousands and thousands of files in the application. We had
issues with the trusted cache in the past and were advised to disable it (by
some very reputable performance consultants in the CF community.)

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

-Original Message-
From: Dain Anderson [mailto:da...@terradotta.com] 
Sent: Tuesday, February 22, 2011 12:51 PM
To: cf-talk
Subject: Re: Linkage Error - attempted duplicate class definition for name


I wonder if there's a way to load class files into the template cache
manually. If so, perhaps you could clear your cfclasses, enable trusted
cache, load all class files into trusted cache, and at this point all files
would be in memory, never again creating a class file that could conflict
with your existing files. You would need to ensure the Maximum number of
cached templates value was set high enough to hold all of your templates in
memory.

On another note, as I'm not sure this was clear, but clearing trusted cache
doesn't remove class files -- it removes the contents of those class files
from the memory cache. Upon the next request, the class file is read from
disc (if it exists; if not, it re-compiles it) back into the cache.

-Dain


On Tue, Feb 22, 2011 at 11:12 AM, Bobby Hartsfield
bo...@acoderslife.comwrote:


 Well, we thought we were finally rid of this one by disabling the Save
 Class Files setting in the CFAdmin but we just had another report of the
 error.

 Short of a rewrite in java or the like, if anyone has any ideas at all,
I'd
 love to hear them.





~|
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:342483
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Russ Michaels

When a CF file is first run it gets compiled to a class file and loaded into
memory (template cache), if save class files is enabled then the compiled
class file is saved to disk as well, and this file will be used in the
future instead of always compiling the CFM file. This will happen if CF is
restarted or if the file gets removed from the template cache for any
reason.

When you have trusted cache enabled this simply tells CF not to bother
looking at the cfm file to see if there is a newer version, and to always
trust that the cached version is the newest. So if you do not plan to change
your files any time soon, this should provide a performance boost.

It is possible to compile all your CFM files to class files and only have
these on the server and not have any cfm files at all.

-- 

Russ Michaels

www.bluethunderinternet.com  : Business hosting services  solutions
www.cfmldeveloper.com: ColdFusion developer community + free
developer hosting
www.michaels.me.uk   : my blog
www.cfsearch.com : ColdFusion search engine
**
*skype me* : russmichaels


~|
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:342485
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Bobby Hartsfield

We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

 

The severity is listed as benign bug, has a workaround. but a workaround
isn't mentioned. 

 

Manually changing the code when time the error happens so it goes away for a
little while is hardly a workaround but that is all I see in the Steps to
Reproduce section.

 

Does anyone have any idea about what workaround they could be referring
to? 

 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com http://acoderslife.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:341164
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Bobby Hartsfield

... thought about trying because you mentioned it before :-) 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: Tuesday, January 25, 2011 7:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

 

The severity is listed as benign bug, has a workaround. but a workaround
isn't mentioned. 

 

Manually changing the code when time the error happens so it goes away for a
little while is hardly a workaround but that is all I see in the Steps to
Reproduce section.

 

Does anyone have any idea about what workaround they could be referring
to? 

 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com http://acoderslife.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:341165
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Bobby Hartsfield

Another attempt we made to get around it (since we were SURE it was cache
related) was to convert our object CFC to a java class.

So some background for those who might not have followed the old thread:

We have an object cfc. It is nothing but a few CFPROPERTY tags.

This would be an example of that entire CFC.

=
cfcomponent output=false
cfproperty name=property1 type=string /
cfproperty name=property2 type=string /
cfproperty name=property3 type=string /

cfscript
property1 = ;
property2 = ;
property3 = ;
/cfscript
/cfcomponent
=

Say it is called... properties.cfc

Then, in the webservice method, I made the returntype=properties (in the
same directory)

At the end of the webservice, I did something like:

=
cfscript
local.properties = createObject( component, path.to.properties 
);
local.properties.property1 = somequery.value1;
local.properties.property2 = somequery.value2;
local.properties.property3 = somequery.value3;
/cfscript

cfreturn local.properties /
=

Occasionally, this will generate the following:

'coldfusion.xml.rpc.CFCInvocationException:
[java.lang.ClassNotFoundException :
path.to.properties][java.lang.LinkageError : loader (instance of
coldfusion/xml/rpc/SkeletonClassLoader): attempted duplicate class
definition for name: path/to/properties]'



Like I mentioned, we tried converting properties.cfc to a java class but I
could NOT get it to work in a webservice. It worked as a normal, local
component. The java class was very basic and is just the equivalent of the
properties.cfc above.

Example:
=
package com.prop.test;

public class properties {
  
  public String property1 = ;
  public String property2 = ;
  public String property3 = ;
}
=

This is basically what I tried on the webservice side.

=
cfcomponent output=false
cffunction access=remote name=testMethod returntype=any

cfset propObj = createObject(java, com.prop.test.properties) /

cfset propObj.property1 = 1 /
cfset propObj.property2 = 2 /
cfset propObj.property3 = 3 /

cfreturn propObj /
/cffunction
/cfcomponent
=

Calling that like this works fine:

createOBject(component, path.to.webservice).testMethod() /
=

Calling it like this generated a Premature end of file error (I can hit
the URL in a browser fine and see the WSDL)

createOBject(webservice,
http://servername/path/to/webservice.cfc?wsdl;).testMethod() 
=

Cannot perform web service invocation testMethod.
The fault returned when invoking the web service operation is:

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: Premature end of file.
 faultActor: 
 faultNode: 
 faultDetail: 

{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
Premature end of file.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(S... ''


I am just about out of ideas... and by just about, I mean totally...

Any help or ideas on this would be GREATLY appreciated.


.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.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:341166
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Brook Davies

Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

 

The severity is listed as benign bug, has a workaround. but a workaround
isn't mentioned. 

 

Manually changing the code when time the error happens so it goes away for a
little while is hardly a workaround but that is all I see in the Steps to
Reproduce section.

 

Does anyone have any idea about what workaround they could be referring
to? 

 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com http://acoderslife.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:341177
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Bobby Hartsfield

Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

 

The severity is listed as benign bug, has a workaround. but a workaround
isn't mentioned. 

 

Manually changing the code when time the error happens so it goes away for a
little while is hardly a workaround but that is all I see in the Steps to
Reproduce section.

 

Does anyone have any idea about what workaround they could be referring
to? 

 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com http://acoderslife.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:341178
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Bobby Hartsfield

I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

 

The severity is listed as benign bug, has a workaround. but a workaround
isn't mentioned. 

 

Manually changing the code when time the error happens so it goes away for a
little while is hardly a workaround but that is all I see in the Steps to
Reproduce section.

 

Does anyone have any idea about what workaround they could be referring
to? 

 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com http://acoderslife.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:341179
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Brook Davies

Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

 

The severity is listed as benign bug, has a workaround. but a workaround
isn't mentioned. 

 

Manually changing the code when time the error happens so it goes away for a
little while is hardly a workaround but that is all I see in the Steps to
Reproduce section.

 

Does anyone have any idea about what workaround they could be referring
to? 

 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com http://acoderslife.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:341180
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Bobby Hartsfield

You did send some code you were using to manually clear the trustedCache but
all that I noticed it doing was logging in, building a list of files, and
passing them to the clearTrustedCache() method of admin.api.runtime

Running the clearTrsutedCache() method (or clicking the Clear Template Cache
Now button in cfadmin) does not affect the contents of cfclasses for me and
I didn't see another method in the API that looked like it would do that.

I must be missing something somewhere. Without Trusted Cache enabled in
CFAdmin. I wouldn't think admin.api.runtime.clearTrustedCache() would have
anything to do.

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 2:39 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

 

The severity is listed as benign bug, has a workaround. but a workaround
isn't mentioned. 

 

Manually changing the code when time the error happens so it goes away for a
little while is hardly a workaround but that is all I see in the Steps to
Reproduce section.

 

Does anyone have any idea about what workaround they could be referring
to? 

 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com http://acoderslife.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:341181
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk

RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Brook Davies

I know, I thought that aswell. But for me, regardless of if the trusted
cache option is on in the cfadmin, it does clear the files from cfclasses
and it does temporarily resolve the problem. Its still a big problem
though...

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 12:13 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


You did send some code you were using to manually clear the trustedCache but
all that I noticed it doing was logging in, building a list of files, and
passing them to the clearTrustedCache() method of admin.api.runtime

Running the clearTrsutedCache() method (or clicking the Clear Template Cache
Now button in cfadmin) does not affect the contents of cfclasses for me and
I didn't see another method in the API that looked like it would do that.

I must be missing something somewhere. Without Trusted Cache enabled in
CFAdmin. I wouldn't think admin.api.runtime.clearTrustedCache() would have
anything to do.

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Tuesday, January 25, 2011 2:39 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

 

The severity is listed as benign bug, has a workaround. but a workaround
isn't mentioned. 

 

Manually changing the code when time the error happens so it goes away for a
little while is hardly a workaround but that is all I see in the Steps to
Reproduce section.

 

Does anyone have any idea about what workaround they could be referring
to? 

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

RE: Linkage Error - attempted duplicate class definition for name

2011-01-25 Thread Bobby Hartsfield

Weird, I wonder why it doesn't clear the cfclasses for me...

And yes, this is definitely a hacked solution until it gets fixed (if it
ever does)... it is still an issue in CF9.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 4:04 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I know, I thought that aswell. But for me, regardless of if the trusted
cache option is on in the cfadmin, it does clear the files from cfclasses
and it does temporarily resolve the problem. Its still a big problem
though...

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 12:13 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


You did send some code you were using to manually clear the trustedCache but
all that I noticed it doing was logging in, building a list of files, and
passing them to the clearTrustedCache() method of admin.api.runtime

Running the clearTrsutedCache() method (or clicking the Clear Template Cache
Now button in cfadmin) does not affect the contents of cfclasses for me and
I didn't see another method in the API that looked like it would do that.

I must be missing something somewhere. Without Trusted Cache enabled in
CFAdmin. I wouldn't think admin.api.runtime.clearTrustedCache() would have
anything to do.

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Tuesday, January 25, 2011 2:39 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId

RE: Linkage Error - attempted duplicate class definition for name

2011-01-24 Thread Brook Davies

As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think of.
Clearing the specific templates out of  the template cache manually on a
scheduled task. But even with that I am still getting complaints from
customers about errors on the webservice.

Brook



-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-24-11 3:41 PM
To: cf-talk
Subject: Linkage Error - attempted duplicate class definition for name


I have been experiencing this one in CF8 for a while now:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

 

The severity is listed as benign bug, has a workaround. but a workaround
isn't mentioned. 

 

Manually changing the code when time the error happens so it goes away for a
little while is hardly a workaround but that is all I see in the Steps to
Reproduce section.

 

Does anyone have any idea about what workaround they could be referring
to? 

 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com http://acoderslife.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:341159
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm