cancel
Showing results for 
Search instead for 
Did you mean: 

Portal Service - Exception

Former Member
0 Kudos

I have implemented portal service. While starting it, the following exception is generated.

Server 2858450:Error in the listener class com.sap.ip.portal.admin.portalanywhere.QueryHandler during the process of handleTopic.

pls. help in resolving it.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

thanks for your support.

my problem of calling the service from the same component is solved.

the problem was with the service name.

the key defined in interface ISnowService was incorrect -

initially, i set it to

KEY = "SnowService" ;

i changed it to

KEY = "SnowComponent|SnowService" ;

Former Member
0 Kudos

Hi,

Please close the thread if your problem is solved.

Regards,

Harini S

Former Member
0 Kudos

Thanks for your responses. I have gone through the threads. Need your help...

My portalapp.xml is given below

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

<application>

<application-config>

<property name="startup" value="true"/>

<property name="Vendor" value="apl.com"/>

</application-config>

<components>

<component name="SnowComponent">

<component-config>

<property name="ClassName" value="com.sap.portal.tutorial.snow.SnowComponent"/>

</component-config>

<component-profile/>

</component>

</components>

<services>

<service name="SnowService" >

<service-config>

<property name="className" value="com.sap.portal.tutorial.service.SnowService"/>

<property name="startup" value="true"/>

</service-config>

<service-profile>

<property name="MyProperty " value="true"/>

</service-profile>

</service>

</services>

</application>

When I deploy the par with the above portalapp.xml I am able to start the service. I do not have any issue in starting the service.

Now, I want to use the said service from my Portal Component - SnowComponent which is in the same appp

what chagnes i will have to make in my portalapp.xml ?

pls. also provide the details pertaining to accessing this service from other portal apps too :

is it somthing related to application config ?

<application-config>

<property name="SharingReference" value="SnowComponent">

<application-config>

do i have to import jar for the following interface declartion ?

import com.sap.portal.tutorial.service.ISnowService ;

ISnowService snowService = (ISnowService) request.getService(ISnowService.KEY);

i hope the above is clear.

pls. help .......

Former Member
0 Kudos

Hi

Generally portal service is maintained as separate project only. Create a new project and use this portal service in the component of this project. You can check an example application here

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0b57e590-0201-0010-a29f-abd37a43...

Regards,

Harini S

Former Member
0 Kudos

Hi,

Check the log file for the error description. That will help. Also as mentioned, check portalapp.xml structure. Wrong portalapp.xml can cause such problems.

Check if the service mentioned in this thread is running. It may help.

Regards,

Harini S

Former Member
0 Kudos

Hi Santosh ,

Check the below thread and contact the person to resolve issue.Mostly you have to set portal app.xml correctly .

/thread/788769 [original link is broken]

Koti Reddy