Got it,

you now have to provide a customizer for every custom control you create ,
eg in the example case newmulticolumn-customizer , somewhere the code must
be appending "-customizer.vm" where it did not in b1


Mark.
----- Original Message -----
From: "Mark Dimon" <[EMAIL PROTECTED]>
To: "Jetspeed Developers List" <[EMAIL PROTECTED]>
Sent: Thursday, October 17, 2002 2:41 AM
Subject: Re: custom controllers crashing customiser (10/10 nightly) , help
need to fix this


> Hi Raphael
>
> Many Thanks for responding , I'm tearing my hear out on this one (not that
> there much left anyway  :-)
>
> Logs are not much help , but snipets are included below , essentially
> customizer-portletset-layout.vm is failing in
> the last line "$!set.Controller.getContent($data)" , I put some html just
> before and it gets to there ok. So i guess my next step is to start
tracing
> from there ..
>
> Firstly , I've now downloaded the 16/10 nightly and the same problem
aplies
> , it make no sense to me at all.
>
> I've simplified the demonstration of this problem , this *is* a Jetspeed
> problem and exists and can be reproduced in the default portal by cloning
> the OneColumn controller as follows:
>
> [1] make copy of multicolumn.vm , call it newmulticolumn.vm
>
> [2] make a copy of the OneColumn controller in controllers.xreg,  change
> it's name  to NewOneColumn , change the title and change the reference to
> the newmulticolumn.vm create above. So we have a exact clone of the one
> column controller.
>
> Now try to select NewOneColumn in the customiser and it fails , OneColumn
> works just fine !!
>
> Just for a sanity check , can anyone using the *CVS HEAD* replicate this
> problem.
>
>
> Dazed and Confused
> Mark.
>
>
>
>
> Jetspeed Log when Fail
> -------------------------------------------------
> 17 Oct 2002 01:56:57 DEBUG] - Element
> org.apache.jetspeed.om.profile.psml.PsmlEntry@843ca4
> [17 Oct 2002 01:56:57 DEBUG] - Element null
> [17 Oct 2002 01:56:57 DEBUG] - Element null
> [17 Oct 2002 01:56:57 ERROR] - Error rendering Velocity template: null:
null
> [17 Oct 2002 01:56:57 DEBUG] - template exists:
>
C:\NewsPortal\jakarta-tomcat-4.1.12\..\jakarta-tomcat-4.1.12\webapps\jetspee
> d\WEB-INF\templates\vm\navigations\html\bottom.vm returning
/html/bottom.vm
> [17 Oct 2002 01:56:58 DEBUG] - JetspeedRunDataService: releasing rundata
for
> thread: Thread[Thread-9,5,main]
>
> Jetspeed Log when OK
> -------------------------------------------------
> 17 Oct 2002 02:03:55 DEBUG] - Element
> org.apache.jetspeed.om.profile.psml.PsmlEntry@2cd736
> [17 Oct 2002 02:03:55 DEBUG] - Element null
> [17 Oct 2002 02:03:55 DEBUG] - Element null
> [17 Oct 2002 02:03:55 DEBUG] - template exists:
>
C:\NewsPortal\jakarta-tomcat-4.1.12\..\jakarta-tomcat-4.1.12\webapps\jetspee
> d\WEB-INF\templates\vm\controllers\html\multicolumn-customize.vm returning
> /html/multicolumn-customize.vm
> [17 Oct 2002 02:03:55 DEBUG] - template exists:
>
C:\NewsPortal\jakarta-tomcat-4.1.12\..\jakarta-tomcat-4.1.12\webapps\jetspee
> d\WEB-INF\templates\vm\navigations\html\bottom.vm returning
/html/bottom.vm
> [17 Oct 2002 02:03:55 DEBUG] - JetspeedRunDataService: releasing rundata
for
> thread: Thread[Thread-9,5,main]
>
>
> Vecocity Log When Fail
> -------------------------------------------------
> 2002-10-17 01:56:57,834 - ResourceManager : found
> /portlets/html/customizer-portletset-layout.vm with loader
> org.apache.velocity.runtime.resource.loader.FileResourceLoader
> 2002-10-17 01:56:57,844 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 01:56:57,844 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 01:56:57,844 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 01:56:57,844 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 01:56:57,844 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 01:56:57,844 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 01:56:57,844 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 01:56:57,844 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 01:56:58,064 - ResourceManager : found
navigations/html/bottom.vm
> with loader org.apache.velocity.runtime.resource.loader.FileResourceLoader
>
>
> Velocity Log when OK
> -------------------------------------------------
> 2002-10-17 02:03:55,384 - ResourceManager : found
> /portlets/html/customizer-portletset-layout.vm with loader
> org.apache.velocity.runtime.resource.loader.FileResourceLoader
> 2002-10-17 02:03:55,394 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 02:03:55,404 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 02:03:55,404 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 02:03:55,404 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 02:03:55,404 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 02:03:55,404 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 02:03:55,404 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 02:03:55,404 - Right side ($!currentSkin) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /portlets/html/customizer-portletset-layout.vm [line 92, column
> 56]
> 2002-10-17 02:03:55,455 - ResourceManager : found
> /controllers/html/multicolumn-customize.vm with loader
> org.apache.velocity.runtime.resource.loader.FileResourceLoader
> 2002-10-17 02:03:55,455 - RHS of #set statement is null. Context will not
be
> modified. /controllers/html/multicolumn-customize.vm [line 16, column 1]
> 2002-10-17 02:03:55,455 - Left side ($!{col_class}) of '==' operation has
> null value. If a reference, it may not be in the context. Operation not
> possible. /controllers/html/multicolumn-customize.vm [line 19, column 88]
> 2002-10-17 02:03:55,455 -
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = /controllers/html/multicolumn-customize.vm [line 19,column 177]
:
> $col_class is not a valid reference.
> 2002-10-17 02:03:55,625 - Error in evaluation of != expression. Both
> arguments must be of the same Class. Currently left = class
> java.lang.Integer, right = class java.lang.String.
> /controllers/html/multicolumn-customize.vm [line 124, column 13]
(ASTEQNode)
> 2002-10-17 02:03:55,675 - ResourceManager : found
navigations/html/bottom.vm
> with loader org.apache.velocity.runtime.resource.loader.FileResourceLoader
>
>
>
>
>
>
> ----- Original Message -----
> From: "Luta, Raphael (VUN)" <[EMAIL PROTECTED]>
> To: "'Jetspeed Developers List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 16, 2002 4:22 PM
> Subject: RE: custom controllers crashing customiser (10/10 nightly) , help
> need to fix this
>
>
> What errors do you have in jetspeed.log and velocity.log ?
>
> > -----Message d'origine-----
> > De : Mark Dimon [mailto:mark.dimon@;btinternet.com]
> > Envoy� : mardi 15 octobre 2002 00:01
> > � : [EMAIL PROTECTED]
> > Objet : custom controllers crashing customiser (10/10 nightly) , help
> > need to fix this
> >
> >
> > Hi,
> >
> > I've just upgraded my project to the nightly 10/10 , my
> > custom row and coloumn controllers are crashing the customiser with:
> >
> > org.apache.turbine.util.TurbineException: Error rendering
> > Velocity template: null
> >
> > being displayed rather than the the editor screen (
> > customizer-portletset-layout.vm ). Note this does not happen
> > with my tab and menu controllers.
> >
> > This problem can be replicated easly.
> >
> > [1]. Create a local-managers.xreg , essentially a copy of the
> > onecolumn controller
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <registry>
> > <portlet-controller-entry name="MyOneColumn" hidden="false">
> > <meta-info>
> > <title>*MY* One Column</title>
> > </meta-info>
> > <classname>org.apache.jetspeed.portal.controllers.VelocityPort
> > letController</classname>
> > <parameter name="template" value="mymulticolumn.vm" hidden="false"/>
> > <parameter name="action"
> > value="controllers.MultiColumnControllerAction" hidden="false"/>
> > <parameter name="sizes" value="100%" hidden="false"/>
> > <parameter name="cols" value="1" hidden="false"/>
> > <media-type ref="html"/>
> > </portlet-controller-entry>
> > </registry
> >
> > [2]. Copy the multicolumn.vm controller to mymulticolumn.vm
> >
> > [3]. Fire up jetspeed and try to apply the MyOneColumn controller.
> >
> > So simply cloning a working contoller fails :(
> >
> >
> > What's changed since b1 ???  Where do I start to look for the
> > source of this problem, I need to fix this fast.
> >
> > Any Thought's , Hint's , Help ,  Musings , Greatly appreciated
> >
> >
> > Regards Mark.
> >
> >
> >
>
> --
> To unsubscribe, e-mail:
> <mailto:jetspeed-dev-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:jetspeed-dev-help@;jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<mailto:jetspeed-dev-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:jetspeed-dev-help@;jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@;jakarta.apache.org>

Reply via email to