cancel
Showing results for 
Search instead for 
Did you mean: 

WPC Component Editor

Former Member
0 Kudos

Hi community,

I am trying to create a Component Editor in WPC. I have made a faq editor PAR file, containing class:

com.sap.nw.wpc.km.service.editor.component.FAQComponent and registered that editor in WPC editor components.

When I try to open the web-form for creation, I am getting an Exception.

The log trace shows this:

[EXCEPTION]

#1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource Component : com.sap.nw.wpc.designtime.EditorTool Component class : com.sap.nw.wpc.editor.EditorTool User : Jagadeesh_Katan at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:973) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527) at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89) at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232) at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76) at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129) at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134) at com.sap.nw.wpc.editor.EditorTool.doContent(EditorTool.java:54) 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:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215) at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753) at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240) at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524) at java.security.AccessController.doPrivileged(Native Method) at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172) Caused by: com.sapportals.portal.prt.component.PortalComponentException: Original exception: at pagelet.editor._sapportalsjsp_editor.doContent(_sapportalsjsp_editor.java:64) at pagelet.editor._sapportalsjsp_editor.service(_sapportalsjsp_editor.java:38) at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:360) at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435) ... 39 more Caused by: java.lang.NullPointerException at pagelet.editor._sapportalsjsp_editor.subDoContent(_sapportalsjsp_editor.java:1045) at pagelet.editor._sapportalsjsp_editor.doContent(_sapportalsjsp_editor.java:58) ... 43 more # #1.5 #0050569F5300005C000002B3000014BC0004627948C7CAD6#1234172958444#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#Jagadeesh_Katan#464##n/a##ea7d44d0f68e11ddc6440050569f5300#SAPEngine_Application_Thread[impl:3]_9##0#0#Error##Java###03:19_09/02/09_0230_24876850 [EXCEPTION] #1#java.lang.NullPointerException

at pagelet.editor._sapportalsjsp_editor.subDoContent(_sapportalsjsp_editor.java:1045)

at pagelet.editor._sapportalsjsp_editor.doContent(_sapportalsjsp_editor.java:58)

at pagelet.editor._sapportalsjsp_editor.service(_sapportalsjsp_editor.java:38)

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

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

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

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

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

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

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

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

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

at com.sap.nw.wpc.editor.EditorTool.doContent(EditorTool.java:54)

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:328)

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

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

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

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

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

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

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

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

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

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

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

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

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

at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)

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

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

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

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

Can you tell me what went wrong in this?

Jagadesh K

Edited by: Jagadeesh katan on Feb 10, 2009 7:11 AM

Edited by: Jagadeesh katan on Feb 10, 2009 7:15 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Jagadeesh.

Have you solve the problem? I have the same too.

Best Regards,

Jheison A. Urzola H.

Former Member
0 Kudos

Hi,

Yes the problem is solved... The actual culprits were the Resource Bundle and XSL. I hard coded the lables instead of getting them from Bundle files.. and included this code in XSL:

<xsl:if test="@type='qanda'"><div style="padding:1px 0px 0px 0px" />

<div id="WHITEBG" class="textbox" style="padding:4px 3px 4px 18px; width:215px" >

<xsl:value-of disable-output-escaping="yes" select="string(@title)" /><br/>

<xsl:value-of disable-output-escaping="yes" select="string(@targetnew)"/>

</div>

</xsl:if>

Hope this helps,

JK

Former Member
0 Kudos

Hi,

which version is that (WPC and portal as well)?

best,

--epexpert

Former Member
0 Kudos

Hi,

SAP Version: SAP NetWeaver 7.0 (2004s)

and the service pack no is: SPS14

How to find WPC version?

Edited by: Jagadeesh katan on Feb 10, 2009 10:50 AM

Former Member
0 Kudos

Hy,

you can finde the Version of WPC here:

http://<alias>:port/sap/monitoring/SystemInfo --> all componets and KMC WPC.

Former Member
0 Kudos

Hi,

Thanks

the WPC version is:

KMC-WPC 7.00 SP15 (1000.7.00.15.2.20080818152600)

Former Member
0 Kudos

Hi,

I am trying to implement the How to Guide: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30c46426-829b-2b10-4286-ec70189e...

Here, I am stuck with context.getComponentForId( editorObjectId ) this is returning null....

Can some one help regarding this...

Thanks,

JK

Edited by: Jagadeesh katan on Feb 12, 2009 4:24 PM

Former Member
0 Kudos

Hi Community,

Can any one help.... I am still stuck with this issue.

Regards,

JK