Skip to Content
author's profile photo Former Member
Former Member

Dynamic System Resolution issues

hello forumers,

i'd like to implement a Dynamic System Resolution scenario, on an EP7 sp14.

based on the examples i've found on the sap web site, i ve created some content (R/3 transaction Iviews using an alias "SAP_SRM")

I tried to change the target R/3 server, based on the group to which the user belong !

i've created a portal service : portalapp.xml =

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

<application>

<application-config>

<property name="releasable" value="false"/>

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

<property name="ServicesReference" value="com.sap.portal.usermanagement,com.sap.portal.ivs.api_dynamicSystemService"/>

</application-config>

<components/>

<registry>

<entry path="/runtime/alias.mappers/SAP_SRM" name="DSRPortalService" type="service"/>

</registry>

<services>

<service name="DSRPortalService">

<service-config>

<property name="className" value="com.airbus.DSR.DSRPortalService"/>

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

</service-config>

</service>

</services>

</application>

and a service called DSRPortalService:

public String getAlternativeSystem(IUser user, String alias) {

String pcdLocation = "pcd:portal_content/SRMSystems/";

String system = "xgi";

String userName = user.getUniqueName();

IGroupFactory fact = UMFactory.getGroupFactory();

try {

if (user

.isMemberOfGroup(

fact.getGroupByUniqueName("Group1").getUniqueID(),

true)) {

//the user is french

system = "xgi";

} else if (

user.isMemberOfGroup(

fact.getGroupByUniqueName("Group2").getUniqueID(),

true)) {

//the user is German

system = "xda";

}

} catch (UMException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

return pcdLocation + system;

when i try to acces to the R/3 trasancation i get the following exception:

Exception ID:01:18_15/01/09_0001_1852850

[EXCEPTION]

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

Component : pcd:portal_content/Olivier/ROLES/DSR/DSRRole/SRM

Component class : com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent

User : to29267

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

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

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.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template &#39;&lt;System.ConnectionString&gt;&#39;; the problem occured at position 0. Cannot process expression &lt;System.ConnectionString&gt; because Invalid System Attribute:

System: &amp;#39;SAP_LocalSystem&amp;#39;,

Attribute: &amp;#39;ConnectionString&amp;#39;.

at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass(AbstractIntegratorComponent.java:123)

at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:98)

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)

... 29 more

have you got any ideas ?

best regards,

Olivier.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 01:09 PM

    It seems to be looking for a system with the alias SAP_LocalSystem, which doesn't make sense...

    You might also want to review [my blog|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7875] [original link is broken];.

    Edited by: Michael Nicholls on Jan 16, 2009 12:18 AM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rajendrakumar Gaikwad

      Hello

      sorry but i had already entered the name of the service as KEY value.

      please find here the code of the interface :

      import com.sapportals.portal.prt.service.IService;

      public interface IDSRPortalService extends IService

      {

      public static final String KEY = "DSRPortalService";

      }

      Any ideas please ?

      best regards,

      Olivier.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.