Paul Joseph | 30 Jan 17:31
Picon
Gravatar

not sure how to handle this error

Hi there

My cocoon app has a form where one can upload files.  Should they choose an incorrect file type, they get a small button with two tiny dots in it.

When they click that, it throws the following error:

An Error Occurred

org.apache.cocoon.ProcessingException: Sitemap: <map:call continuation> did not send a response at <map:call> - file:///C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/array/webtask/login/sitemap.xmap:226:33


My question is how do I configure my sitemap to handle this error...presently I have the following, but that does not catch this error...

<map:handle-errors>
      <map:select type="exception">
        <map:when test="invalid-continuation">
      <map:generate type="jx" src="context://webtask/invalid_continuation.xml"/>
      <map:transform src="context://resources/resources/forms-page-styling.xsl"/>
      <map:serialize/>
        </map:when>
      </map:select>
 </map:handle-errors>

Paul
Paul Joseph | 30 Jan 16:09
Picon
Gravatar

how to make sitemap entries case insensitive

Hi there,

The cocoon site map is case sensitive (
http://cocoon.apache.org/2.1/userdocs/parameter-selector.html).

I have the need to upload various images...I have a sitemap (parts shown 
below).

<map:match pattern="*.bmp">
<map:read mime-type="image/bmp"
  src="context://webtask/taskfiles/{0}"/>
</map:match>

However the customer tried to upload a file whose extension was in CAPS. 
as in myimage.BMP

Any way to "compactly" address this instead of duplicating all the 
entries with their cap eqivalents?

Paul
Marco Westermann | 25 Jan 14:22
Picon
Picon

react on changing xml-file

Hi,

most of my cocoon-templates uses a xml-file as input to dynamically generate some sites (formular
generated from xml-structure) which works fine. Now I have a little problem with the translations. Every
time the input xml-file changes I have to recreate the language catalogues. Is this possible somehow? so
lets say: if the user uploads a new input-xml file via ftp cocoon should recreate the language catalogues
(xslt). I'm using cocoon 2.1.

regards,
Marco
--

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
Paul Joseph | 13 Jan 19:39
Picon
Gravatar

connection reset?

Hi there,

On one (and seemingly only one) of my Cocoon application pages...if the 
user leaves it untouched for some number of minutes that is LESS than 
the session time out, when they come back and click to go to some other 
page, they find it has errored out.

The cocoon.log is below....my questions are: why would it say 
"connection reset by peer"?  Is that why the subsequent message says 
that the continuation is invalid?

thx.
Paul
==============

WARN  (2012-01-13) 12:45.48:359 [access] 
(/array/webtask/login/images/bsolution_o.gif) 
"http-bio-9090"-exec-3/CocoonServlet: ClientAbortException:  
java.net.SocketException: Connection reset by peer: socket write error
WARN  (2012-01-13) 12:46.19:890 [access] 
(/array/webtask/login/images/btimelog_o.gif) 
"http-bio-9090"-exec-3/CocoonServlet: ClientAbortException:  
java.net.SocketException: Connection reset by peer: socket write error
ERROR (2012-01-13) 13:26.05:265 [sitemap.handled-errors] 
(/array/webtask/login/36251b2a35661f7a5c841889202f4a02531d1931.continue) 
"http-bio-9090"-exec-4/ErrorHandlerHelper: The continuation ID 
36251b2a35661f7a5c841889202f4a02531d1931 is invalid.
     at <map:call> - 
file:///C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/array/webtask/login/sitemap.xmap:212:33
     at <map:mount> - 
file:///C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/array/webtask/sitemap.xmap:74:62
org.apache.cocoon.components.flow.InvalidContinuationException: The 
continuation ID 36251b2a35661f7a5c841889202f4a02531d1931 is invalid.
     at <map:call> - 
file:///C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/array/webtask/login/sitemap.xmap:212:33
     at <map:mount> - 
file:///C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/array/webtask/sitemap.xmap:74:62
     at 
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:792)
     at 
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:124)
     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
.....
Picon
Favicon

FWD: Found interesting opportunity!!

Hi Friend.
debt collectors are so annoying there is nothing else like this out there I was almost ready to call it quits!
http://ajiacogrill.com/web/profile/67GrahamStewart/ a weight is lifted off my shoulders
you can pull this off too...
ttyl...

Blanco, Jose | 6 Jan 21:04
Picon
Favicon

RE: servlet not repsonding

You mean in the end of the list?  I have tried this the following without any change

  <servlet-mapping>
    <servlet-name>webiso-login</servlet-name>
    <url-pattern>/webiso-login</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
        <servlet-name>Cocoon</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

-----Original Message-----
From: "Ehms, Jürgen" [mailto:jge <at> msc-ge.com] 
Sent: Friday, January 06, 2012 5:14 AM
To: users <at> cocoon.apache.org
Subject: AW: revelet not repsonding

