Search:

Type: Posts; User: balteo; Keyword(s):

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Preventing the hibernate StaleObjectStateException from occurring

    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...
  2. Hi Rossen, Thanks for your reply. I have...

    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....
  3. I received the following reply from a core...

    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 =...
  4. Unknown threading issue causes async Spring controller method to leak db connections

    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...
  5. Roo shell does not generate ITDs for my @RooConversionService

    Hello,

    I have added the following class in my Roo app:


    package com.bignibou.converter;

    import org.springframework.format.FormatterRegistry;
    import...
  6. Performing a redirect from a spring MVC @ExceptionHandler method

    Hello,

    I want to have the following method:


    @ExceptionHandler(MyRuntimeException.class)
    public String myRuntimeException(MyRuntimeException e, RedirectAttributes redirectAttrs){//does not...
  7. Displaying an error message without resorting to @ModelAttribute with Spring MVC

    I have the following method skeleton in a Spring MVC application:


    @RequestMapping(value = "/activateMember/{token}", method = RequestMethod.GET, produces = "text/html")
    public String...
  8. Registering a javax.mail.event.TransportListener with a Spring test layer

    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...
  9. Thanks Marten. That fixed it!

    Thanks Marten. That fixed it!
  10. Hi Marten! I actually decided to give up...

    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...
  11. Yes. I had actually figured this out after...

    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...
  12. Unfortunately, it does not make any difference......

    Unfortunately, it does not make any difference...

    Here is my new config:


    <beans profile="default">
    <bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">...
  13. What do you mean by "icm"? Otherwise, your...

    What do you mean by "icm"?

    Otherwise, your point about configuring the PropertySourcesPlaceholderConfigurer manually is relevant: I now get another error:

    ...
  14. I see what you mean Marten. Let me sum up about...

    I see what you mean Marten. Let me sum up about my config:

    In webmvc-config.xml:


    <beans profile="cloud">
    <context:property-placeholder...
  15. about the logging: 2012-12-18 15:33:04,131...

    about the logging:


    2012-12-18 15:33:04,131 [localhost-startStop-1] ERROR org.springframework.web.context.ContextLoader - Context initialization failed...
  16. Ummmh. What do you mean by "replacing the...

    Ummmh. What do you mean by "replacing the properties"?
  17. 2012-12-18 15:10:43,207 [localhost-startStop-1]...

    2012-12-18 15:10:43,207 [localhost-startStop-1] INFO org.springframework.context.support.PropertySourcesPlaceholderConfigurer - Loading properties file from file...
  18. Yes I did add it as a context-param... ...

    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 -...
  19. Hi Marten, That's what I thought too. Any...

    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">
    ...
  20. Hi, I tried adding the following to my local...

    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...
  21. Issue with Spring profiles and my properties files

    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">
    ...
  22. Gary, Thanks a lot. It works fine with the...

    Gary,
    Thanks a lot. It works fine with the classMapper property.
    Regards,
    J.
  23. Hi Artem, Do you have any idea what information...

    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.
  24. "MessageConversionException: failed to convert Message content" with JSon

    Hello,

    I am trying to convert an amqp message from JSon to java and I get the following cryptic error:


    Exception in thread "main"...
  25. Replies
    1
    Views
    400

    Do you mean:...

    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)
Results 1 to 25 of 177
Page 1 of 8 1 2 3 4