Archive for the 'Solution' Category

Solution: “Temporary ID hasn’t been replaced on commit” when using Cayenne
Monday, January 24th, 2011

Problem When committing changes to a Cayenne context, you get an exception like the following. org.apache.cayenne.CayenneRuntimeException: (v.3.0.1 Sep 06 2010 15:09:38) Temporary ID hasn’t been replaced on commit Cause You are trying to commit an object for which Cayenne does not know how to generate a permanent id. This in turn typically happens when the [...]

Solution: “Error generating PK : entity not supported” when using Cayenne
Thursday, January 13th, 2011

Problem When committing changes to a Cayenne context, you get an exception like the following. org.apache.cayenne.CayenneRuntimeException: (v.3.0.1 Sep 06 2010 15:09:38) Error generating PK : entity not supported: SOME_TABLE Cause A column that is part of the primary key of SOME_TABLE has no value. Therefore Cayenne tries to generate one, but does not know how [...]

Den laglydige taxichauffören
Sunday, February 22nd, 2009

— en berättelse som inte har något med rättegången kring the Pirate Bay att göra Låt oss föreställa oss en helt vanlig taxichaufför. Taxichauffören har taxilicens och en taxibil som är registrerad enligt konstens alla regler. Det enda som utmärker vår taxichaufför är att han har en lite egen twist — han tar alla körningar [...]

Solution: “Specified RequestProcessor not compatible with TilesRequestProcessor”
Friday, May 9th, 2008

When using Struts 1.3 with Tiles and SSLEXT plug-ins, the application server throws an exception while trying to process a request telling you that the specified request processor isn’t compatible with Tiles. Here’s the solution.

Solution: “Could not load a dependent class” when using Ant through Eclipse
Monday, January 21st, 2008

When running an optional Ant task through the Eclipse Ant interface, you get an error saying a dependent class could not be loaded. However, you have found all required dependencies for the tasks you are trying to use and put them in one of the folders as specified. This might be the solution.

Sorted collections in Hibernate
Wednesday, October 3rd, 2007

We want a collection field belonging to an entity object to be sorted. There are two possible solutions.