db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning P. Schmiedehausen" <...@intermeta.de>
Subject 3.1alpha1 breaks all peers from earlier versions
Date Tue, 22 Apr 2003 09:44:25 GMT
If you try to use peers which were created from a 3.0 version
of torque, you will get strange errors like this:

2003-04-22 11:29:51,736 [HttpProcessor[8080][4]] DEBUG de.intermeta.securitymanager.model.SecurityManagerModel
- Security Exception: 
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError
	at org.apache.turbine.services.security.torque.om.BaseTurbineUserPeer.doSelectVillageRecords(BaseTurbineUserPeer.java:393)
	at org.apache.turbine.services.security.torque.om.BaseTurbineUserPeer.doSelectVillageRecords(BaseTurbineUserPeer.java:377)
	at org.apache.turbine.services.security.torque.om.BaseTurbineUserPeer.doSelect(BaseTurbineUserPeer.java:346)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.turbine.services.security.torque.UserPeerManager.doSelect(UserPeerManager.java:751)

The reason for this are some user visible changes in e.g. Criteria
where methods that once returned a StringStack
(e.g. getSelectModifiers()) now return an UniqueList.

After recompiling all the code which referenced the old objects
(turbine.jar !), everything works again. This was a tricky bug
because there is no code change in the templates visible (and 
at least the turbine.jar contains some compiled peers for the 
Scheduler and the Torque Security Service). 

This problem should be noted somewhere in the docs. It will happen
again when we move from UniqueList to OrderedSet, so I propose that we
add the OrderedSet class (which will go into commons collections) as
org.apache.torque.util.OrderedSet with a big notice that this class is
not for public use and replace all the UniqueList returning methods to
return the "Set" interface.


Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

View raw message