Git Product home page Git Product logo

raygun4cfml's People

Contributors

garciadev avatar jdstory avatar kennethwsmith avatar possum888 avatar therealagentk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

raygun4cfml's Issues

No SQL dump?

Hello,

I'm seeing a lot of "Unknown error" dumps of category "database" that are missing the SQL body or any clue about what's gone wrong with them -- is this expected behavior? Are there any changes I need to make to pick those details up?

I'm using the 1.4.0 bindings with Lucee 5.2, and forwarding the exception object onto Raygun without any manipulation. I get all of the elements but the SQL error through, the template and the stacktrace.

Thanks!

Trouble splitting StackTraceLineElement for line number.

Ran into this issue on CF11; can't confirm if it's an issue on CF9 or 10.

When a stack trace like this is returned:

coldfusion.runtime.EventHandlerException: Event handler exception. at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:309) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:462) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:142) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:97) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorRequestHandler.java:472) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest(FusionReactorRequestHandler.java:312) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(FusionReactorRequestHandler.java:192) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorRequestHandler.java:507) at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCoreFilter.java:36) at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:79) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactorStaticFilter.java:53) at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChainPointCut.java:41) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) Caused by: coldfusion.runtime.UndefinedVariableException: Variable TEST2 is undefined. at coldfusion.runtime.CfJspPage._get(CfJspPage.java:388) at coldfusion.runtime.CfJspPage._get(CfJspPage.java:350) at coldfusion.runtime.CfJspPage._autoscalarize(CfJspPage.java:1462) at cfindex2ecfm126876337.runPage(C:\hostingspaces\pjtrailers\cf11.pjtrailers.com\wwwroot\index.cfm:6) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2991) at cfApplication2ecfc1944934402$funcONREQUEST.runFunction(C:\hostingspaces\pjtrailers\cf11.pjtrailers.com\wwwroot\Application.cfc:145) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:420) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:643) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:432) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:402) at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:108) at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:301) ... 52 more

The split() bombs out since some of the elements end up not containing a line number to split on using a colon. issue occurs at line 51 of RaygunExceptionMessage.cfc stackTraceLineElements[2].split(":")[2]

Railo 4.2 and content filter issue

raygun = createObject("component","com.nz.co.ventego-creative.raygun4cfml.RaygunClient").init( apiKey = "PRIVATE" );

result = raygun.send(catch);

Incomplete JSON if error happens in thread

The issue is related to the RaygunRequestMessage.cfc component when an error occurs in a thread and cgi.LOCAL_ADDR value is undefined. This leads to incomplete JSON being sent to the Raygun API, causing errors in the dashboard.
One way to fix is to check if we are in a thread and set returnContent["data"] = {}, RaygunRequestMessage.cfc line 42

Error on Raygun.cfc Line 260: "java.lang.UnsupportedOperationException" when using contentFilter

Using ColdFusion 2018.

When attempting to use the contentFilter parameter in the RaygunClient.cfc component, an error occurs on line 260, throwing a "java.lang.UnsupportedOperationException." The issue arises when the key specified in matcher.filter doesn't exist in element.owner.

Steps to Reproduce:
Instantiate the RaygunClient with a contentFilter containing a filter-replacement pair.
Trigger an error, such as sending an exception to Raygun using raygun.send().

Expected Behavior:
The structFindKey function should return an empty array if the specified key is not found in arguments.messageData.
Actual Behavior:
structFindKey returns an array with a struct even if the key is not present, leading to an "UnsupportedOperationException" on line 260.

If arguments.messageData is duplicated before the structFindKey call (e.g., arguments.messageData = duplicate(arguments.messageData);), the issue does not occur.

Custom Data not showing correctly in Raygun

While working a new implementation of raygun - one that requires custom data to be sent and processed - I noticed that the data was not being sent correctly. The custom data userCustomData was being sent as part of the request struct instead of details.

Further, there are seemingly arbitrary restrictions on the custom parameters, limited to session and params. It would be nice to remove these restrictions while maintaining backwards compatibility.

Error in RaygunEnvironmentMessage.cfc:build

ColdFusion 2018, Java11

java.lang.reflect.InaccessibleObjectException: Unable to make public long com.sun.management.internal.OperatingSystemImpl.getCommittedVirtualMemorySize() accessible: module jdk.management does not "opens com.sun.management.internal" to unnamed module @b671dda

References:

https://stackoverflow.com/questions/55952859/unable-to-make-public-long-com-sun-management-internal-operatingsystemimpl-getop

Workaround:

In file, comment lines

// var mf = createObject("java", "java.lang.management.ManagementFactory");
// var osbean = mf.getOperatingSystemMXBean();

Replace returnContent availablePhysicalMemory and totalPhysicalMemory values with JavaCast("null", "")

Wrong version specified

Small issue. But i think there is wrong version specified in the RaygunClientMessage.cfc:
returnContent["version"] = "1.5.0";
Should it be:
returnContent["version"] = "1.6.0"?
Also, when is 1.7.0 coming out?

Compatible with CF 2023 and Java 17?

We are getting this error trying to run raygun4cfml on CF 2023 and Java 17.0.9

java.lang.reflect.InaccessibleObjectException: Unable to make public void sun.management.MemoryImpl.gc() accessible: module java.management does not "opens sun.management" to unnamed module @353f472a

The error occurred in E:/inetpub/raygun4cfml/RaygunEnvironmentMessage.cfc: line 34

Does anything have to be added to the java.args in jvm.config?

raw data is truncated

Hello

There's code within RaygunRequestMessage.cfc that truncates everything but the first 4096 characters of the rawData.
For the project I'm working on I've increased this value to 32768 as it was truncating most of the payload from our api.
Can this truncation be safely removed from code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.