Control characters handling on sun studio

We have an application on 32 bit Solaris 8 compiled with g++ 3.3.4.
It deals with Messages with SOH(^A) character as a delimiter between different fields.
Same program when compiled with g++ 3.4.3 or Sun CC on 64 bit Solaris 10 machine in 32 bit mode (g++ -m32 xyz.cpp) does not recognize the control character
as the call to string.find fails. Whereas the above binary which was compiled on 32 bit machine executed on 64 bit box it still runs fine.
In original code we have defined static const char ch_SOH = '\001'.
any clue why this can happen or any change in compiler could trigger this?
Any inputs on this will be highly appreciated.

#include <iostream>
#include <string>
using namespace std;
int main()
const char ch = '\001';
const string ch2 = "^A";
string str("[SOCKET2.0^A0000000224^Al^AUXHK_AGY^");
size_t tsz = str.find(ch);
if (tsz != string::npos)
cout<<" Location with char find is : "<<tsz<<endl;
else cout <<" Not Recognized"<<endl;
tsz = str.find(ch2);
if (tsz != string::npos)
cout<<" Location is : "<<tsz<<endl;
if (ch=='^A')
cout<< " Old chars and new chars are same"<<endl;
else
cout<< " Old chars and new chars are not same"<<endl;
return 1;
}

