Skip to Content
author's profile photo
Former Member

errror in calling RFC

Hi All,

When i am calling RFC using JCA i am getting following error

<b>Tag tableView attribute model: Cannot access bean property myBean.model in page context.

Exception id: 11:30_03/10/05_0251

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

Below is the trace

<b>com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource

Component : pcd:portal_content/com.sap.com.Getdetail/Getdetail

Component class : com.ust.jcatotable.Display

User : a23443

at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:858)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:389)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:462)

at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)

at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:226)

at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)

at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)

at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)

at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)</b>

I really appreciate for all helps.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Oct 03, 2005 at 04:25 PM

    Can you post the code?

    Regards,

    P.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi All,

      When I am trying to call RFC using JCA.I am getting

      <b>com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource

      Component</b>

      Can anybody have any idea on this issue?I am working on EP6 SP2.

      Thanks in advance

  • author's profile photo
    Former Member
    Oct 03, 2005 at 06:12 PM

    Maha,

    I got this many times first i would put a variable while looping and try to get the number of records in table. remove tableview from jsp and try to get the count first.

    Let me know if you are getting count,

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 06:58 PM

    Tableview Bean

    package com.ust.jcatotable;

    import java.io.Serializable;

    import java.util.Vector;

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

    import com.sapportals.htmlb.table.DefaultTableViewModel;

    import com.sapportals.htmlb.table.TableViewModel;

    public class TableBean implements Serializable {

    public DefaultTableViewModel model;

    <b>private int cRowCount;</b>

    public TableViewModel getModel() {

    return this.model;

    }

    public void setModel(DefaultTableViewModel model) {

    this.model = model;

    }

    public void createData(IRecordSet table) {

    //this is your column names

    Vector column = new Vector();

    column.addElement("PERNR");

    column.addElement("NAME");

    //all this logic is for the data part.

    Vector rVector = new Vector();

    <b>int CRowCount = 0; //add this</b>

    try {

    table.beforeFirst();

    while (table.next()) {

    Vector data = new Vector();

    //data.addElement(table.getString(" "));

    data.addElement(table.getString("ABSDATE"));

    data.addElement(" ");

    <b>CRowCount = CRowCount + 1;</b>

    rVector.addElement(data);

    }

    } catch (Exception e) {

    e.printStackTrace();

    }

    //this is where you create the model

    this.setModel(new DefaultTableViewModel(rVector, column));

    <b>myBean.setCRowCount(CRowCount);</b> /Print this in JSP

    }

    <b>/**

    • @return

    */

    public int getCRowCount() {

    return cRowCount;

    }

    /**

    • @param i

    */

    public void setCRowCount(int i) {

    cRowCount = i;

    }</b>

    }

    in JSP put this

    <b><%=myBean.getCRowCount()%></b>

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Tegala,

      After modifying the code also it is giving same error.It is not returning null.Below is the trace file

      <b>Client_Thread_7 Fatal Exception ID:03:26_03/10/05_0263

      com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource

      Component : pcd:portal_content/REPORT_DEV

      Component class : com.ust.jcatotable.Display

      User : A23243

      at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:858)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:389)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:462)

      at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)

      at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:226)

      at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)

      at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)

      at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

      at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)

      at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)

      at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)

      at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)

      at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)

      at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)

      at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)

      at java.security.AccessController.doPrivileged(Native Method)

      at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)

      at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)

      at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)

      at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)

      at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)

      at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)

      at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

      at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)

      at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)

      at java.security.AccessController.doPrivileged(Native Method)

      at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)

      Caused by: com.sapportals.portal.prt.component.PortalComponentException: Original exception:

      at pagelet._sapportalsjsp_display.doContent(_sapportalsjsp_display.java:180)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

      at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:343)

      at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:817)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:385)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:462)

      at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)

      at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:226)

      at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)

      at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)

      at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

      at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)

      at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)

      at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)

      at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)

      at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)

      at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)

      at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)

      at java.security.AccessController.doPrivileged(Native Method)

      at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)

      at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)

      at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)

      at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)

      at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)

      at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)

      at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

      at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)

      at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)

      at java.security.AccessController.doPrivileged(Native Method)

      at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)

      Caused by: java.lang.NoSuchMethodError

      at pagelet._sapportalsjsp_display.doContent(_sapportalsjsp_display.java:115)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

      at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:343)

      at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:817)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:385)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:462)

      at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)

      at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:226)

      at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)

      at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:109)

      at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

      at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

      at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)

      at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)

      at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)

      at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)

      at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)

      at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)

      at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)

      at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)

      at java.security.AccessController.doPrivileged(Native Method)

      at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)

      at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)

      at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)

      at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)

      at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)

      at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)

      at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

      at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)

      at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)

      at java.security.AccessController.doPrivileged(Native Method)

      at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)</b>