perf4j

NPE with Perf4j and Log4j

隐身守侯 提交于 2020-01-06 03:40:06
问题 while using Perf4j together with Log4j I get the following exception: log4j:ERROR Error occured while converting date. java.lang.NullPointerException at java.lang.System.arraycopy(Native Method) at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:328) at java.lang.StringBuffer.getChars(StringBuffer.java:201) at org.apache.log4j.helpers.ISO8601DateFormat.format(ISO8601DateFormat.java:130) at java.text.DateFormat.format(DateFormat.java:316) at org.apache.log4j.helpers

How does AspectJ's load-time-weaver find META-INF\aop.xml?

点点圈 提交于 2019-12-21 17:50:07
问题 I am attempting to use load-time-weaving to tie perf4j into a program, but it does not seem to be finding aop.xml in my classpath. Either that or it is not weaving the aspect because it is not finding it. I have enabled verbose output from aop.xml but I am not seeing any weaving messages, errors or otherwise. Where does aspectJweaver look for the META-INF/aop.xml? How can I tell which one it is looking for? I have attempted to use a direct path to import the xml with this, but it hasn't

How to configure load-time weaving with AspectJ and Tomcat?

好久不见. 提交于 2019-12-20 12:39:04
问题 I tried to configure load-time weaving (for doing profiling with Perf4J) in the next way: 1) I added aop.xml to META-INF folder. When deployed, META-INF is placed in the artifact root directory (i.e. MyAppDeployed/META-INF ). 2) I put aspectjrt-1.6.1.jar , aspectjweaver-1.6.1.jar , commons-jexl-1.1.jar , commons-logging.jar to the Tomcat/lib folder (at first I tried MyAppDeployed/WEB-INF/libs but it also didn't work). 3) I added -javaagent:C:\apache-tomcat-6.0.33\lib\aspectjweaver-1.6.1.jar

AspectJ Plugin Aspect Config with Maven using external Jar for Aspect

点点圈 提交于 2019-12-11 06:35:46
问题 I am using Perf4j to do performance logging. It specifies that you use aop.xml to define which Aspect you want to be called at compile time depending on which logging system you are using. I cannot get it to pick up the aop.xml file which is in src/main/webapp/meta-inf/aop.xml I cannot figure out how to get my Maven plugin to only weave the log4j aspect. <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <version>1.3</version> <configuration>

How does AspectJ's load-time-weaver find META-INF\\aop.xml?

吃可爱长大的小学妹 提交于 2019-12-04 11:25:10
I am attempting to use load-time-weaving to tie perf4j into a program, but it does not seem to be finding aop.xml in my classpath. Either that or it is not weaving the aspect because it is not finding it. I have enabled verbose output from aop.xml but I am not seeing any weaving messages, errors or otherwise. Where does aspectJweaver look for the META-INF/aop.xml? How can I tell which one it is looking for? I have attempted to use a direct path to import the xml with this, but it hasn't worked. -Dorg.aspectj.weaver.loadtime.configuration=C:\dev\trunk\bin\META-INF\aop.xml Note: The program

How to configure load-time weaving with AspectJ and Tomcat?

别来无恙 提交于 2019-12-03 03:08:54
I tried to configure load-time weaving (for doing profiling with Perf4J) in the next way: 1) I added aop.xml to META-INF folder. When deployed, META-INF is placed in the artifact root directory (i.e. MyAppDeployed/META-INF ). 2) I put aspectjrt-1.6.1.jar , aspectjweaver-1.6.1.jar , commons-jexl-1.1.jar , commons-logging.jar to the Tomcat/lib folder (at first I tried MyAppDeployed/WEB-INF/libs but it also didn't work). 3) I added -javaagent:C:\apache-tomcat-6.0.33\lib\aspectjweaver-1.6.1.jar to VM options when starting Tomcat. 4) My aop.xml : <!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http

perf4j settings for logback.xml

喜你入骨 提交于 2019-12-01 00:31:55
hi folks I want to know exact config settings of logback.xml when it was using with perf4j. i create this configuration in logback.xml <configuration> <!-- Perf4J appenders --> <!-- This AsyncCoalescingStatisticsAppender groups StopWatch log messages into GroupedTimingStatistics messages which it sends on the file appender defined below --> <appender name="CoalescingStatistics" class="org.perf4j.logback.AsyncCoalescingStatisticsAppender"> <param name="TimeSlice" value="60000"/> <appender-ref ref="graphExecutionTimes"/> <appender-ref ref="graphExecutionTPS"/> <!-- We add the JMX Appender

perf4j settings for logback.xml

我与影子孤独终老i 提交于 2019-11-30 19:53:13
问题 hi folks I want to know exact config settings of logback.xml when it was using with perf4j. i create this configuration in logback.xml <configuration> <!-- Perf4J appenders --> <!-- This AsyncCoalescingStatisticsAppender groups StopWatch log messages into GroupedTimingStatistics messages which it sends on the file appender defined below --> <appender name="CoalescingStatistics" class="org.perf4j.logback.AsyncCoalescingStatisticsAppender"> <param name="TimeSlice" value="60000"/> <appender-ref