Comments (12)
I've recently met the same problem with ajcore dumps and steps absence in Allure report for SpringBootTest
The next aop.xml
helped me
<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">
<aspectj>
<aspects>
<include within="io.qameta.allure..*" />
</aspects>
</aspectj>
from allure-gradle.
we are having same issue reported here after update allure to 2.17.3 and spring boot to 2.6.6
we need to connect to DB "org.postgresql:postgresql:42.3.3"
and same errors are printed
-- (IllegalStateException) org.aspectj.weaver.MissingResolvedTypeWithKnownSignature) (typeBindings={T=oracle.ucp.jdbc.PoolDataSource})
is there a specific lib for org.aspectj.weaver we need to use that can solve it for now ?
from allure-gradle.
quick fix
src/test/resources/META-INF/aop-ajc.xml
<aspectj>
<weaver options="-showWeaveInfo -Xlint:ignore">
<exclude within="org.springframework.boot.jdbc.DataSourceBuilder.OraclePoolDataSourceProperties"/>
<exclude within="org.springframework.boot.diagnostics.analyzer.ValidationExceptionFailureAnalyzer"/>
</weaver>
</aspectj>
from allure-gradle.
Ping to creators of library - any updates/progress news?
Spring Boot 2.7.0, section for manual configure allure with set-up versions no helped us
We still too have this exceptions.
from allure-gradle.
Hi!
Yesterday I had the same problem. Next decision helped me:
- Add to main application class
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
- Update all spring-boot dependencies to version 2.6.3
- Update other dependencies which broke your build
from allure-gradle.
I can't give answers to you, sorry. Need to try ¯\(ツ)/¯. But there is one more idea - add flag -Dorg.aspectj.weaver.Dump.exception=false
. So, dump's files won't apear, but anyway you wil have some exception in your logs.
from allure-gradle.
@ArRomanov , hi! Thanks for an advice, but still some questions anyway:
- But what if we usually use datasource autoconfiguration? Not only this example application.
- Also, rignt now we can`t up all our applications to latest versions of spring-boot + java +kotlin and needed time to do this.
у меня такая же ошибка, ты победил ее?
from allure-gradle.
We can avoid dumping any aspectj dumps by something like this:
val allureVersion = "2.19.0"
allure {
report {
version.set(allureVersion)
}
adapter {
aspectjVersion.set("1.9.9.1")
autoconfigure.set(true)
autoconfigureListeners.set(true)
aspectjWeaver.set(true)
frameworks.junit5.adapterVersion.set(allureVersion)
}
}
from allure-gradle.
@ArRomanov , hi! Thanks for an advice, but still some questions anyway:
- But what if we usually use datasource autoconfiguration? Not only this example application.
- Also, rignt now we can`t up all our applications to latest versions of spring-boot + java +kotlin and needed time to do this.
from allure-gradle.
quick fix src/test/resources/META-INF/aop-ajc.xml
<aspectj> <weaver options="-showWeaveInfo -Xlint:ignore"> <exclude within="org.springframework.boot.jdbc.DataSourceBuilder.OraclePoolDataSourceProperties"/> <exclude within="org.springframework.boot.diagnostics.analyzer.ValidationExceptionFailureAnalyzer"/> </weaver> </aspectj>
For me this didnt help, and if use as src/main/resources/META-INF/aop-ajc.xm | src/main/resources/META-INF/aop.xm
And src/test/resources/META-INF/aop.xml
from allure-gradle.
Ping to creators of library - any updates/progress news? Spring Boot 2.7.0, section for manual configure allure with set-up versions no helped us We still too have this exceptions.
Please try to push @a.eroshenko in tg community https://t.me/allure_ru, he ignored me for past fe2 years with this trouble.
from allure-gradle.
@ponamorev thank you for the help, it works but now but some errors appear in the log like below, any idea?
[AppClassLoader@251a69d7] error aspect 'org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect' woven into 'org.springframework.beans.factory.aspectj.AbstractInterfaceDrivenDependencyInjectionAspect' must be defined to the weaver (placed on the aspectpath, or defined in an aop.xml file if using LTW).
[AppClassLoader@251a69d7] error aspect 'org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect' woven into 'org.springframework.data.jpa.domain.support.AuditingEntityListener' must be defined to the weaver (placed on the aspectpath, or defined in an aop.xml file if using LTW).
[AppClassLoader@251a69d7] error aspect 'org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect' woven into 'org.springframework.beans.factory.aspectj.ConfigurableObject' must be defined to the weaver (placed on the aspectpath, or defined in an aop.xml file if using LTW).
from allure-gradle.
Related Issues (20)
- allureServe/allureReport task failing after the second run if category.json is saved under test/resources
- Allure result json doesn't contain any indication of group annotation when running a test which is executed as gradle task
- Invalid output property causes Gradle build cache miss
- Add support for Spock2 HOT 4
- Last version of Allure plugin (gradle) does not work properly HOT 4
- Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. HOT 1
- Add option to generate a single-file report via Gradle task
- Configuration cache: Cannot set the value of a property of type [...].Configuration using a provider of type [...].DefaultFileCollectionFactory$ResolvingFileCollection
- Allure gradle plugin causes execution of additonal test sets as part of build task HOT 3
- spi-off transformer should be disabled in case autoconfigure=false
- Able use custom java sdk HOT 2
- No reports are generated when using latest Allure version (2.16.1) HOT 3
- Allure commandline is downloaded into `build/allure` folder, but previously it was donwloaded into `.allure` folder in the project root HOT 1
- Issue integrating allure-plugin into build-conventions HOT 1
- Allure does not work together with reckon plugin HOT 2
- Allure reports not generating after upgrading allure version from 2.8.1 to 2.9.4 HOT 2
- Example for report aggregation? HOT 1
- ClassCastException with Gradle 7.5-milestone-1 HOT 11
- Ignoring Aspectj version in allureAspectjWeaverAgent and allure extension without explicit implementation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allure-gradle.