Hi,
I'm getting a strange error when trying to create objects within a
cfthread.
The thread is started within a CFC, then within the thread a number of
other CFC are called. All CFCs are in the same location (/com/) and
the objects are creating using the following syntax:
var objLog = createObject("component", "com.log").init( dsn =
attributes.dsn );
This throws the following error:
Struct
additional
Struct
Cause
string java.util.NoSuchElementException
Detail
string
ErrorCode
string 0
ExtendedInfo
string
Message
string java.util.NoSuchElementException
StackTrace
string java.util.NoSuchElementException at
java.util.LinkedList.getLast(Unknown Source):-1 at
railo.runtime.PageContextImpl.getCurrentPageSource(PageContextImpl.java:
928):928 at
railo.runtime.component.ComponentLoader.load(ComponentLoader.java:51):
51 at
railo.runtime.component.ComponentLoader.loadComponentImpl(ComponentLoader.java:
33):33 at
railo.runtime.PageContextImpl.loadComponent(PageContextImpl.java:2629):
2629 at
railo.runtime.functions.other.CreateObject.doComponent(CreateObject.java:
135):135 at railo.runtime.tag.ObjectTag.doStartTag(ObjectTag.java:127):
127 at com.run_cfc$cf.threadCall(/var/www/
www.testrunnr.com/com/
run.cfc:291):291 at
railo.runtime.thread.ChildThreadImpl.execute(ChildThreadImpl.java:166):
166 at
railo.runtime.thread.ChildSpoolerTask.execute(ChildSpoolerTask.java:
29):29 at
railo.runtime.spooler.SpoolerTaskSupport._execute(SpoolerTaskSupport.java:
72):72 at
railo.runtime.spooler.SpoolerEngineImpl.execute(SpoolerEngineImpl.java:
546):546 at railo.runtime.spooler.SpoolerEngineImpl
$TaskThread.run(SpoolerEngineImpl.java:471):471 at
railo.runtime.op.Caster.toPageException(Caster.java:2987):2987 at
com.run_cfc$cf.threadCall(/var/www/
www.testrunnr.com/com/run.cfc:291):
291 at
railo.runtime.thread.ChildThreadImpl.execute(ChildThreadImpl.java:166):
166 at
railo.runtime.thread.ChildSpoolerTask.execute(ChildSpoolerTask.java:
29):29 at
railo.runtime.spooler.SpoolerTaskSupport._execute(SpoolerTaskSupport.java:
72):72 at
railo.runtime.spooler.SpoolerEngineImpl.execute(SpoolerEngineImpl.java:
546):546 at railo.runtime.spooler.SpoolerEngineImpl
$TaskThread.run(SpoolerEngineImpl.java:471):471
Any ideas?
Thanks,
Dan