Status - Http Facility

David Leangen dleangen at canada.com
Fri Jan 14 11:38:50 EST 2005


> Ok, I looked into the Spindle thing...

I got a little farther with making this work. I'm having two problems: one
minor, one very major.

First, Spindle keeps showing an error with the web.xml file. However,
Tapestry seems to run fine from within Jetty, so I guess this can just be
ignored.

But.. I keep getting this error when I try to run it from Eclipse:

org.apache.tapestry.ApplicationRuntimeException
Unable to invoke method formSubmit on
net.dpml.http.hangman.view.Home at 1bc16f0[Home]: null

java.lang.ClassCastException
Stack Trace:

    * net.dpml.http.hangman.view.Home.formSubmit(Home.java:56)
    * sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    *
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
    *
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
    * java.lang.reflect.Method.invoke(Method.java:324)
    *
org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java
:257)
    *
org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
    *
org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMa
p.java:97)
    *
org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(L
istenerMap.java:102)
...


The line refers to this:

        Controller controller = (Controller) getGlobal();


Not sure why this would throw a ClassCastException... getGlobal() is
supposed to return an Object.

Any ideas?





More information about the dev-dpml mailing list