• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Why am I not getting any output ?

 
Ranch Hand
Posts: 947
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi expert,

I have been dealing with this postman issue for more than 2 weeks.
At the rate I am going I know I won't be able to work in similiar field, after my temp job ends in 2 months so hope some one can help me on this.

Tools used:
IDE: Eclipse with Spring STS plug in
curl : using Windows 10

I tried to produce a small SpringBoot app based on this tutorial:

https://spring.io/guides/gs/accessing-data-rest/  // this one I am not sure where to get the data so I tried out the below link
https://spring.io/guides/gs/rest-service/

So, what I do is I right-clicked on the project and run as SpringBoot App

At the curl I typed exactly what the tutorial taught but I am getting only errors :


The output just shows not found:


{"timestamp":"2020-10-29T09:31:53.677+00:00","status":404,"error":"Not Found","message":"","path":"/greeting"}



Hope someone can advise me what's wrong.

Thanks.
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And did you copy the code exactly?

Indeed, did you just download the project via git?
If not then I suggest trying that and then seeing if it works.
That would narrow down possible problems.
 
tangara goh
Ranch Hand
Posts: 947
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dave Tolls wrote:And did you copy the code exactly?

Indeed, did you just download the project via git?
If not then I suggest trying that and then seeing if it works.
That would narrow down possible problems.



Hi Dave,

I tried.  I download from github this :


https://spring.io/guides/gs/accessing-data-jpa/



https://github.com/spring-guides/gs-accessing-data-jpa

the entire code and imported it into Eclipse.

Worse.

I can't even run SpringBoot cos Eclipse just give me  a run configuration...

Really, I am so exhausted I am wondering if other developers ever faced a situation like me...and why so many (I mean other of my peers all seems happy and like no roadblocks like me)

And I have to keep posting to forum because my 'mentor' just said google will do whenever I asked her as well as the supervisor above her.  If I think positively, this is called training me to be independent but really does mentor in this industry work like that ?

 
Dave Tolls
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You said you tried out "the below link" which is the other git project.
And that was the one that you had up and running and rejecting the curl command.

So let's start with that one, since you seemed to have something built.

Did you download and build that one?
 
tangara goh
Ranch Hand
Posts: 947
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dave Tolls wrote:You said you tried out "the below link" which is the other git project.
And that was the one that you had up and running and rejecting the curl command.

So let's start with that one, since you seemed to have something built.

Did you download and build that one?



Hi Dave,

I am "gaining some traction" today in the sense that I managed to built the jar by running maven built. Small triump
But, I am still not able to get any output and this time round I got a :


C:\WINDOWS\system32>curl http://localhost:8080/greeting
curl: (7) Failed to connect to localhost port 8080: Connection refused



and then I got this message :

Corrupted STDOUT by directly writing to native stream in forked JVM 1.





# Created at 2020-10-30T17:35:40.827
Corrupted STDOUT by directly writing to native stream in forked JVM 1. Stream 'Active code page: 1252'.
java.lang.IllegalArgumentException: Stream stdin corrupted. Expected comma after third character in command 'Active code page: 1252'.
at org.apache.maven.plugin.surefire.booterclient.output.ForkClient$OperationalData.<init>(ForkClient.java:507)
at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.processLine(ForkClient.java:210)
at org.apache.maven.plugin.surefire.booterclient.output.ForkClient.consumeLine(ForkClient.java:177)
at org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer$Pumper.run(ThreadedStreamConsumer.java:88)
at java.base/java.lang.Thread.run(Thread.java:830)



So, I am not sure what's going on.

Please let me know.

Tks.
reply
    Bookmark Topic Watch Topic
  • New Topic