NSAPI,  C++ and the STL string class

Hi,
I have a NSAPI service function written in C, but I would like to use C++ in order to take advantage of the STL string class. I am using NSAPI 4.1 and Solaris 8 and compiling with gcc 3.2. Everything compiles fine, but when I start the server, I get an error message stating that symbol _ZNSaIcED1Ev can not be found.
Any help would be greatly appreciated.
Thanks,
Mike

Well, I assume that you are trying to write a Native method. In this case, both the input string and the output string are jstrings. To operate on them in C you will have to convert them to c-strings - probably null-terminated strings.
The JNI documentation includes discussions of jstrings and conversion methods.

Similar Messages

  • [svn:osmf:] 11239: Updated DRM MediaError codes to work with the the Framework strings class.

    Revision: 11239
    Author:   [email protected]
    Date:     2009-10-28 13:03:06 -0700 (Wed, 28 Oct 2009)
    Log Message:
    Updated DRM MediaError codes to work with the the Framework strings class.  DRM errors spit directly from the VideoElement.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/events/MediaErrorCodes.as
        osmf/trunk/framework/MediaFramework/org/osmf/utils/MediaFrameworkStrings.as
        osmf/trunk/framework/MediaFramework/org/osmf/video/VideoElement.as

    check the server log;
    /app/oracle/product/fwm11g/user_projects/domains/fwm_domain/servers/AdminServer/logs/AdminServer.log
    you can launch the console and see if it is running; http://<server>:<port>/console

  • Exchange BPA Errors (Exchange server is a virtual machine but the additional tools are not installed and The 'Services' string type value located in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup\Services' registry key is missing)

    Hi,
    I am running BPA on My Exchange 2010 VM (Server 2008 R2 VM on Hyper-V) and get the following errors:
    The 'Services' string type value located in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup\Services' registry key is missing or inaccessible. The Microsoft Exchange Information Store service won't start. As a result, all services that depend
    on this service won't be able to start
    Exchange server [Exchange Server FQDN] is a virtual machine but the additional tools are not installed. This configuration is not supported. Install Virtual Machine Additions for this guest.
    Problem is that, for the first, that Key exists and the service is actually running fine. And for the second my VM tools are already installed.
    Hopefully someone out there has had the same issue and can assist.
    Pete

    Hi Pete,
    For the first error message, please try the following steps:
    Make sure the Information Store service is in Starting status,
    Automatic startup type and works well, as a test we can try to
    restart the Infroamtion Store service and verify the service works well.
    Start
    Registry Editor, find the registry key “Services” under “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Setup”, its value is “C:\Program
    files\Microsoft\Exchange Server\v14”(default install location), please check your registry, make sure the key “Services” exist and value is the Exchange Server install location and the
    location is accessible;
    Start
    Registry Editor, and locate the following registry key:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Exchange\Setup
    Use the
    Permission option under the Security tab to check the permission setting on this key. Make sure
    System is in the list with Full Control permissions if the service account is Local System. If you are not using Local System as the service account, check the existence of the corresponding account in the list and ensure that
    it has Full Control permissions. Please refer to this article:
    Title: Exchange Store Does Not Start: Errors 7024, 1026, 9542, and 5000
    Link:
    http://support.microsoft.com/kb/285116
    Start
    ADSI Edit, and then browse to the following location:
    Domain.com/Configuration/Services/Microsoft Exchange/Org/Administrative Groups/AdminGroup/Servers/Server Name
    Right-click the
    server name, and then click Properties.
    Click the
    Security tab, make sure this own server’s server object have
    full control permission on its own server.
    If not or the object is missing, please modify the permission or click
    Add, locate the computer account for the Exchange Server computer, add it to the Permissions list with full control.
    Click OK, and then close ADSI Edit.
    Use
    Active Directory Users and Computers to add the current affected
    Exchange Server computer account to the Exchange Servers(previous version should be “Exchange Domain Servers”) group in the
    Microsoft Exchange Security Groups( or Users) OU. Refer to this article:
    http://support.microsoft.com/kb/297295.
    Restart the Exchange Server computer, then rerun the ExBPA.
    For the second error message, Microsoft don’t recommend to install Exchange Server on virtual machine without additional tools, so the error message occurs. We can just ignore
    this message, it will not affect the Exchange servers.
    Regards, Eric Zou

  • Audio Books and the error message " class not registere

    I trying to download an library audio book to my player. I get the error message "class not registered" and the transfer sto
    ps.
    I have downloaded and intall the new firmware May 24, 2006 and the files that I'm trying to transfer is just a protected wma file. Any thoughts ?

    Hello again,
    Thank you very much, both of you for your attention to my problem. It seems that I made a mistake in choosing the correct license type. First I chose the system ID " N4S - SAP NetWeaver 2004s (DB2) " but actually what I had to choose was " NPL - SAP NetWeaver 7.02 (MaxDB) ". So I found the following thread which showed me how to unistall the wrong license by truncating the content of the table SAPLIKEY.
    Logon not possible (error in license check) for users other then SAP*
    Then I downloaded the correct license, and everything worked pretty well.
    Once again, thank you very much both of you for your help.
    Kind Regards,
    Dariyoosh

  • Forte and the STL

    Hello all,
    I have a question regarding fortes compliance with the standard regarding the STL. Does it.
    For example, just trying to compile simple code such as...
    #include <memory>
    int main(void)
    std::allocator<char> a;
    char *p;
    a.destroy(p);
    return 0;
    Will not compile (ignore that the code is bad). The error msg comes back with destroy not a member of std::allocator. Checking my trusty copy of the standard it sure should be. What is going on? There are other places that the header files do not seem to be inline with the standard ie reverse_iterator<> (one template param of type iterator).
    Thoughts?
    Any help would be great because I'm not sure I can use forte if it is missing huge chunks of the standard.
    Mike

    Thanks for the response but I'm not sure what your suggesting,
    Is it to use destroy() instead? If so then I still have the same problems-changing lots of code to support a non-conforming compiler. Or do you think that destroy() is the code that I'm using? I'm referring to std::allocator<T>::destroy() found in ISO 14882 [lib.default.allocator] (pg. 369) and in The C++ Programming Language (pg 567) Since you quoted me page numbers on the other post :)
    I know this seems trivial but there are numerious places where forte seems to use a pre-standard implementation so changing it all becomes non-trivial fast-for example, the lack of support for partial template specialization (I think) causing them to apparently use the old version of std::reverse_iterator.
    Mike

  • How to find out what are the functions supported by string class

    Hi,
    Can any one let me know how to find what are all the functions supported by the string class in standard(STL) library on solaris.
    Regards,
    Vignesh

    1. Any C++ textbook that covers the Standard Library will tell you about the standard string class. A good tutorial and reference for the entire Standard Library is "The C++ Standard Library" by Nicolai Josuttis, published by Addison Wesley.
    2. WIth Sun C++, the command
    man -s3C++ basic_string
    provides documentation for the default libCstd version of the Standard Library.
    3. You could look at the <string> header itself. I don't recommend that approach.

  • What is the field and Table for "Batch Class" and "Class Type" in QM.

    Hi All,
    What is the field and Table for "Batch Class" and "Class Type" in QM.
    Thanks,

    Hi,
      For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
    And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
    In INOB table, for batch class, you need to give 023 in KLART field and  value MCH1 in OBTAB filed.
    Please check this and let me know if this you need any more details?

  • Asset class Reports and the G/L accounts balances are not tallying

    Hi
    As per the G/L account (Recon) Furniture is showing 952428.18 and the furniture asset class report is showing 916186.25.
    Kindly tell me how to reconcile, the way to find out the differences.
    With regars
    Siva

    Hi
    As per the suggestions given i verified
    1. Asset transactions might have posted after posting depreciation for the period
    I verified this. there are no postings
    2. Depreciation terms (depreciation key, useful life ) might have changed.
    The depreciation terms are not changed
    3, Manual transactions might have posted directly to GL Accounts.
    No manual transactions are there.
    Correct the differences by
    1. Repeat the depreciation posting program (AFAB)
    2. Execute Recalculate (AFAR) and Repeat the depreciation posting program.
    I executed AFAR it is updating the G/L accounts only not the FI-AA
    3. Check the Manual entries posted in GL Account of Furniture asset class and reverse
    manual entries are not posted.
    I executed ABST. There are no errors.
    i verified the SAP Note. it is basically explaining about AUC(We don't have) reconciliation and this is the first year (3months completed after go-live)
    any other possible reconciliation is appreciable
    with regards
    Siva

  • String.class without split(String regex)

    hello,
    This is my problem:
    I am using eclipse with j2sdk1.4.2 which
    implement
    the clase String.class with
    method replaceAll(String regex, String replacement) and
    method split(String regex)
    PAth: home_j2sdk1.4.2/jre/lib/rt.jar 25.762kb
    In this way:
    String columns[] = line.split("\t");
    for (int i=0; i<columns.length; i++)
    ws.addCell(new Label(i,row,columns.replaceAll("\"","")));
    I move the code above to websphere Application Developer 5.1.2
    which use Home_Websphere/eclipse/jre/lib/rt.jar 8.827 kb
    this jar in yours String.class not contains the
    method replaceAll(String regex, String replacement) and
    method split(String regex)
    I need to find the use my code above with that methods,
    what i need to do ???
    possible,i need to find the source to String.java of j2sdk1.4.2
    which implement the methods, but where ???
    or there is another way to do it ???
    Any help is greatly appreciated.

    If websphere is supposedly 1.4 compatible, arethey
    "allowed" to leave out methods from the JFC? Not sure what the JFC is, but no, they would not be
    allowed to leave out any methods.
    JFC - Java Foundation Classes. I think they started calling what might be considered the Java Core the JFC when they first added Swing to the distribution. Maybe the term is no longer used.
    RRD-R      
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Using clobs and ORA-01704: string literal too long

    Hi,
    I am attempting to add oracle support to an existing J2ee application. The issue I am facing is the use of CLOB datatypes and the 4k string literal limitation that Oracle has.
    I have dowloaded the 10.2.0.3 thin driver and am connected to a 9i release 2 database. When I execute a statement such as the following (say the table has one varchar2 field and two clob fields
    Insert into my_table VALUES ('hi','something','pretend this string is 5000 characters')
    I still receive the error
    java.sql.SQLException: ORA-01704: string literal too long
    I have read that the version 10 drivers were supposed to address this limitation. Is there something I am missing or must I change my home grown database layer to use bind variables or clob manipulation in a separate update/insert statement.? I am trying to avoid this situation since the database layer works fine for the situation of MSSQL and text fields which have no such limitation.
    Any advice you have here is greatly appreciated.
    Thanks,
    Joe

    Hi,
    I am attempting to add oracle support to an existing J2ee application. The issue I am facing is the use of CLOB datatypes and the 4k string literal limitation that Oracle has.
    I have dowloaded the 10.2.0.3 thin driver and am connected to a 9i release 2 database. When I execute a statement such as the following (say the table has one varchar2 field and two clob fields
    Insert into my_table VALUES ('hi','something','pretend this string is 5000 characters')
    I still receive the error
    java.sql.SQLException: ORA-01704: string literal too long
    I have read that the version 10 drivers were supposed to address this limitation. Is there something I am missing or must I change my home grown database layer to use bind variables or clob manipulation in a separate update/insert statement.? I am trying to avoid this situation since the database layer works fine for the situation of MSSQL and text fields which have no such limitation.
    Any advice you have here is greatly appreciated.
    Thanks,
    Joe

  • In XI no adapters are visible RWB  and the error "AE_DETAILS_GET_ERROR"

    In XI no adapters are visible in the RWB  and I get the error "AE_DETAILS_GET_ERROR"<BR>
    It happens after a database copy from PRD to QAS.<BR>
    I tried restarting the system, and checked the SLD content. Also the cash is refreshed.<BR>
    The standard after care actions are carried out, like: SXMB_ADM, SMICM, SE06, STMS, Exchange Profile, SM59, RZ20 and RZ21, SLD content, SLDAPICUST and RZ70.
    Thanks in advance

    When in XI no adapters are visible RWB  or you get the error "AE_DETAILS_GET_ERROR" I have several steps for this:
    <P>
    Check that all adapters are running in the Visual Administrator (under services)
    <P>
    Make sure the RFC's to the SLD (SAPSLDAPI) and Exchange profile (LCRSAPRFC) are maintaint correct in SM59.<BR>
    Check this also with transaction SLDcheck
    <P>
    Make sure the correct URL is maintaint in SXMB_ADM > Integration Engine configuration<BR>
    This should be like : http://hostname:80nr/sap/xi/engine?type=entry
    Check the settings with F7.
    <P>
    Check the users and passwords in the ExchangeProfile.<BR>
    <P>
    Check the users and passwords in SAP (check for locked users with RSUSR200).<BR>
    <P>
    Check the users and passwords in the SLD if this is a standalone (check for locked users).<BR>
    Try logging on with all XI users in the useradmin of the SLD (http://hostname:5nr00/useradmin)<BR>
    Sometimes a new password must be set. You can set it directly to the old password.<BR>
    <P>
    If there is a problem that not all XI components are shown in the SLD: see note 764176
    <P>
    If there is a problem between the function module SAI_AE_DETAILS_GET (line 241 adapaterType) and the SLD
    <P>
    (class browser > tab LD > XI Adapter Service : it shows AdapterType).<BR>
    In this case create a repair in the function module by editting it and transport it to the other XI  systems.
    <P>
    Restart XI
    <P>
    Perform a cache refresh:<BR>
       http://hostname:5nr00/CPACache/refresh?mode=full<BR>
       use the XIDIRUSER user
    <P>
       http://hostname:5nr00/rwb/rtc?op=init<BR>
       use the XIRWBUSER user
    <P>
       SAP transaction SXI_CACHE > start complete cache refresh (shift F6)<BR>
    <P>
    Sometimes a restart of the service SAP XI AF messaging is nessesary.<BR>
    You can perform this restart via the Visual Administrator<BR>
    <P>
    If all does not work: check if the content is up to date.<BR>
    Sometimes after a patchlevel upgrade, the XI basis content is forgotten.<BR>
    Importing the XI Content for Software Component Version SAP Basis 6.40 SR1:<BR>
    Copy XI3_0_SAP_BASIS_6.40_<PATCHNR>_00.tpz to directory <BR>
    <P>
    /usr/sap/<SAPSID>/SYS/global/xi/repository_server/import/<BR>
    Goto the the XI Repository (Design).<BR>
    Choose ? Tools ? Import Design Objects<BR>
    Choose the file XI3_0_SAP_BASIS_6.40_<PATCHNR>_00.tpz<BR>
    Import the file
    <P>
    Check if the XI services in SICF are active.<BR>
    Activate them with : SE38 > RSXMB_ACTIVATE_ICF_SERVICES<BR>
    <P>
    Transaction SUPC (mass generation of roles) for all SAP_XI* roles.<BR>
    And perform a User comparison in transaction PFCG for all SAP_XI_* rolles<BR>
    <P>
    User comparision (via SU01 > PISUPER > dubbelclick on each roll)<BR>
    <P>
    Check the CIM content of the SLD.<BR>
    This is very intensive work.<BR>
    Check and compare with a correct running XI/PI system the content.<BR>
    SLD > Administration > Content Management<BR>
    Check and compare all components that have associasions!!!<BR>
    <P>
    Perform a complete cache refresh via URL:<BR>
    http://hostname:5nr00/rep/start/index.jsp<BR>
      Administration > Repository > Cache overview<BR>
      Administration > Directory > Cache overview<BR>
      Administration > Runtime > Cache overview<BR>
    <P>
    Refer to Note 1031321  "Self-Registration of Adapter Engine and RWB fails"
    Best regards,<BR>
    Marco
    <P>

  • The Literal String Pool...

    Hi guys...
    I wonder if someone could take the time to explain this to me?
    If we have the situation...
    String s1 = "ABC";
    String s2 = "ABC";
    if(s1==s2) {
        System.out.println("Same object");
    } else {
        System.out.println("NOT Same object");
    }Then we get;
    "Same object"
    There is only one string created and placed in the literal pool because they are identical.
    Fine.
    But, why then...
    String s1 = "ABC";
    String s2 = new String("ABC");
    if(s1==s2) {
        System.out.println("Same object");
    } else {
        System.out.println("NOT Same object");
    }... do we get;
    "NOT Same object"?
    I can definitly see how they are two different objects.
    But why arn't these identiacal with respect to the literal pool?
    I realise that I'm just going round and round in circles, but it's starting to bug me. One minute it makes sense, the next it doesn't.
    Cheers.
    Ollie Lord

    The constructor of string that you use copies the contents of the argument string to the new string and the new string is effectively a new object - it wont be in the literal pool because things like that can't be resolved in compile time.

  • How to define the boolean - String value mapping for SelectBooleanCheckBox?

    I have a SelectBooleanCheckBox component whose value is bind to a bean property of type String.
    <af:selectBooleanCheckbox text="State" label="State" id="sbc1"
    value="#{viewScope.myBean.stateText}" autoSubmit="true"/>
    The expected value for the Bean property is "Accepted" (for true) and "Rejected" (for false).
    Currently, the component return String value "true" for checked and "false" for unchecked.
    How do I set up the component so the boolean value can map to my expected String value?

    Sumit,
    Thanks for the response.
    I read that post too. However, I don't have any binding in my case because the component is bind to a bean property instead of an attribute of a view object.
    Without the binding in the page definition, I can't find a place to define the mapping between the Boolean value and the expected String value.
    Pricilla

  • Re: fortecgi and the POST method

    DAVID A. TRIGO wrote:
    Has anyone successfully used the forte CGI program using the POST
    method from a form? I've had success with PUT, but fortecgi seems to
    have a problem when the HTML form uses POST.
    I'm running Netscape Enterprise Server 3.0 on Solaris 2.5
    thanks,
    David Trigo
    Allmerica FinancialDavid --
    Can you be a little more specific about what you mean by "fortecgi
    seems to have a problem when the HTML form uses POST"? What kind of error
    messages do you get? What do they say?
    For instance, the following code works fine:
    tag code in "somepage.htm" ...
    <form method="POST" action="$$FORTE.ExecURL">
    <input type="hidden" name="ServiceName" value="SomeService">
    <input type="hidden" name="TemplateName" value="next_page.htm">
    <input type="hidden" name="HiddenParam" value="dog">
    <div align="center"><center><p>
    Type some junk here: <input type="text" name="junkTxt"
    size="20">
    </p></center></div>
    <div align="center"><center><p>
    <input type="submit" value="Submit" name="submitBtn">
    <input type="reset" value="Reset" name="resetBtn">
    </p></center></div>
    </form>
    in "next_page.htm" ...
    <?forte execute TestThis ResultSet="StuffRS">
    <table border="1" width="43%">
    <tr>
    <td width="100%"><p align="center"><strong>STUFF</strong></td>
    </tr>
    <tr>
    <td width="100%"><p align="center">$$StuffRS.firstWord</td>
    </tr>
    <tr>
    <td width="100%"><p align="center">$$StuffRS.secondWord</td>
    </tr>
    </table>
    up in Forte World, in your HandleTag method ...
    firstItem:TextData=new;
    secondItem:TextData=new;
    if Tag.Compare('TestThis', ignorecase=TRUE) = 0 then
    firstItem = request.FindNameValue('junkTxt');
    secondItem = request.FindNameValue('HiddenParam');
    rset.Add('firstWord',firstItem);
    rset.Add('secondWord',seconditem);
    The end result should be a table with 2 entries -- whatever you typed in
    the text box and the hidden string "dog"
    Dr. Daniel Marcus
    Sage IT Partners, Inc.
    353 Sacramento St., Suite 1360
    San Francisco, CA 94111
    415.392.7243 x357
    [email protected]

    This works:
    <FORM METHOD="post" ACTION="http://localhost:9704/analytics/saw.dll?" ENCTYPE="application/x-www-form-urlencoded">
    <input type=hidden name=Cmd value=Answers>
    <input type=hidden name=nqUser value=Administrator>
    <input type=hidden name=nqPassword value=Administrator>
    <input type=submit value="Answers">
    </FORM>

  • EXTENDING the string class

    ok, i know extending the string class is illegal because it's final, but i want to make an advanced string class that basically "extends" the string class and i've seen online this can be done through wrapper classes and/or composition, but i'm lost
    here is my sample code that is coming up with numerous compile time errors due to the fact that when i declare a new AdvString object, it doesn't inherit the basic string features (note: Add is a method that can add a character to a specified location in a string)
    class AdvString
         private String s;
         public AdvString(String s)
              this.s = s;
         public void Add(int pos, char ch)
              int this_len = (this.length()) + 1;
              int i;
              for(i=0;i<(this_len);i++)
                   if(pos == i)
                        this = this + ch;
                   else if(pos < i)
                        this = this + this.charAt(i-1);
                   else
                        this = this + this.charAt(i);
         public static void main(String[] args)
              AdvString s1;
              s1 = new AdvString("hello");
              char c = 'x';
              int i = 3;
              s1.Add(i,c);
              //s2 = Add(s1,i,c);
              //String s2_reversed = Reverse(s2);     
              System.out.println("s1 is: " + s1);
    any tips?

    see REString at,
    http://www.geocities.com/rmlchan/mt.html
    you will have to replicate all the String methods you are interested in, and just forward it to the String instance stored in REString or the like. it is like a conduit class and just passes most processing to the 'real' string. maybe a facade pattern.

Maybe you are looking for

  • I cannot sync my iphone with itunes.

    i cannot sync with new computer windows 7. I get a message "This iphone cannot be used because the apple mobile device service is not started. i have to start in apple device propeties in services (the startup type is automatic but the service status

  • Activating Microsoft Office 2013 Pro Plus? Volume licensing needed?

    Hello, I have unique scenario in my company where we need to install office 2013 pro plus on 10 hard drives. Each hard drive has its own windows 7 operating system. Due to security reasons, the setup consists of one computer tower (with no primary ha

  • NO_MAPPINGPROGRAM_FOUND in SOAP to ABAP_PROXY scenar

    Hi everybody. I have read many threads regarding the NO_MAPPINGPROGRAM_FOUND issue but did not find an answer. I have created a web service as an abap proxy on sap hcm system using the outside-in method. now i want to call this web service over xi so

  • Any way to tell if an Oracle 9i export is still running?

    I got an Oracle export that's been running for almost 1 days now. The export file shows a modification time of 3 am this morning and does not appear to be growing. The log file does not show any errors. I think it's stuck and I need to restart it. An

  • What tool do you use

    Hi, I have a warehouse environment with planing data. Partitioned tables by range ( date) mainly. Size is in > 1 - 6 TB. ( 9R2 and 10gR2 on AIX) Using GControl only. I'm wondering what could be the way to create subsets of the production database, fo