Undefined operator in a String calculation

Hey, i am just trying to do a simple calculation with a String, however Java tells me that the operator '>' is undefined.. I don't see why this would be..?
for (int x = 0; x <= 7; x++) {
                    for (int y = (x + 1); y <= 8; y++) {
                        if ((parts[i][x]) > (parts[i][y])) { // The undefined operator ..
                            String temp = parts[i][y];
                            parts[i][y] = parts[i][x];
                            parts[i][x] = temp;
                }Thanks for your help!

Ok, i am slowly getting there.. now, i do some calculations and store them into a variable, but i need to store each one, however the numbers have to be a float because of their decimal places, and, well, Strings don't allow that heh..
for (int i = 0; i < nasaParts; i++) {
compatability = (Float.parseFloat(parts[4])
+ Float.parseFloat(parts[i][5])
+ Float.parseFloat(parts[i][6])
+ Float.parseFloat(parts[i][7]) + Float
.parseFloat(parts[i][8]));
compatability = (compatability / 75);
compatability = (compatability * 100);
// Need to convert this variable to an array so i can bubblesort them as seen below
for (int x = 0; x < 7; x++) {
for (int y = (x + 1); y < 8; y++) {
if (compatability[x].compareTo(compatability[y]) > 0) {
String temp = compatability[y];
compatability[y] = compatability[x];
compatability[x] = temp;
Sorry, there is probably something really important i forgot to tell you..

Similar Messages

  • Java.lang.error Undefined operation name CreateStore

    I was trying to call a WS client using a UI application. However upon calling the client, I hit this issue.
    Caused by: java.lang.Error: Undefined operation name CreateStore 
    at client.inventory.webservice.ReferenceUim.getReferenceHTTPPort
    at client.inventory.ui.util.WSCaller.getReferencePort
    at caller.ui.inventorygroup.delegate.Delegate.assignStockWS
    at caller.ui.inventorygroup.delegate.Delegate.assignStock
    at caller.ui.inventorygroup.bean.Results.assignStock
    By the looks of it can be seen that the error was caused becaused the operation "CreateStore" not exists in my client. However:
    It does exists
    I did not call "CreateStore" from the UI instead I was calling "AssignStock" operation as you can see from the error trace.
    Both operations are present in my WSDL.
    <wsdl:operation name="AssignStock">
    <wsdl:input message="invws:AssignStock"/>
    <wsdl:output message="invws:AssignStock"/>
    <wsdl:fault name="InventoryFault" message="invws:InventoryFault"/>
    </wsdl:operation> 
    <wsdl:operation name="CreateStore">
    <wsdl:documentation>This operation is used to create store </wsdl:documentation>
    <wsdl:input message="invws:CreateStoreRequest" />
    <wsdl:output message="invws:CreateStoreResponse" />
    <wsdl:fault name="InventoryFault" message="invws:InventoryFault" />
    </wsdl:operation>
    Can help please to advise what was wrong on this case? Please let me know if I did not post enough information.

    Hmm. Maybe the method is not defined in that class.

  • How is the length of a string calculated in Java?  and JavaScript?

    Hi all,
    Do any of you know how the length of a string is being calculated in Java and JavaScript? For example, a regular char is just counted as 1 char, but sometimes other chars such as CR, LF, and CR LF are counted as two. I know there are differences in the way Java and JavaScript calculate the length of a string, but I can't find any sort of "rules" on those anywhere online.
    Thanks,
    Yim

    What's Unicode 4 got to do with it? 1 characteris 1
    character is 1 character.
    strings now contain (and Java chars also) is
    UTF-16 code units rather than Unicode characters
    or
    code points. Unicode characters outside the BMPare
    encoded in Java as two or more code units. So it would seem that in some cases, a single
    "character" on the screen, will require two charsto
    represent it.So... you're saying that String.length() doesn't
    account for that? That sux. I don't know. I'm just making infrerences (==WAGs) based on what DrClap said.
    I assume it would return the number of chars in the array, rather than the number of symbols (glyphs?) this translates into. But I might have it bass ackwards.

  • Logic operations on a string of bits

    Hi, I have a very simple question that I cannot seem to figure out.  I would just like to perform logic operations (AND, OR, etc.) on 2 strings of bits that are 24 bits long each, however I cannot find in the functions palette a function that acts as a binary constant.  I only see numeric constant and hex functions.  Can somone please let me know where I can find this.  For example, I would like to AND '111111111111111111111111' & '000000000000000000000000'.    
    Solved!
    Go to Solution.

    I think that these bitwise operations should work directly on strings too. Thus I wrote up this idea.  
    LabVIEW Champion . Do more with less code and in less time .

  • How can i perform operations on a string written as an algebraic expression

    i need help...how can i have a program that a string like this ---"1 + 2 + 3"---could be read as integers and you can actually come to a single result using the precedence of operations...

    epoy wrote:
    i need help...how can i have a program that a string like this ---"1 + 2 + 3"---could be read as integers and you can actually come to a single result using the precedence of operations...That's not as easy as it sounds.
    If you only have fairly simple mathematical expressions have a look at:
    - if you have JDK 1.6, see reply #7 [http://forums.sun.com/thread.jspa?threadID=5144807]
    - or if you have JDK 1.5 (or less), have a look at reply #12 from the same thread.
    If you need more fancy math functions, Google for "JEP", or "mathematical expression parser".
    Good luck.

  • How to use 'about' Contain operator for this string?

    Hi all,
    I need to search the following string in text index using about operator.
    'Advertisment for Product(Cosmetic)'
    How can I do this? If I use the following sql,
    SELECT keyword_id
    FROM keyword_text
    WHERE contains(fts_text_uc, convert('about(Advertisment for Product(Cosmetic))',
    'WE8MSWIN1252', 'WE8MSWIN1252')) > 0
    ORDER BY nlssort(text, 'NLS_SORT=EEC_EUROPA3')
    It gives following error.
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    Any body know how to write query for this?
    Thanx in advance
    T.Umapathy

    You'll need to quote the parantheses by putting backslashes in front of them:
    select text from t where contains (text, convert('about(Advertisement for Product\(Cosmetic\))', 'WE8MSWIN1252', 'WE8MSWIN1252')) > 0

  • Operations on text strings

    Hi experts,
          I have a situation wherein i have to compare the text strings and if it matches i want to copy the below lines to an internal table until it faces some other keyword. Let me explain in detail, I have an internal table like this,
    summary
        xxxxxx
        yyyyyyy
        zzzzzzz
    project
        aaaaaa
        bbbbbb
        cccccc
        dddddd
    Now i want to search for summary in the above itab and i want to copy the contents under summary(3 lines here) to another internal table until it encounters project. And I want do same for project also. Pls help me.
    Points assured
    Regards
    Tharanatha

    !!! Check this code !!!
    TYPES : BEGIN OF ty_struct ,
              sv_string TYPE string,
            END OF ty_struct.
    DATA : itab_struct1 TYPE TABLE OF ty_struct,
           wa_struct1 LIKE LINE OF itab_struct1,
           itab_struct2 TYPE TABLE OF ty_struct,
           wa_struct2 LIKE LINE OF itab_struct2.
            wa_struct1-sv_string = 'efghijkl'.
            APPEND wa_struct1 to itab_struct1.
            wa_struct1-sv_string = 'hmgkdhfl'.
            APPEND wa_struct1 to itab_struct1.
            wa_struct1-sv_string = 'summary'.
            APPEND wa_struct1 to itab_struct1.
            wa_struct1-sv_string = 'xxxxxxx'.
            APPEND wa_struct1 to itab_struct1.
            wa_struct1-sv_string = 'yyyyyyy'.
            APPEND wa_struct1 to itab_struct1.
            wa_struct1-sv_string = 'zzzzzzz'.
            APPEND wa_struct1 to itab_struct1.
            wa_struct1-sv_string = 'project'.
            APPEND wa_struct1 to itab_struct1.
            wa_struct1-sv_string = 'aaaaaaa'.
            APPEND wa_struct1 to itab_struct1.
    DATA : lv_string1 TYPE string,
           lv_string2 like lv_string1,
           summary_index TYPE I,
           project_index TYPE I.
    lv_string1 = 'summary'.
    lv_string2 = 'project'.
    READ TABLE itab_struct1 INTO wa_struct1 WITH TABLE KEY sv_string = 'summary'.
    IF sy-subrc eq 0.
      summary_index = sy-tabix.
      summary_index = summary_index + 1.
    ENDIF.
    READ TABLE itab_struct1 INTO wa_struct1 WITH TABLE KEY sv_string = 'project'.
    IF sy-subrc eq 0.
      project_index = sy-tabix.
      project_index = project_index - 1.
    ENDIF.
            LOOP AT itab_struct1 INTO wa_struct1  FROM summary_index to project_index.
              APPEND wa_struct1 to itab_struct2.
            ENDLOOP.
            WRITE : 'Done'.
    <b>Reward Points If Useful</b>

  • If loop giving error???

    Can anyone tell why is this throwing error??says Operator is undefined for String???
    if (name.equalsIgnoreCase("RB_Smart" || "CRI_NRI1_468x60"))

    Can anyone tell why is this throwing error??says
    Operator is undefined for String???
    if (name.equalsIgnoreCase("RB_Smart" ||
    "CRI_NRI1_468x60"))
    If you are using || as "OR", that is an undefined operator for a String and then what you need to do is what has already been suggested, but I was wondering if you are using it as a concatenation operator (since that is what it is in other languages or in SQL) in which case, you would need to use "+" instead....

  • Post Expression help

    does anyone know any sites that can give me the source code for PostFix expression?

    Ok, here is one that I had to do for school. It may have different data structure files because I had to use the library that was from my text book. Hope this helps.
    import java.lang.Math;
    import javax.swing.*;
    import java.io.*;
    import ds.util.ALStack;
    import java.util.StringTokenizer;
    import java.text.DecimalFormat;
    public class PostFix
          * This program will read in a string from prompt the user for a file
          * that they would like to read into the program.  If the file is
          * not there than an error will be displayed and the user will
          * be allowed to try again.  If correct, the program will use the
          * file and evaluate the postfix expressions.  It will give error
          * feedback or the correct answer.  It will be displayed by creating
          * a separate text file with the correct answers and error feedback.
         public static void main(String[] args) throws IOException, Exception
              // used to keep track of the file name and equations
              String fileName, outputFileName= "", tempEquation;
              // used to make sure the file is valid in the folder
              boolean goodFile = false;
              // loops until good file is found
              while(!goodFile)
                   //prompts the user for file name
                   fileName = JOptionPane.showInputDialog("Enter the file name: ");
                   try{
                        // reads in the file name and lines
                        FileReader freader = new FileReader(fileName);
                        // Checks for the file name and makes the results consistent
                        if(fileName.toUpperCase().equals("POSTFIX1.TXT"))
                             outputFileName = "Result1.txt";
                        if(fileName.toUpperCase().equals("POSTFIX2.TXT"))
                             outputFileName = "Result2.txt";               
                        if(fileName.toUpperCase().equals("POSTFIX3.TXT"))
                             outputFileName = "Result3.txt";
                        FileWriter fwriter = new FileWriter(outputFileName);
                        PrintWriter outputFile = new PrintWriter(fwriter);
                        BufferedReader inputFile = new BufferedReader(freader);
                        tempEquation = inputFile.readLine();
                        goodFile = true;
                        // loops through each file line (equation)
                        while(tempEquation != null)
                             System.out.println(Calculation(tempEquation));
                             outputFile.println(Calculation(tempEquation));
                             tempEquation = inputFile.readLine();
                        outputFile.close();
                   // catches an invalid file name
                   catch(IOException e)
                        JOptionPane.showMessageDialog(null, "ERROR");
          * This method will take a string (s) and tokenize it using the delimiters
          * ((space) * / ^).  If the operator is found than the method will
          * pop() two numbers and evaluate the sub expression then push() it
          * back into the stack.  If the methods finds a number it will simply
          * just push() it onto the stack.  After the loop the method pops the
          * last remaining item in the stack and returns the answer.  If the stack
          * recognizes an operator and the stack size is less than two at any time
          * then it will report error that there is not enough operands.  If the
          * stack does not recognize and operators and cannot parse the token as
          * a double than it will report that there is an illegal operand/operator.   
         public static String Calculation(String s)
              // create the stack
              ALStack <Double> theStack = new ALStack <Double>();
              // create the variables for calculation
              double operand1, operand2, answer = 0.0;
              // create token to be read
              String token = "";
              // create tokenizer and delimiters
              StringTokenizer strTokenizer = new StringTokenizer(s, " */^", true);
              // decimal format for proper format.  (Three decimal places)
              DecimalFormat formatter = new DecimalFormat("#,##0.000");
              // loops through until there is no more tokens
              while(strTokenizer.hasMoreTokens())
                       token = strTokenizer.nextToken();
                        if(token.equals("+"))
                             if(theStack.size() < 2)
                                  return s + " = error: missing operand";
                             operand1 = theStack.pop();
                             operand2 = theStack.pop();
                             answer = operand2 + operand1;
                             theStack.push(answer);
                        else if(token.equals("-"))
                             if(theStack.size() < 2)
                                  return s + " = error: missing operand";
                             operand1 = theStack.pop();
                             operand2 = theStack.pop();
                             answer = operand2 - operand1;
                             theStack.push(answer);
                        else if(token.equals("*"))
                             if(theStack.size() < 2)
                                  return s + " = error: missing operand";
                             operand1 = theStack.pop();
                             operand2 = theStack.pop();
                             answer = operand2 * operand1;
                             theStack.push(answer);
                        else if(token.equals("/"))
                             if(theStack.size() < 2)
                                  return s + " = error: missing operand";
                             operand1 = theStack.pop();
                             operand2 = theStack.pop();
                             if(operand1 == 0)
                                  return s + " = error: division by zero";
                             answer = operand2 / operand1;
                             theStack.push(answer);
                        else if(token.equals("^"))
                             if(theStack.size() < 2)
                                  return s + " = error: missing operand";
                             operand1 = theStack.pop();
                             operand2 = theStack.pop();
                             answer = Math.pow(operand2, operand1);
                             theStack.push(answer);
                        // if white space than nothing happens
                        else if(token.equals(" "))
                        else
                             try
                                  theStack.push(Double.parseDouble(token));
                             catch(Exception e)
                                  return s + " = error: illegal operand";
              // returns error because only the answer should be left
              if(theStack.size() > 1)
                   return s + " = error: too many operands";
              // returns a correct answer following the original equation
              return s + " = " + formatter.format(theStack.pop());
    }

  • Linker error in c++ -- undefined reference to `vtable for String'

    While linking cpp file : wrapGetRndAmt.cpp which is below:
    wrapGetRndAmt.cpp .....
    #include <iostream.h>
    #include "archinfo.h"
    #include "syscodes.h"
    #include "currency_directory.h"
    extern MESSAGE_TYPE SetMemMarker();
    extern MESSAGE_TYPE FreeMemBlock();
    extern "C" int dm_login();
    extern "C" int dm_commit();
    extern "C" int dm_rollback();
    //extern MESSAGE_ARRAY *messageArray;
    struct tpsvcInfo *funcAry;
    /* Wrapper function to apply rounding rule (to the amount)*/
    int wrapGetRndAmt(char * ou_id, char * currency , double& amount)
    SetMemMarker();
    int rndng_rule=0;
    double rndng_val=0.0;
    double l_rtrnCode=0.0;
    double l_tmp=0.0;
    String * s_curr = new String(currency); ///This is the call of the String
    The error coming is:
    /home/gcrmdev/3.5/B/lib/h/xlstring.h:54: undefined reference to `vtable for String'
    /home/gcrmdev/3.5/B/lib/h/xlstring.h:54: undefined reference to `vtable for String'
    Header file is below:
    xlstring.h
    #ifdef SOLARIS
    11 #include "mystring.h"
    12 #else
    13 #include <string.h>
    14 #endif
    15 #include "xdr.h"
    16 #include <cppdefs.h>
    17 /* added by prabhat */
    18 #include "bglb.h"
    19 /* added by prabhat ends */
    20
    21 /*
    22 *-----------------------------------------------------------------------------
    23 * CLASS : String
    24 * PURPOSE : For performing all string operation
    25 * BASE CLASS : Object
    26 * PARENT CLASS : Object
    27 * COMMENT :
    28 * HISTORY :
    29 *-----------------------------------------------------------------------------
    30 */
    31 class String : public CppObj {
    32 int len;
    33 char *s;
    34
    35 public:
    36
    37 int operator == (const String &s1){ return strcmp(s,s1.s) ? 0 : 1;}
    38 int operator==(const Object &o)
    39 {
    40 return ( strcmp ( Type() , o.Type() ) == 0 )
    41 ? operator ==( ( const String &)o)
    42 : 0 ;
    43 }
    44 int operator != (const String &s1){ return strcmp(s,s1.s) ? 1 : 0;}
    45 int operator < (const String &s1){ return ( strcmp(s,s1.s) < 0 ) ? 1 : 0;}
    46 int operator <= (const String &s1){ return ( strcmp(s,s1.s) <= 0 ) ? 1 : 0;}
    47 int operator > (const String &s1){ return ( strcmp(s,s1.s) > 0 ) ? 1 : 0;}
    48 int operator >= (const String &s1){ return ( strcmp(s,s1.s) >= 0 ) ? 1 : 0;}
    49 operator String *() const { return new String( s ); }
    50 /* INT4 Length( INT4 & l ) const { l = len; return len; } */
    51 MESSAGE_TYPE Length( INT4 & l ) const { l = len; return XL_SUCCESS; }
    52 INT4 Length() const { return len; }
    53 /* DelhiPuneSync Changes : to take care of memAlloc fail */
    54 String( char const *s1) {
    55 if ( s1 == NULL) return;
    56 s = (char *)memAlloc((len = strlen(s1))+1);
    57 if (s != NULL)
    58 strcpy(s,s1);
    59 }
    Can someone help why this error is coming??
    Thanks is advance.
    Arabinda

    Hi,
    This is often the result of failing to include the orasqlX.lib file as input to the linker.
    I have a walkthrough of integrating Pro*C with Visual Studio here:
    http://oradim.blogspot.com/2009/05/oracle-proc-on-windows-with-express.html
    Maybe that will be of some help.
    How are you linking?
    Regards,
    Mark

  • Core dump(abort) due to double free at STL string == operator,with mtmalloc

    We have a probrem; our program crashes due to SIGABRT.
    Our program is multithreaded (about 40 thread total),and uses libmtmalloc for more performance.
    By stack trace , when handling of '==' operator of STL string ,
    free() and abort() is called like this:
    (dbx) lwp l@25
    Current function is WorkSessionCollection::findBySessionId
    207 if (session->getSessionId() == sessionId)
    t@null (l@25) stopped in (unknown) at 0xfedbd7fc
    0xfedbd7fc: PROCEDURELINKAGE_TABLE_+0x0820 [PLT]: bcc,a,pt %icc,_PROCEDURE_LINKAGE_TABLE_+0x830 [PLT] ! 0xfedbd80c
    (dbx) where
    [1] 0xfedbd7fc(0x6, 0x0, 0xfeda1d04, 0x42568, 0xfede4280, 0x6), at 0xfedbd7fb
    [2] getopt(0x0, 0x1, 0xff39403c, 0xa652c, 0xfede7298, 0x0), at 0xfed3de58
    [3] free(0x3bc6e00, 0x3bc7020, 0x0, 0x10, 0x0, 0x10000000), at 0xff380b00
    [4] libC_errors::get_msg(0x3bc7020, 0xfffb, 0x0, 0xffffffff, 0xa, 0xfc00), at 0xfeef62e0
    [5] std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string(0x294, 0x0, 0x3bc7020, 0x3bc7048, 0x3bc7048, 0xf82fa638), at 0xfdb4cccc
    =>[6] WorkSessionCollection::findBySessionId(this = 0xbe4750, msgId = CLASS), line 207 in "WorkSessionCollection.cpp"
    [7] BusinessProxy::process(this = 0xc18ff8, message = CLASS), line 159 in "BusinessProxy.cpp"
    [8] TcpProtocolControl::handleMessage(this = 0x3eaff28, message = 0x3f16270), line 221 in "ProtocolControl.cpp"
    [9] SocketHandler::handle_input(this = 0x3871860, _ARG2 = 200), line 229 in "SocketHandler.cpp"
    [10] 0xff2e6c90(0x2aa44b8, 0xf82fbc28, 0x0, 0x0, 0x1, 0x0), at 0xff2e6c8f
    [11] 0xff2e6640(0x2aa44b8, 0xf82fbcb0, 0xf82fbd2c, 0x0, 0x0, 0x0), at 0xff2e663f
    [12] 0xff2e61ac(0x2aa44b8, 0x0, 0xf82fbd2c, 0x0, 0x0, 0x0), at 0xff2e61ab
    [13] 0xff2e5e10(0x2aa44b8, 0x0, 0xfede8bc0, 0xfda95800, 0x1e99410, 0x0), at 0xff2e5e0f
    [14] 0xff2af7c0(0x281fda0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xff2af7bf
    [15] event_loop(arg = 0x281fda0), line 40 in "FrontEnd.cpp"
    [16] 0xff2d4610(0x1ea82b8, 0x8f0798, 0x0, 0x0, 0x0, 0x0), at 0xff2d460f
    [17] 0xff2d44ec(0x1ea82b8, 0x0, 0x0, 0x0, 0x0, 0x1), at 0xff2d44eb
    [18] 0xff21c590(0x1ea82b8, 0xf82fc000, 0x0, 0x0, 0x7e3f9c, 0x1), at 0xff21c58f
    (dbx) list
    207 if (session->getSessionId() == sessionId)
    208 break; // for loop
    209 session = NULL;
    210 }
    211
    (dbx) print sessionId
    dbx: cannot access address 0xfdf68f10
    (dbx) print *session
    dbx: cannot access address 0xfdf68f10
    and here is the compiler environment:
    versionMachine hardware: sun4u
    OS version: 5.9
    Processor type: sparc
    Hardware: SUNW,Sun-Blade-1500
    The following components are installed on your system:
    Sun Studio 11
    Sun Studio 11 C Compiler
    Sun Studio 11 C++ Compiler
    Sun Studio 11 Tools.h++ 7.1
    Sun Studio 11 C++ Standard 64-bit Class Library
    Sun Studio 11 Garbage Collector
    Sun Studio 11 Fortran 95
    Sun Studio 11 Debugging Tools (including dbx)
    Sun Studio 11 IDE
    Sun Studio 11 Debugger GUI
    Sun Studio 11 Performance Analyzer (including collect, ...)
    Sun Studio 11 X-Designer
    Sun Studio 11 VIM editor
    Sun Studio 11 XEmacs editor
    Sun Studio 11 Native Connector Tool
    Sun Studio 11 LockLint
    Sun Studio 11 Building Software (including dmake)
    Sun Studio 11 Documentation Set
    version of "/apps/studio_11/SUNWspro/bin/./../prod/bin/../../bin/cc": Sun C 5.8 Patch 121015-04 2007/01/10
    version of "/apps/studio_11/SUNWspro/bin/./../prod/bin/../../bin/CC": Sun C++ 5.8 Patch 121017-10 2007/02/21
    version of "/apps/studio_11/SUNWspro/bin/./../prod/bin/../../bin/f90": Sun Fortran 95 8.2 2005/10/13
    version of "/apps/studio_11/SUNWspro/bin/./../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.5 2005/10/13
    version of "/apps/studio_11/SUNWspro/bin/./../prod/bin/../../bin/analyzer": Sun Performance Analyzer 7.5 2005/10/13
    version of "/apps/studio_11/SUNWspro/bin/./../prod/bin/../../bin/dmake": Sun Distributed Make 7.7 2005/10/13
    could you please help us?
    Thanks in advance.

    This kind of crash can be due to referencing a string object after its lifetime has ended, or due to heap corruption.
    The most common sources of heap corruption are
    - using an invalid pointer
    - uninitialized
    - dangling (points to object that no longer exists)
    - incremented or decremented outside object bounds
    - points other than to an object start address
    - deleting an object more than once
    - reading or writing outside object bounds
    - failing to guard a shared object in multithreaded code
    - race condition in multithreaded code
    The program failure usually occurs far away in space and time from the actual error condition.
    You might also have run into a bug in the compiler or in system libraries. (You do not have the current Studio 11 patches.)
    First, try running under the dbx with Run-Time Checking enabled:
    % dbx myprogram
    (dbx) check -all
    (dbx) run
    RTC will report many of the error conditions listed above.
    Sun Studio 12 has a thread analyzer, which can help find race conditions in multithreaded code. You could download Studio 12 and try it out. If you do not need to run on Solaris 8, you can upgrade to Studio 12.
    Whether you stay with Studio 11 or upgrade to Studio 12, you can get all the current patches here:
    http://developers.sun.com/sunstudio/downloads/patches/
    At minumum, get the current C++ compiler patch, the Common compiler patch, and the C++ Runtime LIbrary patch.
    By following the links to the patches, you can see a list of bugs fixed since the patch levels you currently have.

  • Ild: (Performing full relink) internal free space in undefined symbol error

    I am using Sun Sparc C++ 5.4 compiler to compile some code.
    I had some issues with Makefile which I have resolved successfully for test program, which has only one string and print statetments.
    When I compile my program error_log.C program using Makefile, I am geting following errors.
    Same file for test program works ok.
    Any suggestions/pointers etc are much appreciated.
    Thanks
    Ravi
    ERRORS:
    ==================================================================================
    /opt/SUNWspro/bin/CC -g -compat=4 -V - YP,/ford/thishost/u/rbhave/mqrouter/lib:/usr/lib:/opt/SUNWspro/prod/lib -I/ford/thishost/u/rbhave/mqrouter/include -c error_log.c
    CC: Forte Developer 7 C++ 5.4 2002/03/09
    ccfe: Forte Developer 7 C++ 5.4 2002/03/09
    /opt/SUNWspro/bin/CC -g -compat=4 -V -YP,/ford/thishost/u/rbhave/mqrouter/lib:/usr/lib:/opt/SUNWspro/prod/lib -I/ford/thishost/u/rbhave/mqrouter/include error_log.o -o error_log -lXm -lXt -lX11 -lstring -lipc -lutils
    CC: Forte Developer 7 C++ 5.4 2002/03/09
    CClink: Forte Developer 7 C++ 5.4 2002/03/09
    CC: Forte Developer 7 C++ 5.4 2002/03/09
    ild: (Performing full relink) internal free space in output file exhausted (sections)
    /opt/SUNWspro/bin/../prod/bin/c++filt: Forte Developer 7 C++ 5.4 2002/03/09
    ild: Forte Developer 7 Incremental Linker 4.0 2002/03/09
    ild: Forte Developer 7 Incremental Linker 4.0 2002/03/09
    ild: (undefined symbol) ErrLog_c::ErrLog_c(void) -- referenced in the text segment of error_log.o
    ild: (undefined symbol) ErrLog_c::SetFileOutput(char*) -- referenced in the text segment of error_log.o
    ild: (undefined symbol) operator <<(ostream&, const String&) -- referenced in the text segment of /ford/thishost/u/rbhave/mqrouter/lib/libutils.a(ini_file.o)
    ild: (undefined symbol) operator <<(ostream&, const String&) -- referenced in the text segment of /ford/thishost/u/rbhave/mqrouter/lib/libutils.a(datetime.o)
    ild: (undefined symbol) IsSocketUsed(const char*, const char*) -- referenced in the text segment of /ford/thishost/u/rbhave/mqrouter/lib/libipc.a(socket_recv.o)
    ild: (undefined symbol) IsSocketUsed(const char*, const char*) -- referenced in the text segment of error_log.o
    ild: (undefined symbol) operator >>(istream&, String&) -- referenced in the text segment of /ford/thishost/u/rbhave/mqrouter/lib/libutils.a(general.o)
    ild: (undefined symbol) setsockopt -- referenced in the text segment of /ford/thishost/u/rbhave/mqrouter/lib/libipc.a(socket_recv.o)
    ild: (undefined symbol) recv -- referenced in the text segment of /ford/thishost/u/rbhave/mqrouter/lib/libipc.a(socket_recv.o)
    ild: (undefined symbol) bind -- referenced in the text segment of /ford/thishost/u/rbhave/mqrouter/lib/libipc.a(socket_recv.o)
    ild: (undefined symbol) socket -- referenced in the text segment of /ford/thishost/u/rbhave/mqrouter/lib/libipc.a(socket_dgram.o)
    ild: (undefined symbol) ErrLog_c::Rename(const ErrLogMesg_t&) -- referenced in the text segment of error_log.o
    ild: (undefined symbol) sendto -- referenced in the text segment of /ford/thishost/u/rbhave/mqrouter/lib/libipc.a(socket_dgram.o)
    ild: (undefined symbol) ErrLog_c::~ErrLog_c(void) -- referenced in the text segment of error_log.o
    *** Error code 5
    make: Fatal error: Command failed for target `error_log'
    ==================================================================================

    Try rebuilding with -xild=off to eliminate ild from the process.
    If it still doesn't link, delete the most recent .o files and try again to see how it goes.
    - Rose

  • Doubt about  a null value assigned to a String variable

    Hi,
    I have a doubt about a behavior when assigning a null value to a string variable and then seeing the output, the code is the next one:
    public static void main(String[] args) {
            String total = null;
            System.out.println(total);
            total = total+"one";
            System.out.println(total);
    }the doubt comes when i see the output, the output i get is this:
    null
    nulloneA variable with null value means it does not contains a reference to an object in memory, so the question is why the null is printed when i concatenate the total variable which has a null value with the string "one".
    Is the null value converted to string ??
    Please clarify
    Regards and thanks!
    Carlos

    null is a keyword to inform compiler that the reference contain nothingNo. 'null' is not a keyword, it is a literal. Beyond that the compiler doesn't care. It has a runtime value as well.
    total contains null value means it does not have memory,No, it means it refers to nothing, as opposed to referring to an object.
    for representation purpose it contain "null"No. println(String) has special behaviour if the argument is null. This is documented and has already been described above. Your handwaving about 'for representation purpose' is meaningless. The compiler and the JVM don't know the purpose of the code.
    e.g. this keyword shows a hash value instead of memory addressNo it doesn't: it depends entirely on the actual class of the object referred to by 'this', and specifically what its toString() method does.
    similarly "total" maps null as a literal.Completely meaningless. "total" doesn't 'map' anything, it is just a literal. The behaviour you describe is a property of the string concatenation operator, not of string literals.
    I hope you can understand this.Nobody could understand it. It is compete nonsense. The correct answer has already been given. Please read the thread before you contribute.

  • Application not appearing in Calculation Manager

    Dear All,
    I have created a new application on test environment, but it is not visible in Calculation Manager.
    Checked the application process, its the same i use to create applications previously.
    I have done the same for creating applications on multiple times with no issues. Any thoughts what can go wrong
    Note: A few days back the Calculation Manager stopped responding when we try to open the calculation manager through workspace we raised an Sr, Oracle support suggested to re-deploy the
    calculation manager configuration with database schema and increased the jvm xms size from Operating System Registry for calculation manager.
    Regards
    Ace

    Deployed with Default Application Group, And For Rules its deployed with calculation manager,
    we have done these all steps, but when we open calc manager to import business rules in new created application, it doesn't show us our new created application.
    While Planning shows newly created application.
    Regards.
    Ace

  • Doubt in String handling...

    Hi
    Here i have a code snippet.
    public class StringComp
         public static void main(String[] args)
              String a = "abc";
              String b = "def";
              String c = "abcdef";
              String d = "xyz";
              String e = "xyz";
              a+=b;
              System.out.println("Value of a = :" + a);
              System.out.println("Value of c = :" + c);
              System.out.println("Value of d = :" + d);
              System.out.println("Value of e = :" + e);
              if(a==c)
                   System.out.println("TRUE");
              else
                   System.out.println("FALSE");
              if(e==d)
                   System.out.println("TRUE");
              else
                   System.out.println("FALSE");
    if i compile and run this code snippet i am getting the result as
    Value of a = :abcdef
    Value of c = :abcdef
    Value of d = :xyz
    Value of e = :xyz
    FALSE
    TRUE
    here i add the value of a and b to a. so a=abcdef, value of c also abcdef.
    but if i check (a==c) the result is False why??
    Can anyone tell me how the string is handled in java (behind the scene) where they are stored ? and how the == operator works on String?
    thanks in advance
    chithrakumar

    Strings are pooled. This means that if you writeString a = "1";
    String b = "1";you have a good chance that a == b.
    For new Strings (as "abc" + "def" returns), the pool is bypassed. This explains why "abc + "def" != "abcdef". To make sure a String is pooled, use intern (). ("abc" + "def").intern () == "abcdef", guaranteed.
    This is all very opaque behaviour and you shouldn't really rely on this in your code, except in very rare circumstances (extreme performance concerns or if you're stuck with an identity hash map [not that that's very likely]).

Maybe you are looking for

  • Delete a file from a NAS

    HI I have NAS connected to my system. Part of it holds many wav files that are 'linked' to my iTunes Library. On the last iTunes/Lion upgrade(?) iTunes did a bit of a runaway option and started trying to move all my wav files into the iTunes music fo

  • Can't unlock a folder on my external hard drive.

    1.) I have an old Seagate drive that just now will not let me access some data that is stored there. When I try to access the Seagate the Mac says "You can still open or copy files on the disk, but you can not save changes to the disk. Back up the da

  • Vendor Name not appearing in NWDS

    Hi, We have successfully installed and made necessary post-installation steps, configurations in our NWDI system. Product, software unit, Software component were created in the SLD and Name Prefixes were also defined. I have also created users for de

  • Problem on CachedRowset with RMI

    Hello, I wanted to transfer some database tables to another machine, thus I used RMI. I found there was a class called CachedRowset which could be serialized. So, I decided to use this. However, when I wrote the following code in an rmi method and ra

  • Camileo H10 - What SD card can I use?

    Hi anyone, I am new to Toshiba products. I have just bought one of your movie cameras ( Camileo H10 ) and i cannot find any help online. The questions i wanted to ask were, 1.) What class (for speed) of SD card can the camera use. 2.) Is there somewh