My assumption in that you have some overlap. The following is a pom.xml I have been using successfully on a project.
<dependencies>
<dependency>
<groupId>com.google.android</groupId>...
Type: Posts; User: dutchman_mn; Keyword(s):
My assumption in that you have some overlap. The following is a pom.xml I have been using successfully on a project.
<dependencies>
<dependency>
<groupId>com.google.android</groupId>...
Mmmmm.... Everything looks good.
What does your dependency entry look like in your pom.xml?
Do you have the maven tools plugin within Eclipse?
For smartphones, I would start with a Webkit-based browser and see if that meets your needs.
Perry Hoekstra
From a mobile perspective, Spring can help you detect that the browser is mobile-based and redirect the user to your mobile-optimized portion of your web application.
Now, developing your mobile...
My first question would be, did you resolve the NullPointerException?
07-09 09:17:37.398: WARN/dalvikvm(7247): threadid=3: thread exiting with uncaught exception (group=0x4001e390)
07-09...
Take a look at the thread: "Examples to make RestTemplate work with JSON?" in this forum. It was one of the first posts in this forum, it will be a page or two back.
Perry
Yes, on the topic of the message converter, I knew that but at the time I was starting to grasp at straws. I had read the same thing you did on @Root and did not put it in. As you did, I should...
No, I have not.
I agree, it is not very RESTful but you are correct, the API would look something like your example. One of the responsibilities of an architect/developer is to make compromises when necessary in...
No, the link was an example of a workaround where PUT/DELETE are not available. You override the meaning of POST by placing "action" commands within your post such as "add" for PUT and "delete" for...
I am attempting to use the SimpleXmlHttpMessageConverter to render an XML response to a Java object like this:
HttpComponentsClientHttpRequestFactory requestFactory = new...
Get a different server? Whether the server supports PUT/DELETE or not cannot be solved by a REST client framework. There are a number of work-arounds, all rather ugly but they involve such things...
I guess without knowing who told you and what they told you, it is tough to figure out if what they told you is correct. Can you safely use SSL and the Spring REST client on your mobile application?...
Not knowing what is coming through in the JSON response but looking at your code, you don't reference BaseBall at all. What is the purpose of BaseBall, compatibility with the backend service?
Catch the runtime RestClientException
try {
ResponseEntity<Request[]> responseEntity = restTemplate.exchange(url, HttpMethod.GET, createHttpRequestEntity(), Request[].class);
}
catch...
"My hunch is the POJO is incorrectly defined."
Yes, and unfortunately, the "out of START_OBJECT token" seems to be a catch-all for any deserialization issues.
If you have control over the JSON...
Can you pipe the request/response through TCPMon to see what is actually moving through?
Based on what little information you have given, my first guess is the JSON response is badly formed and...
Yes, I know. I was actually using an internal Tomcat server to connect to. Like you, I was using "https://myserver/foo" as a stand-in for the real URL.
Hmmmmm ....
I seem to be getting a:
org.springframework.web.client.ResourceAccessException: I/O error: No peer certificate; nested exception is javax.net.ssl.SSLPeerUnverifiedException: No...
How are you connecting? Are you using RestTemplate.exchange with an HTTPS URI or some other mechanism?
You mean encryption as in HTTPS or data storage encryption?
I don't understand, what are you looking for that http://www.springsource.org/spring-mobile does not provide or the Greenhouse example application?
Spring MVC is not available for either Android or Blackberry. As a matter of fact, there is no cross-platform framework that will allow a developer to create a single app and allow it to run on...
What is the URI when you run it in the emulator? It cannot be "localhost".