Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
47 views

I am implementing a method aspect and I need to check that the return value specified in the attribute matches the method's return type (or can be safely cast to it). I defined by aspect like so: [...
Dominick's user avatar
  • 526
0 votes
0 answers
78 views

I am attempting to implement a version of the Metalama Retry 5 example in our application as a first step to see if Metalama will be beneficial for our uses cases. However, I am running into an issue ...
Dominick's user avatar
  • 526
1 vote
1 answer
62 views

Spring beginner here. I am making two custom annotations @Satisfy and @Verify, meant to be used to track requirements in code. @Satisfy denotes where the requirement is implemented @Verify denotes ...
Kurt Andersen's user avatar
1 vote
1 answer
129 views

I’m currently using AspectJ alongside Spring AOP in my Maven project. I want to enable compile-time weaving for aspects that are provided by a dependency (my-aspect-library) while retaining Spring’s ...
Shadow Hatake's user avatar
0 votes
0 answers
72 views

I was wondering if it is possible to implement an automatic error logger with specific functionality that logs errors into a PostGres Table. Basically, in my application i have both handled and ...
Sushi Gucci's user avatar
0 votes
0 answers
66 views

I am using an Interceptors structure created with Castle DynamicProxy in the project and I wrote a LogAspect for logging operations. However, LogAspect is not triggered in any way. I am sharing my ...
jemil's user avatar
  • 1
0 votes
1 answer
73 views

I am wanting to capture the data returned by a method inside of a method I am wanting to perform advice on. I want to use @After, because this method can throw exceptions, and I want to capture this ...
achdumeingute's user avatar
0 votes
1 answer
333 views

I have been trying to get Spring AOP to work for the last day or two and have looked at many different resources but can't seem to get it working. I must be missing something obvious but I am spinning ...
trever's user avatar
  • 1,003
0 votes
1 answer
262 views

I'm looking for a way to get logging around methods. So I've started looking at examples of Spring-AOP and AspectJ. However, none of these seem to actually work, or at least are missing pieces in ...
Zach's user avatar
  • 765
1 vote
1 answer
48 views

Since the below given advice works only for a specific class @Before("staticinitialization(org.mazouz.aop.Main1)") I tried to make the advice generic such that it can work for any package @...
sadhana gm's user avatar
-1 votes
1 answer
167 views

I have a form where users upload an avatar of themselves. Sometimes the file they upload is a perfect square, but often it's not. Here's the HTML I'm using to display the image: <img src="&...
Jordan McMahon's user avatar
0 votes
0 answers
57 views

Why does the Aspect print the caller class name instead of the calling method name in the caller information? When attempting to print the calling method name, why does it result in a StackOverflow ...
sadhana gm's user avatar
0 votes
1 answer
413 views

I am working on a spring boot application and I am trying to implement a custom annotation to log execution time and memory used by the method annotated with my custom annotation. I am not able to ...
Rupesh's user avatar
  • 13
0 votes
3 answers
486 views

I am trying to Practice Spring AOP. The Problem is, My program is not what I expect. It should Look something like this when Aspect works. Sep 27, 2020 1:11:11 PM aspects.LoggingAspect log INFO: ...
mchun's user avatar
  • 107
2 votes
2 answers
3k views

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpointGroupsBeanPostProcessor' defined in class path resource [org/springframework/boot/actuate/...
Deepak Panchal's user avatar
1 vote
0 answers
101 views

I have created an aspect for the purpose of error logging and reporting within a microservices system but it is not intercepting all the methods that throw an exception within the pointcut. import ...
nova_rem's user avatar
0 votes
1 answer
302 views

Currently im working on a application that runs the same process(with different input parameters in this case TaskInformation) parallelly on 16 threads. I would like to create Aspect from which i ...
DengerZone's user avatar
0 votes
1 answer
855 views

