Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure deployment is failing Warning: 'Content-Type' not found. Returning default encoding: JSON Error: Status code 400, (empty body) #2410

Open
Giridhar552 opened this issue Dec 12, 2023 · 5 comments

Comments

@Giridhar552
Copy link

Giridhar552 commented Dec 12, 2023

I am upgrading to java version 17 and spring boot 3.2.0 ,
Azure deployment is failing with below mentioned exceptions:

azure libraries have used below
azure-core 1.30.0 and this version tested till 1.45.0(latest)
azure-webapp-maven-plugin 2.12.0 ,
linux
Java 17
Java SE
azure-storage-blob 12.25.0

tried almost all possibilities it didnt work. can some one suggest me what needs to be done to fix this issue.
Exception:
Warning: 'Content-Type' not found. Returning default encoding: JSON
Error: Status code 400, (empty body)
com.azure.core.exception.HttpResponseException: Status code 400, (empty body)
at com.azure.core.implementation.http.rest.RestProxyBase.instantiateUnexpectedException (RestProxyBase.java:337)
at com.azure.core.implementation.http.rest.AsyncRestProxy.lambda$ensureExpectedStatus$1 (AsyncRestProxy.java:123)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:113)
at reactor.core.publisher.Operators$ScalarSubscription.request (Operators.java:2545)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request (FluxMapFuseable.java:171)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set (Operators.java:2341)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe (Operators.java:2215)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe (FluxMapFuseable.java:96)
at reactor.core.publisher.MonoJust.subscribe (MonoJust.java:55)
at reactor.core.publisher.InternalMonoOperator.subscribe (InternalMonoOperator.java:64)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:165)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext (FluxHide.java:137)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext (FluxHide.java:137)
at reactor.core.publisher.FluxMap$MapSubscriber.onNext (FluxMap.java:122)
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext (FluxOnErrorResume.java:79)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.complete (MonoIgnoreThen.java:292)
at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onNext (MonoIgnoreThen.java:187)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.secondComplete (MonoFlatMap.java:245)
at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext (MonoFlatMap.java:305)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.completePossiblyEmpty (Operators.java:2071)
at reactor.core.publisher.MonoCollect$CollectSubscriber.onComplete (MonoCollect.java:145)
at reactor.core.publisher.MonoCallable$MonoCallableSubscription.request (MonoCallable.java:159)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.request (Operators.java:2041)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request (FluxMapFuseable.java:171)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.request (MonoFlatMap.java:194)
at reactor.core.publisher.MonoFlatMap$FlatMapInner.onSubscribe (MonoFlatMap.java:291)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe (MonoFlatMap.java:117)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe (FluxMapFuseable.java:96)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.onSubscribe (Operators.java:2025)
at reactor.core.publisher.FluxCallable.subscribe (FluxCallable.java:40)
at reactor.core.publisher.InternalMonoOperator.subscribe (InternalMonoOperator.java:64)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:165)
at reactor.core.publisher.SerializedSubscriber.onNext (SerializedSubscriber.java:99)
at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.onNext (FluxRetryWhen.java:174)
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext (FluxOnErrorResume.java:79)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.Operators$MonoInnerProducerBase.complete (Operators.java:2811)
at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete (MonoSingle.java:180)
at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.onComplete (MonoFlatMapMany.java:260)
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onComplete (FluxContextWrite.java:126)
at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete (FluxMap.java:275)
at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete (FluxSwitchIfEmpty.java:85)
at reactor.core.publisher.Operators$ScalarSubscription.request (Operators.java:2547)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set (Operators.java:2341)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe (Operators.java:2215)
at reactor.core.publisher.MonoJust.subscribe (MonoJust.java:55)
at reactor.core.publisher.Mono.subscribe (Mono.java:4485)
at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete (FluxSwitchIfEmpty.java:82)
at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onComplete (FluxDoFinally.java:128)
at reactor.core.publisher.FluxHandle$HandleSubscriber.onComplete (FluxHandle.java:222)
at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete (FluxMap.java:275)
at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onComplete (FluxDoFinally.java:128)
at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext (FluxHandleFuseable.java:210)
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext (FluxContextWrite.java:107)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.completePossiblyEmpty (Operators.java:2071)
at reactor.core.publisher.MonoCollectList$MonoCollectListSubscriber.onComplete (MonoCollectList.java:118)
at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete (FluxPeek.java:260)
at reactor.core.publisher.FluxMap$MapSubscriber.onComplete (FluxMap.java:144)
at reactor.netty.channel.FluxReceive.onInboundComplete (FluxReceive.java:415)
at reactor.netty.channel.ChannelOperations.onInboundComplete (ChannelOperations.java:424)
at reactor.netty.channel.ChannelOperations.terminate (ChannelOperations.java:478)
at reactor.netty.http.client.HttpClientOperations.onInboundNext (HttpClientOperations.java:712)
at reactor.netty.channel.ChannelOperationsHandler.channelRead (ChannelOperationsHandler.java:113)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead (AbstractChannelHandlerContext.java:412)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead (CombinedChannelDuplexHandler.java:436)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead (ByteToMessageDecoder.java:346)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead (ByteToMessageDecoder.java:318)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead (CombinedChannelDuplexHandler.java:251)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead (AbstractChannelHandlerContext.java:412)
at io.netty.handler.ssl.SslHandler.unwrap (SslHandler.java:1382)
at io.netty.handler.ssl.SslHandler.decodeNonJdkCompatible (SslHandler.java:1256)
at io.netty.handler.ssl.SslHandler.decode (SslHandler.java:1296)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection (ByteToMessageDecoder.java:529)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode (ByteToMessageDecoder.java:468)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead (ByteToMessageDecoder.java:290)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead (AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead (DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead (DefaultChannelPipeline.java:919)
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady (AbstractEpollStreamChannel.java:800)
at io.netty.channel.epoll.EpollEventLoop.processReady (EpollEventLoop.java:499)
at io.netty.channel.epoll.EpollEventLoop.run (EpollEventLoop.java:397)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run (SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run (ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run (FastThreadLocalRunnable.java:30)
at java.lang.Thread.run (Thread.java:840)

Error: Failed to execute goal com.microsoft.azure:azure-webapp-maven-plugin:2.12.0:deploy (default-cli) on project CCAPoller: deploy to Azure Web App with resource creation or updating: AzureToolkitRuntimeException: deploy to Azure Web App() with resource creation or updating: Status code 400, (empty body) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.microsoft.azure:azure-webapp-maven-plugin:2.12.0:deploy (default-cli) on project CCAPoller: deploy to Azure Web App with resource creation or updating
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
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:299)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
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: org.apache.maven.plugin.MojoExecutionException: deploy to Azure Web App with resource creation or updating
at com.microsoft.azure.maven.AbstractAzureMojo.onMojoError (AbstractAzureMojo.java:567)
at com.microsoft.azure.maven.AbstractAzureMojo.execute (AbstractAzureMojo.java:339)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
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:299)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
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: com.microsoft.azure.toolkit.lib.common.operation.OperationException: deploy to Azure Web App with resource creation or updating
at com.microsoft.azure.toolkit.lib.common.operation.AzureOperationAspect.afterThrowing (AzureOperationAspect.java:100)
at com.microsoft.azure.toolkit.lib.common.operation.AzureOperationAspect.afterThrowing (AzureOperationAspect.java:49)
at com.microsoft.azure.maven.webapp.DeployMojo.doExecute (DeployMojo.java:100)
at com.microsoft.azure.maven.AbstractAzureMojo.execute (AbstractAzureMojo.java:335)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
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:299)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
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: com.microsoft.azure.toolkit.lib.common.exception.AzureToolkitRuntimeException
at com.microsoft.azure.maven.webapp.DeployMojo.doExecute (DeployMojo.java:97)
at com.microsoft.azure.maven.AbstractAzureMojo.execute (AbstractAzureMojo.java:335)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
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:299)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
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: com.microsoft.azure.toolkit.lib.common.operation.OperationException: deploy to Azure Web App(
) with resource creation or updating
at com.microsoft.azure.toolkit.lib.common.operation.AzureOperationAspect.afterThrowing (AzureOperationAspect.java:100)
at com.microsoft.azure.toolkit.lib.common.operation.AzureOperationAspect.afterThrowing (AzureOperationAspect.java:49)
at com.microsoft.azure.toolkit.lib.appservice.task.DeployWebAppTask.doExecute (DeployWebAppTask.java:91)
at com.microsoft.azure.maven.webapp.DeployMojo.deploy (DeployMojo.java:154)
at com.microsoft.azure.maven.webapp.DeployMojo.doExecute (DeployMojo.java:93)
at com.microsoft.azure.maven.AbstractAzureMojo.execute (AbstractAzureMojo.java:335)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
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:299)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
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: com.azure.core.exception.HttpResponseException: Status code 400, (empty body)
at com.azure.core.implementation.http.rest.RestProxyBase.instantiateUnexpectedException (RestProxyBase.java:337)
at com.azure.core.implementation.http.rest.AsyncRestProxy.lambda$ensureExpectedStatus$1 (AsyncRestProxy.java:123)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:113)
at reactor.core.publisher.Operators$ScalarSubscription.request (Operators.java:2545)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request (FluxMapFuseable.java:171)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set (Operators.java:2341)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe (Operators.java:2215)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe (FluxMapFuseable.java:96)
at reactor.core.publisher.MonoJust.subscribe (MonoJust.java:55)
at reactor.core.publisher.InternalMonoOperator.subscribe (InternalMonoOperator.java:64)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:165)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext (FluxHide.java:137)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext (FluxHide.java:137)
at reactor.core.publisher.FluxMap$MapSubscriber.onNext (FluxMap.java:122)
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext (FluxOnErrorResume.java:79)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.complete (MonoIgnoreThen.java:292)
at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onNext (MonoIgnoreThen.java:187)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.secondComplete (MonoFlatMap.java:245)
at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext (MonoFlatMap.java:305)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.completePossiblyEmpty (Operators.java:2071)
at reactor.core.publisher.MonoCollect$CollectSubscriber.onComplete (MonoCollect.java:145)
at reactor.core.publisher.MonoCallable$MonoCallableSubscription.request (MonoCallable.java:159)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.request (Operators.java:2041)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request (FluxMapFuseable.java:171)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.request (MonoFlatMap.java:194)
at reactor.core.publisher.MonoFlatMap$FlatMapInner.onSubscribe (MonoFlatMap.java:291)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe (MonoFlatMap.java:117)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe (FluxMapFuseable.java:96)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.onSubscribe (Operators.java:2025)
at reactor.core.publisher.FluxCallable.subscribe (FluxCallable.java:40)
at reactor.core.publisher.InternalMonoOperator.subscribe (InternalMonoOperator.java:64)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:165)
at reactor.core.publisher.SerializedSubscriber.onNext (SerializedSubscriber.java:99)
at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.onNext (FluxRetryWhen.java:174)
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext (FluxOnErrorResume.java:79)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.Operators$MonoInnerProducerBase.complete (Operators.java:2811)
at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete (MonoSingle.java:180)
at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.onComplete (MonoFlatMapMany.java:260)
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onComplete (FluxContextWrite.java:126)
at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete (FluxMap.java:275)
at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete (FluxSwitchIfEmpty.java:85)
at reactor.core.publisher.Operators$ScalarSubscription.request (Operators.java:2547)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set (Operators.java:2341)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe (Operators.java:2215)
at reactor.core.publisher.MonoJust.subscribe (MonoJust.java:55)
at reactor.core.publisher.Mono.subscribe (Mono.java:4485)
at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete (FluxSwitchIfEmpty.java:82)
at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onComplete (FluxDoFinally.java:128)
at reactor.core.publisher.FluxHandle$HandleSubscriber.onComplete (FluxHandle.java:222)
at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete (FluxMap.java:275)
at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onComplete (FluxDoFinally.java:128)
at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext (FluxHandleFuseable.java:210)
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext (FluxContextWrite.java:107)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.completePossiblyEmpty (Operators.java:2071)
at reactor.core.publisher.MonoCollectList$MonoCollectListSubscriber.onComplete (MonoCollectList.java:118)
at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete (FluxPeek.java:260)
at reactor.core.publisher.FluxMap$MapSubscriber.onComplete (FluxMap.java:144)
at reactor.netty.channel.FluxReceive.onInboundComplete (FluxReceive.java:415)
at reactor.netty.channel.ChannelOperations.onInboundComplete (ChannelOperations.java:424)
at reactor.netty.channel.ChannelOperations.terminate (ChannelOperations.java:478)
at reactor.netty.http.client.HttpClientOperations.onInboundNext (HttpClientOperations.java:712)
at reactor.netty.channel.ChannelOperationsHandler.channelRead (ChannelOperationsHandler.java:113)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead (AbstractChannelHandlerContext.java:412)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead (CombinedChannelDuplexHandler.java:436)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead (ByteToMessageDecoder.java:346)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead (ByteToMessageDecoder.java:318)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead (CombinedChannelDuplexHandler.java:251)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead (AbstractChannelHandlerContext.java:412)
at io.netty.handler.ssl.SslHandler.unwrap (SslHandler.java:1382)
at io.netty.handler.ssl.SslHandler.decodeNonJdkCompatible (SslHandler.java:1256)
at io.netty.handler.ssl.SslHandler.decode (SslHandler.java:1296)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection (ByteToMessageDecoder.java:529)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode (ByteToMessageDecoder.java:468)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead (ByteToMessageDecoder.java:290)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead (AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead (DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead (DefaultChannelPipeline.java:919)
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady (AbstractEpollStreamChannel.java:800)
at io.netty.channel.epoll.EpollEventLoop.processReady (EpollEventLoop.java:499)
at io.netty.channel.epoll.EpollEventLoop.run (EpollEventLoop.java:397)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run (SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run (ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run (FastThreadLocalRunnable.java:30)
at java.lang.Thread.run (Thread.java:840)

@Flanker32
Copy link
Member

@Giridhar552 Thanks for your report and sorry for the trouble.
So, the original java version works fine but the deployment failed after you upgrade to java 17 and spring 3.2? I tried to deploy a demo spring project (petclinc) to azure with webapp maven plugin 2.12.0 and linux java 17 runtime and it seems works fine.
Could you please help share a demo project and your webapp maven plugin configuration in pom.xml for us to investigate this issue?

@Giridhar552
Copy link
Author

Giridhar552 commented Dec 13, 2023

@Giridhar552 Thanks for your report and sorry for the trouble. So, the original java version works fine but the deployment failed after you upgrade to java 17 and spring 3.2? I tried to deploy a demo spring project (petclinc) to azure with webapp maven plugin 2.12.0 and linux java 17 runtime and it seems works fine. Could you please help share a demo project and your webapp maven plugin configuration in pom.xml for us to investigate this issue?
@Flanker32
Here is the pom.xml
Note: azure-webapp-maven-plugin versions 2.12.0, 2.11.0, 2.11.1, 2.9.0 and 2.8.0 tried nothing worked same exception

    <parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>3.2.0</version>
	<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
	<java.version>17</java.version>
	<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<build.number>SNAPSHOT</build.number>
	<junit.version>4.12</junit.version>
	<hibernate.version>6.3.1.Final</hibernate.version>
	<crewRestClient.version>0.0.1-SNAPSHOT</crewRestClient.version>
	<jacoco.version>0.8.5</jacoco.version>
	<pmd.version>3.19.0</pmd.version>
	<coding-standards.version>0.0.2-17</coding-standards.version>
	<checkstyle.version>3.1.1</checkstyle.version>
	<log4j2.version>2.16.0</log4j2.version>


</properties>

<dependencies>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-web</artifactId>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-test</artifactId>
		<scope>test</scope>
		<exclusions>
			<exclusion>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-starter-logging</artifactId>
			</exclusion>
			<exclusion>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-core</artifactId>
			</exclusion>
			<exclusion>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
			</exclusion>
		</exclusions>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-data-jpa</artifactId>
	</dependency>
	<dependency>
		<groupId>org.mockito</groupId>
		<artifactId>mockito-core</artifactId>
	</dependency>
	<dependency>
		<groupId>io.springfox</groupId>
		<artifactId>springfox-swagger-ui</artifactId>
		<version>2.4.0</version>
	</dependency>
	<dependency>
		<groupId>io.springfox</groupId>
		<artifactId>springfox-swagger2</artifactId>
		<version>2.4.0</version>
	</dependency>
	<dependency>
		<groupId>org.apache.commons</groupId>
		<artifactId>commons-lang3</artifactId>
	</dependency>
	<dependency>
		<groupId>org.apache.commons</groupId>
		<artifactId>commons-collections4</artifactId>
		<version>4.2</version>
	</dependency>
	<dependency>
		<groupId>org.projectlombok</groupId>
		<artifactId>lombok</artifactId>
		<scope>provided</scope>
	</dependency>
	<dependency>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.hibernate.orm</groupId>
		<artifactId>hibernate-core</artifactId>
	</dependency>
	<dependency>
		<groupId>com.google.code.gson</groupId>
		<artifactId>gson</artifactId>
	</dependency>
	<dependency>
		<groupId>com.microsoft.sqlserver</groupId>
		<artifactId>mssql-jdbc</artifactId>
	</dependency>
	<dependency>
		<groupId>org.apache.httpcomponents.client5</groupId>
		<artifactId>httpclient5</artifactId>
	</dependency>
	<dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpcore</artifactId>
	</dependency>
	<dependency>
		<groupId>org.codehaus.jackson</groupId>
		<artifactId>jackson-xc</artifactId>
		<version>1.9.13</version>
	</dependency>
	<dependency>
		<groupId>com.fasterxml.jackson.core</groupId>
		<artifactId>jackson-databind</artifactId>
	</dependency>
	<dependency>
		<groupId>com.azure</groupId>
		<artifactId>azure-storage-blob</artifactId>
		<version>12.0.0</version>
	</dependency>
	<dependency>
		<groupId>com.microsoft.azure</groupId>
		<artifactId>azure-storage</artifactId>
		<version>8.6.4</version>
	</dependency>
	<dependency>
		<groupId>com.azure</groupId>
		<artifactId>azure-storage-queue</artifactId>
		<version>12.0.0</version>
	</dependency>
	<dependency>
		<groupId>com.azure</groupId>
		<artifactId>azure-storage-file-share</artifactId>
		<version>12.3.0</version>
	</dependency>
	<dependency>
		<groupId>com.azure</groupId>
		<artifactId>azure-storage-file-datalake</artifactId>
		<version>12.0.0-preview.6</version>
	</dependency>
	<dependency>
        <groupId>com.azure.spring</groupId>
        <artifactId>spring-cloud-azure-dependencies</artifactId>
        <version>6.0.0-beta.4</version>
        <type>pom</type>
    </dependency>
	<dependency>
		<!--<groupId>com.microsoft.azure</groupId>
		<artifactId>azure-keyvault-secrets-spring-boot-starter</artifactId>
		<version>2.3.0</version>	   --> 
		<groupId>com.azure.spring</groupId>
        <artifactId>spring-cloud-azure-starter-keyvault-secrets</artifactId>
        <version>6.0.0-beta.4</version>
	</dependency>
	<!--<dependency>
		<groupId>com.azure</groupId>
		<artifactId>azure-core</artifactId>
		<version>1.41.0</version>
	</dependency>-->
	<dependency>
        <groupId>com.azure</groupId>
        <artifactId>azure-ai-openai</artifactId>
        <version>1.0.0-beta.5</version>
    </dependency>
    <dependency>
        <groupId>com.azure</groupId>
        <artifactId>azure-search-documents</artifactId>
        <version>11.6.0</version>
        <exclusions>
            <exclusion>
                <groupId>com.azure</groupId>
                <artifactId>azure-core-serializer-json-jackson</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

	<dependency>
		<groupId>com.microsoft.azure</groupId>
		<artifactId>applicationinsights-logging-logback</artifactId>
		<version>2.6.4</version>
	</dependency>

	<dependency>
		<groupId>com.microsoft.azure</groupId>
		<artifactId>applicationinsights-spring-boot-starter</artifactId>
		<version>2.6.4</version>
	</dependency>

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-configuration-processor</artifactId>
		<optional>true</optional>
	</dependency>
	
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-api</artifactId>
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-core</artifactId>
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-jcl</artifactId>
		<!-- <version>2.9.1</version> -->
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-slf4j-impl</artifactId>
	</dependency>
	<dependency>
		<groupId>commons-lang</groupId>
		<artifactId>commons-lang</artifactId>
		<version>2.4</version>
	</dependency>
	<dependency>
   		 <groupId>org.springframework.boot</groupId>
   		 <artifactId>spring-boot-starter-actuator</artifactId>
		</dependency>
	
</dependencies>

<build>
	<pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-pmd-plugin</artifactId>
				<version>${pmd.version}</version>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-checkstyle-plugin</artifactId>
				<version>${checkstyle.version}</version>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>${java.version}</source>
					<target>${java.version}</target>
					<encoding>${project.build.sourceEncoding}</encoding>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.sonarsource.scanner.maven</groupId>
				<artifactId>sonar-maven-plugin</artifactId>
				<version>3.7.0.1746</version>
			</plugin>
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>${jacoco.version}</version>
				<executions>
					<execution>
						<id>prepare-agent</id>
						<goals>
							<goal>prepare-agent</goal>
						</goals>
					</execution>
					<execution>
						<id>report</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>report</goal>
						</goals>
					</execution>
					<execution>
						<id>check</id>
						<goals>
							<goal>check</goal>
						</goals>
						<configuration>
							<haltOnFailure>true</haltOnFailure>
							<rules>
								<rule>
									<limits>
										<limit>
											<counter>INSTRUCTION</counter>
											<value>COVEREDRATIO</value>
											<minimum>0.95</minimum>
										</limit>
										<limit>
											<counter>CLASS</counter>
											<value>COVEREDRATIO</value>
											<minimum>0.99</minimum>
										</limit>
										<limit>
											<counter>METHOD</counter>
											<value>COVEREDRATIO</value>
											<minimum>0.96</minimum>
										</limit>
										<limit>
											<counter>BRANCH</counter>
											<value>COVEREDRATIO</value>
											<minimum>0.83</minimum>
										</limit>
										<limit>
											<counter>COMPLEXITY</counter>
											<value>COVEREDRATIO</value>
											<minimum>0.77</minimum>
										</limit>
										<limit>
											<counter>LINE</counter>
											<value>COVEREDRATIO</value>
											<minimum>0.94</minimum>
										</limit>
									</limits>
								</rule>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</pluginManagement>
	<plugins>
		<plugin>
			<artifactId>maven-dependency-plugin</artifactId>
			<dependencies>
				<dependency>
					<groupId>org.apache.maven.shared</groupId>
					<artifactId>maven-dependency-analyzer</artifactId>
					<version>1.11.1</version>
				</dependency>
			</dependencies>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-pmd-plugin</artifactId>
			<executions>
				<execution>
					<goals>
						<goal>check</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<!--<linkXref>true</linkXref> not a valid element -->
				<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
				<minimumTokens>100</minimumTokens>
				<targetJdk>${java.version}</targetJdk>
				<minimumPriority>3</minimumPriority>
				<failOnViolation>true</failOnViolation>
				<rulesets>
					<ruleset>pcs-pmd-config.xml</ruleset>
				</rulesets>
			</configuration>

		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-checkstyle-plugin</artifactId>
			<executions>
				<execution>
					<goals>
						<goal>check</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<violationSeverity>warning</violationSeverity>
				<failsOnError>true</failsOnError>
				<failOnViolation>true</failOnViolation>
				<configLocation>pcs-checkstyle-config.xml</configLocation>
				<excludes>src/main/resources/**</excludes>
			</configuration>

		</plugin>
		<plugin>
			<groupId>org.jacoco</groupId>
			<artifactId>jacoco-maven-plugin</artifactId>
			<configuration>
				<excludes>
					<exclude></exclude>
				</excludes>
			</configuration>
		</plugin>
		<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
	<executions>
		<execution>
		<goals>
		<goal>build-info</goal>
		</goals>
		</execution>
	</executions>
  </plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-surefire-plugin</artifactId>
			<dependencies>
				<dependency>
					<groupId>org.apache.maven.surefire</groupId>
					<artifactId>surefire-junit47</artifactId>
					<version>3.0.0-M5</version>
				</dependency>
			</dependencies>
		</plugin>

		<plugin>
			<groupId>com.microsoft.azure</groupId>
			<artifactId>azure-webapp-maven-plugin</artifactId>
			<version>2.12.0</version>
			<configuration>
				<schemaVersion>V2</schemaVersion>
				<subscriptionId>${AZURE_SUBSCRIPTION_ID}</subscriptionId>
				<resourceGroup>${AZURE_RESOURCE_GROUP}</resourceGroup>
				<appName>${AZURE_APPNAME}</appName>
				<region>${AZURE_REGION}</region>
				<pricingTier>${AZURE_PRICING_TIER}</pricingTier>
				<appServicePlanName>${APP_SERVICE_PLAN}</appServicePlanName>
				<runtime>
					<os>linux</os>
					<javaVersion>Java 17</javaVersion>
					<webContainer>Java SE</webContainer>
				</runtime>
				<deployment>
					<resources>
						<resource>
							<directory>${project.basedir}/target</directory>
							<includes>
								<include>*.jar</include>
							</includes>
						</resource>
						<resource>
							<directory>./scripts</directory>
							<includes>
								<include>*.sh</include>
							</includes>
						</resource>
					</resources>
				</deployment>
			</configuration>
		</plugin>
	</plugins>
</build>

@Flanker32
Copy link
Member

@Flanker32
Here is the pom.xml
Note: azure-webapp-maven-plugin versions 2.12.0, 2.11.0, 2.11.1, 2.9.0 and 2.8.0 tried nothing worked same exception

@Giridhar552 Thanks a lot for your message, and the pom configuration looks fine. Could this app run successfully in local? If so, could you please try deploying to a fresh new web app (you may change the app name and maven plugin will create a new one for you, you may also change the region/service plan in case there are some issues in service side)

If this did not help, could you please try whether the deployment could be done with azure cli? Here is related doc for deployment https://learn.microsoft.com/en-us/azure/app-service/deploy-zip?tabs=cli#deploy-warjarear-packages

@Giridhar552
Copy link
Author

@Flanker32
Here is the pom.xml
Note: azure-webapp-maven-plugin versions 2.12.0, 2.11.0, 2.11.1, 2.9.0 and 2.8.0 tried nothing worked same exception

@Giridhar552 Thanks a lot for your message, and the pom configuration looks fine. Could this app run successfully in local? If so, could you please try deploying to a fresh new web app (you may change the app name and maven plugin will create a new one for you, you may also change the region/service plan in case there are some issues in service side)

If this did not help, could you please try whether the deployment could be done with azure cli? Here is related doc for deployment https://learn.microsoft.com/en-us/azure/app-service/deploy-zip?tabs=cli#deploy-warjarear-packages

@Flanker32
Thank you for your response. Renamed the app and tried still same exception.

Adding more deployment debug logs for reference, let me know if you found anything related 400 Bad request.

[DEBUG] [6d447e1b, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443] Channel acquired, now: 1 active connections, 3 inactive connections and 0 pending acquire requests.
[DEBUG] [6d447e1b-2, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443] Handler is being applied: {uri=https://management.azure.com/subscriptions/***/providers/Microsoft.Web/sites?api-version=2022-09-01, method=GET}
[DEBUG] [6d447e1b-2, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443] onStateChange(GET{uri=/subscriptions//providers/Microsoft.Web/sites, connection=PooledConnection{channel=[id: 0x6d447e1b, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443]}}, [request_prepared])
[DEBUG] [6d447e1b-2, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443] Added decoder [azureWriteTimeoutHandler] at the end of the user pipeline, full pipeline: [reactor.left.sslHandler, reactor.left.httpCodec, azureWriteTimeoutHandler, reactor.right.reactiveBridge, DefaultChannelPipeline$TailContext#0]
[DEBUG] [6d447e1b-2, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443] Non Removed handler: azureRequestProgressHandler, context: null, pipeline: DefaultChannelPipeline{(reactor.left.sslHandler = io.netty.handler.ssl.SslHandler), (reactor.left.httpCodec = io.netty.handler.codec.http.HttpClientCodec), (azureWriteTimeoutHandler = com.azure.core.http.netty.implementation.WriteTimeoutHandler), (reactor.right.reactiveBridge = reactor.netty.channel.ChannelOperationsHandler)}
[DEBUG] [6d447e1b-2, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443] onStateChange(GET{uri=/subscriptions/
/providers/Microsoft.Web/sites, connection=PooledConnection{channel=[id: 0x6d447e1b, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443]}}, [request_sent])
[DEBUG] [6d447e1b-2, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443] Non Removed handler: azureRequestProgressHandler, context: null, pipeline: DefaultChannelPipeline{(reactor.left.sslHandler = io.netty.handler.ssl.SslHandler), (reactor.left.httpCodec = io.netty.handler.codec.http.HttpClientCodec), (azureWriteTimeoutHandler = com.azure.core.http.netty.implementation.WriteTimeoutHandler), (reactor.right.reactiveBridge = reactor.netty.channel.ChannelOperationsHandler)}
[DEBUG] [6d447e1b-2, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443] Removed handler: azureWriteTimeoutHandler, pipeline: DefaultChannelPipeline{(reactor.left.sslHandler = io.netty.handler.ssl.SslHandler), (reactor.left.httpCodec = io.netty.handler.codec.http.HttpClientCodec), (reactor.right.reactiveBridge = reactor.netty.channel.ChannelOperationsHandler)}
[DEBUG] [6d447e1b-2, L:/10.1.228.3:60938 - R:management.azure.com/20.189.168.221:443] Added decoder [azureResponseTimeoutHandler] at the end of the user pipeline, full pipeline: [reactor.left.sslHandler, reactor.left.httpCodec, azureResponseTimeoutHandler, reactor.right.reactiveBridge, DefaultChannelPipeline$TailContext#0]
[DEBUG] []:fireStatusChangedEvent()
[DEBUG] [ee582fe1-2, L:/10.1.228.3:50260 - R:
.scm.azurewebsites.net/20.49.104.36:443] Received response (auto-read:false) : RESPONSE(decodeResult: success, version: HTTP/1.1)
HTTP/1.1 400 Bad Request

Content-Length:
Date:
Server:
Cache-Control:
Expires:
Pragma:
Set-Cookie:
Set-Cookie:
[DEBUG] [ee582fe1-2, L:/10.1.228.3:50260 - R:.scm.azurewebsites.net/20.49.104.36:443] onStateChange(POST{uri=/api/publish, connection=PooledConnection{channel=[id: 0xee582fe1, L:/10.1.228.3:50260 - R:.scm.azurewebsites.net/20.49.104.36:443]}}, [response_received])
[DEBUG] [ee582fe1-2, L:/10.1.228.3:50260 - R:.scm.azurewebsites.net/20.49.104.36:443] Removed handler: azureResponseTimeoutHandler, pipeline: DefaultChannelPipeline{(reactor.left.sslHandler = io.netty.handler.ssl.SslHandler), (reactor.left.httpCodec = io.netty.handler.codec.http.HttpClientCodec), (reactor.right.reactiveBridge = reactor.netty.channel.ChannelOperationsHandler)}
[DEBUG] [ee582fe1-2, L:/10.1.228.3:50260 - R:
.scm.azurewebsites.net/20.49.104.36:443] Added decoder [azureReadTimeoutHandler] at the end of the user pipeline, full pipeline: [reactor.left.sslHandler, reactor.left.httpCodec, azureReadTimeoutHandler, reactor.right.reactiveBridge, DefaultChannelPipeline$TailContext#0]
[DEBUG] [ee582fe1-2, L:/10.1.228.3:50260 - R:.scm.azurewebsites.net/20.49.104.36:443] [terminated=false, cancelled=false, pending=0, error=null]: subscribing inbound receiver
[DEBUG] [ee582fe1-2, L:/10.1.228.3:50260 - R:
.scm.azurewebsites.net/20.49.104.36:443] Received last HTTP packet
Warning: 'Content-Type' not found. Returning default encoding: JSON
Error: Status code 400, (empty body)
com.azure.core.exception.HttpResponseException: Status code 400, (empty body)
at com.azure.core.implementation.http.rest.RestProxyBase.instantiateUnexpectedException (RestProxyBase.java:337)
at com.azure.core.implementation.http.rest.AsyncRestProxy.lambda$ensureExpectedStatus$1 (AsyncRestProxy.java:123)

at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:113)
at reactor.core.publisher.Operators$ScalarSubscription.request (Operators.java:2545)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request (FluxMapFuseable.java:171)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set (Operators.java:2341)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe (Operators.java:2215)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe (FluxMapFuseable.java:96)
at reactor.core.publisher.MonoJust.subscribe (MonoJust.java:55)
at reactor.core.publisher.InternalMonoOperator.subscribe (InternalMonoOperator.java:64)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:165)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext (FluxHide.java:137)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext (FluxHide.java:137)
at reactor.core.publisher.FluxMap$MapSubscriber.onNext (FluxMap.java:122)
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext (FluxOnErrorResume.java:79)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.complete (MonoIgnoreThen.java:292)
at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onNext (MonoIgnoreThen.java:187)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.secondComplete (MonoFlatMap.java:245)
at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext (MonoFlatMap.java:305)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext (FluxMapFuseable.java:129)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.completePossiblyEmpty (Operators.java:2071)
at reactor.core.publisher.MonoCollect$CollectSubscriber.onComplete (MonoCollect.java:145)
at reactor.core.publisher.MonoCallable$MonoCallableSubscription.request (MonoCallable.java:159)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.request (Operators.java:2041)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request (FluxMapFuseable.java:171)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.request (MonoFlatMap.java:194)
at reactor.core.publisher.MonoFlatMap$FlatMapInner.onSubscribe (MonoFlatMap.java:291)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe (MonoFlatMap.java:117)
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe (FluxMapFuseable.java:96)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.onSubscribe (Operators.java:2025)
at reactor.core.publisher.FluxCallable.subscribe (FluxCallable.java:40)
at reactor.core.publisher.InternalMonoOperator.subscribe (InternalMonoOperator.java:64)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:165)
at reactor.core.publisher.SerializedSubscriber.onNext (SerializedSubscriber.java:99)
at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.onNext (FluxRetryWhen.java:174)
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext (FluxOnErrorResume.java:79)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext (MonoFlatMap.java:158)
at reactor.core.publisher.Operators$MonoInnerProducerBase.complete (Operators.java:2811)
at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete (MonoSingle.java:180)
at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.onComplete (MonoFlatMapMany.java:260)
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onComplete (FluxContextWrite.java:126)
at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete (FluxMap.java:275)
at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete (FluxSwitchIfEmpty.java:85)
at reactor.core.publisher.Operators$ScalarSubscription.request (Operators.java:2547)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set (Operators.java:2341)
at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe (Operators.java:2215)
at reactor.core.publisher.MonoJust.subscribe (MonoJust.java:55)
at reactor.core.publisher.Mono.subscribe (Mono.java:4485)
at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete (FluxSwitchIfEmpty.java:82)
at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onComplete (FluxDoFinally.java:128)
at reactor.core.publisher.FluxHandle$HandleSubscriber.onComplete (FluxHandle.java:222)
at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete (FluxMap.java:275)
at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onComplete (FluxDoFinally.java:128)
at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext (FluxHandleFuseable.java:210)
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext (FluxContextWrite.java:107)
at reactor.core.publisher.Operators$BaseFluxToMonoOperator.completePossiblyEmpty (Operators.java:2071)
at reactor.core.publisher.MonoCollectList$MonoCollectListSubscriber.onComplete (MonoCollectList.java:118)
at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete (FluxPeek.java:260)
at reactor.core.publisher.FluxMap$MapSubscriber.onComplete (FluxMap.java:144)
at reactor.netty.channel.FluxReceive.onInboundComplete (FluxReceive.java:413)
at reactor.netty.channel.ChannelOperations.onInboundComplete (ChannelOperations.java:431)
at reactor.netty.channel.ChannelOperations.terminate (ChannelOperations.java:485)
at reactor.netty.http.client.HttpClientOperations.onInboundNext (HttpClientOperations.java:712)
at reactor.netty.channel.ChannelOperationsHandler.channelRead (ChannelOperationsHandler.java:113)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead (AbstractChannelHandlerContext.java:412)
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead (CombinedChannelDuplexHandler.java:436)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead (ByteToMessageDecoder.java:346)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead (ByteToMessageDecoder.java:318)
at io.netty.channel.CombinedChannelDuplexHandler.channelRead (CombinedChannelDuplexHandler.java:251)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:442)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead (AbstractChannelHandlerContext.java:412)
at io.netty.handler.ssl.SslHandler.unwrap (SslHandler.java:1382)
at io.netty.handler.ssl.SslHandler.decodeNonJdkCompatible (SslHandler.java:1256)
at io.netty.handler.ssl.SslHandler.decode (SslHandler.java:1296)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection (ByteToMessageDecoder.java:529)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode (ByteToMessageDecoder.java:468)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead (ByteToMessageDecoder.java:290)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead (AbstractChannelHandlerContext.java:412)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead (DefaultChannelPipeline.java:1410)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:440)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead (AbstractChannelHandlerContext.java:420)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead (DefaultChannelPipeline.java:919)
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady (AbstractEpollStreamChannel.java:800)
at io.netty.channel.epoll.EpollEventLoop.processReady (EpollEventLoop.java:499)
at io.netty.channel.epoll.EpollEventLoop.run (EpollEventLoop.java:397)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run (SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run (ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run (FastThreadLocalRunnable.java:30)
at java.lang.Thread.run (Thread.java:840)

@Flanker32
Copy link
Member

@Flanker32 Thank you for your response. Renamed the app and tried still same exception.

Adding more deployment debug logs for reference, let me know if you found anything related 400 Bad request.

@Giridhar552 Thanks a lot for your help. I'm not sure what happened, and I still could not repro this issue now. Could you please try add -DwaitDeploymentComplete=false in your command, this will not wait the deployment status data in case there are some exceptions during related requests. If this did not help, could you please open an icm ticket in https://portal.microsofticm.com/imp/v3/incidents/create, so that our service team may help investigate this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants