Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Stripes:java.lang.NoSuchMethodException:net.sourceforge.Stripes.action.Resolution<;初始化>;_Java_Stripes - Fatal编程技术网

Stripes:java.lang.NoSuchMethodException:net.sourceforge.Stripes.action.Resolution<;初始化>;

Stripes:java.lang.NoSuchMethodException:net.sourceforge.Stripes.action.Resolution<;初始化>;,java,stripes,Java,Stripes,我是stripes新手,在向Java应用程序发布帖子时,我遇到以下错误: java.lang.NoSuchMethodException: net.sourceforge.stripes.action.Resolution.<init> java.lang.NoSuchMethodException:net.sourceforge.stripes.action.Resolution。 post接收良好,并调用了相应的方法(setheaders),但无论何时post发生,它都会在日

我是stripes新手,在向Java应用程序发布帖子时,我遇到以下错误:

java.lang.NoSuchMethodException: net.sourceforge.stripes.action.Resolution.<init>
java.lang.NoSuchMethodException:net.sourceforge.stripes.action.Resolution。
post接收良好,并调用了相应的方法(setheaders),但无论何时post发生,它都会在日志和控制台中留下大堆栈转储,这显然是由于上述原因


是什么导致了这个问题?

发现我有两个名为“setheaders”的方法,还有两个名为“getheaders”的方法,它们具有不同的签名,Stripes开始混淆并调用了错误的方法

所以stripes试图为属性调用我的“GetHeaders”,当它想要一个“GetHeaders”作为解析时,它可以返回一个响应

解决方案是简单地将我的post方法名称更改为“saveheaders”,而不是“setheaders”,以避免冲突