You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Ross Gardler (JIRA)" <ji...@apache.org> on 2005/09/13 01:03:30 UTC

[jira] Created: (FOR-672) Class Cast Exceptionin Views processing

Class Cast Exceptionin Views processing
---------------------------------------

         Key: FOR-672
         URL: http://issues.apache.org/jira/browse/FOR-672
     Project: Forrest
        Type: Bug
  Components: Views  
    Reporter: Ross Gardler
    Priority: Blocker
     Fix For: 0.8-dev


I've seen this before with views, but the problem "just disappeared" whilst I was exploring it. I have no idea why.

Here's what I did:

1) Modified voice plugin to work with views (committed to svn now).
2) did forrest run - page rendered but content was missing (mini toc and title were present though)
3) svn up
4) build clean
5) build
6) deployed views plugins with views.sh
7) forrest run

Browser reports:

Internal Server Error

Message: null

Description: No details available.

Sender: org.apache.cocoon.servlet.CocoonServlet

error.log shows:

ERROR   (2005-09-12) 23:55.34:415   [access] (/index.html) PoolThread-4/CocoonServlet: Internal Cocoon Problem
org.apache.cocoon.ProcessingException: Failed to process pipeline
	at [cause location] - cocoon://prepare.include.xhtml.index:209:77
	at <map:serialize type="xml"> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.internal.view/internal.xmap:220:34
	at <map:serialize type="xhtml"> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:255:36
	at <map:transform> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:254:72
	at <map:transform> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:251:61
....
Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException
	at org.apache.cocoon.transformation.TraxTransformer.endDocument(Unknown Source)
	at org.apache.cocoon.environment.internal.EnvironmentChanger.endDocument(Unknown Source)
	at org.apache.cocoon.sitemap.DefaultContentAggregator.generate(Unknown Source)
	... 56 more
Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException
	at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:293)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)
	at org.apache.xalan.transformer.TransformerImpl.transformToString(TransformerImpl.java:2019)
	at org.apache.xalan.templates.ElemAttribute.constructNode(ElemAttribute.java:196)
...
Caused by: java.lang.ClassCastException
	at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(FilterExprIteratorSimple.java:120)
	at org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:129)
	at org.apache.xpath.axes.WalkingIterator.setRoot(WalkingIterator.java:154)


I've not got time to do further investigation just now, can anyone reproduce this (perhaps using the voice plugin)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (FOR-672) Class Cast Exceptionin Views processing

Posted by "Ross Gardler (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FOR-672?page=all ]
     
Ross Gardler closed FOR-672:
----------------------------

    Resolution: Won't Fix

Views have moved on a long way since this issue was created and so this issue is no longer relevant.

> Class Cast Exceptionin Views processing
> ---------------------------------------
>
>          Key: FOR-672
>          URL: http://issues.apache.org/jira/browse/FOR-672
>      Project: Forrest
>         Type: Bug
>   Components: Dispatcher (aka views)
>     Reporter: Ross Gardler
>     Priority: Trivial
>      Fix For: 0.8-dev

>
> I've seen this before with views, but the problem "just disappeared" whilst I was exploring it. I have no idea why.
> Here's what I did:
> 1) Modified voice plugin to work with views (committed to svn now).
> 2) did forrest run - page rendered but content was missing (mini toc and title were present though)
> 3) svn up
> 4) build clean
> 5) build
> 6) deployed views plugins with views.sh
> 7) forrest run
> Browser reports:
> Internal Server Error
> Message: null
> Description: No details available.
> Sender: org.apache.cocoon.servlet.CocoonServlet
> error.log shows:
> ERROR   (2005-09-12) 23:55.34:415   [access] (/index.html) PoolThread-4/CocoonServlet: Internal Cocoon Problem
> org.apache.cocoon.ProcessingException: Failed to process pipeline
> 	at [cause location] - cocoon://prepare.include.xhtml.index:209:77
> 	at <map:serialize type="xml"> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.internal.view/internal.xmap:220:34
> 	at <map:serialize type="xhtml"> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:255:36
> 	at <map:transform> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:254:72
> 	at <map:transform> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:251:61
> ....
> Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException
> 	at org.apache.cocoon.transformation.TraxTransformer.endDocument(Unknown Source)
> 	at org.apache.cocoon.environment.internal.EnvironmentChanger.endDocument(Unknown Source)
> 	at org.apache.cocoon.sitemap.DefaultContentAggregator.generate(Unknown Source)
> 	... 56 more
> Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException
> 	at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:293)
> 	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)
> 	at org.apache.xalan.transformer.TransformerImpl.transformToString(TransformerImpl.java:2019)
> 	at org.apache.xalan.templates.ElemAttribute.constructNode(ElemAttribute.java:196)
> ...
> Caused by: java.lang.ClassCastException
> 	at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(FilterExprIteratorSimple.java:120)
> 	at org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:129)
> 	at org.apache.xpath.axes.WalkingIterator.setRoot(WalkingIterator.java:154)
> I've not got time to do further investigation just now, can anyone reproduce this (perhaps using the voice plugin)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (FOR-672) Class Cast Exceptionin Views processing

