I think your method signature should be public void doAddmonitor(RunData
rundata, Portlet portlet) 

greg

-----Original Message-----
From: Henrik W. Hansen [mailto:[EMAIL PROTECTED]
Sent: jeudi 6 novembre 2003 20:55
To: [EMAIL PROTECTED]
Subject: setTemplate in VelocityPortletAction gives
InvocationTargetException


Hi all
This should be a trivial question. But i have been struggeling with it 
for a while now.

When executing the following action :
public void doAddmonitor(RunData data, Context context) {
    setTemplate(data, "webmonitor/createMonitorParam.vm");
}

I get the following excetion:

Horrible Exception: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)


I am running Jetspeed 1.4b3.
If i set the template from within i.e  "protected void 
buildNormalContext" everything works fine.
What can i be doing wrong??
/Henrik




---------------------------------------------------------------------
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]

Reply via email to