Coder Social home page Coder Social logo

Comments (13)

BoykoAlex avatar BoykoAlex commented on June 10, 2024 1

It smells a lot like then m2e issue consequences in Eclipse: #929.
Do you mind giving m2e latest snapshot a try? (M2E snapshot update site: https://download.eclipse.org/technology/m2e/snapshots/latest/) Might solve your issue.
Also Cleaning the project and building from scratch ideally should help as well.

from sts4.

BoykoAlex avatar BoykoAlex commented on June 10, 2024 1

@navy1978 it is on the Java launch config not on the spring boot launch config (perhaps we should have it on the spring boot launch tab as well).
Screenshot 2024-02-16 at 13 13 11

from sts4.

navy1978 avatar navy1978 commented on June 10, 2024

Thanks! Just installed I will keep you updated.

(FYI : till now Cleaning the project and building from scratch didn't help)

from sts4.

martinlippert avatar martinlippert commented on June 10, 2024

Thanks! Just installed I will keep you updated.

That is awesome, thanks for giving this a try. Would be extremely interesting to know whether this new m2e snapshot version solves this issue for you. Please keep us updated on that.

from sts4.

navy1978 avatar navy1978 commented on June 10, 2024

Unfortunatlty it didn't work.

FYI:

  1. lanching the app from the Boot Dashborad produces again this error:
    _***************************
    APPLICATION FAILED TO START

Description:
Field mapper in xxxx.yyy.MyService required a bean of type 'xxxx.yyy.MyMapper' that could not be found.
Action:
Consider defining a bean of type 'xxxx.yyy.MyMapper' in your configuration._

  1. if I create a "maven build" in Eclipse/STS and I put:
    goals: spring-boot:run

this works fine, and it was working well even before having updated m2e to the latest snapshot.

This issue is a little bit frustrating because it doesnt occur all the time and it's complicated to provide the steps to reproduce it.
Do you have other suggestions?

from sts4.

martinlippert avatar martinlippert commented on June 10, 2024

Hmmm... 🤔 If you startup the application via the dashboard and the error message appears, could you take a look at the target output folder and its content to see if there is anything missing from it? Maybe some files missing in that folder that you would expect to be there? (like application.prpoerties, .class files for the mapstruct generated sources, etc.) That might point us in some direction.

from sts4.

navy1978 avatar navy1978 commented on June 10, 2024

The files are all there, but somehow STS/Eclipse cannot find them.
FYI: once I got this error I have modified the created, modified and accessed date of all files in the target folder with a little software, this somehow made STS/Eclipse locate the files again and the app started form Boot Dashboard with no issue. I cannot guarantee this was not a coincidence . I will keep you updated.

from sts4.

navy1978 avatar navy1978 commented on June 10, 2024

Just a little update on this, I can confirm that using this little app: https://www.petges.lu/download/
and changing the created, modified and accessed date of all files in the target folder seems a workaround for this issue.
At least it solved it 3 times in a row.

Anyway whould be nice to understand the cause ...

from sts4.

martinlippert avatar martinlippert commented on June 10, 2024

Just a little update on this, I can confirm that using this little app: https://www.petges.lu/download/ and changing the created, modified and accessed date of all files in the target folder seems a workaround for this issue. At least it solved it 3 times in a row.

This is quite puzzling. If I understand you correctly, you are changing the modification timestamp of the files with the tool you mentioned and then it works?

Another test here could be to run the application from the command line instead of the boot dashboard to see if just running java with the classpath and main class specified works fine or not (without modifying those file attributes upfront).

from sts4.

martinlippert avatar martinlippert commented on June 10, 2024

Another test here could be to run the application from the command line instead of the boot dashboard to see if just running java with the classpath and main class specified works fine or not (without modifying those file attributes upfront).

There is a show command line button on the launch config dialog that would give you this command for your convenience.

from sts4.

navy1978 avatar navy1978 commented on June 10, 2024

Another test here could be to run the application from the command line instead of the boot dashboard to see if just running java with the classpath and main class specified works fine or not (without modifying those file attributes upfront).

There is a show command line button on the launch config dialog that would give you this command for your convenience.

I cannot find this button , can you give me more info where to find this?

from sts4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.