× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have a problem with a JSF web app installed on AS400. It basically works
on all other kind of installation, windows, linux, but not on AS400.



JSF code excerpt


<f:view locale="#{bbeanUfLocale.locale}">


<%antiric.util.bbean.BBeanUtil.invokeMethod("#{commonFinestraPopUp.loadEventManagement}");%>

<t:aliasBean alias="#{bBean}" value="#{commonFinestraPopUp }">

..

..

<h:form id="ufForm">

..

..

<h:dataTable id="DataTable" styleClass="LA" rowClasses="LB1,LB2"
columnClasses="LCC,LCC,,,,,,,,," value="#{bBean.popupList}" var="item">

<h:column>

<f:facet name="header"></f:facet>

<h:outputLink value='javascript:putValue("#{
item.valuField[0]}")' >

..
..



This is the managed bean:



public class CommonFinestraPopUp extends BBeanList {

/* FILTER's PROPERTIES - see getters & setters */

private long areaCode = Area.OPEN;

..

..





public Collection getPopupList() throws Exception {

List l = getList();

/*

* recupero dei valori dalla Tabella generalizzati

*/

List popupList = new ArrayList();

if (!verifyAuthorization()) {

return popupList;

}

// eseguo query e caricamenti lista popUp

for (Iterator i = l.iterator(); i.hasNext();) {

PopupItem pi = new PopupItem();

Object bean = i.next();



Class clazz = bean.getClass();

Method[] methods =
clazz.getDeclaredMethods();



Class superClazz = clazz.getSuperclass();

Method[] superMethods =
superClazz.getDeclaredMethods();



..

..



pi.setValuField(y, value.toString());

pi.setHtmlField(y,
htmlField.get(y).toString());



popupList.add(pi);

}




return popupList;

}





// Inner Class


public class PopupItem {

String htmlField[] = new String[maxField];



String valuField[] = new String[maxField];



public String[] getValuField() {

return valuField;

}



public void setValuField(int ind, String valuField)
{

this.valuField[ind] = valuField;

}



public String[] getHtmlField() {

return htmlField;

}



public void setHtmlField(int ind, String htmlField)
{

this.htmlField[ind] = htmlField;

}



}



}





While this is working fine everywhere, on tomcat-AS400 it results in:



javax.servlet.ServletException: javax.servlet.jsp.JspException:​j​

avax.faces.el.PropertyNotFoundException: Error getting property 'valuField'
from bean of package xyz...CommonPopUp$PopupItem





​​

The ​data source is the same for all the installations,
I have already tried to make PopupItem implementing an interface with just
the relevant method, and move PopupItem outside of the class, but all the
tentatives still result in the same error.​



​.. up to getPopupList() , it works fine

.. it seems jsf core is "uncapable" to "reflect" PopupItem obj methods ..
running on IBMi tomcat only .. ​



​I also tried modifying catalina.policy , adding the directive : permission
java.lang.reflect.ReflectPermission "suppressAccessChecks";


.. setenv.sh : export QIBM_MULTI_THREADED=Y

​.. catalina.sh: JAVA_OPTS="$JAVA_OPTS
-Djava.security.debug=access,failure"



​nothing works !
any ideas ?

best regards,

giuseppe ​

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.