Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.32k stars 1.97k forks source link

[BUG] could not get type for name com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl.access from any class loader #32342

Open survivant opened 1 year ago

survivant commented 1 year ago

Describe the bug when I run this command mvn azure:run I obtain the stacktrace below

Exception or Stack Trace see the logs below

To Reproduce run this command : mvn azure:run

Code Snippet my pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.3</version>
        <relativePath/>
    </parent>
    <groupId>com.example</groupId>
    <artifactId>iot-to-adx</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>iot-to-adx</name>
    <description>Export IOT Events to DAX</description>
    <properties>
        <java.version>11</java.version>
        <spring-cloud-azure.version>4.4.0</spring-cloud-azure.version>
        <springdoc.version>1.6.12</springdoc.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>com.microsoft.azure.kusto</groupId>
            <artifactId>kusto-data</artifactId>
            <version>3.2.0</version>
            <exclusions>
                <exclusion>
                    <artifactId>slf4j-simple</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.microsoft.azure.kusto</groupId>
            <artifactId>kusto-ingest</artifactId>
            <version>3.2.0</version>
            <exclusions>
                <exclusion>
                    <artifactId>slf4j-simple</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-webflux</artifactId>
        </dependency>
        <dependency>
            <groupId>com.azure.spring</groupId>
            <artifactId>spring-cloud-azure-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>com.azure.spring</groupId>
            <artifactId>spring-cloud-azure-starter-actuator</artifactId>
        </dependency>
        <!-- https://mvnrepository.com/artifact/com.azure/azure-core-amqp -->
        <dependency>
            <groupId>com.azure</groupId>
            <artifactId>azure-core-amqp</artifactId>
        </dependency>
        <dependency>
            <groupId>com.azure.spring</groupId>
            <artifactId>spring-cloud-azure-stream-binder-eventhubs</artifactId>
            <exclusions>
                <exclusion>
                    <artifactId>azure-core-amqp</artifactId>
                    <groupId>com.azure</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.codehaus.janino</groupId>
            <artifactId>janino</artifactId>
            <version>3.1.8</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>3.12.0</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
        <dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
            <version>1.9.4</version>
        </dependency>

        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-webflux-ui</artifactId>
            <version>${springdoc.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.projectreactor</groupId>
            <artifactId>reactor-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.azure.spring</groupId>
                <artifactId>spring-cloud-azure-dependencies</artifactId>
                <version>${spring-cloud-azure.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.azure</groupId>
                <artifactId>azure-sdk-bom</artifactId>
                <version>1.2.8</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <finalName>iot-to-adx</finalName>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.microsoft.azure</groupId>
                    <artifactId>azure-functions-maven-plugin</artifactId>
                    <version>${azure.functions.maven.plugin.version}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>3.2.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>3.3.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.azure.tools</groupId>
                <artifactId>azure-sdk-build-tool</artifactId>
                <version>1.0.0-beta.1</version>
            </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.3</version>
                    <configuration>
                        <source>${java.version}</source>
                        <target>${java.version}</target>
                    </configuration>
                </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.springdoc</groupId>
                <artifactId>springdoc-openapi-maven-plugin</artifactId>
                <version>1.4</version>
            </plugin>
        </plugins>
    </build>

</project>

Expected behavior A clear and concise description of what you expected to happen.

stacktrace

[INFO] --- azure-sdk-build-tool:1.0.0-beta.1:run (default-cli) @ iot-to-adx ---
[INFO] ========================================================================
[INFO] = Running the Azure SDK Maven Build Tool                               =
[INFO] ========================================================================
Sending ping message to Application Insights
[INFO] Package versions: jackson-annotations=2.12.5, jackson-core=2.12.5, jackson-databind=2.12.5, jackson-dataformat-xml=2.12.5, jackson-datatype-jsr310=2.12.5, azure-core=1.22.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot
Successfully sent ping message to Application Insights
[INFO] Running Dependency Checker Tool
[INFO] Running Annotation Processing Tool
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.azure.sdk.build.tool.util.AnnotationUtils (file:/C:/Users/sd003526/.m2/repository/com/azure/tools/azure-sdk-build-tool/1.0.0-beta.1/azure-sdk-build-tool-1.0.0-beta.1.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of com.azure.sdk.build.tool.util.AnnotationUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[WARNING] could not get type for name com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl.access from any class loader
org.reflections8.ReflectionsException: could not get type for name com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl.access
    at org.reflections8.ReflectionUtils.forName (ReflectionUtils.java:412)
    at org.reflections8.util.Utils.getMemberFromDescriptor (Utils.java:81)
    at org.reflections8.util.Utils.getMembersFromDescriptors (Utils.java:150)
    at org.reflections8.util.Utils.getMembersFromDescriptors (Utils.java:159)
    at org.reflections8.Reflections.getMethodUsage (Reflections.java:671)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:106)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$findCallsToAnnotatedMethod$0 (AnnotationUtils.java:92)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.findCallsToAnnotatedMethod (AnnotationUtils.java:91)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.lambda$run$1 (AnnotationProcessingTool.java:50)
    at java.util.Optional.map (Optional.java:265)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.run (AnnotationProcessingTool.java:50)
    at java.util.ArrayList.forEach (ArrayList.java:1541)
    at com.azure.sdk.build.tool.mojo.AzureSdkMojo.execute (AzureSdkMojo.java:90)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.ClassNotFoundException: com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl.access
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
    at org.reflections8.ReflectionUtils.forName (ReflectionUtils.java:410)
    at org.reflections8.util.Utils.getMemberFromDescriptor (Utils.java:81)
    at org.reflections8.util.Utils.getMembersFromDescriptors (Utils.java:150)
    at org.reflections8.util.Utils.getMembersFromDescriptors (Utils.java:159)
    at org.reflections8.Reflections.getMethodUsage (Reflections.java:671)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:106)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$findCallsToAnnotatedMethod$0 (AnnotationUtils.java:92)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.findCallsToAnnotatedMethod (AnnotationUtils.java:91)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.lambda$run$1 (AnnotationProcessingTool.java:50)
    at java.util.Optional.map (Optional.java:265)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.run (AnnotationProcessingTool.java:50)
    at java.util.ArrayList.forEach (ArrayList.java:1541)
    at com.azure.sdk.build.tool.mojo.AzureSdkMojo.execute (AzureSdkMojo.java:90)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] Unable to get method usage for method uploadToStorageAsync. Can't resolve member named com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl.access$300(com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl, java.io.File, com.azure.resourcemanager.appplatform.
