Search:

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

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. After some debug, I have noticed the following....

    After some debug, I have noticed the following. In BeanValidationActivator, line 118 (82 as well), in method applyDDL(), the following line fails:


    applyDDL.invoke( null, persistentClasses,...
  2. Startup problem (using the "expenses" sample + GWT setup)

    Hello,

    I am having a problem with the "expenses" sample Roo app. When it starts up, it throws the following error:


    java.lang.IllegalAccessException: Class org.hibernate.cfg.Configuration can...
  3. Replies
    4
    Views
    6,197

    Hello, The Google Web Toolkit seems a nice way...

    Hello,

    The Google Web Toolkit seems a nice way to develop Java AJAX applications.

    Actually I wanted to start a new topic for a discussion between these two AJAX apporāaches:

    Spring XT Ajax...
  4. Thank you for the reply. I did some searching...

    Thank you for the reply.

    I did some searching on the Internet and found the answer. Internet Explorer ignores sometimes the "meta" declaration for cache control inside the "head" section of the...
  5. The browser doesn't refresh the page after link click

    Hello all,

    I have a problem that has become quite annoying. While using Internet Explorer as browser for my web app, it does not reload the page. Logging shows that the controller completes its...
  6. I did it like this: public void saveDriver(...

    I did it like this:

    public void saveDriver( Driver driver ) throws BaseException{
    try {
    getDao().saveOrUpdate(driver);
    getDao().flush();
    } catch (DataIntegrityViolationException...
  7. public void saveDriver( Driver driver ) throws...

    public void saveDriver( Driver driver ) throws BaseException{
    try {
    getDao().saveOrUpdate(driver);
    getDao().flush();
    } catch (DataIntegrityViolationException de) {
    ...
  8. That's true, but I have all my entites configured...

    That's true, but I have all my entites configured with 0 as unsaved-value for the ids.

    In conclusion, is there a way to change the id in a service method?

    Cristian.
  9. I made some digging, and saw that after a failed...

    I made some digging, and saw that after a failed save attempt (caused by the an unique constraint in the DB), the id of the entity is modified to a non-zero value. So the next save attept finds the...
  10. Thank you for the reply; Is there a way to...

    Thank you for the reply;



    Is there a way to overcome this? What can I do to reinitialize the session?

    Thank you,
    Cristian.
  11. DataAccessException caught after flush; problem?

    Hello there,

    I'd like to capture the DataIntegrityViolationException. For this, I call flush() after the update command:


    public void saveDriver( Driver driver ) throws BaseException{
    try...
  12. Replies
    3
    Views
    1,009

    Thank you. Actually I need to do some...

    Thank you.

    Actually I need to do some initialisation in the Web Session, based on the logged in user.

    I found this thread:
    http://forum.springframework.org/showthread.php?t=19489
    where it was...
  13. Replies
    3
    Views
    1,009

    Initialisations after authentification

    Hello,

    I'd like to have some initialisations executed after the user has been logged in. I found a solution by overriding attemptAuthentication method of AuthenticationProcessingFilter. It worked...
  14. Thanks Luke. I figured it out. My Role class...

    Thanks Luke.
    I figured it out. My Role class wasn't correctly deserialized because it was inheriting from classes that were not serializable. Now all the parents of Role, including Role implement...
  15. I think the correct question to ask is why my...

    I think the correct question to ask is why my user object is not correctly deserialized or/and serialized. Besides the roles list that is null, I noticed that another object associated to the user is...
  16. I replaced CustomAuthenticationProcessingFilter...

    I replaced CustomAuthenticationProcessingFilter with the original AuthenticationProcessingFilter but it is the same thing.

    There's another thing I don't understand though. In the second login...
  17. [gioppi] DEBUG...

    [gioppi] DEBUG UserCounterListener.incrementUserCounter(58) | User Count: 1
    [gioppi] DEBUG HttpSessionContextIntegrationFilter.doFilter(276) | SecurityContext stored to HttpSession:...
  18. [gioppi] DEBUG...

    [gioppi] DEBUG PathBasedFilterInvocationDefinitionMap.lookupAttributes(113) | Converted URL to lowercase, from: '/j_security_check'; to: '/j_security_check'
    [gioppi] DEBUG...
  19. Thank you for the reply. The configuration of...

    Thank you for the reply.

    The configuration of the acegi system is preety much based on the AppFuse application:


    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD...
  20. DEBUG...

    DEBUG PathBasedFilterInvocationDefinitionMap.lookupAttributes(113) | Converted URL to lowercase, from: '/missionlist.jspm'; to: '/missionlist.jspm'
    [gioppi] DEBUG...
  21. Why granted authorities = null, null after server restart

    Hello,

    I am having a problem using the ACEGI security system. When I start the server and access a protected resource, I am correctly redirected to the login page, and then to the required...
  22. Chris, As far as I saw, lock was the only...

    Chris,

    As far as I saw, lock was the only method that didn't do a database call. I have some lists of objects that need to be reattached, and I saw this as an advantage, as all the other methods...
  23. When each of your pages (2, 3, 4, ...) is loaded,...

    When each of your pages (2, 3, 4, ...) is loaded, you need to attach the object stored in the web session to the Hibernate Session. For doing that, you need to get the currentSession of your...
  24. ServiceLocator.instance().attachToSession(meData.g...

    ServiceLocator.instance().attachToSession(meData.getVehicles());


    in handleRequest() method of my controller (I use Spring MVC platform).

    I refactored the reattachToSession() into the method...
  25. How can I initialyze all the collections of an obj

    I noticed that I have a part in the app, that does not support lazy-loading. So I need to fully load all the elements of my objects. One way would be to call: Hibernate.initialize() for each...
Results 1 to 25 of 44
Page 1 of 2 1 2