• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Migration of Portal from 5.1 to 6.1 issues

Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm Migrating my application built on Portal(JSR-168) 5.1 and WAS 5.1 environment to Portal and WAS 6.1 environment on RA 7.5.

In some of the modules I'm facing issues when I try to pass data from JSP page to Action class setting the value on session object.

In one of the Module:

The records are visible from database,however , the application throws a Null Pointer exception when any record on the page for view.
id of the record set in jsp page is not being retrieved in the Action class. Please find below the code extract on the jsp page and the corresponding action it is being forwarded to.

<html:link action="/ACViewCertificateAction.do" paramName="innerCertAddenList" paramId="CERT_ID"paramProperty="certificateId">
<bean:write name="innerCertAddenList" property="clientName" />

In Action:
certificateID = request.getParameter(ACCommonConstantsIF.AC_CERTIFICATE_ID);(PortletRequest request,public static final String AC_CERTIFICATE_ID = "CERT_ID";)

In User Administration:

The List of records fetched into the Action class,set in the PortletSession is not being recognized in the forwarded JSP page:

In ACUserListAction:
fullList = getLDAPList();
System.out.println("*******fullList in User List Action*******"+fullList.size());//Size is 1490
ACCommonConstantsIF.LDAP_FULL_LIST, fullList);
ACCommonConstantsIF.LDAP_FULL_LIST, fullList);
Collections.sort(fullList, comparator);
ACCommonConstantsIF.LDAP_USERS_LIST, fullList);
marshUsers = (ArrayList) ACCommonUtil.doPaging(request,
selectedPage, fullList,
ACCommonConstantsIF.LDAP_SELECTED_USERS_LIST, marshUsers);
ACCommonConstantsIF.LDAP_SELECTED_USERS_LIST, marshUsers);

In ACUserViewByName.jsp:
<table class="portlet-menu">
<logic:notEmpty name="LDAPSelectedUsersList" scope="session">
<tr class="wpsTableHead">
<td class="wpsTableSectionHead"><bean:message
key="User.LoginName.List" /></td>
<td class="wpsTableSectionHead"><bean:message
key="User.Name.List" /></td>
<td class="wpsTableSectionHead"><bean:message
key="User.Company.List" /></td>
<td class="wpsTableSectionHead"><bean:message
key="User.EmailAddress.List" /></td>
<logic:iterate name="LDAPSelectedUsersList" id="userList1"
type=" com.marsh.ac.dvo.ACUserDVO" scope="session">
<%com.marsh.ac.dvo.ACUserDVO userDVO = null;
if (userList1 instanceof com.marsh.ac.dvo.ACUserDVO) {
userDVO = (com.marsh.ac.dvo.ACUserDVO) userList1;
<tr class="wpsTableRow">
<TD class="wpsTableHeadLink" <br /> >
<bean:write name="userList1" property="loginName" />
<td class="portlet-menu"><bean:write name="userList1"
property="firstName" /> <bean:write name="userList1"
property="lastName" /></td>
<td class="portlet-menu"><logic:notEmpty name="userList1"
<bean:write name="userList1" property="company" />
<logic:empty name="userList1"
property="company"> </logic:empty></td>
<td class="portlet-menu"><bean:write name="userList1"
property="emailAddress" /></td>

<logic:empty name="LDAPSelectedUsersList" scope="session">
<td class="wpsPortletHead"><bean:message key="User.RecordsNotFound" /></td>

(Currently control in returning to the JSP without any list of records).

If anybody has faced such issue in MIgration can you please help.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic