No endpoint mapping found for `[SaajSoapMessage {http://api.com}getCountryRequest]` - java

I try to make a Web service using JAVA and SOAP, but every time I try to run the application, I get the following error: No endpoint mapping found for [SaajSoapMessage {http://api.com}getCountryRequest].
I have been attempting to expose listed endpoints like mentioned on Stack Overflow, but has no effect. Furthermore, I also attempted to add the following code to the application.properties file:
spring.webservices.expose-all-endpoints=true
But it doesn't work. Then I set out to add another code to the application.properties file:
management.endpoints.web.exposure.include=*
management.endpoints.web.exposure.exclude=env,beans
But that didn't work either. I have tried many ways to solve this problem for a long time, but I can't find a solution. I will be genuinely grateful if you can help me. Thank you in advance.
Note: To re-create the issue, here is my repo

Related

You need to provide an instance of SwaggerBundleConfiguration in Dropwizard

I am using swagger with dropwizard by using this module https://github.com/smoketurner/dropwizard-swagger
I have followed all the relevant steps and When I a running the app I am getting this error
java.lang.IllegalStateException: You need to provide an instance of
SwaggerBundleConfiguration
I got a similar question here .And added following lines to the config.yml file
swagger:
resourcePackage: io.demo.backendservices.resources
But still its not working.Any help please
Could it be because you did not create SwaggerBundleConfiguration instance in your Configuration class? I've created dropwizard project example using swagger and all other things, maybe you can check it out and see if it helps you. The project is in here:
https://github.com/rsatrio/dropwizard-modern-example

How to debug org.thymeleaf.exceptions.TemplateInputException?

I have a new project and it's my first time using spring MVC and Thymeleaf.
The error message that I'm getting seems obvious:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "index", template might not exist or might not be accessible by any of the configured Template Resolvers
I have googled a lot and saw many people with similar issues. However, none of the solutions helped me find out why my setup does not work.
Instead of classpath:/templates I have also tried variations like templates and /templates
some questions:
What is the "basedir" from which the relative path is being looked for?
Is it possible to run spring in debug to see how these kind of configurations are set? i.e. call when I call localhost:8080 and there's a breakpoint somewhere: would it be possible to see how the file index.html is being looked for?
edit On line 23 in the document on the right (BetterCommuteApplication.java) you can see that Intellij is able to resolve the reference to my template file.
This screenshot shows my configuration and I think it should suffice as enough information to get the answer.
Thank you for your time! :-)
ugh, I tried to combine Spring boot with thymeleaf manually here.
(I'm used to developing back-ends ^^")
This doesn't make much sense as initialising spring MVC does this right out of the box.
The solution was to init this as springMVC, use #Controller instead of #Restcontroller because I want the class to be handled as MVC class... and the return could be as simple as return 'index' (because my html file in the default location is called index.html)
basically I would have known, if I'd simply followed the tutorial on SpringMVC... but hey, why would anyone RTFM? :-)
so it looks like this:

UnavailableException when trying to set up Jetty CORS access

I've been trying to follow this and linked within answers to try and setup a CORS access as apparently localhost and localhost:8080 are two different domains. sigh
Either way, the issue I'm having is that when starting the server a javax.servlet.UnavailableException: org.eclipse.jetty.servlets.CrossOriginFilter exception is thrown. I've no clue what's causing it.
When trying to use the services in it I get a 503 error.
Steps taken:
Copied the jetty-servlet-9.2.13.v20150730.jar from the Geoserver lib folder to the webapps WEB-INF's lib folder.
Pasted the following into my web.xml: Pastebin because editor didn't cooperate
If I remove those lines it works fine, apart from the CORS issues I have. (I'm trying to access colour values of specific pixels.
Other than that and an added WMS, the Geoserver instance is pretty much a fresh install.
UPDATE:
So, following #sideshowbarker's advice, I have inserted a servlets file. Now I'm getting a 404 error, seemingly caused by the GeoServer setup not being able to find the definition of org/eclipse/jetty/util/StringUtil. Errr, what?
Please find the pastebin of this: http://pastebin.com/4R8hZNcM
UPDATE 2:
So, I've inserted the required jar into the WEB-INF folder, and now it's throwing a NoSuchMethodError in regards to the csvSplit method... what? o.O
The jetty-util had a faulty StringUtil class, with a faulty csvSplit method. Replacing this with the most recent (9.4.*) jar solved the issue.

Jira Java Rest Client: Get IssueLinks from issue

I'm implementing a tool with the JIRA Javs Rest Client. I perform a query to get all issues which are overdued. After this I would like to check, whether each of them is a child of any other issue.
Problem: I cannot find any solution to get the issue links
I tried to get the field "issuelinks" by:
issue.getField("issuelinks");
and also tried to use the method:
getIssueLinks()
I also read about an IssueLinkManager but it seems that I cannot import that library as I cannot find the correct maven repository for that.
I also tried to use an adapted JQL query but couldn't find a solution to search for issues without parent issues.
I would really appreciate if anyone could help me.
Thank you in advance!
This code works for me:
Issue i = client.getIssueClient().getIssue("XX-1000").claim();
for(IssueLink il : i.getIssueLinks()){
System.out.println(il);
}
Prints:
IssueLink{targetIssueKey=XX-1000, targetIssueUri=xxx, issueLinkType=IssueLinkType{name=Duplicate, description=duplicates, direction=OUTBOUND}}
What happens when you try it?
This API works fine, but has no documentation whatsoever. I am using version 4.0.0.

Why do I get Nullpointer exception when I create a hibernate mapping XML file?

I am a newbie to hibernate and trying to create a hibernate XML mapping file for a particular class. I am using Spring Tool Suite with hibernate plugin installed and also using Maven. Why do I get the null pointer exception and what could be the reason for it?
A screenshot is also attached
It says see error log. But I do not know where the error log exists. I tried a google search too, but could not find a good answer. Any kind of help will be highly appreciated.
Thank You all !!!!!!
I could solve this problem by using a different version. As said by one of my friends I think the problem was with the version that I was using. Then I tried it with Eclipse Kepler and the problem was gone :)
Set up the hibernate configuration it will be ok
there is tab called hibernate configuration you add there your projects and you do some configurations there .

Categories

Resources