Server-side naming service functionality

Dear all,
I have this problem on my JCA connection:
###Exception #1#com.sap.engine.services.jndi.persistent.exceptions.NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:238)
at ...etc etc....
The problem is on this part of code:
public void doProcessBeforeOutput() throws PageException {
TestJCABean myBean = new TestJCABean();
myBean.setStr(remoteStr);
((IPortalComponentRequest)getRequest()).getServletRequest().setAttribute("myBean", myBean);
this.setForward("TestJCA.jsp");
I really don't understand, any suggestion regarding this?
I will apprecciate a lot.
Vipa

Hi Ravi,
here my code, thanks for your help.
-----TESTJca.java
public class TestJCA extends PageProcessorComponent {
  public DynPage getPage(){
    return new TestJCADynPage();
  public static class TestJCADynPage extends JSPDynPage{
     private final static String LOGGER = "NameJCA";
     private final static ILogger log = PortalRuntime.getLogger(LOGGER);
     private String remoteStr = "";
    public void doInitialization(){
         //Accedo il portal component profile per ottente il valore del system alias configurato per l'iview
         //MNT è stato configurato da portal e sul file xml
          log.info(this, "[doInitialization()]comincio");
         IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
          IPortalComponentContext compContext = request.getComponentContext();
          IPortalComponentProfile userProfile = compContext.getProfile();
        //Ritorna MNT che ho aggiunto in portalapp.xml
          String sys = userProfile.getProperty("System"); 
          log.info(this, "[doInitialization()]valore del system alias: "sys"");
          //Utilizza la funzione per la connessione al sys di backend e reperimento dell'info necessarie
          remoteStr = getRemoteString(request, sys);
          log.info(this, "[doInitialization()]remoteStr: "remoteStr"");
    public void doProcessAfterInput() throws PageException {
    public void doProcessBeforeOutput() throws PageException {
      TestJCABean myBean = new TestJCABean();
      myBean.setStr(remoteStr);
      ((IPortalComponentRequest)getRequest()).getServletRequest().setAttribute("myBean", myBean);
      // fill your bean with data here...
       //log.info(this, "[doInitialization()]Setto il nome della jsp");
      this.setJspName("TestJCA.jsp");
      //this.setForward("TestJCA.jsp");
       //IResource jsp = request.getResource(IResource.JSP, "pagelet/bannerOriginalle.jsp");
       //response.include(request, jsp);
@param pgContext
@param response
@param compBean
@param cubeName
@param templateID
          private String getRemoteString(IPortalComponentRequest request, String sapSystem) {
               IConnection connection = null;
               try {
                    // get the Connector Gateway Service
                    Object connectorservice = PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
                    IConnectorGatewayService cgService = (IConnectorGatewayService) connectorservice;
                    if (cgService == null) {
                         log.info(this, "[getRemoteString()]Error in get Connector Gateway Service
try {
IUser user = request.getUser();
ConnectionProperties cp = new ConnectionProperties(user.getLocale(), user);
connection = cgService.getConnection(sapSystem, (ConnectionProperties) request);
} catch (Exception e) {
log.severe(this, "[getRemoteString()]Connection to SAP system failed. Exception:" +e.getLocalizedMessage());
if (connection == null) {
log.info(this, "[getRemoteString()]Connection is null
} else {
log.info(this, "[getRemoteString()]Connection succesful");
} catch (Exception e) {
log.severe(this, "[getRemoteString()]Exception occured. Exception:" +e.getLocalizedMessage());
log.info(this, "[getRemoteString()]Iview: runFunction");
try {
// Get the Interaction interface for executing the command
IInteraction ix = connection.createInteractionEx();
// Get interaction spec and set the name of the command to run
IInteractionSpec ixspec = ix.getInteractionSpec();
//String functionName = "Z_ESTRAIDATA";
String functionName = "RPL_CUSTOMER_NAME_GET";
// Put Function Name into interaction Properties.
ixspec.setPropertyValue("Name", functionName);
// return structure - dovrebbe essere il nome del parametro di export della funzione
//cambiarlo di conseguenza
//String function_out = "ERRORE";
String function_out = "PE_NAME1";
String function_in_value = "1000010001";
RecordFactory rf = ix.getRecordFactory();
MappedRecord input = rf.createMappedRecord("input");
// put function input parameters
// input.put("ZSC_CUBE", cubeName);
// input.put("ZSC_PERVAL", selection);
// input.put("ZSC_UTENTE", user.getLogonUid());
input.put("PI_KUNNR", function_in_value);
//ottengo l'oggetto che mi rappresenta l'output della funzione
//lancio la RFM
MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
Object rs = null;
try {
Object result = output.get(function_out);
if (result == null) {
rs = new String(" ");
} else if (result instanceof IRecordSet) {
rs = (IRecordSet) result;
log.info(this, "[getRemoteString()]rs ritornato: " + rs.toString());
return rs.toString();
// Do need all type here ?
else {
rs = result.toString();
log.info(this, "[getRemoteString()]rs ritornato: " + rs.toString());
return rs.toString();
} catch (Exception ex) {
log.severe(ex, "[getRemoteString()]Error getting function result. Exception:" +ex.getLocalizedMessage());
log.info(this, "[getRemoteString()]Codice errore ritornato: " + rs.toString());
} catch (Exception e) {
log.severe(e, "[getRemoteString()]Error getting function interaction. Exception:" +e.getLocalizedMessage());
return null;
-----TESTJcaBean.java
package ... ... ... ...
import java.io.Serializable;
public class TestJCABean implements Serializable {
     private String str;
@return
     public String getStr() {
          return str;
@param string
     public void setStr(String string) {
          str = string;

Similar Messages

  • Error getting the server-side naming service functionality

    Hi all,
    we are currently setting up the CTS+ activity based transport scenario. Everything seems to be working fine, however, we have to import each transport twice...
    Before I go into detail in the error we get I will first describe our landscape. All the configuration we did was done in debate with SAP.
    We use the SAP Solution manager (ehp1 SP 4) as the CTS+ server as recommended by SAP and have an NWDI system of which we only use the components DTR and CBS (since CMS is not used anymore in the activity based transport). We have defined three logical ports/RFCs. CTSCONFIG points to the NWDI system. CTSDEPLOY is running on the java stack of the solution manager and is only used for portal content (=epa) transports. CTSDEPLOY_DI is pointing to the NWDI system and is used for all NWDI (=dip) changes. The NWDI is running ehp1 SP3.
    In STMS I defined all the non-abap systems (and configured them to use CTSDEPLOY_DI) and created the following transport route:
    upload system (IMP) -> DEV -> ACC -> QAS -> PRD
    I first attached the used dependencies in a transport request (SAP_BUILDT, EP_BUILDT, etc) these imported just fine. Then I did the SCA files which contain our custom code. I extracted these from the assemble step on our current NWDI system which will be removed as soon as we switch to the new CTS+ environment.
    When we import the transport into the runtime systems then we see the DTR and CBS be filled sucesfully for this specific system. However, the transport request itself always fails with errorcode 12 and the error is:
    Error during export service registration: Error getting the server-side naming service functionality during getInitialContext opera
    tion. com.sap.engine.services.jndi.persistent.exceptions.NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
    Error in execution of Web services CTSDEPLOY_DI , exception is cx_cts_file_import_failed
    File import canceled
    When we then reimport the same transport it will go the second time fine. This is no problem during the setup but will not be workable when we go live ofcourse. Is there anyone who had this issue before as well and have a solution for it?
    Kind Regards,
    Nico van der Linden...

    Hello Nico,
    I would need the java trace files to get more info on this issue, but you can start troubleshooting this error with these notes:
    #1172252: CTS+, 'attach file': Troubleshooting Guide;
    #1003674: Enhancement for non-ABAP systems in CTS;
    #1155884: CTS+, configuration 'close coupling': Troubleshooting guide;
    Pay special attention to parameter  NON_ABAP_WBO_CLIENT, whether it's correctly set on your CTS+ system(s).
    Note #1003674 is a must for any CTS+ systems to work properly, as well as having an updated version of the transport programs (tp and R3trans).
    Lastly, note #1155884 goes through some JCoException exceptions that commonly take place during CTS+ transports. But again, you need to check the underlying trace files to find the root cause of your issue.
    I hope this information helps.
    Best regards,
    Tomas Black

  • Error :server-side naming service functionality during getInitialcontext op

    Hi Friends,
    I am trying  out Java Proxies Scenario(Asynchronous).
    I am facing problem with the following error:
    <b>Error getting the server-side naming service functionality during getInitialContext operation.</b>
    Please help out to solve the above problem.
    Sudheer.

    Hi Sudheer
    Check the following thread,
    Re: Problems When recieving Jms messages from XI
    cheers
    Sameer

  • How corba client and server find Naming service

    hello
    i want to ask how corba client and server find the Naming service ?
    10x

    By using a well-known port (I think the default for JavaIDL's NS is 1049) on a well-known address (localhost).
    As these values are not really standard, you can specify them when starting the server and client (+-ORBInitialPort 1050 -ORBInitialHost localhost+). See the documentation .

  • How to connect server using naming service IOR and server IOR in java

    I need to connect server code from my client code using naming service IOR and server IOR. what are the steps have to be followed to bind the server.
    please help me.

    Connection refused means that you can't reach the server or that the server isn't listening.
    Kaj

  • Server Side Include not functioning the same across website

    digitaldealershipsystem.com
    <!--#include file="/includes/navigation.php" -->
    ** this is the navigation pulldown.
    This works on most of the main pages
    When you go to
    digitaldealershipsystem.com/live.html
    digitaldealershipsystem.com/live2.html
    digitaldealershipsystem.com/live3.html
    The same is included but does not work on Chrome, but does work on Firefox
    To restate, the naming is the same on all web pages, and it works on Chrome -- except for these "live" pages
    On Firefox, they work on all pages, included live pages
    For testing purposes on the following page, I tried 'virtual' file and that did not change the results in either browser
    digitaldealershipsystem.com/live4.html
    My thoughts:
    If there is a conflict on the page, then why only is Chrome being effected
    Any ideas?

    If clearing the cache does not help, then check your code validation - you have several errors. Server side includes are browser independant - because they are assembled on the server, not the client. If there's a difference in rendering between browsers, it has to do with your html/css and has nothing to do with SSI.

  • Server side TAF services not working

    Hi,
    I configured a clustermanaged services with failover methos='basic' and failover type=select,
    but when I check the view gv$session, there are many session connected to this service with failover method and failover type NONE.
    below is the output when I query dba_services
    select service_id,name,failover_method,failover_type from dba_services where name='ODCSE'
    service_id name failover_method failover_type
    5     XXX     BASIC     SELECT
    and in the gv$session
    SERVICE_NAME FAILOVER_METHOD FAILOVER_TYPE
         XXX      NONE     NONE
         XXX      NONE     NONE
         XXX      NONE     NONE
         XXX      NONE     NONE
    is there anything to do with the client program connectivity?
    Thanks
    pjsiong

    Hi,
    The service is running, and if I connect using sqlplus, it will get the failover mode and type.
    But if it connect thru our VB application, the failover type and mode is NONE.
    That's why I suspect there is some client connectivity constraint.
    Rgds
    Pjsiong

  • Naming Service in separate LDAP

    Hi All,
    Can any body pls tell me if it is possible to use a LDAP server as a naming service
    rather than the using weblogic's naming service ? If yes, then pls tell me how
    it can be done.
    TIA,
    Sudarson

    I click on the '+' sign or use the menu 'create' option but I do not get a screen to enter any information.
    I hard coded my tnsnames connection in my application and it work fine.
    Thanks for getting back to me with the information and link. I've tried all possible combination without successfully being able to use the 'Naming Service' function.
    Fred

  • Naming Service in Oracle Net Manager

    Hello,
    I've downloaded ODTwithODAC1020221.exe and did the install ODP.NET sucessfully and when I try to create a Naming Service by Clicking on the + icon nothing happens.
    I have a working TNSNAMES.ORA in the ADMIN/NETWORK folder where I installed the ODP.NET. In the same folder I have SQLNET.ORA and a LISTENER.ORA files.
    I am using Visual Basic 2005 for my GUI.
    Thank you,
    Fred

    I click on the '+' sign or use the menu 'create' option but I do not get a screen to enter any information.
    I hard coded my tnsnames connection in my application and it work fine.
    Thanks for getting back to me with the information and link. I've tried all possible combination without successfully being able to use the 'Naming Service' function.
    Fred

  • How do I send a raw (push) notification from the server side using an Azure mobile service?

    Hi there!
    Currently I'm able to send toast notifications to my user from my Azure mobile service using the following line of code in one of my server side scripts:
    push.wns.send(opponent_id, payload, 'wns/toast', {
    success: function(pushResponse) {
    console.log("Sent push:", pushResponse);
    request.respond(statusCodes.OK, {});
    error: function(pushResponse) {
    console.log("Error Sending push:", pushResponse);
    request.respond(500, { error: pushResponse });
    But I would like to send a raw notification to my user now, not a toast notification. I've set up a background tasks which runs as soon as a raw notification arrives(I've tested this through the diagnose option of my mobileservicehub and it works).
    I want to send a raw notification now from the server side and I'm kind off lost on how to do that. I've looked for it but can't seem to find an answer to that question, I might be looking for the wrong stuff though.
    I'm looking for a solution that looks the same as the one for a toast notification(as demonstrated in the code above).
    Your help would be greatly appreciated!
    Thanks in advance!
    Jan

    I found the solution to this it was in fact really really easy, I should have read the documentation more properly since it clearly said that the payload for raw notifications could be literally anything but the client has to take care of it.
    So I figured that out!

  • Server-side workflows against Service Link updated parameter/data

    Is there a way to attach any server-side workflows to service link inbound updates/data other than what is available via parameter mapping and prebuilt functions? I need to manipulate a piece of data that is being updated in to a field by service link inbound message beyond what is available via prebuilt functions...
    Thanks.

    I could probably do it in the XSL, but my goal is to keep the agent configuration, parameter mappings and transformation generic as possible so that it can be reused without modification. For example, I have agent configuration for interacting with an external system, that is passing a certain number of parameters back and forth, but the actual use of these paramters may be different from one service or task to another that is interfacing with this same external system. So the parameter I need to add some logic to for this instance of the task may be representing something different from another task call, even if same parameter is used to carry that data across.
    Adding the logic and manipulation in the transformation will work for us if we can override and use different transformation in the task plan settings, similar to how we can override the parameter mappings, but that is not available today...

  • Web services server side uses C dll (native calls)

    Hi,
    I developed a web service using JAX-RPC. My implementation class uses native c function calls. Dose anybody know where I should put my C dlls and their dependentcy files on Web service server side (tomcat)? If they should be in the .war file, what kind of path in the war would be?
    I have an exception ocurred, like this
    [java] java.rmi.ServerException: Missing port information
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault (StreamingSender.java:357)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:228)
    I think probably it is because of native call problem, since I could get something back if not using native call.
    Anybody has similar experience when developing web service using JAX-RPC and calling native c api functions on server side?
    Thanx in advance!

    Yes, I just tried it again (comment all native call out and just call the method that doesn't use native call, it works).
    So your web service application using jax-rpc and c native dlls works already?
    Can you tell me where you put all the native C DLLs and where I can set java.library.path in tomcat?
    Thank you!

  • "RABAX" occurs on server side error while testing asynchoronous web service

    I got error while testing asynchronous web service in WS navigator. I have created asynchronouse web service using RFC. Then I configured it in SOAMANAGER. When I tested it, got error "RABAX occurs on server side". Also I got dump in ST22. It is 'UNCHAUGHT_EXCEPTION - CX_SOAP_SEQ_SCD_ERROR'.
    I have tested for synchronous web service it works fine.  I found a difference in both web service WSDL file for below parameters value -
    commit
    blocking
    transaction
    wsrm
    I tried different way .. but no solution .. Plz suggest if someone have any idea.....Its very helpfull....

    your problem:
    Missing class: oracle.tip.adapter.jms.JmsManagedConnectionFactory
    Dependent class: oracle.tip.adapter.fw.wsdl.WSDLUtils
    Loader: oracle.bpel.common:10.1.3
    Code-Source: /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar
    Configuration: <code-source> in /oraclesoa/oraclesoa/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml
    It happens when server is custom installed, try to reinstall it as full version and problem should disappear otherwise your need another full installation to retrieve and replace orabpel.jar file from (or maybe more)

  • How to use server-side classes in a web service proxy client ?

    Greetings,
    I'm using WebLogic 10.3 with Workshop 10.3 on Windows. I generate a Web Service client in Workshop. There are two options in the New->Others->Web Service category: ClientGen Web Service Client and Web Service Client. I've chosen the second one as it's a JAX-WS Web Service and I think that the first one (ClientGen Web Service is to be used with JAX-RPC Web Services. The proxy is generated but, since the Web Service is using POJOs as parameters, a new version of these POJOs is also generated. For example, my Web Service has an operation like: public OrderStatus putOrder (Order), where OrderStatus and Order are application scoped POJOs. The proxy generation process generates a _PortType class which is supposed to be used by the calling client. This class defines an operation public OrderStatus putOrder(Order), but the OrderStatus and Order classes aren't the original ones but the generated ones. The issue is that these generated classes aren't completely equivalent to the original ones, for examples all lists become arrays, the constructors are different, etc. This is extrememly annouying. Is there any option to say to the proxy generation process to keep with the server-side classes ?
    many thanks in advance for any help.
    Nicolas

    The only solution to this problem seems to be using dynamic proxies. But it doesn't work neither as the following code:
    Service service = Service.create(new URL("http://localhost:7001/OrderServiceProject/OrderService?WSDL"),
    new QName("http://www.simplex_software.fr/demo/services", "OrderService"));
    OrderService orderService = service.getPort(new QName("http://www.simplex_software.fr/demo/services", "OrderServicePort"), OrderService.class);
    raises the following exception:
    16 déc. 2009 19:55:51 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass
    INFO: Dynamically creating request wrapper Class fr.simplex_software.demo.services.jaxws.PutOrder
    16 déc. 2009 19:55:51 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass
    INFO: Dynamically creating response wrapper bean Class fr.simplex_software.demo.services.jaxws.PutOrderResponse
    16 déc. 2009 19:55:51 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass
    INFO: Dynamically creating request wrapper Class fr.simplex_software.demo.services.jaxws.GetOrderStatus
    16 déc. 2009 19:55:51 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass
    INFO: Dynamically creating response wrapper bean Class fr.simplex_software.demo.services.jaxws.GetOrderStatusResponse
    Exception in thread "main" java.lang.IllegalArgumentException: fr.simplex_software.demo.services.OrderService is not an interface
         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:630)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:331)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:313)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:295)
         at javax.xml.ws.Service.getPort(Service.java:92)
         at fr.simplex_software.demo.client.OrderServiceClient.main(OrderServiceClient.java:23)
    As a matter of fact, fr.simplex_software.demo.services.OrderService is not an interface but, nevertheless, it's a SEI and it was generated as it is by the IDE Web Service wizard. Big, big confusion ! Of course, this sample works perfectly with Metro, in NetBeans using Glassfish.

  • Web service proxy - how to use server side in/out objects

    We have logic in oracle database. We have pl/sql api with oracle object types as in/out parameters. On server side we have pojo classes with method to convert from/to sql structs, arrays.
    pl/sql apis are exposed as web services.
    When I create web service proxy, all required pojo classes are created from wsdl on client side.
    Currently we are also writting client part of the code(where we also have oracle database and we want to reuse server pojos). Server pojo classes are in separate jar file and used also on a client side.
    Is it possible to tell jdeveloper when creating web service proxy, to not create client side pojos, exception classes, ... , but use those from jar file.
    Currently I just copy server pojo over generated client ones, make some modifications and it works. But each time I regenerate web service proxy I have to do this step manually.
    Edited by: zgrega on Sep 24, 2010 7:43 AM
    Edited by: zgrega on Sep 24, 2010 7:47 AM

    best is to wrap the generated WS proxy in a JavaBean. This way you can create the exception handling once and apply it to all uses of the WS proxy by overriding the generated code
    Frank

Maybe you are looking for

  • Keyboard shortcuts on an old keyboard

    I am using an old, old keyboard (came with the iMac G3) with my mid-2011 iMac (yes, it's the only keyboard I have for it). I'm wondering if there's a way to create a keyboard shortcut for volume down and volume up on this keyboard. I was able to do t

  • 3.0 Not Being Processed

    I successfully downloaded the 3.0 upgrade, but it has not transferred over to my iPod. The screen on iTunes has said Verifying updated iPod software for at least 5 hours now, and the screen on my touch still shows the image of the cable pointing to t

  • CS3, Any way to keep image matte fixed when moving matted track?

    OK, I saved my best for last.  Many of my edits include split screens or other multiple images (e.g., cameo circle).  Let's use a left half-right half example.  I use an image matte consisting of a PS half black-half white .psd file (merging all laye

  • Unable to open gmail. am using the latest version and all the cookies and cache has been cleared

    hi, am just not able to open gmail using firefox. this is really frustrating as i like firefox and dont want to shift to other browsers just because gmail isnt opening. am getting the following error message "The page isn't redirecting properly Firef

  • Accessing Apps Packages.

    Hi, I'm creating one view in custom schema. In that query, i'm using this standard package apps.gl_flexfields_pkg.get_description_sql. when running the query it says ORA-00942: table or view does not exist ORA-06512: at "APPS.GL_FLEXFIELDS_PKG", line