我正在运行一个BedSheet应用程序,但是当我向特定路由发出HTTP请求时,我在浏览器中得到了这个错误
500 - Internal Server Error
afBeanUtils::TypeNotFoundErr
- Could not find match for Type mypod::MyClass.
Available Values
afBedSheet::FileAsset
afBedSheet::HttpStatus
afBedSheet::MethodCall
afBedSheet::Redirect
afBedSheet::Text
sys::File
sys::InStream
afBeanUtils::TypeNotFoundErr : Could not find match for Type mypod::MyClass.
afBeanUtils::TypeLookup.check (TypeLookup.fan:157)
afBeanUtils::TypeLookup.doFindParent (TypeLookup.fan:140)但是,MyClass在那里,它正在被其他类实例化。为什么找不到?
发布于 2014-08-12 11:26:39
这个错误信息可以提供更多信息..。
听起来您的请求处理程序正在返回mypod::MyClass的一个实例,而BedSheet则抱怨它不知道该如何处理它。
您可能希望返回afBedSheet::Text的一个实例,如下所示:
Obj indexPage() {
return Text.fromHtml("<html>Hello!</html>")
}如果上面的内容听起来不正确,那么我需要看到一些代码来提供进一步的帮助。
https://stackoverflow.com/questions/25262348
复制相似问题