Permalink
Commits on Mar 12, 2014
  1. bump version

    oberhamsi committed Mar 12, 2014
Commits on Apr 9, 2013
  1. partly reverted 5f18e3a:

    switched back to using DbSources as Map keys, as using strings breaks switching databases
    using DbSource.switchProperties (which is used in jala.Test)
    grob committed Apr 9, 2013
  2. Modified Transactor to store sqlConnections internally using the name…

    … of the DbSource
    
    as Map key, not the DbSource instance. Using the instance as key is both inefficient and
    error prone (see fd0b77b).
    
    Additional changes:
    - modified getConnection() to check if the DB is oracle. "SELECT 1" is invalid
    for Oracle DBs and lead to Helma dropping in-use connections every minute.
    - set DbSource name final
    grob committed Apr 9, 2013
Commits on Apr 8, 2013
  1. Next attempt to fix the deadlock issue that lead to fd0b77b:

    The source of the deadlock problem seems that during DbSource.getConnection() ResourceProperties instances are compared using their equals() method, which is synchronized in Hashtable and can/does lead to deadlocks (see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6582568).
    
    This commit overwrites equals with an unsynchronized version. Note that this implementation might return a wrong result if one of the two instances is modified during this method call, but at least doesn't throw a ConcurrentModificationException.
    grob committed Apr 8, 2013
Commits on Apr 4, 2013
  1. new interface method ObjectCache.getStatistics

    the statistics of a cache instance for an application can be retrieved
    by calling `app.__app__.getCacheStatistics()`. That's not very useful for the 
    default `ObjectCache` but essential for looking into what more complex cache
    impls like `SwarmCache` do
    
    we could remove all the other cache statistics methods like `getCacheUsage` 
    and output that info in the map returned by `getCacheStatistics()`
    
    i had to bump java to 1.5 for the generics.. if that's a problem we can
    remove the generics
    oberhamsi committed Apr 4, 2013
Commits on Mar 6, 2013
  1. synchronized various methods to avoid deadlock

    one of our apps was stuck in a deadlock in ResourceProperties.size(),
    see excerpt of the stack trace below. this fix synchronizes various overriding
    methods since they are synchronized in Hashtable as well.
    
    removed superfluous toString method too.
    
    ```
    "app-230":
            at java.util.Hashtable.size(Hashtable.java:206)
            - waiting to lock <0xa13f8548> (a helma.util.ResourceProperties)
            at helma.util.ResourceProperties.size(ResourceProperties.java:529)
            at java.util.Hashtable.equals(Hashtable.java:742)
            - locked <0xa1065708> (a helma.util.ResourceProperties)
            at helma.objectmodel.db.DbSource.equals(DbSource.java:292)
            ...
    "app-439":
            at java.util.Hashtable.size(Hashtable.java:206)
            - waiting to lock <0xa1065708> (a helma.util.ResourceProperties)
            at helma.util.ResourceProperties.size(ResourceProperties.java:529)
            at java.util.Hashtable.equals(Hashtable.java:742)
            - locked <0xa13f8548> (a helma.util.ResourceProperties)
            at helma.objectmodel.db.DbSource.equals(DbSource.java:292)
            ...
    ```
    grob committed Mar 6, 2013
Commits on Nov 29, 2012
  1. Fixed bug in decodeHttpAuth() causing colons in a password (and every…

    …thing afterwards) to be swallowed. Note: RFC 2617 explicitely allows colons in passwords, just not in usernames.
    p3k committed with oberhamsi Jan 28, 2011
Commits on Mar 27, 2012
  1. adding .gitignore

    ignore everything created by `ant jar`
    oberhamsi committed Mar 27, 2012
  2. fix Object.clone for `null` properties

    unknown author
    oberhamsi committed Mar 27, 2012
Commits on Mar 14, 2012
Commits on Feb 22, 2010
  1. Remove indexOf and lastIndexOf from Array.prototype as they're part o…

    …f JS 1.5. Simplify Array.prototype.contains.
    hns committed Feb 22, 2010
Commits on Feb 5, 2010
Commits on Jan 26, 2010
  1. More null pointer guards.

    hns committed Jan 26, 2010
Commits on Jan 25, 2010
Commits on Dec 17, 2009
  1. Undo last two commits. The change had some side effects, leave db con…

    …nection handling as is.
    hns committed Dec 17, 2009
Commits on Dec 1, 2009
Commits on Nov 30, 2009
  1. Do not cache connection in helma.Database as it is cached and validat…

    …ed already by helma.objectmodel.db code.
    hns committed Nov 30, 2009
  2. Refactor db connection pooling: Use connection names instead of conne…

    …ction properties as has keys, introduce new DbConnection wrapper class and a serial-id flag in DbSource to validate connections.
    hns committed Nov 30, 2009
Commits on Nov 27, 2009
  1. Update jetty to version 6.1.22

    hns committed Nov 27, 2009
Commits on Nov 26, 2009
Commits on Nov 25, 2009
  1. Make symbolic keys case sensitive, following the general change betwe…

    …en from 1.6 to 1.7.
    hns committed Nov 25, 2009
  2. Code cleanup

    hns committed Nov 25, 2009
  3. Revert back to using TransientNode as HopObject cache node and as pla…

    …ceholder for invalidated/deleted nodes. Some cleanup and modifier tweaking in HopObject.
    hns committed Nov 25, 2009