I have a hibernate filter defined on my entities which I am injecting using aspect for all repositories which implements my TenantableRepository. The issue is that the filter is not getting injected ...
user11567166's user avatar
0 votes
1 answer
45 views

thats my code and this is only showing the logs as method is executed in intellij INFO: Publishing comment: Demo comment. Also added the dependencies but still i cant see whats the error. package com....
alpha's user avatar
  • 67
1 vote
0 answers
64 views

I am using PostSharp, and within my aspects, I want to check a header from the incoming request during the entry phase of a method. I am unable to access HttpContext. Is there a way to achieve this? ...
Saruhan's user avatar
  • 93
1 vote
1 answer
94 views

How do I test private annotation aspect in spring boot ? Example: @Aspect @Component @Slf4j public class AspectClass { @AfterReturning(value = "@annotation(CustomAnnotation)") ...
Ruchi Jain's user avatar
1 vote
1 answer
754 views

I'm implementing a dotnet Maui app, and got to the point when I'd need some aspects to hanlde errors and certain responses. In the past, I implemented interceptors using Castle Windsor, but how can I ...
balintn's user avatar
  • 1,533
0 votes
1 answer
269 views

One important design principle is the OCP, which states that we would like our modules to be open for extension but closed to modification. When we use Aspect Oriented Programming, we impact the whole ...
Shaharg's user avatar
  • 1,069
0 votes
1 answer
2k views

I have a Enabled Spring AOP for my logging purpose and use webflux for the API entrypoint, things work fine if the api does not go through ReactiveAuthenticationManager like my login api but the ...
Akash Jain's user avatar
0 votes
1 answer
181 views

I have a logging aspect like this, it will print args, result or any other exceptions. I use aspectj-maven-plugin to compile this aspect. Then, the compiled result will be packaged to a jar. I will ...
Chuang Hou's user avatar
0 votes
1 answer
234 views

I trying to learn aspectj for a project. I wish to run the java files from the terminal using ajc and java but I am unable to do so. I have 2 files in my directory HelloWorld.java and HWTracer.aj ...
Dunkan's user avatar
  • 3
0 votes
1 answer
46 views

First of all, I am not 100% sure if my code is correct, since this is the first time I am ever using Aspect in Spring, so I will be happy if you point out any errors. First a little background. I have ...
Maflec's user avatar
  • 41
3 votes
1 answer
509 views

I have coded to label text data by term aspect then sentiment with vader lexicon. But the result is only output -1 which means negative and 1 which means positive, where there should be 3 classes of ...
Annisa Lianda's user avatar
0 votes
0 answers
136 views

Hello I am new to Aspect Oriented Programming and trying to understand some concepts. I am writing a simple Spring Boot Application where I defined a dummyEndpoint where I am calling a method of a ...
Akshay's user avatar
  • 85
3 votes
1 answer
586 views

I am using v5.5.1 of go-telegram-bot-api to send videos with the following code. However, the actual aspect ratio 4:5 is broken and video seems as 1:1 on iOS devices. I also have MacOS and videos have ...
Harun Sasmaz's user avatar
1 vote
1 answer
156 views

I am trying to implement read-only data source in my application. According to the following repo implementation, this aspect method should be called when a transaction happens but it never triggers ...
user avatar
1 vote
1 answer
254 views

I'm using Java 8, testng, maven and selenium for UI automation frame work and trying to use aspectj to execute aspects before and after for switching iframes(entry and exit) when any method in an ...
gamelover's user avatar
0 votes
1 answer
498 views

I have found and tried to follow this answer by Roman Puchkovskiy with a detailed example, but I am missing some detail. Here is the aspect I am trying to test: package com.company.reporting.logger....
cptully's user avatar
  • 727
-1 votes
1 answer
65 views

In the game view, it appears horizontally as expected, but in the smartphone view, it appears vertically. I do not know what is the problem. How to fix?(My smartphone has 1080 x 2400 pixels, 20:9 ...
Soon's user avatar
  • 501
0 votes
1 answer
541 views

I have a method handleException that return a ResponseEntity : @ExceptionHandler({Exception.class}) public ResponseEntity handleException(Exception e) { Map<String, String> data = new ...
khalid tounoussi's user avatar
0 votes
2 answers
239 views

I'm trying to add a custom annotation for JPA repository methods to have a advice on @Query value. Below is the piece of code I tried MyFilter class @Aspect @Component public class MyFilter { @...
bhargavaravalik's user avatar
0 votes
1 answer
2k views

I'm trying to get my Aspect class to work but it gets completely ignored. I have following files: MyAnnotation.java package annotations; import java.lang.annotation.ElementType; import java.lang....
FER_Viborg's user avatar
0 votes
0 answers
330 views

I have a micro-service project and I am adding a common feature to every service. For that I wrote code in my common service and it works fine as long as I put @Transactional annotation on every ...
Vadim's user avatar
  • 31
1 vote
1 answer
1k views

I have an Aspect: @Aspect @Component public class BusinessAspect { @Around("@annotation(Business)") public Object getCorrespondingBusiness(ProceedingJoinPoint joinPoint, Business ...
tommy sylas's user avatar
1 vote
1 answer
2k views

Currently, the messages on source queue are sent to dead-letter-queue on every exception. My goal is to add custom attributes to the failed message so that engineers have more information about ...
snargul's user avatar
  • 13
0 votes
2 answers
618 views

I'm trying to understand how a program is determining the new width/height when resizing it. One would think it's merely an aspect ratio like 4:3 (which would lead to a 1.333333 ish value) however as ...
Matías Macotinsky's user avatar
0 votes
1 answer
641 views

I have a custom annotation as annotation class MyHandler(val value:String) I wrote an aspect for functions using this annotation, also reading the value within the annotation for my processing. @...
mewan's user avatar
  • 1
9 votes
1 answer
3k views

I have trouble clipping the image in SwiftUI Here is the code with minimal wrong-working example: struct TestView: View { var body: some View { Image("iPhone13Pro") ....
Daniel Pustotin's user avatar
1 vote
1 answer
1k views

Working with Springboot 2.7.0. I had a a working application and I made these changes on top of it Aspect Configuration @Configuration @EnableAspectJAutoProxy @ComponentScan public class AspectConfig {...
Stubborn's user avatar
  • 330
1 vote
1 answer
1k views

anyone have an idea of how doing that : I have two pointcut, one generic and an one specific. The two pointcuts will intercept the same method invocation but I want to just call the specific pointcut. ...
Alex's user avatar
  • 11
0 votes
1 answer
835 views

Is it possible to interrupt invoking the actual method from within the aspect execution? For example: public class CheckPermissionAspect { @Around("@annotation(CheckPermission)") ...
jrg's user avatar
  • 43
1 vote
0 answers
764 views

Trying to write a aspectJ class for my dropwizard project. Below is the class @Aspect public class LoggingAspect { @Around("execution(* javax.servlet.http.HttpServlet.*(..)) *)") public ...
Laodao's user avatar
  • 1,729
0 votes
1 answer
931 views

Hello I'm trying to throw custom Exceptions from my @Aspect, but no matter what exception I throw, my Aspect is throwing UndeclaredThrowableException, My custom exception is public class ...
Boldbayar's user avatar
  • 875
0 votes
0 answers
913 views

I have a requirement wherein I need to save any request and response being passed to a Rest Controller in a database, so I decided to implement Spring AOP for the same. The issue that is now being ...
MysteriousCoder's user avatar
1 vote
1 answer
10k views

When I test with as-pect I get an error in CRUD dApp with NEAR. The whole error I get is as follows; yarn test [Error] There was a problem loading [/Users/malibilgin/Documents/Web3/order-management-...
malibil's user avatar
  • 179

1
2 3 4 5
11