Hello,
I have an issue with a Spring controller method. It actually does two updates on the same entity which causes the StaleObjectStateException.
The problem is that when I retrieve the...
Type: Posts; User: balteo; Keyword(s):
Hello,
I have an issue with a Spring controller method. It actually does two updates on the same entity which causes the StaleObjectStateException.
The problem is that when I retrieve the...
Hi Rossen,
Thanks for your reply.
I have managed to reproduce the issue and have included the sample application hereby. It is just the spring mvc chat application together with one JPA entity....
I received the following reply from a core developer of the Spring team:
To provide more information, here is the controller method:
@RequestMapping(value = "getMessages", method =...
Hello,
I have an asynchronous Spring MVC controller method (which returns a DeferredResult); that controller method calls a Spring service method that itself use the entityManager in order to...
Hello,
I have added the following class in my Roo app:
package com.bignibou.converter;
import org.springframework.format.FormatterRegistry;
import...
Hello,
I want to have the following method:
@ExceptionHandler(MyRuntimeException.class)
public String myRuntimeException(MyRuntimeException e, RedirectAttributes redirectAttrs){//does not...
I have the following method skeleton in a Spring MVC application:
@RequestMapping(value = "/activateMember/{token}", method = RequestMethod.GET, produces = "text/html")
public String...
Hello,
I need to register a javax.mail.event.TransportListener with the test layer of my Spring application in order to be able to determine whether or not emails are being sent.
I noticed that...
Thanks Marten. That fixed it!
Hi Marten!
I actually decided to give up (temporarily) on this issue and tried to switch back to a config without profiles.
Then I realized that the issue was elsewhere. For some reason, Spring...
Yes. I had actually figured this out after posting my last thread.
I changed to :
<property name="location" value="classpath:META-INF/spring/default/app-config.properties" />
And I get the...
Unfortunately, it does not make any difference...
Here is my new config:
<beans profile="default">
<bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">...
What do you mean by "icm"?
Otherwise, your point about configuring the PropertySourcesPlaceholderConfigurer manually is relevant: I now get another error:
...
I see what you mean Marten. Let me sum up about my config:
In webmvc-config.xml:
<beans profile="cloud">
<context:property-placeholder...
about the logging:
2012-12-18 15:33:04,131 [localhost-startStop-1] ERROR org.springframework.web.context.ContextLoader - Context initialization failed...
Ummmh. What do you mean by "replacing the properties"?
2012-12-18 15:10:43,207 [localhost-startStop-1] INFO org.springframework.context.support.PropertySourcesPlaceholderConfigurer - Loading properties file from file...
Yes I did add it as a context-param...
Debugging output is as follows:
2012-12-18 14:20:18,311 [localhost-startStop-1] DEBUG org.springframework.core.env.PropertySourcesPropertyResolver -...
Hi Marten,
That's what I thought too. Any idea what could cause it not to be picked up by Spring?
I actually have the following code snippet:
<beans profile="cloud">
...
Hi,
I tried adding the following to my local STS/tomcat:
-Dspring.profiles.active=default
in order to enable the default profile on my local machine. I still get the same error as before...
Any...
Hello,
I am trying to activate one set of properties files for one Spring profile and another set for another Spring profile as follows:
<beans profile="cloud">
...
Gary,
Thanks a lot. It works fine with the classMapper property.
Regards,
J.
Hi Artem,
Do you have any idea what information this header ( __TypeId__) conveys?
I was not able to find any info on the web about it or about what to set it to...
J.
Hello,
I am trying to convert an amqp message from JSon to java and I get the following cryptic error:
Exception in thread "main"...
Do you mean: http://static.springsource.org/spring/docs/3.2.0.BUILD-SNAPSHOT/api/org/springframework/web/context/request/async/DeferredResult.html#onTimeout(java.lang.Runnable)