Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.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
Spring WebSphereAS7自省异常上的JSF1.1WebApp_Spring_Jsf_Facelets_Websphere 7 - Fatal编程技术网

Spring WebSphereAS7自省异常上的JSF1.1WebApp

Spring WebSphereAS7自省异常上的JSF1.1WebApp,spring,jsf,facelets,websphere-7,Spring,Jsf,Facelets,Websphere 7,将Web应用程序从WAS 6.1迁移到WAS 7期间发生异常。这个应用程序是使用JSF1.1(MyFaces)+Facelets+Spring(用于支持bean)开发的。在某些页面上,我遇到以下例外情况: Caused by: javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: javax.faces.component.UIViewRoot

将Web应用程序从WAS 6.1迁移到WAS 7期间发生异常。这个应用程序是使用JSF1.1(MyFaces)+Facelets+Spring(用于支持bean)开发的。在某些页面上,我遇到以下例外情况:

Caused by: javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/recovery_accs.xhtml][Class: javax.faces.component.html.HtmlForm,Id: sequestration][Class: javax.faces.component.html.HtmlDataTable,Id: _id37][Class: javax.faces.component.UIColumn,Id: _id50][Class: javax.faces.component.html.HtmlOutputText,Id: _id52]}

    at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getValue(RendererUtils.java:271)

    at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:226)

    at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:69)

    at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:57)

    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:799)

... 46 more

Caused by: javax.faces.el.PropertyNotFoundException: /pages/sub/idocAccsRecoverySub.xhtml @34,55 value="#{varbean.idocAcc.vzOrder}": Bean: com.test.project.bean.idoc.accs.IdocAccBean, property: idocAcc

    at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)

    at javax.faces.component.UIOutput.getValue(UIOutput.java:118)

    at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getValue(RendererUtils.java:267)

    ... 50 more

Caused by: java.beans.IntrospectionException: Parameter type in setter method does not corresponds to predefined.

    at java.beans.PropertyDescriptor.setWriteMethod(Unknown Source)

    at java.beans.PropertyDescriptor.<init>(Unknown Source)

    at java.beans.StandardBeanInfo.introspectProperties(Unknown Source)

    at java.beans.StandardBeanInfo.<init>(Unknown Source)

    at java.beans.Introspector.getBeanInfoImpl(Unknown Source)

    at java.beans.Introspector.getBeanInfoImpl(Unknown Source)

    at java.beans.Introspector.getBeanInfoImplAndInit(Unknown Source)

    at java.beans.Introspector.getBeanInfo(Unknown Source)

    at org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:474)

    at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:438)

    at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)

    at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)

    at org.apache.el.parser.AstValue.getValue(AstValue.java:123)

    at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

    at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)

    at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)

    ... 52 more
原因:javax.faces.FacesException:无法检索路径为{组件路径:[Class:javax.faces.component.UIViewRoot,ViewId:/pages/recovery\u accs.xhtml][Class:javax.faces.component.html.HtmlForm,Id:sequestration][Class:javax.faces.component.html.HtmlDataTable,Id:\u id37][Class:javax.faces.component.UIColumn,Id:_id50][Class:javax.faces.component.html.htmlouttext,Id:_id52]]
位于org.apache.myfaces.shared_impl.renderkit.renderrutils.getValue(renderrutils.java:271)
位于org.apache.myfaces.shared_impl.renderkit.renderrutils.getStringValue(renderrutils.java:226)
位于org.apache.myfaces.shared_impl.renderkit.html.htmltextrenderbase.renderOutput(htmltextrenderbase.java:69)
位于org.apache.myfaces.shared_impl.renderkit.html.htmltextrenderbase.encodeEnd(htmltextrenderbase.java:57)
位于javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:799)
…还有46个
原因:javax.faces.el.PropertyNotFoundException:/pages/sub/idocAccsRecoverySub.xhtml@34,55 value=“#{varbean.idocac.vzOrder}”:Bean:com.test.project.Bean.idoc.accs.idoccbean,属性:idocac
位于com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
位于javax.faces.component.UIOutput.getValue(UIOutput.java:118)
位于org.apache.myfaces.shared_impl.renderkit.renderrutils.getValue(renderrutils.java:267)
…还有50个
原因:java.beans.IntrospectionException:setter方法中的参数类型与预定义的不对应。
位于java.beans.PropertyDescriptor.setWriteMethod(未知源)
位于java.beans.PropertyDescriptor。(未知源)
位于java.beans.StandardBeanInfo.introspectProperties(未知源)
位于java.beans.StandardBeanInfo。(未知源)
位于java.beans.Introspector.getBeanInfoImpl(未知源)
位于java.beans.Introspector.getBeanInfoImpl(未知源)
位于java.beans.Introspector.getBeanInfoImplAndInit(未知源)
位于java.beans.Introspector.getBeanInfo(未知源代码)
位于org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:474)
位于org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:438)
在org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:85)
位于com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
位于org.apache.el.parser.AstValue.getValue(AstValue.java:123)
在org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
在com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)上
位于com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
…还有52个
尝试使用不同版本的facelet库和不同的EL实现。甚至尝试使用IBM的JDK重新编译项目。仍然没有成功。在ApacheTomcat上它可以正常工作

在上面的stacktrace中-IDocacbean是一个常规的java bean,它扩展了一个抽象类IDocaccore。如果我使用扩展该类的其他支持bean,我会得到相同的异常。所有其他不是从IDocaccore派生的bean都能正常工作。IDocaccore中没有什么特别之处类,并且它相当大,所以我认为没有必要给出完整的源代码


有什么建议IDocaccore类有什么问题吗?

通过更新IBMs版本的JRE解决了这个问题。实际上,我认为我使用的是最新版本的IBMs JRE。当然,我从IBM的网站下载了一个。问题是这个包包含了非常旧的IBM java 1.6版本我在FixpacksforWebSphereAS中找到的IBM java的变体。
您可以在IBM的java 1.6中找到修复错误的详细列表更多详细信息-似乎这个问题与运行时环境有关。我尝试在Apache Tomcat下使用IBMs JRE运行我的webapp,但遇到了相同的问题。使用SUN的JRE,一切正常。此外,我发现我无法使用有效的获取和设置方法。