You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Balaji Chandrasekaran <cb...@virtusa.com> on 2006/04/18 17:02:42 UTC
Velocity error
Hi,
I'm getting the following exception because of the line mentioned below
in my vm file
#set($portletName=$!jetspeed.getTitle($jetspeed.getPortletEntity($f),
$f))
Any clues ........pls reply ASAP
Invocation of method 'getPortletEntity' in class
org.apache.jetspeed.velocity.JetspeedPowerToolImpl threw exception class
java.lang.IllegalArgumentException : Cannot pass a null
PortletDefinition to a PortletEntity.
java.lang.IllegalArgumentException: Cannot pass a null PortletDefinition
to a PortletEntity.
at
org.apache.jetspeed.components.portletentity.PortletEntityImpl.setPortle
tDefinition(PortletEntityImpl.java:380)
at
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEnt
ityAccess.getPortletEntity(PersistenceBrokerPortletEntityAccess.java:238
)
at
org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEnt
ityAccess.getPortletEntityForFragment(PersistenceBrokerPortletEntityAcce
ss.java:270)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(
AopUtils.java:284)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinp
oint(ReflectiveMethodInvocation.java:155)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:122)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invok
e(TransactionInterceptor.java:56)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:144)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAo
pProxy.java:174)
Regards,
Balaji C
Re: Velocity error
Posted by Philip Mark Donaghy <ph...@gmail.com>.
On 4/18/06, Balaji Chandrasekaran <cb...@virtusa.com> wrote:
> Hi,
>
>
>
> I'm getting the following exception because of the line mentioned below
> in my vm file
>
>
>
> #set($portletName=$!jetspeed.getTitle($jetspeed.getPortletEntity($f),
> $f))
Try this one $!jetspeed.getTitle($jetspeed.getCurrentPortletEntity(), $f)
I got it from src/webapp/decorations/portlet/decorator.vm
Phil
>
>
>
>
>
> Any clues ........pls reply ASAP
>
>
>
>
>
> Invocation of method 'getPortletEntity' in class
> org.apache.jetspeed.velocity.JetspeedPowerToolImpl threw exception class
> java.lang.IllegalArgumentException : Cannot pass a null
> PortletDefinition to a PortletEntity.
>
> java.lang.IllegalArgumentException: Cannot pass a null PortletDefinition
> to a PortletEntity.
> at
> org.apache.jetspeed.components.portletentity.PortletEntityImpl.setPortle
> tDefinition(PortletEntityImpl.java:380)
> at
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEnt
> ityAccess.getPortletEntity(PersistenceBrokerPortletEntityAccess.java:238
> )
> at
> org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEnt
> ityAccess.getPortletEntityForFragment(PersistenceBrokerPortletEntityAcce
> ss.java:270)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(
> AopUtils.java:284)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinp
> oint(ReflectiveMethodInvocation.java:155)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
> lectiveMethodInvocation.java:122)
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invok
> e(TransactionInterceptor.java:56)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
> lectiveMethodInvocation.java:144)
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAo
> pProxy.java:174)
>
>
> Regards,
> Balaji C
>
>
>
>
>
--
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org