With the first mapping /* all is going to Cocoon.
Put it in last place.

Jürgen

-----Ursprüngliche Nachricht-----
Von: Blanco, Jose [mailto:blancoj <at> umich.edu] 
Gesendet: Freitag, 6. Januar 2012 00:17
An: users <at> cocoon.apache.org
Betreff: revelet not repsonding

I am using cocoon and have the following servlet mappings:

    <servlet-mapping>
        <servlet-name>Cocoon</servlet-name>
        <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>Cocoon</servlet-name>
        <url-pattern>*.html</url-pattern>
    </servlet-mapping>

I have a filter that traps for /webiso-login and the filter seems to be getting activated just fine, but when
it is done I'm expecting it to go the servlet file, but it's not getting there.  Does my setup make sense?

Thank you!
Jose

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
For additional commands, e-mail: users-help <at> cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe <at> cocoon.apache.org
For additional commands, e-mail: users-help <at> cocoon.apache.org
Simone Tripodi | 6 Jan 11:07
Picon
Favicon

Re: classnotfound

Hi Jos!

please check the reply I provided in the dev ML that maybe will help!

All the best, have a nice day!
-Simo

http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/

On Fri, Jan 6, 2012 at 7:59 AM, Jos Snellings
<jos.snellings <at> upperware.biz> wrote:
> Dear cocooners,
>
> When trying to load cocoon-optional, spring complains loudly about not being
> able to find class:
>
> org/apache/cocoon/components/serializers/util/XMLSerializer
>
> In effect, this class is not within the cocoon distribution.
> To my best knowledge, there is no sub project
> cocoon-components
>
> The problematic declaration is:
> public class EncodingXMLSerializer extends
> org.apache.cocoon.components.serializers.util.XMLSerializer implements
> SAXPipelineComponent, Finisher, SAXConsumer, CachingPipelineComponent {
>
> Can anybody shed some light upon this one?
>
>
> Thank you !
> Jos
>
Jos Snellings | 6 Jan 07:59

classnotfound

Dear cocooners,

When trying to load cocoon-optional, spring complains loudly about not being able to find class:

org/apache/cocoon/components/serializers/util/XMLSerializer

In effect, this class is not within the cocoon distribution.
To my best knowledge, there is no sub project
cocoon-components

The problematic declaration is:
public class EncodingXMLSerializer extends org.apache.cocoon.components.serializers.util.XMLSerializer implements
SAXPipelineComponent, Finisher, SAXConsumer, CachingPipelineComponent {

Can anybody shed some light upon this one?


Thank you !
Jos

Blanco, Jose | 6 Jan 00:17
Picon
Favicon

revelet not repsonding

I am using cocoon and have the following servlet mappings:

  <servlet-mapping>
        <servlet-name>Cocoon</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

  <servlet-mapping>
    <servlet-name>webiso-login</servlet-name>
    <url-pattern>/webiso-login</url-pattern>
  </servlet-mapping>

    <servlet-mapping>
        <servlet-name>Cocoon</servlet-name>
        <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>Cocoon</servlet-name>
        <url-pattern>*.html</url-pattern>
    </servlet-mapping>

I have a filter that traps for /webiso-login and the filter seems to be getting activated just fine, but when
it is done I'm expecting it to go the servlet file, but it's not getting there.  Does my setup make sense?

Thank you!
Jose
Paul Joseph | 3 Jan 15:19
Picon
Gravatar

how do I specify function parameters in the URL

Hi there,

I know that I can call a function with parameters using the sitemap as 
for ex.:

         <map:flow language="javascript">
            <map:script src="myApplication.js"/>
         </map:flow>
         <map:pipelines>
            <map:pipeline>
               <map:match pattern="index.html">
                  <map:call function="showIndexPage">
                    <map:parameter name="paramName" value="Value"/>
                  </map:call>
               </map:match>
            </map:pipeline>
         </map:pipelines>

and:

Then in myApplication.js you would define a JavaScript function called 
showIndexPage() such as:

function showIndexPage() { var param = cocoon.parameters.paramName; 
sendPage("private/index.html", {param: param}); }

But how would I use this to call a function whose arguments are in the 
calling URL.

Ex. say I wanted to login any user where the user's name is specified in 
the URLhow could I do this?  For example if I wanted to call a function 
using the user's login name that I specify in the URL (say the user is 
jsmith), and I used a URL as below, how would I pass on jsmith on to the 
flowscript?:

Ex.: http://myserver:8080/myApp/login/jsmith

thx.
Paul
Paul Joseph | 28 Dec 19:08
Picon
Gravatar

how to move selected items to the right side of a double-listbox using JavaScript

Hi there,

I have a Form, with a listbox styled as a double-listbox.

I have the left side populated with a list of items, and am able to 
programmatically select a few of these items using JavaScript.

So far so good.

But how do I move these selected items to the Right box using JavaScript?

Thx.
Paul

Gmane