--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/c4ae96aa-bc63-404a-a951-e9fd4fffba1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/OOtXwK3pMpc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/etPan.571e9acc.5bcb9c71.31c%40jonclausen-mbp.local.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/187D91CE-B352-47F4-B87D-0942560C68EE%40gmail.com.
On Apr 25, 2016, at 5:18 PM, Jon Clausen <jon_c...@silowebworks.com> wrote:OK. I see now. This error probably needs to be thrown, since the logistics of managing transactions through multiple connections is the responsibility of the driver and isn’t guaranteed - not to mention row locking issues which may arise. Just because it works in ACF doesn’t mean it, necessarily, should work. :)
In either case, why don’t you just thread the code in your logging and then you won’t have to worry about the transaction used in the primary thread?
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/etPan.571eb3e4.1db92d09.31c%40jonclausen-mbp.local.
Hi Paul,
I meant start a separate thread for your logging using cfthread. Something like:
public any function logAuthenticationRequest(
required string username,
required string password,
required string deviceId,
required boolean status,
required string message
)
{
var threadName = "logAuthenticationRequest_" & createUUID();
thread name="#threadName#" action="run"
object=object
arguments=arguments
{
var req = object.getNew('AuthenticationRequest');
arguments.createdDate = datetime.getNow();
if ( req.populate( context = arguments ).validate() )
req.save();
}
return cfthread[ threadName ];
}
Debugging thread errors is a bit more involved, but logging is an example of when they can come in really handy.
--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/OOtXwK3pMpc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/etPan.571f53d0.713bc17a.31c%40jonclausen-mbp.local.
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/53ACAAD2-78B0-46CA-9D0F-093ADFA0A0A0%40gmail.com.
ERROR WHEN LOGGING EXCEPTION Catch additional Struct Detail string ErrNumber number 0 ErrorCode string 0 Extended_Info string ExtendedInfo string Message string Element at position [1] doesn't exist in array StackTrace string Element at position [1] doesn't exist in array at lucee.runtime.type.ArrayImpl.invalidPosition(ArrayImpl.java:194):194 at lucee.runtime.type.ArrayImpl.getE(ArrayImpl.java:171):171 at lucee.runtime.type.ArrayImpl.get(ArrayImpl.java:124):124 at lucee.runtime.type.util.ArraySupport.get(ArraySupport.java:314):314 at lucee.runtime.util.VariableUtilImpl.get(VariableUtilImpl.java:255):255 at lucee.runtime.util.VariableUtilImpl.getCollection(VariableUtilImpl.java:249):249 at lucee.runtime.PageContextImpl.getCollection(PageContextImpl.java:1416):1416 at core.api_cfc$cf.udfCall1(/Users/jonathanprice/Websites/Taffy/atuttle-Taffy-75b0912/core/api.cfc:163):163 at core.api_cfc$cf.udfCall(/Users/jonathanprice/Websites/Taffy/atuttle-Taffy-75b0912/core/api.cfc):-1 at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:111):111 at lucee.runtime.type.UDFImpl._call(UDFImpl.java:328):328 at lucee.runtime.type.UDFImpl.call(UDFImpl.java:229):229 at lucee.runtime.ComponentImpl._call(ComponentImpl.java:642):642 at lucee.runtime.ComponentImpl._call(ComponentImpl.java:524):524 at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1761):1761 at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:405):405 at lucee.runtime.listener.ModernAppListener.onError(ModernAppListener.java:392):392 at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2273):2273 at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2225):2225 at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:456):456 at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:47):47 at javax.servlet.http.HttpServlet.service(HttpServlet.java:725):725 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291):291 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239):239 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219):219 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106):106 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501):501 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142):142 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79):79 at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610):610 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88):88 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537):537 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1085):1085 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658):658 at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222):222 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1556):1556 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1513):1513 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142):1142 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617):617 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61 at java.lang.Thread.run(Thread.java:745):745 TagContext Array 1 Struct codePrintHTML string 161: </cfif>
162: <cfif structKeyExists(root,"tagContext")>
163: <cfset data.tagContext = root.tagContext[1].template & " [Line #root.tagContext[1].line#]" />
164: </cfif>
165: <!--- MAKE IT LOOK GOOD! --->
codePrintPlain string 161: 162: 163: 164: 165: column number 0 id string ?? line number 163 Raw_Trace string core.api_cfc$cf.udfCall1(/Users/jonathanprice/Websites/Taffy/atuttle-Taffy-75b0912/core/api.cfc:163) template string /Users/jonathanprice/Websites/Taffy/atuttle-Taffy-75b0912/core/api.cfc type string cfml type string expression
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/etPan.571fde25.84bd528.31c%40jonclausen-mbp.local.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/E613C216-7309-4AD1-ACC7-61A5B97FCC18%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/E613C216-7309-4AD1-ACC7-61A5B97FCC18%40gmail.com.