Hello! On Mon, Nov 11, 2002 at 11:17:15AM +0100, Christian Haul wrote: > On 07.Nov.2002 -- 09:44 AM, Christian Joelly wrote: > > > > thanks for your answer. I'd prefer to use the version 2.0.1 for this > > application, because maybe there are some other problems rising when i > > switch the cocoon version during development... ;-) > > Fair enough. OTOH many issues have been resolved. There should be no > change in the user visible interface apart from stuff in scratchpad.
i'm now working to integrate cocoon 2.0.3 with my application, but i see there are some issues that are strange: i wrote lots of sql queries in the following manner: (as i usual did with other frameworks or dev tools) <xsp:logic> sQuery = " SELECT DISTINCT nUserID, sUserName FROM users"; if (sNachname != null) { sQuery =+ " WHERE sNachname LIKE \"" + sNachname + "%\"; } <!-- lots of other tests go here... --> </xsp:logic> which works fine with 2.0.1, but on 2.0.3 cocoon generates: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling options_xsp: Line 1754, column 74: unclosed character literal Line 1754, column 73: illegal start of expression Line 1769, column 113: unclosed character literal Line 1772, column 10: unclosed character literal Line 1775, column 89: illegal character Line 1778, column 83: unclosed character literal Line 1778, column 82: illegal start of expression Line 1780, column 96: illegal character Line 1784, column 83: unclosed character literal Line 1784, column 82: illegal start of expression Line 1786, column 97: illegal character Line 1790, column 83: unclosed character literal Line 1790, column 82: illegal start of expression Line 1792, column 100: illegal character Line 1795, column 75: unclosed character literal Line 1795, column 74: illegal start of expression Line 1797, column 89: unclosed character literal Line 0, column 0: 17 errors at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:340) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:292) the error comes from the " and the line break as i want to setup the sql query string. can i set this behavior with an config option or is this a java issue?!? > > i have attached the error message, the sitemap and the compiled sitemap. > > i have also to tell that im not a very indepth cocoon developer so the > > error messages are looking very strange to me :o) > > Unfortunately, I can't make any out of it either. Sitemap looks OK, so > does the generated .java file. The error messages are not really > helpful :-( hmmm, i don't think the generated javacode is ok, because it ends suddenly without the nessessary java code... thanks a lot, Chris -- KNAPP Logistics Automation http://www.knapp.com Ing. Christian Jölly Tel/FAX: (++43) 316 / 495 1926 / 495 394 Günter-Knapp-Straße 5-7 A-8075 Hart bei Graz -- Support your government, give Echelon/Carnivore something to parse -- AMTAS ATMD ATSC Abdullah Allah communist CIA DD2-N DISA DoD GRU Gregori Irak Iran KGB Kurdish LSD NATO NSTD Natasha ORD RTEM Russia STRAP Saddam Hussein TSP Yugoslavia attack bank bomb classfield cocain compromise defense democracy destroy destruct detonator directorate elections enforce extasy force foreign embassy government grass hashish heroin illegal information international military systems missile million dollars nuclear policital pot power presidental project restricted data revolution rule the world sensitive smuggle spy steal system takeover terrorist top-secret warmod warrior-T weapon weed ------------------------------------------------------------------------
msg20421/pgp00000.pgp
Description: PGP signature