Very slow generation of definitions files

83 views
Skip to first unread message

Jaime Metcher

unread,
Aug 14, 2008, 11:26:04 PM8/14/08
to transfer-dev
Hi All,

I'm finding that it's taking a looong time (anything up to 30 minutes) for transfer to generate definitions files.    Not sure where to start on this one - has anyone seen anything similar?  Is this just the JVM 1.6 classloader bug?  I'm on CF8.01 with the default JVM, IIS6, W2K3.  The top of the stack trace looks like this:

Stack trace:
java.util.zip.ZipFile.getEntry(Native Method)
java.util.zip.ZipFile.getEntry(ZipFile.java:149)
   - locked java.util.jar.JarFile@723a24
java.util.jar.JarFile.getEntry(JarFile.java:206)
java.util.jar.JarFile.getJarEntry(JarFile.java:189)
sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:754)
sun.misc.URLClassPath.getResource(URLClassPath.java:168)
java.net.URLClassLoader$1.run(URLClassLoader.java:192)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
coldfusion.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader.java:221)
   - locked coldfusion.bootstrap.BootstrapClassLoader@1896a4c
java.lang.ClassLoader.loadClass(ClassLoader.java:299)
   - locked coldfusion.runtime.TemplateClassLoader@13b3cbb
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   - locked coldfusion.runtime.TemplateClassLoader@13b3cbb
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
java.lang.Class.getConstructor0(Class.java:2699)
java.lang.Class.newInstance0(Class.java:326)
java.lang.Class.newInstance(Class.java:308)
coldfusion.runtime.TemplateClassLoader.newInstance(TemplateClassLoader.java:444)
coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:156)
coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:309)
cfTransferBuilder2ecfc597509928$funcBUILDTRANSFEROBJECT.runFunction(C:\CFusionMX7\CustomTags\transfer\com\dynamic\TransferBuilder.cfc:136)

Jaime

Mark Mandel

unread,
Aug 14, 2008, 11:27:53 PM8/14/08
to transf...@googlegroups.com
Welcome to the world of Java 1.6.

Once the .transfer files have been gen'd it's not too bad... but yes,
this is an aweful issue with Java 1.6.

Mark

--
E: mark....@gmail.com
W: www.compoundtheory.com

Jaime Metcher

unread,
Aug 14, 2008, 11:31:37 PM8/14/08
to transf...@googlegroups.com
Ouch.  Thanks for putting me into my misery :)

Jaime

Elliott Sprehn

unread,
Aug 17, 2008, 4:48:00 AM8/17/08
to transfer-dev
Update to the Java 1.6 RC 10 and the slowness will go away. It's been
in beta for ages, but it's plenty stable, now it's a Release Candidate
so you have even more reason to update! Our server has run it for
months, even while beta, without issue.

http://java.sun.com/javase/downloads/ea.jsp

- Elliott

On Aug 14, 10:31 pm, "Jaime Metcher" <jmetc...@gmail.com> wrote:
> Ouch.  Thanks for putting me into my misery :)
>
> Jaime
>
> On Fri, Aug 15, 2008 at 1:27 PM, Mark Mandel <mark.man...@gmail.com> wrote:
>
> > Welcome to the world of Java 1.6.
>
> > Once the .transfer files have been gen'd it's not too bad... but yes,
> > this is an aweful issue with Java 1.6.
>
> > Mark
>
> > On Fri, Aug 15, 2008 at 1:26 PM, Jaime Metcher <jmetc...@gmail.com> wrote:
> > > Hi All,
>
> > > I'm finding that it's taking a looong time (anything up to 30 minutes)
> > for
> > > transfer to generate definitions files.    Not sure where to start on
> > this
> > > one - has anyone seen anything similar?  Is this just the JVM 1.6
> > > classloader bug?  I'm on CF8.01 with the default JVM, IIS6, W2K3.  The
> > top
> > > of the stack trace looks like this:
>
> > > Stack trace:
> > > java.util.zip.ZipFile.getEntry(Native Method)
> > > java.util.zip.ZipFile.getEntry(ZipFile.java:149)
> > >    - locked java.util.jar.JarFile@723a24
> > > java.util.jar.JarFile.getEntry(JarFile.java:206)
> > > java.util.jar.JarFile.getJarEntry(JarFile.java:189)
> > > sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:754)
> > > sun.misc.URLClassPath.getResource(URLClassPath.java:168)
> > > java.net.URLClassLoader$1.run(URLClassLoader.java:192)
> > > java.security.AccessController.doPrivileged(Native Method)
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>
> > coldfusion.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader.ja va:221)
> > >    - locked coldfusion.bootstrap.BootstrapClassLoader@1896a4c
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> > >    - locked coldfusion.runtime.TemplateClassLoader@13b3cbb
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> > >    - locked coldfusion.runtime.TemplateClassLoader@13b3cbb
> > > java.lang.Class.getDeclaredConstructors0(Native Method)
> > > java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
> > > java.lang.Class.getConstructor0(Class.java:2699)
> > > java.lang.Class.newInstance0(Class.java:326)
> > > java.lang.Class.newInstance(Class.java:308)
>
> > coldfusion.runtime.TemplateClassLoader.newInstance(TemplateClassLoader.java :444)
> > > coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:156)
> > > coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:309)
>
> > cfTransferBuilder2ecfc597509928$funcBUILDTRANSFEROBJECT.runFunction(C:\CFus ionMX7\CustomTags\transfer\com\dynamic\TransferBuilder.cfc:136)
>
> > > Jaime
>
> > --
> > E: mark.man...@gmail.com
> > W:www.compoundtheory.com

Jaime Metcher

unread,
Aug 17, 2008, 9:35:30 PM8/17/08
to transf...@googlegroups.com
Thanks, Elliot.  I'll give that a go.

Jaime

Chris Peterson

unread,
Aug 18, 2008, 8:32:18 AM8/18/08
to transf...@googlegroups.com
That's beautiful man, runs quite nice for local development here on Transfer/MG/CS site.  Speeds up reloads quite a bit!.  Thanks for the tip Elliott!

Chris
--
Hey! I dont tell you how to tell me what to do, so dont tell me how to do what you tell me to do! ~ Bender (Futurama)

Matt Quackenbush

unread,
Aug 18, 2008, 3:28:13 PM8/18/08
to transf...@googlegroups.com
Elliott,

Am I correct in understanding that Java 1.6 will *not* work with CF 7.02? 

Elliott Sprehn

unread,
Aug 18, 2008, 3:40:23 PM8/18/08
to transfer-dev
Yes. I've never been able to get CF7 to deploy properly on it. Usually
fails quite catastrophically with lots of errors.

I did get CF6.1 to deploy on Java 1.5 successfully with minor quirks.

If you're on CF7 and Java 1.4 though then you shouldn't have this
class loader bug that causes transfer to be sooo slow. Transfer
startup slowness on CF7 is usually just related to createObject()
being sluggish.

- Elliott

Matt Quackenbush

unread,
Aug 18, 2008, 4:17:01 PM8/18/08
to transf...@googlegroups.com
Okay.  Thanks.  Glad I remembered to ask before I did the update!  LOL  ;-)

Nando

unread,
Aug 18, 2008, 5:31:55 PM8/18/08
to transf...@googlegroups.com
Can anyone point me in the right direction how to update CF8 to Java 1.6 RC 10?

Thanks,
Nando



--

Nando M. Breiter
The CarbonZero Project
CP 234
6934 Bioggio
Switzerland
+41 76 303 4477
na...@carbonzero.ch

Mark Mandel

unread,
Aug 18, 2008, 7:08:28 PM8/18/08
to transf...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages