Giter Site home page Giter Site logo

Comments (12)

ponamorev avatar ponamorev commented on June 11, 2024 7

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.

RamiaSaidawi avatar RamiaSaidawi commented on June 11, 2024 6

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.

retro-pc avatar retro-pc commented on June 11, 2024 4

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.

S-Kerrigan avatar S-Kerrigan commented on June 11, 2024 3

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.

ArRomanov avatar ArRomanov commented on June 11, 2024 2

Hi!

Yesterday I had the same problem. Next decision helped me:

  1. Add to main application class @SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
  2. Update all spring-boot dependencies to version 2.6.3
  3. Update other dependencies which broke your build

from allure-gradle.

ArRomanov avatar ArRomanov commented on June 11, 2024 1

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.

source-store avatar source-store commented on June 11, 2024 1

@ArRomanov , hi! Thanks for an advice, but still some questions anyway:

  1. But what if we usually use datasource autoconfiguration? Not only this example application.
  2. 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.

pshakhov avatar pshakhov commented on June 11, 2024 1

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.

pshakhov avatar pshakhov commented on June 11, 2024

@ArRomanov , hi! Thanks for an advice, but still some questions anyway:

  1. But what if we usually use datasource autoconfiguration? Not only this example application.
  2. 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.

pshakhov avatar pshakhov commented on June 11, 2024

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.

pshakhov avatar pshakhov commented on June 11, 2024

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.

ghahramani avatar ghahramani commented on June 11, 2024

@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)

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.