Posted by "Ross Gardler (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FOR-672?page=all ]

Ross Gardler updated FOR-672:
-----------------------------

    Priority: Trivial  (was: Blocker)

The specific problem in the voice plugin has been resolved (thanks Thorsten) however, the underlying issue still remains. I'm reducing the priority to trivial, but leaving it open as this is a very confusin error message and having this in here may help others coming across the problem.

Sooner or later the problem will be removed as views mature and become independant of the old skinning system.

> Class Cast Exceptionin Views processing
> ---------------------------------------
>
>          Key: FOR-672
>          URL: http://issues.apache.org/jira/browse/FOR-672
>      Project: Forrest
>         Type: Bug
>   Components: Views
>     Reporter: Ross Gardler
>     Priority: Trivial
>      Fix For: 0.8-dev

>
> I've seen this before with views, but the problem "just disappeared" whilst I was exploring it. I have no idea why.
> Here's what I did:
> 1) Modified voice plugin to work with views (committed to svn now).
> 2) did forrest run - page rendered but content was missing (mini toc and title were present though)
> 3) svn up
> 4) build clean
> 5) build
> 6) deployed views plugins with views.sh
> 7) forrest run
> Browser reports:
> Internal Server Error
> Message: null
> Description: No details available.
> Sender: org.apache.cocoon.servlet.CocoonServlet
> error.log shows:
> ERROR   (2005-09-12) 23:55.34:415   [access] (/index.html) PoolThread-4/CocoonServlet: Internal Cocoon Problem
> org.apache.cocoon.ProcessingException: Failed to process pipeline
> 	at [cause location] - cocoon://prepare.include.xhtml.index:209:77
> 	at <map:serialize type="xml"> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.internal.view/internal.xmap:220:34
> 	at <map:serialize type="xhtml"> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:255:36
> 	at <map:transform> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:254:72
> 	at <map:transform> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:251:61
> ....
> Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException
> 	at org.apache.cocoon.transformation.TraxTransformer.endDocument(Unknown Source)
> 	at org.apache.cocoon.environment.internal.EnvironmentChanger.endDocument(Unknown Source)
> 	at org.apache.cocoon.sitemap.DefaultContentAggregator.generate(Unknown Source)
> 	... 56 more
> Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException
> 	at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:293)
> 	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)
> 	at org.apache.xalan.transformer.TransformerImpl.transformToString(TransformerImpl.java:2019)
> 	at org.apache.xalan.templates.ElemAttribute.constructNode(ElemAttribute.java:196)
> ...
> Caused by: java.lang.ClassCastException
> 	at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(FilterExprIteratorSimple.java:120)
> 	at org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:129)
> 	at org.apache.xpath.axes.WalkingIterator.setRoot(WalkingIterator.java:154)
> I've not got time to do further investigation just now, can anyone reproduce this (perhaps using the voice plugin)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (FOR-672) Class Cast Exceptionin Views processing

