[ https://issues.apache.org/jira/browse/COCOON3-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842967#action_12842967 ]
Jos Snellings commented on COCOON3-53: -------------------------------------- Cocoon 3, checked out from SVN on 5 march, and built with eclipse. Detail: three urls, activating a pipe ending with an xml serializer. (Note: all other pipes work correctly as far as I could verify) http://localhost:8080/thesaurus/hierarchies?language=el, result = the greek hierarchies in the thesaurus http://localhost:8080/thesaurus/showterm.xml?id=1004, visualize a term http://localhost:8080/thesaurus/editor/workspace.xml?random=23948783 Here is what happens: SETUP, manufacturing cacheKey: ~ adding SimpleCacheKey(hashCode=3116185) for component ToptermsGenerator(hashCode=21535750) ~ adding org.apache.cocoon.pipeline.caching.parametercache...@f91f7142 for component XMLSerializer(hashCode=10730286) Creating CompoundCacheKey(hashCode=22406408 key=[SimpleCacheKey(hashCode=3116185), org.apache.cocoon.pipeline.caching.parametercache...@f91f7142]) for pipeline CachingPipeline(hashCode=33258683 components=[ToptermsGenerator(hashCode=21535750), XMLSerializer(hashCode=10730286)]) SETTING CACHE: org.apache.cocoon.pipeline.caching.SimpleCache (CachingPipeline.setCache() called) SETUP, manufacturing cacheKey for 2nd: ~ adding SimpleCacheKey(hashCode=4540490) for component TermGenerator(hashCode=16199287) ~ adding org.apache.cocoon.pipeline.caching.parametercache...@f91f7142 for component XMLSerializer(hashCode=23533966) Creating CompoundCacheKey(hashCode=16471030 key=[SimpleCacheKey(hashCode=4540490), org.apache.cocoon.pipeline.caching.parametercache...@f91f7142]) for pipeline CachingPipeline(hashCode=772032 components=[TermGenerator(hashCode=16199287), XMLSerializer(hashCode=23533966)]) The value is "FOUND" in cache!!!, Here is the xml for: cacheValue.writeTo(System.out): JDB: CachingPipeline Write cache value to output stream: <?xml version="1.0" encoding="UTF-8"?><page><searchform/><classlist><class name="Ομάδα 1 - Οργανισμοί και Φορείς"><top id="9001">κυβέρνηση / διοίκηση</top><top id="9029">οργανισμοί</top><top id="9056">φορείς</top></class><class name="Ομάδα 2 - Κατηγορίες Πολιτιστικής Κληρονομιάς"><top id="9085">πολιτιστικό αγαθό</top><top id="9115">περιοχές</top><top id="9149">ενδιαφέρον πολιτιστικής κληρονομιάς</top><top id="9166">κληρονομιά</top></class><class name="Ομάδα 3 - Συστήματα Αρχειοθέτησης"><top id="9194">καταγραφή και τεκμηρίωση</top><top id="9215">αρχεία καταγραφής</top><top id="9222">κατάλογος προστατευόμενων αγαθών</top></class><class name="Ομάδα 4 - Νομικά συστήματα"><top id="9225">νομικά μέσα</top><top id="9250">πολεοδομικό σύστημα</top><top id="9273">διαχείριση κληρονομιάς</top><top id="9327">ιδιοκτησία</top><top id="9355">παράνομες ενέργειες</top></class><class name="Ομάδα 5 - Επεμβάσεις"><top id="9362">τύποι επεμβάσεων</top><top id="9413">πολιτική επεμβάσεων</top><top id="9416">προγράμματα επεμβάσεων</top><top id="9421">εργαλεία επέμβασης</top></class><class name="Ομάδα 6 - Επαγγέλματα, δεξιότητες και αρμοδιότητες"><top id="9430">επαγγέλματα</top><top id="9432">δεξιότητες</top><top id="9437">εκπαίδευση / επιμόρφωση</top></class><class name="Ομάδα 7 - Πρόσβαση και ερμηνεία"><top id="9449">πρόσβαση και ερμηνεία</top></class><class name="Ομάδα 8 - Χρηματο-οικονομικά συστήματα"><top id="9491">χρηματο-οικονομικά συστήματα</top></class><class name="Ομάδα 9 - Γενικές έννοιες"><top id="9521">γενικές έννοιες</top></class></classlist></page>SETTING CACHE: org.apache.cocoon.pipeline.caching.SimpleCache Surprise! The Greek hierarchies! SETUP, now the call of "workspace": ~ adding SimpleCacheKey(hashCode=30181678) for component WorkspaceProvider(hashCode=27011377) ~ adding org.apache.cocoon.pipeline.caching.parametercache...@f91f7142 for component XMLSerializer(hashCode=28014118) Creating CompoundCacheKey(hashCode=31048679 key=[SimpleCacheKey(hashCode=30181678), org.apache.cocoon.pipeline.caching.parametercache...@f91f7142]) for pipeline CachingPipeline(hashCode=22316052 components=[WorkspaceProvider(hashCode=27011377), XMLSerializer(hashCode=28014118)]) JDB: CachingPipeline Write cache value to output stream: <?xml version="1.0" encoding="UTF-8"?><page><searchform/><classlist><class name="Ομάδα 1 - Οργανισμοί και Φορείς"><top id="9001">κυβέρνηση / διοίκηση</top><top id="9029">οργανισμοί</top><top id="9056">φορείς</top></class><class name="Ομάδα 2 - Κατηγορίες Πολιτιστικής Κληρονομιάς"><top id="9085">πολιτιστικό αγαθό</top><top id="9115">περιοχές</top><top id="9149">ενδιαφέρον πολιτιστικής κληρονομιάς</top><top id="9166">κληρονομιά</top></class><class name="Ομάδα 3 - Συστήματα Αρχειοθέτησης"><top id="9194">καταγραφή και τεκμηρίωση</top><top id="9215">αρχεία καταγραφής</top><top id="9222">κατάλογος προστατευόμενων αγαθών</top></class><class name="Ομάδα 4 - Νομικά συστήματα"><top id="9225">νομικά μέσα</top><top id="9250">πολεοδομικό σύστημα</top><top id="9273">διαχείριση κληρονομιάς</top><top id="9327">ιδιοκτησία</top><top id="9355">παράνομες ενέργειες</top></class><class name="Ομάδα 5 - Επεμβάσεις"><top id="9362">τύποι επεμβάσεων</top><top id="9413">πολιτική επεμβάσεων</top><top id="9416">προγράμματα επεμβάσεων</top><top id="9421">εργαλεία επέμβασης</top></class><class name="Ομάδα 6 - Επαγγέλματα, δεξιότητες και αρμοδιότητες"><top id="9430">επαγγέλματα</top><top id="9432">δεξιότητες</top><top id="9437">εκπαίδευση / επιμόρφωση</top></class><class name="Ομάδα 7 - Πρόσβαση και ερμηνεία"><top id="9449">πρόσβαση και ερμηνεία</top></class><class name="Ομάδα 8 - Χρηματο-οικονομικά συστήματα"><top id="9491">χρηματο-οικονομικά συστήματα</top></class><class name="Ομάδα 9 - Γενικές έννοιες"><top id="9521">γενικές έννοιες</top></class></classlist></page> Surprise: the Greek hierarchies come again! Although the cache key is different in all three cases. So the thing to do is here to make the cache break news about its members and keys, and how equality is decided. By the way: 1. jmx-group-name plays no role herein as expected 2. should the url not be included in a key hash? > Cocoon 3: XMLSerializer caches all > ---------------------------------- > > Key: COCOON3-53 > URL: https://issues.apache.org/jira/browse/COCOON3-53 > Project: Cocoon 3 > Issue Type: Bug > Components: cocoon-pipeline > Reporter: Jos Snellings > > After startup, any pipeline/matcher ending in an xml-serializer will > produce the output of the first request after server startup, regardless of > the url, let alone parameters. > So the first xml pipe that is activated produces the expected output. > All subsequent calls will echo that output, whatever the url or parameters. > It takes a server restart to make a pipeline ending in an xml serializer work > again. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.