IBM Support

Executing Rational Software Architect post upgrading to v8.5 leads to "Error : The inferred type PumaHome ..."

Technote (troubleshooting)


Attempts to execute a code post migration of IBM Rational Software Architect from version 7.5 to 8.5 on portal projects results in "Error : The inferred type PumaHome is not a valid substitute for the bounded parameter"


You receive the Error message similar to mentioned below while compiling project in pumaHome Class.

pumaHome = (PumaHome) portletServiceHome.getPortletService(PumaHome.class)

Multiple markers at this line
- Bound mismatch: The generic method getPortletService(Class<T>) of type PortletServiceHome is not applicable for the arguments (Class<PumaHome>). The inferred type PumaHome is
not a valid substitute for the bounded parameter
 <T extends PortletService>
- Line breakpoint:TMDUserSecurityManager [line: 158] -


This error is caused due to incorrectly defining and usage of the wrong JNDI context for the pumaHome class in the custom themes

Resolving the problem

In order to resolve the aforesaid error you would need to change the syntax of PumaHome class in the respective class file in custom themes from

portalServiceHome = (PortletServiceHome)ctx.lookup("portletservice/


javax.naming.Context ctx = new javax.naming.InitialContext();
PumaHome pumaHome = (PumaHome)

Once done Save the changes the files and Re-deploy their custom themes.

Document information

More support for: Rational Software Architect for WebSphere Software
General Information

Software version: 8.5

Operating system(s): Windows

Reference #: 1634632

Modified date: 16 May 2013