Posted by Thorsten Scherler <th...@apache.org>.
On Tue, 2005-09-13 at 12:01 +0100, Ross Gardler wrote:
> Thorsten Scherler wrote:
> > On Tue, 2005-09-13 at 09:46 +0200, Thorsten Scherler (JIRA) wrote:
> > 
> >>    [ http://issues.apache.org/jira/browse/FOR-672?page=comments#action_12324425 ] 
> >>
> >>Thorsten Scherler commented on FOR-672:
> >>---------------------------------------
> 
> Thanks Thorsten...
> 
> >>First problem is that the leather-dev skin is not declares in the forrest.properties
> 
> Ah, that is confusing. SO if I am using the pelt theme, I must still use 
> the leather-dev skin (I recall you explaining this to someone else now).

I am working on a version that comes with leather included, but I need
to solve the jx problem first to be able to commit.

> >>Second problem that the voice.fv are not using the contracts correctly e.g.
> >><forrest:contract name="siteinfo-meta"/> does not provide suffient parameter.
> 
> I copied the default.fv from the views plugins, does this mean they are 
> incorect there as well (I've not looked at the contract).

http://svn.apache.org/viewcvs.cgi/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.view/resources/views/default.fv?rev=280280&r1=232890&r2=280280&diff_format=h
¿?

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: [jira] Commented: (FOR-672) Class Cast Exceptionin Views processing

Posted by Ross Gardler <rg...@apache.org>.
Thorsten Scherler wrote:
> On Tue, 2005-09-13 at 09:46 +0200, Thorsten Scherler (JIRA) wrote:
> 
>>    [ http://issues.apache.org/jira/browse/FOR-672?page=comments#action_12324425 ] 
>>
>>Thorsten Scherler commented on FOR-672:
>>---------------------------------------

Thanks Thorsten...

>>First problem is that the leather-dev skin is not declares in the forrest.properties

Ah, that is confusing. SO if I am using the pelt theme, I must still use 
the leather-dev skin (I recall you explaining this to someone else now).

>>Second problem that the voice.fv are not using the contracts correctly e.g.
>><forrest:contract name="siteinfo-meta"/> does not provide suffient parameter.

I copied the default.fv from the views plugins, does this mean they are 
incorect there as well (I've not looked at the contract).

>>I fixed that I further commented the nav-main contract, but that is because I locally modified that contract.

OK

>>Can you test and if it is working close this issue.

It works for me now, thanks again.

Ross

Re: [jira] Commented: (FOR-672) Class Cast Exceptionin Views processing

Posted by Thorsten Scherler <th...@apache.org>.
On Tue, 2005-09-13 at 09:46 +0200, Thorsten Scherler (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/FOR-672?page=comments#action_12324425 ] 
> 
> Thorsten Scherler commented on FOR-672:
> ---------------------------------------
> 
> First problem is that the leather-dev skin is not declares in the forrest.properties.
> Second problem that the voice.fv are not using the contracts correctly e.g.
> <forrest:contract name="siteinfo-meta"/> does not provide suffient parameter.
> 
> I fixed that I further commented the nav-main contract, but that is because I locally modified that contract.
> 
> Can you test and if it is working close this issue.
> 

Better leave it open, only change to resolve. ;-)

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


[jira] Commented: (FOR-672) Class Cast Exceptionin Views processing

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/FOR-672?page=comments#action_12324425 ] 

Thorsten Scherler commented on FOR-672:
---------------------------------------

First problem is that the leather-dev skin is not declares in the forrest.properties.
Second problem that the voice.fv are not using the contracts correctly e.g.
<forrest:contract name="siteinfo-meta"/> does not provide suffient parameter.

I fixed that I further commented the nav-main contract, but that is because I locally modified that contract.

Can you test and if it is working close this issue.

> Class Cast Exceptionin Views processing
> ---------------------------------------
>
>          Key: FOR-672
>          URL: http://issues.apache.org/jira/browse/FOR-672
>      Project: Forrest
>         Type: Bug
>   Components: Views
>     Reporter: Ross Gardler
>     Priority: Blocker
>      Fix For: 0.8-dev

>
> I've seen this before with views, but the problem "just disappeared" whilst I was exploring it. I have no idea why.
> Here's what I did:
> 1) Modified voice plugin to work with views (committed to svn now).
> 2) did forrest run - page rendered but content was missing (mini toc and title were present though)
> 3) svn up
> 4) build clean
> 5) build
> 6) deployed views plugins with views.sh
> 7) forrest run
> Browser reports:
> Internal Server Error
> Message: null
> Description: No details available.
> Sender: org.apache.cocoon.servlet.CocoonServlet
> error.log shows:
> ERROR   (2005-09-12) 23:55.34:415   [access] (/index.html) PoolThread-4/CocoonServlet: Internal Cocoon Problem
> org.apache.cocoon.ProcessingException: Failed to process pipeline
> 	at [cause location] - cocoon://prepare.include.xhtml.index:209:77
> 	at <map:serialize type="xml"> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.internal.view/internal.xmap:220:34
> 	at <map:serialize type="xhtml"> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:255:36
> 	at <map:transform> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:254:72
> 	at <map:transform> - file:/D:/openSource/forrest/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:251:61
> ....
> Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException
> 	at org.apache.cocoon.transformation.TraxTransformer.endDocument(Unknown Source)
> 	at org.apache.cocoon.environment.internal.EnvironmentChanger.endDocument(Unknown Source)
> 	at org.apache.cocoon.sitemap.DefaultContentAggregator.generate(Unknown Source)
> 	... 56 more
> Caused by: javax.xml.transform.TransformerException: java.lang.ClassCastException
> 	at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:293)
> 	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2336)
> 	at org.apache.xalan.transformer.TransformerImpl.transformToString(TransformerImpl.java:2019)
> 	at org.apache.xalan.templates.ElemAttribute.constructNode(ElemAttribute.java:196)
> ...
> Caused by: java.lang.ClassCastException
> 	at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(FilterExprIteratorSimple.java:120)
> 	at org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:129)
> 	at org.apache.xpath.axes.WalkingIterator.setRoot(WalkingIterator.java:154)
> I've not got time to do further investigation just now, can anyone reproduce this (perhaps using the voice plugin)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira