by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 30 18:44
    snicoll unlabeled #21614
  • May 30 18:44
    snicoll labeled #21614
  • May 30 18:44
    snicoll unlabeled #21614
  • May 30 18:43
    snicoll closed #21614
  • May 30 18:43
    snicoll commented #21614
  • May 30 17:40
    bono007 commented #21616
  • May 30 17:36
    bono007 commented #21616
  • May 30 17:19
    ndopj commented #21614
  • May 30 17:19
    spring-issuemaster unlabeled #21614
  • May 30 17:19
    spring-issuemaster labeled #21614
  • May 30 17:18
    ndopj commented #21614
  • May 30 17:14
    ndopj commented #21614
  • May 30 17:00
    wilkinsona milestoned #21629
  • May 30 17:00
    wilkinsona labeled #21629
  • May 30 17:00
    wilkinsona opened #21629
  • May 30 15:27
    philwebb commented #21531
  • May 30 15:22
    snicoll commented #21616
  • May 30 14:54
    philwebb labeled #21628
  • May 30 14:54
    philwebb unlabeled #21628
  • May 30 13:54
    bmaehr closed #21628
afnanshirol
@afnanshirol
Could you please confirm release version of the defect fix?
nkjackzhang
@nkjackzhang
@afnanshirol ,as the dever says, the pr was merged into master, maybe will be released at version 5.4, because the source code contains 'since 5.4'.
afnanshirol
@afnanshirol
@nkjackzhang Thanks alot for confirming . Appreciate your help. :)
nkjackzhang
@nkjackzhang
@afnanshirol , you are welcome.
Alex Czar
@AlexCzar
Hi, I have a spring boot application, it runs liquibase migration on startup. Due to some obscure infrastructure requirements I need to make liquibase runnable as pre-deployment step.
Easiest way to do it and not disrupt any processes is to add a parameter to application, which would control how the app runs: 1) without liquibase, normal app startup 2) with liquibase, and app is shut down when liquibase migration is done.
Is there an event or something I can react to and shutdown the app, when liquibase migration is complte?
DoraRajappan
@DoraRajappan
Iam sending a token in the header
But int eh target endpoint its coming partially replacing the encrypted toeken with null
I am invoking a rest api
any clue to this behaviour
there is a HHeader filter that s fine
DoraRajappan
@DoraRajappan
@wilkinsona any clue
Carlos Adolfo Ortiz Q
@cortizqgithub
@snicoll Thansk for pointing me to the right Project Reactor channel #reactor/reactor
Andy Wilkinson
@wilkinsona
@AlexCzar If you run it in a mode where you set the web application type to none, it should shut itself down automatically as there won't be any threads running to keep the JVM alive.
@DoraRajappan Sorry, no idea based on what you've described.
DoraRajappan
@DoraRajappan
am invoking rest endpoint that has @RequestHeader authentication... value passed to it token rdjgfchgjg54978hbjjlj . but the emdpoint gets it as token null.
"token rdjgfchgjg54978hbjjlj " reaches as "token null" why?
Andy Wilkinson
@wilkinsona
Sounds like something's changed the value of the header before it reaches the endpoint or the client isn't sending it properly. I can't think what might be doing that. If I were in your situation, I'd want to try to narrow down where the problem's occurring. I'd probably do that by debugging the server and check the headers that are received.
James Howe
@OrangeDog
Could also be CORS
DoraRajappan
@DoraRajappan
kk
thank you
i will post the request from postman and see how it goes
@wilkinsona
KimJohn Quinn
@kjq
@snicoll - thanks for the response! I should not have to do anything for it to generate the file correct? I just plop it in maven, in a module that has autoconfigurations, and nothing gets generated.
Stéphane Nicoll
@snicoll
Yep. Can’t help you more without a small sample that reproduces what you see
It’s hard to know where you’ve looked with “nothing gets generated” :)
KimJohn Quinn
@kjq

@snicoll - in the POM for the project I add this:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure-processor</artifactId>
            <optional>true</optional>
        </dependency>

After building the package I am looking in the output folder under META-INF but just see my spring.factories file.