Similar Messages

  • How are control characters handled in keyboard layouts?

    Warmup question: What exactly is the difference between an "input method" and a "keyboard layout"?
    Real question: What exactly happens when I switch keyboard layouts and enter control characters, and how can I change it?
    I'll use as an example Hebrew-QWERTY and the "a" key. That key maps to Hebrew character aleph or א. What happens when I press control-a?
    The Emacs text editor claims to receive a control-aleph, saying "^א is undefined". This is a very strange character: א with bit 26 set. It doesn't even have a Unicode codepoint.
    TextEdit normally responds to control-a by moving to the start of the line. It doesn't do so with Hebrew-QWERTY in force, hence it's not getting a control-a. I have no idea what it is getting.
    The goal, by the way, is to create a keyboard layout that does NOT change the mapping of control characters. I don't want control-a to send a useless control-aleph; I want it to send control-a as usual. But if I examine the Hebrew-QWERTY layout in (say) Ukelele, it knows nothing of control-aleph and claims to map control-a to itself as usual. Therefore something else is producing these weird control characters. Who?
    If I'm hopelessly confused, please don't hesitate to say so. I wouldn't be surprised to learn that I'm missing something simple but crucial.

    Tom Gewecke wrote:
    Regarding control characters, you might try posting a query on the Ukelele page -- the fellow who makes that app knows a lot about how all this works.
    Layout vs Method: Thanks for the clarification.
    Ukelele: I've already posted to the Ukelele-users Google group, thus:
    http://groups.google.com/group/ukelele-users/browse_thread/thread/b9c8aadfd6969c 15?hl=en
    If that's what you mean by "the Ukelele page", I'm all set (assuming he replies). If you meant somewhere else, please let me know. I didn't find an Apple discussion forum specifically for Ukelele.

  • Control Sun Studio 12 log files

    Hi everybody. I'm new using the Sun Studio IDE. I'm not a developer, i'm a system administrator.
    What I would like to know is how to control the size of the Sun Studio log file. For example, I have some users with the following files:
    ~/.sunstudio/12.0-SunOS-sparc/var/log
    ls -lah
    total 5227472
    drwxrwxr-x 2 username groupname 4.0K Mar 4 11:52 .
    drwxrwxr-x 5 username groupname 4.0K Mar 4 10:38 ..
    -rw-rw-r-- 1 username groupname 283M Mar 4 11:55 messages.log
    -rw-rw-r-- 1 username groupname 1.2G Mar 4 11:52 messages.log.1
    -rw-rw-r-- 1 username groupname 1002M Mar 4 10:16 messages.log.2
    tail messages.log
    at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.getObject(KeyBasedUID.java:37)
    at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoNamespace(UIDCsmConverter.java:81)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase._getGlobalNamespace(ProjectBase.java:1155)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getGlobalNamespace(ProjectBase.java:154)
    at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:48)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.render(FileImpl.java:295)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:470)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.parse(FileImpl.java:437)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:239)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:66)
    Why these files are so big? How can I control the size of the files? When the rotation is done? Can be compressed after rotation like "logrotate"?
    Thanks in advance.

    Hi everybody. I'm new using the Sun Studio IDE. I'm not a developer, i'm a system administrator.
    What I would like to know is how to control the size of the Sun Studio log file. For example, I have some users with the following files:
    ~/.sunstudio/12.0-SunOS-sparc/var/log
    ls -lah
    total 5227472
    drwxrwxr-x 2 username groupname 4.0K Mar 4 11:52 .
    drwxrwxr-x 5 username groupname 4.0K Mar 4 10:38 ..
    -rw-rw-r-- 1 username groupname 283M Mar 4 11:55 messages.log
    -rw-rw-r-- 1 username groupname 1.2G Mar 4 11:52 messages.log.1
    -rw-rw-r-- 1 username groupname 1002M Mar 4 10:16 messages.log.2
    tail messages.log
    at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.getObject(KeyBasedUID.java:37)
    at org.netbeans.modules.cnd.modelimpl.uid.UIDCsmConverter.UIDtoNamespace(UIDCsmConverter.java:81)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase._getGlobalNamespace(ProjectBase.java:1155)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getGlobalNamespace(ProjectBase.java:154)
    at org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:48)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.render(FileImpl.java:295)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:470)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.parse(FileImpl.java:437)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:239)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:66)
    Why these files are so big? How can I control the size of the files? When the rotation is done? Can be compressed after rotation like "logrotate"?
    Thanks in advance.

  • General and specific questions on the applicability of Sun Studio 11

    Hi. In an e-mail letter from Sun Microsystems I read about Sun Studio 11 to "utilize its record-setting parallelizing compilers." From this message I was attracted by the possibility of adding something like parallel processing, not by changing the processor (hardware), but by adding Sun-Studio-11 software to a Linux operating system. Now I already have a Fortran compiler, the Intel Fortran Compiler for Linux, which is free and can handle Cray-style pointers, a feature hard to find in a free Fortran compiler.
    1a. So for the most basic of questions, without having parallel-processing hardware, just an ordinary processor [a 1-GigaHertz (GHz) Advanced MicroDevices Duron central processing unit, in my case], is it possible to have parallel processing and thereby increase one's computing speed by installing Sun Studio 11 in a Linux operating system?
    1b. If so, by what factor could one expect the speed of computation to increase over not having Sun Studio 11 installed? (If the gain in speed is dependent on the type of computations being performed, I imagine possibly using a Fortran code to perform numerical calculations using and perhaps searching for minima or maxima in a two-or-more-dimensional surface. So please give me an idea of the sort of gain in speed one could expect for these two types of activites, calculations using formulas and searches for minima and maxima among already-computed quantities.)
    1c. Again if so, how could one just by adding software have parallel processing without two or more hardware processors? In other words, what is the basic working principle of the software to make the simultaneous performance of multiple tasks (multitasking or parallel processing) possible?
    2a. Does Sun Studio 11 include a Fortan compiler?
    2b. If so, must one use it to have parallel processing with Sun Studio 11?
    2c. Or will the Intel Fortran Compiler for Linux work with Sun Studio 11 to have a parallel processing capability?
    Concerning hardware requirements I read that Sun Studio 11 requires a minimum of 512 MegaBytes (MB) of memory, presumably Random Access Memory (RAM). My Hewlett-Packard, ZE1110, Pavilion, notebook computer has 256 MB of RAM, but is expandable to a maximum of 512 MB of RAM. So in this respect it is in principle at least technically possible for me to meet the minimum system requirement for Sun Studio 11 with my computer, if I choose to increase its RAM. Somehow accommodating the cost of such a RAM addition, including whether one may have to buy two, matching, 256-MB RAM modules or just presumably one additional 256-RAM module, is another requirement. But before spending money for such an upgrade, one should first thoroughly investigate other matters to determine if other things are going to work and to determine what gain, if any, one could expect in computing speed with Sun Studio 11 and an additional 256 MB of RAM; then decide, based on such data, whether the purchase is personally worth the money or not. That's one motivation behind this posting; another motivation is for me to learn some things.
    Lastly I would like to here thank whoever was thoughtful enough to provide the Sun Download Manager (SDM) 2.0, which allows the pausing and resumption of the 207-MB download studio11-lin-x86.tar.bz2 for the Linux version of the Sun Studio 11! Using a slow, dialup, Internet connection like mine having a maximum speed of 28.8 kilobits/second, this makes it possible to download that file over a number of Internet sessions instead of having to have an uninterrupted, 19-or-more-hour Internet session. Besides the invconvenience of tying up one's telephone line for that long a time, it might be even be difficult to have such an uninterrupted Internet session for that long a time. I have at least started such a download using the SDM 2.0 potentially over multiple Internet sessions. Whether or not I carry it out to completion could depend on whether everything looks good with Sun Studio 11 for my particular situation. Thanks in advance for your help.

    Thanks for both of your postings here. I'm mostly trying to learn something here.
    From Maxim Kartashev: "For example, if one thread (or process, or lwp) frequently performs an I/O operation, then the other thread (process, lwp) can utilize processor resources to perform, say, some computations while first one waits for operation to complete."
    I think I might understand what you meant above. I guess lwp in the above context stands for light-weight process. And I think you may be talking about a potential gain in speed with just one, ordinary processor. I guess you meant that one program, or perhaps group of programs, could perform input/output processes at the same time it is performing calculations because different parts of the processor are being used in these two groups of processes. Then on "while first one waits for operation to complete" I guess you meant that if the input/output operations finish before the computations finish, then thread 1 that was performing the input/output operations will have to wait until the current computations ordered by thread 2 are complete before thread 1 can utilize the computational resources for its own computations; i.e., two threads can't use the same computational resources of an ordinary processor at the same time. How is my thinking so far, Maxim, right, partly right, or all wrong?
    Now if the above thinking of mine is right, then it appears that one could have some gain in speed doing things like you suggest with just one, ordinary processor. And if so, I imagine that the gain could be a maximum of a factor of two for a program that requires spending as much time in input and output as it does in computation; i.e., keeping both the computational and input/output resources working all of the time without the input/output resources waiting on the computational resources or vice versa. How is my thinking here?
    If the above thinking is correct, just for purposes of discussion with just one, ordinary processor, not a dual processor, and a program which does nothing but computations there would be no gain in speed using Sun Studio 11 and a Fortran compiler over not using Sun Studio 11. In other words, to increase the speed of computation one would have to buy a faster computer, buy parallel processing hardware for an existing computer and use parallel-processing software, or somehow figure out how to harness two or more computers to work for you at the same time with instructions from one piece or perhaps set of pieces of code set up for parallel processing using two or more different computers. The latter case would be a computer analogue or "two 'heads' are better than one," not human heads, but computers. How is my thinking here?
    Here I am still assuming that it is possible for one processor to be used to do two different kinds things at once. However, I don't see how one Fortran program could instruct two things to be done at once. This is because I have not seriously studied parallel processing, I suppose. That is I am used to a sequential set of instructions that proceed from top to botton down the lines of code; i.e., one instruction or line of code can't be executed until the line of code before it has been completely executed. That is the computing "world" with which I am familiar. So how about someone here teaching me with an example of parallel-processing Fortran code how parallel processing works, explaining what instruction or group of instructions tells the computer to execute input and computational instructions at the same time?
    Based on the encouraging information from one or more other people I have been able to use the Intel Fortran for Linux 8.1.024, if I remember correctly, in a computer with a 1-GigaHertz (GHz), Advanced MicroDevices (A.M.D.), Duron Processor. So this is at least one case where it is not essential to have an Intel processor to use the Intel Fortran Compiler for Linux 8.1.024.
    Is the Sun Fortran compiler free for personal use? And can it handle Cray-style pointers?

  • Sun Studio 11 do not parse make output and create link to file?

    Hi,
    Running Sun Studio 11 and can only get file links in the output window when I run a make command that uses CC -g (debug option). We have integrated other tools into our make system (flexlint, cppUnit..) and even though we make sure that the syntax is exactly the same as the compiler output and matches regular expression under tools->options->building->make settings->error expression, it doesn't work. Why do you have to debug compile to get sun studio to create a file link in the output window? Doesn't sun studio just parse the text from the make command?
    example of flexlint output for which no link is created:
    "/vobs/project/oss/fm/fm4/fm-fmalib/fmbal/fmaaulib/src/FMA_List.cc", line 440: Error 84: sizeof object is zero or object is undefined'�
    example of make debug output for which we do get a link:
    "/vobs/project/oss/fm/fm4/fm-fmalib/fmbal/SunOS5.10/inc/FMA_alarm_record.hh", line 1310: Warning (Anachronism):Info "static" is not allowed and is being ignored.
    Regards,
    Ola

    I'd second Maxim's suggestion: try NetBeans 5.5 with C/C++ Development Pack. The official release of NetBeans C/C++ Development Pack 5.5 has happened a few days ago. You can download it from
    http://www.netbeans.info/downloads/all.php?b_id=2284
    Some of the changes between the beta3 build and FCS are:
    * Significant performance improvements in the code parser resulting in faster results in the Class View and Code Completion
    * Programs now run in an external terminal (system dependent) by default. This allows better input control
    * Significant performance improvement in the debugging module
    * Significant functionality improvement in the debugging module
    * New project type "C/C++ Project From Existing Code" which simplifies creating a project from existing code
    * Macro support in code completion
    * Hyperlink navigation for macro usages and #include directives
    * Reformat code
    * Code folding
    * Code completion
    All these features will appear in next Sun Studio release, so you can
    consider NetBeans C/C++ Development Pack 5.5 as a preview of new
    Sun Studio IDE.

  • Deploy Swing application in sun studio

    I use Sun studio to write a swing application. How I can use this app in other computer(may be not install JDK or JRE)

    Your question doesn't have to do with SunONE Studio ...
    First off, of course the other computer needs to have at the very least a JRE installed. So if you assume they don't have a JRE, you need to arrange to deliver a JRE to them or include it with your installation procedure / tool.
    Think about the contents of a Swing/java app - it's a .jar file plus other resources (that can be bundled in the .jar file). It helps to have a launching script or .exe depending on the platform, but that's not absolutely necessary as on many platforms simply double clicking the .jar file will launch the app (assuming a JRE is properly installed).
    So deploying the application is just a matter of copying the .jar file to the system. But might involve the use of an "installer" depending on the needs of your customers.
    Another route that's unique to Java is Java Web Start - in this case you write a JNLP file (it's in XML format), put it out on a web server, and send the link around. The browser will help you to launch the application. The customer still needs to get a JRE installed, and once they do the JWS pieces are available. JWS will handle the installation of the actual application, plus if you need to update the app JWS will see the updates and copy new .jar files or whatnot to their system.
    - David

  • Removing the Control Characters from a text file

    Hi,
    I am using the java.util.regex.* package to removing the control characters from a text file. I got below programming from the java.sun site.
    I am able to successfully compile the file and the when I try to run the file I got the error as
    ------------------------------------------------------------------------D:\Debi\datamigration>java Control
    Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal repet
    ition
    {cntrl}
    at java.util.regex.Pattern.error(Pattern.java:1472)
    at java.util.regex.Pattern.closure(Pattern.java:2473)
    at java.util.regex.Pattern.sequence(Pattern.java:1597)
    at java.util.regex.Pattern.expr(Pattern.java:1489)
    at java.util.regex.Pattern.compile(Pattern.java:1257)
    at java.util.regex.Pattern.<init>(Pattern.java:1013)
    at java.util.regex.Pattern.compile(Pattern.java:760)
    at Control.main(Control.java:24)
    Please help me on this issue.
    Thanks&Regards
    Debi
    import java.util.regex.*;
    import java.io.*;
    public class Control {
    public static void main(String[] args)
    throws Exception {
    //Create a file object with the file name
    //in the argument:
    File fin = new File("fileName1");
    File fout = new File("fileName2");
    //Open and input and output stream
    FileInputStream fis =
    new FileInputStream(fin);
    FileOutputStream fos =
    new FileOutputStream(fout);
    BufferedReader in = new BufferedReader(
    new InputStreamReader(fis));
    BufferedWriter out = new BufferedWriter(
    new OutputStreamWriter(fos));
         // The pattern matches control characters
    Pattern p = Pattern.compile("{cntrl}");
    Matcher m = p.matcher("");
    String aLine = null;
    while((aLine = in.readLine()) != null) {
    m.reset(aLine);
    //Replaces control characters with an empty
    //string.
    String result = m.replaceAll("");
    out.write(result);
    out.newLine();
    in.close();
    out.close();

    Hi,
    I used the code below with the \p, but I didn't able to complie the file. It gave me an
    D:\Debi\datamigration>javac Control.java
    Control.java:24: illegal escape character
    Pattern p = Pattern.compile("\p{cntrl}");
    ^
    1 error
    Please help me on this issue.
    Thanks&Regards
    Debi
    // The pattern matches control characters
    Pattern p = Pattern.compile("\p{cntrl}");
    Matcher m = p.matcher("");
    String aLine = null;

  • Sun Studio C++ v5.3 adding complex gives errors

    If anyone can privide info on the following issue I would greatly appreciate it.. I have a simple test app that does not compile. This is with Sun Studion C++ v5.3 (I think then called Sun Workshop Pro) on a Solaris 5.8 machine.
    #include <complex>
    using namespace std;
    int main()
      complex<int> a(1, 2);
      complex<int> b(3, 4);
      complex<int> c;
      c = a + b;
      cout << "Answer: " << c << endl;
      return 0;
    }When compiling I get the following error:
    /opt/SUNWspro/WS6U2/include/CC/Cstd/complex Line 1006: Error The operation "std::complex<int> += const std::complex<int> is illegal
    sol_cpx.cc Line 10 Where: While instantiating std::complex<int>+ ( const std::complex<int>, const std::complex<int> )
    sol_cpx.cc Line 10 Where: Instantiated from non-template code
    Are there any compiler flags to handle this or is there an update I can get to fix this? Any help would be much appreciated since I'm clueless. Thank you!

    complex<int> is not supported. The only specializations of type complex are float, double, and long double.
    The suggestion to try stlport won't work with C++ 5.3.
    We began supplying stlport with C++ 5.4.
    C++ 5.3 has been declared End Of Life, and only limited support is available for it. You can download a copy of the current release, Sun Studio 10, and try it free for 60 days.
    http://www.sun.com/software/products/studio/index.xml

  • Input stream with control characters

    I am using the HTTPRequest to get data from a MySQL varchar(3000) field.
    when I read the data I get the following error message.
    Exception in thread "AWT-EventQueue-0" (1,670) com.sun.javafx.data.pull.impl.StreamException: Control character is not allowed inside string
    The MySQL field does have things like CR's that I need to allow the user to enter.
    QUESTION:
    How can I capture data with control characters?

    The MySQL column type is varchar(3000) basically a string of 3000 characters to my understanding

  • Exceptions not caught in shared library when compiled under Sun Studio 9

    I realize it's a fairly old version of Sun Studio, however if at all possibly we'd like to avoid updating to the latest.
    Sun Studio 9, version reports
    version of "/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.6 2004/07/15
    version of "/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.6 2004/07/15
    uname -a
    SunOS sunblade 5.9 Generic_118558-27 sun4u sparc SUNW,Sun-Blade-100
    The problem is within our shared library a function calls another method within a try/catch block. This method then sometimes throws an exception which does have a matching catch block. On all other systems (Windows, AIX, HP-UX, Linux) the code works, the exception is caught and handled. On Solaris with Sun Studio 9 though, the exception is ignored and instead triggers an abort and core dump.
    Stack Trace:
    ffffffff7daa871c lwpkill (6, 0, ffffffff7fffd9c0, ffffffff7d3064d4, 2, ffffffff7fffd9ec) + 8
    ffffffff7da3e4b8 abort (ffffffff7d40dac8, ffffffff7d40cc38, ffffffff7d411e78, 10604c, 2, ffffffff7d40dac8) + 100
    ffffffff7d3064d4 __1cH__CimplRdefault_terminate6F_v_ (ffffffff7d40dac8, ffffffff7d40cc38, ffffffff7d411e78, 10604c, 104e40, ffffffff7d3064d0) + 4
    ffffffff7d3062b4 __1cH__CimplMex_terminate6F_v_ (ffffffff7d40de40, 0, 0, ffffffff7d40de40, ffffffff7d40c978, 1) + 24
    ffffffff7d306f04 exthrow_body (ffffffff7d40de40, 0, 0, 105af4, 52, ffffffff7d40e2e8) + 84
    ffffffff7d306e58 __1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ (ffffffff7d40dec8, ffffffff7f0dea78, ffffffff7ecb6b28, ffffffff7d40de40, 0, ffffffff7d40de40) + 3c
    ffffffff7ecb6d90 __1cLIGExceptionFThrow6FnQenumIGErrorCodes_pkcxxp2x_v_ (fffffffffffff3e3, 0, 0, 0, ffffffff7f1187da, a0) + 80
    ffffffff7ecb6e78 __1cOThrowException6FnQenumIGErrorCodes_pkcxxp1x_v_ (fffffffffffff3e3, 0, 0, 0, ffffffff7f1187da, a0) + 30
    ffffffff7f083304 __1cSIGRasterProcessingNVerifyPalette6FpnMIGRasterPage_nTenumIGContrastModes__v_ (1001f3c10, 0, 0, 0, 0, 0) + b4
    ffffffff7f083760 __1cSIGRasterProcessingOInvertContrast6FpnMIGRasterPage_nTenumIGContrastModes_nTenumIGColorChannels_pnPtagAT_RECTANGLE__v_ (1001f3c10, 0, 0, ffffffff7fffe1a8, 0, 0) + 20
    ffffffff7f039a2c iIG_IP_contrast_invert (1001f3c10, 100162b10, 0, 0, 0, 0) + 104
    ffffffff7f039ba0 iIG_IP_contrast_invert_masked (1001f3c10, 100162b10, 0, 0, 0, 0) + 80
    000000010000b4e0 ipcontrast_invert_notify (10014d000, 10014d, 0, 100000, 100162000, 100162) + 48
    Try/catch block:
         try
              <Triggering function>
         catch(const IGException& ige)
              <Handling Code>
    The code which throws the exception is a static method of IGException which has a basic throw line:
         throw IGException(...);
    Source code is compiled with the following flags, none of which I could find any info to suggest affect this:
    CC -c -Xt -xCC -misalign -xarch=v9 -O
    Linking of the shared object is then done via the following, again nothing obvious that could cause issues. mapfile is an empty file.
    ld -o <outputfilename> -G -z textoff -M mapfile -z noversion -64 -h <outputfilename> <object files> -L/opt/SUNWspro/lib/v9 -lCrun -lX11 -lc -lm
    I did read somewhere mentioning to make sure to use RTLD_GLOBAL if using dlopen on the .so, but the test app is using ld to link the library.
    Does anyone have any ideas why with the Sun Studio 9 compiler these exceptions are not being caught? Based on the fact they are caught on all other compilers, i'm guessing this issue is with the compiler.
    Also, as a test it seems that if the shared object is not built as a 64-bit object, then everything works. The issue only seems to occur when it is a 64-bit object. Likely an issue with the 64-bit compiling?
    Edited by: 837682 on Feb 17, 2011 9:23 AM

    As the other poster pointed out, you need to link the shared library using CC, not ld. I should have noticed that error in the original post.
    Try using CC instead of ld in your link command. The CC command causes additional files to be linked into the shared library that are required for proper operation, and particularly for exception handling. I think that is the actual source of your problem.
    You should not use -L options that point into the compiler installation area, and when you use CC to link, you don't need to.
    I'm surprised that you seem to have a copy of libCrun.so.1 in the compiler installation area -- that should not be the case. The the only versions of libCrun should be static libraries libCrun.a. You almost never want to link with a static version of a system library, and absolutely never when building a shared library. The file /opt/SUNWspro/lib/libCrun.so.1 ought to be a symbolic link pointing to /usr/lib/libCrun.so.1, but if that were the case, the version command would have the same output.
    By any chance, did you install your compiler by copying it from another installation? If you do that, you need to use tar, not cp, to ensure that symbolic links are preserved.

  • Sun Studio 11: Cannot create a new file

    When I want to create a new *.h or *.cc file in my CVS mounted directory tree, studio raises it's famous "Unexpected Exception" dialog with a java stack trace. I have them prepared if you want, I just wanted to check before if there is some already known bug or advice. This worked flawlessly on Sun Studio 10.
    As for source browser (another topic in this forum), yeah, I would also very much like some kind of source browser, e.g. to be able to find all definitions/calls to my virtual method, have a class hierarchy...
    And one final note on the constant problems in communication between NetBeans and XEmacs, especially if there are two or more XEmacs windows open. Initially all works ok, but with time it starts...source error hyper links from make/build window and search dialog fail to open and position in the source file, then it can't open a file from Filesystems window, and when I restart the SunStudio, everything works again for some time.
    This was most annoying in release 9, then somewhat better in 10 but still present, and I see now nothing is better in release 11.
    Details:
    OS = SunOS 5.8 Generic_117350-26
    HW = sun4u sparc SUNW,Sun-Blade-1500
    SunStudio 11, netbeans 3.5V11, jdk1.5.0_06
    (all mounted from a Solaris 9 driven server)
    Thanks for reading and answers.
    Best regards.

    Thank you for your report! There is no bug filed for
    this issue,
    so, please, provide us with the java stack trace . OK, so there is a stack trace when opening a new header file:
    java.lang.NullPointerException
    at org.netbeans.modules.cpp.editor.CCFSrcFileIterator.addChangeListener(CCFSrcFileIterator.java:110)
    at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:73)
    at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:168)
    at org.openide.loaders.TemplateWizard1.implStoreSettings(TemplateWizard1.java:499)
    at org.openide.loaders.TemplateWizardPanel1.storeSettings(TemplateWizardPanel1.java:112)
    at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:471)
    at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:619)
    at org.openide.WizardDescriptor.goToNextStep(WizardDescriptor.java:612)
    at org.openide.WizardDescriptor.access$300(WizardDescriptor.java:55)
    at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1110)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at org.netbeans.core.NbPresenter.superShow(NbPresenter.java:690)
    at org.netbeans.core.NbPresenter.doShow(NbPresenter.java:733)
    at org.netbeans.core.NbPresenter.run(NbPresenter.java:721)
    at org.openide.util.Mutex$1.run(Mutex.java:952)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Then there is one for cpp file:
    java.util.NoSuchElementException
    at org.openide.loaders.TemplateWizard$DefaultIterator.nextPanel(TemplateWizard.java:812)
    at org.openide.loaders.TemplateWizardIterImpl.nextPanel(TemplateWizardIterImpl.java:136)
    at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1106)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at org.netbeans.core.NbPresenter.superShow(NbPresenter.java:690)
    at org.netbeans.core.NbPresenter.doShow(NbPresenter.java:733)
    at org.netbeans.core.NbPresenter.run(NbPresenter.java:721)
    at org.openide.util.Mutex$1.run(Mutex.java:952)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    About XEmacs: yes, the communication between IDE and
    XEmacs is not stable. It was a little bit improved in
    Sun Studio
    10, but not enough. We plan to improve it in next
    release. I'll
    try to create a test case according to your
    description. BTW,
    why there are two or more XEmacs windows? Usually
    there
    should be only one window with many buffers. I don't
    think
    Sun Studio IDE can manage several XEmacs windows.Why? Because it is a great help to be able to watch two different buffers/modules at the same time when writing source code. If there is only one window with many buffers, I have to either split window in two (Ctrl X 2) or continuously switch between two buffers, which is annoying.
    Thanks for the feedback.

  • Help needed with evaluating Sun Studio Creator

    I am evaluating Sun Studio Creator as a platform for developing JSF applications. I really like its WYSIWYG editor, but strugging with how I would fit it in my environment. I currently use a Maven generated EJB layer running on JBoss.
    1) Ideally I would like to package my EJBs and WAR into one EAR and deploy it on JBoss. Is this possible through the IDE? I would still like to keep my Maven scripts for building the EJB layer (basically I like Maven lot more than Ant and I am not willing to give up its functionality). How would I go about doing EJB development using Maven in parallel with front-end development using JSC?
    2) Does Sun Studio Creator somehow lock me into its framework? I see that the code it generates uses custom tags such as the Web UI tags. I have not seen any good documentation justifying why I should be using these custom tag libraries and framework - giving up my freedom to experiment with other approaches. For that matter, I was not able to find a "user guide" on the tag libraries at all - only the javadocs, which are more like reference material. Can someone point me in the right direction?
    3) If I wanted to use just the standard components specified in the JSF specification, which tool bars should I limit myself to? The "Standard" toolbar? Also does it mean that I will need to manually rip out the auto-generated elements such as Web UI tags, framework specific backing beans etc. Would a "seasoned" JSC user even think of using the tool in this way?
    I would really appreciate any guidance you can give me on this topic.
    Thanks.

    Before I forget, I want to pass on the following feedback from my evaluation. Hopefully some of these items can be addressed in the upcoming release. Please note that I am not a JSC power user, so some of the impressions were made during a very limited evaluation period.
    1) It seems that JSC was designed to allow only the use of its framework/components such as the Web UI components etc. It seems pretty hard NOT to use the JSC framework/components and introduce other frameworks such as Tiles. I would prefer if JSC took a more flexible approach of also supporting other ways in which people may want to develop JSF applications.
    2) Support for a robust page templating mechanism. I really don't know how to create large complex web sites without introducing something like Tiles.
    3) Native support for Maven. I am sure people know the goodness of Maven and I should not have to list its advantages. It would be really nice if I can just point to a Maven pom.xml file and build my project, instead of messing around with Ant scripts. This would also mean supporting nested Maven projects.
    4) Full support for packaging and deploying ear files. This means the ability to support EJB projects living side-by-side with Web projects.
    5) It was not clear from the tutorials whether the databound controls work only with databases or can I bind them to in-memory objects. It would be good to allow binding to data transfer objects received from the middle-tier rather that going directly at the database.

  • Sun Studio creator + jboss  jboss-4.2.2.GA

    Everything is runing well in jboss-4.0.3SP1 with Sun Studio Creator(JSF)
    but when Sun Studio Creator(JSF) deploying war to jboss-4.2.2.GA, I got the following Error
    please help me
    12:45:25,343 ERROR [[]] Exception sending context initialized event to listener instance
    of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
    java.lang.ExceptionInInitializerError
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor
    Impl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor
    AccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at com.sun.faces.config.rules.RenderKitRule.begin(RenderKitRule.java:79)
    at com.sun.org.apache.commons.digester.Digester.startElement(Digester.java:1273)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher
    .dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Sour
    ce)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at com.sun.org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1417)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.jav
    a:348)
    at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitializ
    ed(JBossJSFConfigureListener.java:69)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:385
    6)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeploye
    r.java:301)
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:1
    04)
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
    at org.jboss.web.WebModule.startModule(WebModule.java:83)
    at org.jboss.web.WebModule.startService(WebModule.java:61)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.jav
    a:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport
    .java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:9
    78)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy44.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMB
    eanSupport.java:238)
    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.j
    ava:87)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubD
    eployerInterceptorSupport.java:188)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:
    95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy45.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy9.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.j
    ava:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.jav
    a:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(Abs
    tractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Abstr
    actDeploymentScanner.java:274)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abstra
    ctDeploymentScanner.java:225)
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.loggin
    g.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid
    class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Lo
    g' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationEx
    ception: Invalid class loader hierarchy. You have more than one version of 'org.apache.co
    mmons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.L
    ogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid cl
    ass loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log'
    visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationExcep
    tion: Invalid class loader hierarchy. You have more than one version of 'org.apache.commo
    ns.logging.Log' visible, which is not allowed.))
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:
    543)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:
    235)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:
    209)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    at com.sun.faces.config.beans.RenderKitBean.<clinit>(RenderKitBean.java:26)
    ... 111 more
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.loggin
    g.LogConfigurationException: Invalid class loader hierarchy. You have more than one versi
    on of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apach
    e.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have mor
    e than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl
    .java:397)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:
    529)
    ... 115 more
    Caused by: org.apache.commons.logging.LogConfigurationException: Invalid class loader hier
    archy. You have more than one version of 'org.apache.commons.logging.Log' visible, which
    is not allowed.
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl
    .java:385)
    ... 116 more
    12:45:25,484 ERROR [StandardContext] Error listenerStart
    12:45:25,484 ERROR [StandardContext] Context [] startup failed due to previous errors
    12:45:25,640 WARN [ServiceController] Problem starting service jboss.web.deployment:war=M
    angalyam.war,id=950888772
    org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/jboss-4.2.2.GA/server
    /default/tmp/deploy/tmp3295Mangalyam-exp.war/ deployment failed
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeploye
    r.java:379)
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:1
    04)
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
    at org.jboss.web.WebModule.startModule(WebModule.java:83)
    at org.jboss.web.WebModule.startService(WebModule.java:61)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.jav
    a:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport
    .java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:9
    78)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy44.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMB
    eanSupport.java:238)
    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.j
    ava:87)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubD
    eployerInterceptorSupport.java:188)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:
    95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy45.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy9.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.j
    ava:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.jav
    a:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(Abs
    tractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Abstr
    actDeploymentScanner.java:274)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abstra
    ctDeploymentScanner.java:225)
    12:45:25,703 ERROR [MainDeployer] Could not start deployment: file:/C:/Program Files/jboss
    -4.2.2.GA/server/default/deploy/Mangalyam.war
    org.jboss.deployment.DeploymentException: URL file:/C:/Program Files/jboss-4.2.2.GA/server
    /default/tmp/deploy/tmp3295Mangalyam-exp.war/ deployment failed
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeploye
    r.java:379)
    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:1
    04)
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
    at org.jboss.web.WebModule.startModule(WebModule.java:83)
    at org.jboss.web.WebModule.startService(WebModule.java:61)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.jav
    a:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport
    .java:245)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:9
    78)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy44.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMB
    eanSupport.java:238)
    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.j
    ava:87)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubD
    eployerInterceptorSupport.java:188)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:
    95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy45.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:15
    5)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:13
    3)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperat
    ionInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy9.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.j
    ava:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.jav
    a:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(Abs
    tractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Abstr
    actDeploymentScanner.java:274)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abstra
    ctDeploymentScanner.java:225)

    I figured it out by looking at the application server logs on the admin console. The problem was a permissions issue. I'm working with some plug-ins from ESRI (the gis software company) for ArcGIS Server 9.2. I forgot that you have to add some lines to the server.policy file (located at:
    /<install directory>/SunAppServer8/domains/creator/config/
    The text you have to add is
    grant {
    permission java.util.logging.LoggingPermission "control","";
    permission java.lang.RuntimePermission "*","read";
    permission java.util.PropertyPermission "PEOBJEDITHOME","read,write";
    permission java.util.PropertyPermission "ARCGIS_RELEASEALL_SHUTDOWN_HOOK","read,write";
    permission java.util.PropertyPermission "ARCGIS_IUNKNOWN_VARIENT_OBJECTS","read,write";
    So there you go.

  • Error building using Coverity Prevent and Sun Studio 11

    We recently started using a static code-checking tool called Coverity Prevent. When we first started using it, we were on a very old verison of the Forte Compiler (Forte 6 update 2). Builds completed fine through Prevent. In the last month, we've upgraded to Sun Studio 11 (can't go to 12 because we're using Solaris 8). Now I can't get a build to run completely through Prevent. Prevent has a preprocessor that's a bit more strict than most compilers. I'm getting the following errors in a lot of places.
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 316: error #101:
    "istream" has already been declared in the current scope
    class _RWCLASSTYPE istream;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 317: error #101:
    "ostream" has already been declared in the current scope
    class _RWCLASSTYPE ostream;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 318: error #101:
    "ios" has already been declared in the current scope
    class _RWCLASSTYPE ios;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/Cstd/iostream.h", line 4: error #101:
    "istream" has already been declared in the current scope
    using std::istream;
    ^
    "/vobs1/cots/ForteDeveloper/SUNWspro/prod/include/CC/Cstd/iostream.h", line 9: error #101:
    "ostream" has already been declared in the current scope
    using std::ostream;
    ^
    I've googled a bit, and most of the solutions involve someone mistakenly putting "using namespace std" in a header file. I can't find any case where we do this in our code. One specific file that is failing includes one local header, and that header only includes <fstream.h> and <rw/cstring.h>. It seems like RW and std are conflicting with each other somewhere, but I can't figure out where. The compiler command looks like:
    /vobs1/cots/ForteDeveloper/SUNWspro/bin/CC -xildoff -instances=static -mt -g -fsimple
    -xlibmil -xO3 -xtarget=ultra -DUSE_VFU_LL_C -DXRT -KPIC -library=rwtools7_std -x
    libmopt -DRW_MULTI_THREAD -I/vobs1/cots/rogue/workspaces/SOLARIS7/SUNPRO50/12d -c c4i_file_stream.cpp
    We're still pointing at an older version of RW for the DBTools libraries (rebuilt using the compiler's internal Tools++), but we're using the compiler's internal Tools++ headers and libraries for everything else.

    It sounds like Prevent is not processing the #include directives, or possibly some other preprocessing directives, the same way as the Sun C++ compiler.
    The C++ Users Guide documents how #include directives are processed, and in particular the order in which directories are searched.
    [http://docs.sun.com/app/docs/doc/819-5267/bkaso?a=view]
    If Prevent provides similar documentation, you can compare the docs. If you see a difference, maybe Prevent has some options to control the behavior to make it work like the Sun compiler.
    Note: The CC driver passes some -I directives to the C++ compiler proper (ccfe) that do not appear on the CC command line that you write. The exact -I options depend on other options on the command line. Possibly Prevent is not using the same set of implicit -I directives.
    If you can't resolve the #include directive issue, you might need to talk to Coventry tech support.
    We at Sun are happy to work with 3rd-party vendors to help them get their products working correctly on Sun.

  • Pros and Cons of the Sun studio IDE

    Hi all,
    I have played a bit with the Sun studio now and I want to give you some feedback.
    First of all, my background. I am working in a team with about 20 developers, developing a C++ application on Solaris.
    Last time I stumbled across an installed Sun Studio 9 and gave it a try.
    Initially I was verry impressed by the great debugger- and analyzer frontends, they look nice and work well.
    After using the debugger from time to time and really enjoyed it, I thought about testing the studio for all-day work.
    So, here are my impressions and the things that keep me away from using it.
    1. The default editor isn't very usefull. For example, I missed regular expression search (and replace) and the feature to mark columns. Furthermore I really missed syntax highlightning for some other file types like sql- and config files, or even the feature to create my own. By the way, the predefined highlightning for C-files is also a bit too simple.
    2. I think the external editor plugin is a bit buggy too, because sometimes I have trash in files that I have edited before. But this can also be my fault, because I use gvim and some editor macros to do sccs-actions. I think the problems occur mainly if I use this macros. In every case the external editor is not really an alternative way for me.
    2. In our team we are using teamware as version-control tool and it does a really good job. So for Workshop 7 we have some editor macros and the teamware-tools from version 6. In the studio I have found the feature to create my own version control profiles, but this is a hard way with many tries and errors. For example I have never accomplished it to set further status information in the explorer window, it's 'Local' all the time.
    3. The studio needs very much memory, I think about 250 MB or so. This is impressive, especially if all the 20 people in our team would start sunstudio. I have found a hint somewhere in the docu that the studio can work in a client-server mode over a VNC, but I haven't tried it because I don't know what the admins would say if I start running my own VNC.
    4. After I have also tried eclipse with the cdt plugin, I really began to like the source-browser and missed it in the studio.
    5. All in all I hoped that the newest Sunstudio got a netbeans update, because some of the plugins that exists only for newer netbeans-versions would also be useful for me and my team. But, at least the latest linux-preview is also based on netbeans 3.5. Maybee do you have plans to update netbeans within the studio?
    Ok, that's all for now ;-)
    Please don't understand me wrong, I really like some features of the studio, and it's a great improvement compared with the workshop version 6 that I used before. But, at all for me the studio is still not useable in all-day work.
    P.S.
    At work I have only access to Sun studio version 9, at home I have also tried version 11, that is the reason why I mixed the version-numbers sometimes ;-)
    With kind regards,
    Maaz76

    1. The default editor isn't very usefull. For example, I missed
    regular expression search (and replace) and the feature to
    mark columns. Furthermore I really missed syntax highlightning
    for some other file types like sql- and config files, or even the
    feature to create my own. By the way, the predefined highlightning
    for C-files is also a bit too simple.The current IDE we're working on is based on a current NetBeans
    and has regular expression search (and replace). I'm pretty sure
    NetBeans 5.0 (and presumably later versions) has syntax highlighting
    for sql (its got an "SQL Editor" module which I'm guessing has the
    highlighing you're asking for).
    We're also working on many new editor features not in current
    Sun Studio IDEs. These are mostly parser based stuff like code
    completion, code folding, and a class viewer.
    2. I think the external editor plugin is a bit buggy too, because
    sometimes I have trash in files that I have edited before. But this
    can also be my fault, because I use gvim and some editor macros
    to do sccs-actions. I think the problems occur mainly if I use this
    macros. In every case the external editor is not really an alternative
    way for me.Its very difficult keeping sources in synch between netbeans and
    an external editor. If you can give us a repeatable scenario for
    failure we can take a look.
    2. In our team we are using teamware as version-control tool and
    it does a really good job. So for Workshop 7 we have some editor
    macros and the teamware-tools from version 6. In the studio I have
    found the feature to create my own version control profiles, but this
    is a hard way with many tries and errors. For example I have never
    accomplished it to set further status information in the explorer
    window, it's 'Local' all the time.We'll definately have sccs support in the next release. TeamWare
    support depends on the status of TeamWare. Sun end-of-lifed it
    4 years ago. As long as its EOL'ed, we won't support it. But if it
    were officially brought back, we'd (most likely) support it.
    3. The studio needs very much memory, I think about 250 MB
    or so. This is impressive, especially if all the 20 people in our team
    would start sunstudio. I have found a hint somewhere in the docu
    that the studio can work in a client-server mode over a VNC, but I
    haven't tried it because I don't know what the admins would say if
    I start running my own VNC.The VNC model shouldn't help on memory. How do you use the IDE
    now? Do each of your 20 developers have Solars desktops? I'm
    guessing they don't since you're talking about 20 users on one
    system. The VNC approach runs all 20 IDEs (assuming all 20
    developers are concurrently running the IDE) on the server machine.
    So VNC won't help in that case.
    On the other hand, if the 20 developers have Windows PCs on their
    desktop then the next IDE should help substantially. We're working
    on having the IDE run locally on your desktop, and do remote building
    and debugging on your Solaris server. This puts most of the IDE
    overhead on your desktop rather than the server. This should be
    a much better model for multi-user development where Solaris
    developers don't have Solaris desktops.
    4. After I have also tried eclipse with the cdt plugin, I really began
    to like the source-browser and missed it in the studio.We're planning on some browser capabilities. Some are in the
    planning stages and others aren't even that far along. But we are
    getting repeated inquiries about a source browser.
    5. All in all I hoped that the newest Sunstudio got a netbeans
    update, because some of the plugins that exists only for newer
    netbeans-versions would also be useful for me and my team. But,
    at least the latest linux-preview is also based on netbeans 3.5.
    Maybee do you have plans to update netbeans within the studio?Well, each major netbeans release has had so many internal
    changes its been difficult keeping up. Our next release is planning
    to be much more in synch with NetBeans releases. We're doing
    current development on the NetBeans trunk (currently thats targeting
    the NetBeans 6.0 release).
    Gordon

Maybe you are looking for