Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException
Hi, We've got a Cocoon 2.2 webapp using the Cocoon Authentication 1.0 block to authenticate users. A short period of time after logging in we sometimes get a Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException. What could be the cause of this? - Magnus IMPORTANT NOTICE: This message may contain confidential information. If you have received this e-mail in error, do not use, copy or distribute it. Do not open any attachments. Delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
Re: Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException
On Thursday 22 May 2008 10:05:41 Magnus Haraldsen Amundsen wrote: We've got a Cocoon 2.2 webapp using the Cocoon Authentication 1.0 block to authenticate users. A short period of time after logging in we sometimes get a Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException. Just to add that this is RC2, not the latest release. :-) Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Direct: +47 6783 1136 | Mobile: +47 986 48 234 Email: [EMAIL PROTECTED] Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ajax form global validation
Hi, I have an Ajax form (ft:form-template method=POST ajax=true action=#{$cocoon/continuation/id} with following flowscript : var form = new Form(cocoon.parameters.form); form.createBinding(cocoon.parameters.binding); ... form.load(document); form.showForm(cocoon.parameters.show); cocoon.sendPage(cocoon.parameters.redirect); Ajax actions work well (adding and removing repeater rows, etc...) but global validation of the form with a fd:submit has no effect. The form seems not to go out from the continuation of form.showForm(cocoon.parameters.show) and sendPage is not executed. Would anyone have an idea ? André Davignon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException
On 22.05.2008 04:05, Magnus Haraldsen Amundsen wrote: We've got a Cocoon 2.2 webapp using the Cocoon Authentication 1.0 block to authenticate users. A short period of time after logging in we sometimes get a Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException. Can you provide a stacktrace? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
C2.2 Avalon/Spring component look up
Hi All, What I hope are some simple questions... 1. What is the correct/preferred way to look up Avalon components from within a Spring bean? 2. How best to obtain the WebApplicationContext from within a java class? Pointers to classes in the Cocoon source that do this are welcome! Thanks, Robin smime.p7s Description: S/MIME cryptographic signature
Re: C2.2 Avalon/Spring component look up
Robin Wyles pisze: Hi All, Hi Robin! What I hope are some simple questions... 1. What is the correct/preferred way to look up Avalon components from within a Spring bean? Use dependency injection as they components were plain Spring beans. This will work fine. You may wonder what's bean id in such case. There is some generic template for Avalon-based components ids but I guess it will be simpler if you tell me what components you are interested in. 2. How best to obtain the WebApplicationContext from within a java class? Is this class a Spring bean itself? -- Grzegorz Kossakowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2.2 Avalon/Spring component look up
Hi Grzegrorz! On 22 May 2008, at 13:07, Grzegorz Kossakowski wrote: Robin Wyles pisze: Hi All, Hi Robin! What I hope are some simple questions... 1. What is the correct/preferred way to look up Avalon components from within a Spring bean? Use dependency injection as they components were plain Spring beans. This will work fine. You may wonder what's bean id in such case. There is some generic template for Avalon-based components ids but I guess it will be simpler if you tell me what components you are interested in. In this particular case it's an extension of the JackrabbitRepository from the JCR block. I have it defined like so in my xconf: components include src=resource://org/apache/cocoon/jcr/jcr.roles/ jcr-repository class=com.jac.james.library.JamesRepository credentials login=guest password=guest/ home src=file://users/robinwyles/work/james-data/james- library/repos/ configuration src=resource://META-INF/cocoon/jackrabbit/ repository.xml/ workspace name=james-library/ nodetypes src=resource://META-INF/cocoon/jackrabbit/ nodetypes.cnd/ /jcr-repository /components .. The included jcr.roles looks like this... role-list role name=javax.jcr.Repository shorthand=jcr-repository/ /role-list 2. How best to obtain the WebApplicationContext from within a java class? Is this class a Spring bean itself? It might be, or it might not be :) This was a more general question really... Most likely I guess it will be a Spring bean. Thanks as always! Robin -- Grzegorz Kossakowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
RE: Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException
I'll make sure I copy the whole stacktrace the next time it happends and continue this thread then. - Magnus -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: 22. mai 2008 13:37 To: users@cocoon.apache.org Subject: Re: Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException On 22.05.2008 04:05, Magnus Haraldsen Amundsen wrote: We've got a Cocoon 2.2 webapp using the Cocoon Authentication 1.0 block to authenticate users. A short period of time after logging in we sometimes get a Exception in thread Store cocoon-ehcache Spool Thread java.lang.NullPointerException. Can you provide a stacktrace? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE: This message may contain confidential information. If you have received this e-mail in error, do not use, copy or distribute it. Do not open any attachments. Delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2.2 Avalon/Spring component look up
Robin Wyles pisze: In this particular case it's an extension of the JackrabbitRepository from the JCR block. I have it defined like so in my xconf: components include src=resource://org/apache/cocoon/jcr/jcr.roles/ jcr-repository class=com.jac.james.library.JamesRepository credentials login=guest password=guest/ home src=file://users/robinwyles/work/james-data/james-library/repos/ configuration src=resource://META-INF/cocoon/jackrabbit/repository.xml/ workspace name=james-library/ nodetypes src=resource://META-INF/cocoon/jackrabbit/nodetypes.cnd/ /jcr-repository /components .. The included jcr.roles looks like this... role-list role name=javax.jcr.Repository shorthand=jcr-repository/ /role-list Hmmm, not entirely sure in this case but have you tried: javax.jcr.Repository/com.jac.james.library.JamesRepository I believe it should work. Is this class a Spring bean itself? It might be, or it might not be :) This was a more general question really... Most likely I guess it will be a Spring bean. You should implement BeanFactoryAware interface, see: http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-method-injection -- Grzegorz Kossakowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[2.2] Configuring LocaleAction
Hi there! I need to get to the user's language, partly based on a request parameter, partly the Accept-Languages HTTP header. LocaleAction is not documented in 2.2, but looking into the code, it seems like it can do this. Correct? Now, I want to stuff this into a parameter interface-language that I have allready coded in many places. I have e.g. this: map:match pattern=search-result map:call function=com.computas.sublima.app.controller.SearchController map:parameter name=mode value=search-result/ map:parameter name=interface-language value=no/ /map:call /map:match But since all pages are localised, this parameter should be sent to everything in the sitemap. Is there an easy way to do this, so that I can set it in just one place? if not, do I need to put map:act type=locale map:parameter name=interface-language value={language}/ /map:act into every map:match I have? If so, would I need to code the above example like this: map:match pattern=search-result map:act type=locale map:call function=com.computas.sublima.app.controller.SearchController map:parameter name=mode value=search-result/ map:parameter name=interface-language value={language}/ /map:call /map:act map:call function=com.computas.sublima.app.controller.SearchController map:parameter name=mode value=search-result/ map:parameter name=interface-language value=no/ /map:call /map:match ? BTW, there are lots of XML errors in the 2.1 docs for this. Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Direct: +47 6783 1136 | Mobile: +47 986 48 234 Email: [EMAIL PROTECTED] Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2.2 Avalon/Spring component look up
Grzegorz, On 22 May 2008, at 13:31, Grzegorz Kossakowski wrote: Robin Wyles pisze: In this particular case it's an extension of the JackrabbitRepository from the JCR block. I have it defined like so in my xconf: components include src=resource://org/apache/cocoon/jcr/jcr.roles/ jcr-repository class=com.jac.james.library.JamesRepository credentials login=guest password=guest/ home src=file://users/robinwyles/work/james-data/james- library/repos/ configuration src=resource://META-INF/cocoon/jackrabbit/ repository.xml/ workspace name=james-library/ nodetypes src=resource://META-INF/cocoon/jackrabbit/ nodetypes.cnd/ /jcr-repository /components .. The included jcr.roles looks like this... role-list role name=javax.jcr.Repository shorthand=jcr-repository/ /role-list Hmmm, not entirely sure in this case but have you tried: javax.jcr.Repository/com.jac.james.library.JamesRepository That did not work, but using simply javax.jcr.Repository as the bean ID did. I believe it should work. Is this class a Spring bean itself? It might be, or it might not be :) This was a more general question really... Most likely I guess it will be a Spring bean. You should implement BeanFactoryAware interface, see: http://static.springframework.org/spring/docs/2.5.x/reference/ beans.html#beans-factory-method-injection Great! Many thanks... Robin smime.p7s Description: S/MIME cryptographic signature
Re: Ajax form global validation
The form seems not to go out from the continuation of form.showForm(cocoon.parameters.show) and sendPage is not executed. To be more precise, the form validation does post data, the POST is matched by a pipeline but i get this error : The requested resource /cocoon2.1.10notix/Test/%5Bobject%20HTMLInputElement%5D could not be found i can't understand where this %5Bobject%20HTMLInputElement%5D comes from. Help appreciated. André Davignon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ajax form global validation
Hi, I don't completely understand the details but from what I've read here this type of form validation is not possible with ajax enabled. http://markmail.org/message/2loa7qecgc6d33yd gary -Original Message- From: DAVIGNON Andre - CETE NP/DIODé/PANDOC [mailto:[EMAIL PROTECTED] Sent: Thursday, May 22, 2008 10:39 AM To: users@cocoon.apache.org Subject: Re: Ajax form global validation The form seems not to go out from the continuation of form.showForm(cocoon.parameters.show) and sendPage is not executed. To be more precise, the form validation does post data, the POST is matched by a pipeline but i get this error : The requested resource /cocoon2.1.10notix/Test/%5Bobject%20HTMLInputElement%5D could not be found i can't understand where this %5Bobject%20HTMLInputElement%5D comes from. Help appreciated. André Davignon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML binding in the default namespace
Robin, Sorry not noticing this earlier. You can use default namespaces in the document, but not in the binding. The JXPathContext reqires a prefix. Regards, Suzan. Robin Wyles wrote: Hi All, I'm having trouble binding to a XML document with a declared default namespace on C2.2. I've read back over the many posts on the subject on this list, and have enabled NSPrefixes for the SAXParser as suggested, but am still having problems. Here is the document to which I am binding: entry xmlns=http://www.w3.org/2005/Atom; titletest/title /entry ... and the binding file: fb:context xmlns:fb=http://apache.org/cocoon/forms/1.0#binding; xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns=http://www.w3.org/2005/Atom; path=/ fb:value id=title path=title/ /fb:context This doesn't seem to work, no value is loaded for the title/ element. I've also tried the following binding file, which still doesn't work: fb:context xmlns:fb=http://apache.org/cocoon/forms/1.0#binding; xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:atom=http://www.w3.org/2005/Atom; path=/ fb:value id=title path=atom:title/ /fb:context I can get it to work using the following document and binding file: atom:entry xmlns:atom=http://www.w3.org/2005/Atom; atom:titletest/atom:title /atom:entry fb:context xmlns:fb=http://apache.org/cocoon/forms/1.0#binding; xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; path=/ fb:value id=title path=atom:title/ /fb:context However, I am not really able to declare the namespace prefixes in the source document like that - they really need to be specified in the defined default namespace. Am I missing something here, or are there really still issues with this? If anyone could help I'd really appreciate it! Thanks, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Job Opportunity for Technical Consultants, E-Commerce at Fredhopper (Amsterdam)
TOP SEARCH MERCHADISING SOFTWARE COMPANY SEEKS TALENTED TECHNICAL CONSULTANTS WITH INTERESTS IN E-COMMERCE Company: Fredhopper, Location: Amsterdam, Position: Full-time Are you a pragmatic self-starter? Do you have a talent for quickly reducing complex questions to simple solutions? Are you passionate about making great ideas reality? Do you thrive within a fast-paced, success-driven, very international environment? Fredhopper is looking to expand its product services team with e-commerce technical consultants. The product services team is responsible for the full client cycle from pre-sales workshops to software implementations, customer support and follow-up assignments. The team often works in co-operation with system integrators all across Europe. As an e-commerce technical consultant you play a crucial role in the implementation of Fredhopper software for clients. Being a team player, you will work in close co-operation with clients, Fredhopper product developers and merchandising consultants. Fredhopper is the № 1 provider of Search Merchandising solutions for online business in Europe and behind the scenes of many of the largest online businesses. Customers include many leading international companies such as Philips Electronics, Karstadt-Quelle, Otto, Conrad, Kingfisher, Littlewoods-Shopdirect, Thomas Cook, and Woolworths. Fredhopper has offices in Amsterdam, London, Sofia, Paris and Berlin. The nature of the issues we’re working on requires a product services team that yields both excellent analytical and communication skills. We prioritise talent over experience. Qualifications Strong academic background; University Master's degree in Computer Science or equivalent (last year students will also be considered) Outstanding communication skills both written and verbal Good scripting skills (under Win2K/NT, Linux); Java knowledge is a preference Hands-on, practical skills in dealing with large amounts of data (XML, CSV) and working with databases Solid skills in website technology (such as JSP, .NET, AJAX) Fluent in English; Mastering two other languages is a preference Self starter with strong drive who mobilises people and gets things done Affinity with e-commerce, experience in creating e-commerce sites is a preference Applications Interested? Then send your CV to [EMAIL PROTECTED], or contact Vasil Kokareshkov at +31 20 5300 100. www.fredhopper.com We are looking to fill positions immediately, therefore apply today! -- View this message in context: http://www.nabble.com/Job-Opportunity-for-Technical-Consultants%2C-E-Commerce-at-Fredhopper-%28Amsterdam%29-tp17408108p17408108.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Job Opportunity for Technical Consultants, E-Commerce at Fredhopper (Amsterdam)
No Amsterdam please. I am a Sr. Java/J2EE Developer / Web Architect, more front end web GUI apps. I am looking for Java+Flex [maybe Struts or Spring MVC or Groovy/Grails], prefer contract in NJ wihin 30 miles from Princeton [maybe northern Philly or midtown NYC]. Thank you, Oleg. - Original Message From: Vasil Kokareshkov [EMAIL PROTECTED] To: users@cocoon.apache.org Sent: Thursday, May 22, 2008 12:27:35 PM Subject: Job Opportunity for Technical Consultants, E-Commerce at Fredhopper (Amsterdam) TOP SEARCH MERCHADISING SOFTWARE COMPANY SEEKS TALENTED TECHNICAL CONSULTANTS WITH INTERESTS IN E-COMMERCE Company: Fredhopper, Location: Amsterdam, Position: Full-time Are you a pragmatic self-starter? Do you have a talent for quickly reducing complex questions to simple solutions? Are you passionate about making great ideas reality? Do you thrive within a fast-paced, success-driven, very international environment? Fredhopper is looking to expand its product services team with e-commerce technical consultants. The product services team is responsible for the full client cycle from pre-sales workshops to software implementations, customer support and follow-up assignments. The team often works in co-operation with system integrators all across Europe. As an e-commerce technical consultant you play a crucial role in the implementation of Fredhopper software for clients. Being a team player, you will work in close co-operation with clients, Fredhopper product developers and merchandising consultants. Fredhopper is the № 1 provider of Search Merchandising solutions for online business in Europe and behind the scenes of many of the largest online businesses. Customers include many leading international companies such as Philips Electronics, Karstadt-Quelle, Otto, Conrad, Kingfisher, Littlewoods-Shopdirect, Thomas Cook, and Woolworths. Fredhopper has offices in Amsterdam, London, Sofia, Paris and Berlin. The nature of the issues we’re working on requires a product services team that yields both excellent analytical and communication skills. We prioritise talent over experience. Qualifications Strong academic background; University Master's degree in Computer Science or equivalent (last year students will also be considered) Outstanding communication skills both written and verbal Good scripting skills (under Win2K/NT, Linux); Java knowledge is a preference Hands-on, practical skills in dealing with large amounts of data (XML, CSV) and working with databases Solid skills in website technology (such as JSP, .NET, AJAX) Fluent in English; Mastering two other languages is a preference Self starter with strong drive who mobilises people and gets things done Affinity with e-commerce, experience in creating e-commerce sites is a preference Applications Interested? Then send your CV to [EMAIL PROTECTED], or contact Vasil Kokareshkov at +31 20 5300 100. www.fredhopper.com We are looking to fill positions immediately, therefore apply today! -- View this message in context: http://www.nabble.com/Job-Opportunity-for-Technical-Consultants%2C-E-Commerce-at-Fredhopper-%28Amsterdam%29-tp17408108p17408108.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]