Stéphane Nicoll
@snicoll
okay. Care to share a small repo that reproduces that?
KimJohn Quinn
@kjq
Sure, ill provide one later today. Thanks!
Caleb Cushing
@xenoterracide
is it the dependency plugin that provides access to the bootJar and buildInfo? I wanted to do those without the dependency management stuff?
ask, and 50% of the time ye shall find it yourself immediately after
Asgar Javadov
@asgarj
@snicoll I also have an annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" but nothing gets generated. What's the task that triggers the generation?
Asgar Javadov
@asgarj
A correction: it seems it's generated in the output jar file. Isn't it supposed to be generated and put in the src/main/resources/META-INF as well or?
Stéphane Nicoll
@snicoll
no it’s not supposed to be generated in your sources
KimJohn Quinn
@kjq
Ah, ill double-check my output jar - i thought i did but maybe not (i assumed it would be a part of the generated maven artifacts before the jar is made).
Asgar Javadov
@asgarj
And what's the gradle task that generates it exactly?
the docs mention compileJava and processResources (and their dependency), so is it their output is ignored unless you package the output?
Stéphane Nicoll
@snicoll
I don’t know how you’ve configured your build but it’s an anotation processor like any other annotation processor. So the doc of your build system (Gradle it seems) should tell you that
Mahdi Robatipoor
@robatipoor
i use spring boot 2.3 and openjdk 11 i try create layered jar file but i got an error
Unable to parse configuration of mojo org.springframework.boot:spring-boot-maven-plugin:2.3.0.RELEASE:repackage: Cannot convert 'LAYERED_JAR' to Enum: No enum constant org.springframework.boot.maven.AbstractPackagerMojo.LayoutType.LAYERED_JAR
Someone can help me
Scott Frederick
@scottfrederick
@robatipoor see the documentation for configuring layered jars here: https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/html/#repackage-layers. you’re likely following a blog post for 2.3.0.M1 and the config changed between M1 and RELEASE.
Mahdi Robatipoor
@robatipoor
ohhh thanks
Carlos Adolfo Ortiz Q
@cortizqgithub

Hi

I am understanding the layer mechanism of Docker images creation.
Well I understand when I compile new classes in the application layer, but what happens when I add a new library dependency? Does it change the layer, how?

Andy Wilkinson
@wilkinsona
@cortizqgithub It'll change the layer that contains that type of dependency. By default snapshot dependencies and dependencies with a fixed version are split into separate layers, the assumption being that snapshot dependencies will change more frequently.
Morten Haraldsen
@ethlo
I'm playing around with the really nice new Docker build-image goal in The Spring Boot plugin. However, I need to recompile code on the fly in my project and thus need a JDK (not JRE) based image. Is it possible to make this happen via configuration? Thank you!
3 replies
SachaMaiornikoff
@SachaMaiornikoff
Hello guys :) i'm having a bit of a trouble here to configure the logs on my spring boot app :/ i upgraded from java 8 to 11 recently and made some cleanup on the log4j dependencies as i only use logback (and as springboot have those dependencies). I use rollingFile to log on a daily basis, this works fine so i guess no issue with my logback.xml . The issue is that when i have an error in my app it doesn't log to this file. I realized that in my console, the error doesn't have the same pattern as the others logs so i think my issue is that another logger is logging the errors, this is why logback can't log them in the log file ...
Any clue on how to debug this ? I can't figure how to debug this.
I can send you the logback.xml file or a sample of the logs to check the differences between the different messages.
Any help appreciated :)
SachaMaiornikoff
@SachaMaiornikoff
I think it's the undertow default logger ( jboss logger) that logs me this error ... But i can't find how to force the undertow logger to be my logback instance
SachaMaiornikoff
@SachaMaiornikoff
I found a workaround to add System.setProperty("org.jboss.logging.provider", "slf4j"); on my main class but isn't spring supposed to deal with this in a nicer way ?
revised
@carlmolemans
Can I use spring AOP to wrap an exception thrown by a method which is annotated by @Transcational (which is AOP by itself)?
it's a transcation exception - not an excpetion which my application throws itself
SaravanaKumar
@Saravan11158896_twitter
Hi . I am having three mono. lets say Mono<Employee>,Mono<Address>,Mono<Roles>. I need to set Mono<Address> and Mono<Roles> into the Mono<Employee>. How to do that