cancel
Showing results for 
Search instead for 
Did you mean: 

Error after deploying JCA on EP6( Portal Applications with RFC)

Former Member
0 Kudos

<b><u><b>Error</b></u>

Portal Runtime Error

An exception occurred while processing a request for :

iView : N/A

Component Name : N/A

iView not found: ewParProject.JspPage.

Exception id: 06:22_23/03/07_0104_14574950

See the details for the exception ID in the log file</b>

I<u><i><b> have written code in java file for connection as follows

please help me.</b></i></u>

package com.rr.JspPage;

import javax.resource.cci.MappedRecord;

import javax.resource.cci.RecordFactory;

import com.sap.security.api.umap.NoLogonDataAvailableException;

import com.sapportals.connector.ConnectorException;

import com.sapportals.connector.connection.IConnection;

import com.sapportals.connector.execution.functions.IInteraction;

import com.sapportals.connector.execution.functions.IInteractionSpec;

import com.sapportals.connector.execution.structures.IRecordMetaData;

import com.sapportals.connector.execution.structures.IRecordSet;

import com.sapportals.htmlb.page.DynPage;

import com.sapportals.htmlb.page.PageException;

import com.sapportals.portal.htmlb.page.JSPDynPage;

import com.sapportals.portal.htmlb.page.PageProcessorComponent;

import com.sapportals.portal.ivs.cg.ConnectionProperties;

import com.sapportals.portal.ivs.cg.IConnectorGatewayService;

import com.sapportals.portal.ivs.cg.IConnectorService;

import com.sapportals.portal.prt.component.IPortalComponentRequest;

import com.sapportals.portal.prt.runtime.PortalRuntime;

/**

  • @author laxmikant.pathak

*

  • To change the template for this generated type comment go to

  • Window>Preferences>Java>Code Generation>Code and Comments

*/

public class JspPage extends PageProcessorComponent {

public DynPage getPage(){

return new JspPageDynPage();

}

public static class JspPageDynPage extends JSPDynPage{

/* (non-Javadoc)

  • @see com.sapportals.htmlb.page.DynPage#doInitialization()

*/

public void doInitialization() {

try {

IConnectorGatewayService cgService =(IConnectorGatewayService)

PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);

IPortalComponentRequest request=(IPortalComponentRequest) this.getRequest();

ConnectionProperties cp = new ConnectionProperties(request.getLocale(),request.getUser());

IConnection connection = cgService.getConnection("P35",cp);

IInteraction ix = connection.createInteractionEx();

IInteractionSpec ixspec = ix.getInteractionSpec();

// Put Function Name into interaction Properties.

ixspec.setPropertyValue("Name","ZHRESS_ESEPARATION_DETAILS");

RecordFactory rf = ix.getRecordFactory();

// create input MappedRecord from

MappedRecord input;

input = rf.createMappedRecord("input");

input.put("YYMOD","DIS");

input.put("YYUSR","EMP");

MappedRecord output = (MappedRecord)ix.execute(ixspec, input);

IRecordSet rs = null;

Object result = output.get("T_P9100");

if (result instanceof IRecordSet)

{

rs = (IRecordSet) result;

}

IRecordMetaData rsmd = null;

try

{

rsmd = rs.retrieveMetaData();

} catch (Exception ex)

{

ex.getStackTrace() ;

}

// Do something with the Metadata

finally

{

if (connection != null)

{

try

{

connection.close();

//logMsg("* Iview: Closing connection ok.");

connection = null;

}

catch (Exception e)

{

//logMsg("* Iview: Error closing connection.");

}

}

}

} catch (ConnectorException e) {

// TODO Auto-generated catch block

e.printStackTrace();

} catch (NoLogonDataAvailableException e) {

// TODO Auto-generated catch block

e.printStackTrace();

} catch (javax.resource.ResourceException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

public void doProcessAfterInput() throws PageException {

}

public void doProcessBeforeOutput() throws PageException {

this.setJspName("JspPageFile.jsp");

}

}

}

<b>My Jsp file</b>

hbj:content id="myContext" >

<hbj:page title="PageTitle">

<hbj:form id="myFormId" >

Test

</hbj:form>

</hbj:page>

</hbj:content>

<b><u>XML File</u></b>

<?xml version="1.0" encoding="utf-8"?>

<application>

<application-config>

<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>

<property name="ServicesReference" value="com.sap.portal.ivs.connectorservice"/>

</application-config>

<components>

<component name="JspPage">

<component-config>

<property name="ClassName" value="com.rr.JspPage.JspPage"/>

<property name="ComponentType" value="jspnative"/>

<property name="JSP" value="pagelet/JspPageFile.jsp"/>

<property name="ServicesReference" value="com.sap.portal.ivs.connectorservice"/>

</component-config>

<component-profile/>

</component>

</components>

<services/>

</application>

<b>Error

Portal Runtime Error

An exception occurred while processing a request for :

iView : N/A

Component Name : N/A

iView not found: ewParProject.JspPage.

Exception id: 06:22_23/03/07_0104_14574950

See the details for the exception ID in the log file</b>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Laxmi,

this is a portal application problem - nothing to do with this forum. Anyway - you can try by changing your component-config portion in portalapp.xml and see whether it works or not.

Your current component config is like below

<component-config>
<property name="ClassName" value="com.rr.JspPage.JspPage"/>
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="pagelet/JspPageFile.jsp"/>
<property name="ServicesReference" value="com.sap.portal.ivs.connectorservice"/>

</component-config>

Try replaing the same with below:

<component-config>
<property name="ClassName" value="com.rr.JspPage.JspPage"/>
<property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
</component-config>

Check once and let me know...

regards,

Shubho

Former Member
0 Kudos

I am getting the same error after changes suggested by Mr. Shubhadip Ghosh .

Answers (0)