models.ResourceUploadDefinition) #59
[WARNING] could not get type for name com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl.access from any class loader
org.reflections8.ReflectionsException: could not get type for name com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl.access
    at org.reflections8.ReflectionUtils.forName (ReflectionUtils.java:412)
    at org.reflections8.util.Utils.getMemberFromDescriptor (Utils.java:81)
    at org.reflections8.util.Utils.getMembersFromDescriptors (Utils.java:150)
    at org.reflections8.util.Utils.getMembersFromDescriptors (Utils.java:159)
    at org.reflections8.Reflections.getMethodUsage (Reflections.java:671)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:106)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$findCallsToAnnotatedMethod$0 (AnnotationUtils.java:92)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.findCallsToAnnotatedMethod (AnnotationUtils.java:91)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.lambda$run$1 (AnnotationProcessingTool.java:50)
    at java.util.Optional.map (Optional.java:265)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.run (AnnotationProcessingTool.java:50)
    at java.util.ArrayList.forEach (ArrayList.java:1541)
    at com.azure.sdk.build.tool.mojo.AzureSdkMojo.execute (AzureSdkMojo.java:90)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.ClassNotFoundException: com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl.access
    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
    at org.reflections8.ReflectionUtils.forName (ReflectionUtils.java:410)
    at org.reflections8.util.Utils.getMemberFromDescriptor (Utils.java:81)
    at org.reflections8.util.Utils.getMembersFromDescriptors (Utils.java:150)
    at org.reflections8.util.Utils.getMembersFromDescriptors (Utils.java:159)
    at org.reflections8.Reflections.getMethodUsage (Reflections.java:671)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:106)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$checkMethod$1 (AnnotationUtils.java:128)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.checkMethod (AnnotationUtils.java:112)
    at com.azure.sdk.build.tool.util.AnnotationUtils.lambda$findCallsToAnnotatedMethod$0 (AnnotationUtils.java:92)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.azure.sdk.build.tool.util.AnnotationUtils.findCallsToAnnotatedMethod (AnnotationUtils.java:91)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.lambda$run$1 (AnnotationProcessingTool.java:50)
    at java.util.Optional.map (Optional.java:265)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.run (AnnotationProcessingTool.java:50)
    at java.util.ArrayList.forEach (ArrayList.java:1541)
    at com.azure.sdk.build.tool.mojo.AzureSdkMojo.execute (AzureSdkMojo.java:90)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

Setup (please complete the following information):

If you suspect a dependency version mismatch (e.g. you see NoClassDefFoundError, NoSuchMethodError or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:

PS C:\workspace\bidgroup-azure\iot-to-adx> mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: c:\dev\maven\bin\..
Java version: 11.0.15, vendor: Microsoft, runtime: c:\dev\jdk11
Default locale: fr_CA, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
PS C:\workspace\bidgroup-azure\iot-to-adx> 

dependency tree

tree.txt

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

backwind1233 commented 1 year ago

@survivant Thanks for reaching out, I will handle this.

backwind1233 commented 1 year ago

Hi @XiaofeiCao @arthurma1978 could you take a look at this?

XiaofeiCao commented 1 year ago

I'm not sure why ReflectionUtils.forName is looking for a class named com.azure.resourcemanager.appplatform.implementation.SpringAppDeploymentImpl.access (notice the access suffix)

@srnagar @alzimmermsft, could you help take a look?

alzimmermsft commented 1 year ago

I'll leave this with @srnagar as this is from azure-sdk-build-tools and the ReflectionUtils isn't the one being used in azure-core and is instead from a different library.

matter-it-does commented 1 year ago

I get this also from the azure sdk build tool. @JonathanGiles , @srnagar

Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring (String.java:1967)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.buildPackageList (AnnotationProcessingTool.java:91)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.lambda$run$0 (AnnotationProcessingTool.java:44)
    at java.util.ArrayList.forEach (ArrayList.java:1257)
    at com.azure.sdk.build.tool.AnnotationProcessingTool.run (AnnotationProcessingTool.java:44)
    at java.util.ArrayList.forEach (ArrayList.java:1257)
    at com.azure.sdk.build.tool.mojo.AzureSdkMojo.execute (AzureSdkMojo.java:90)
JonathanGiles commented 1 year ago

Thanks, we will look into it.