Why  difference in Solaris and Linux

Hi,
The following program is giving results diferently when I am executing using g++ compiler in Solaris and Linux.
Why it is so.
here is the code:
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
int main( void )
size_t size;
char *buf;
if ( ( buf = (char *)malloc(10 *sizeof(char))) == NULL)
exit (1);
size = sizeof( buf );
strcpy(buf, "HelloWorld");
printf("\n Address is : %u String is : %s size : %d ", buf, buf,size);
if (( buf = (char *) realloc(buf, sizeof(20))) == NULL)
exit ( 1);
*(buf+10) = 'A'; *(buf+11) = 'B'; *(buf+12) = '\0';
printf("\n Address is : %u String is : %s\n", buf, buf);
free( buf);
exit( 0 );
Solaris:
Address is : 134160 String is : HelloWorld size : 4
Address is : 135704 String is : HelloWor
Linux:
Address is : 134518824 String is : HelloWorld size : 4
Address is : 134518824 String is : HelloWorldAB
Thanks
Venkat

Hi,
The following program is giving results diferently
when I am executing using g++ compiler in Solaris
and Linux.
Why it is so.
here is the code:
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
int main( void )
size_t size;
char *buf;
if ( ( buf = (char *)malloc(10 *sizeof(char))) == NULL)
exit (1);
size = sizeof( buf );The size you get here is the size of buf, which is the size of a pointer, not the size of what buf points to. sizeof(*buf) would give you size of a char, the type (not the object) that buf points to.
There is no portable way to find out the number of bytes allocated on the heap if you are give only a pointer to the memory. You have to remember the size some other way..
strcpy(buf, "HelloWorld");A literal string consists of the characters in the string plus a terminating null, all of which are copied by strcpy. You allocated 10 chars for buf, but are writing 11 chars into it. At this point, the program has undefined behavior. Literally anything at all could happen, because you can't predict the effect of writing outside the bounds of allocated memory.
printf("\n Address is : %u String is : %s size :
e : %d ", buf, buf,size);
if (( buf = (char *) realloc(buf, sizeof(20))) == NULL)The "sizeof" operator in this case is returning the size of the type of a literal 20, which is an int. If you want to allocate 20 bytes, you write 20, not sizeof(20).
exit ( 1);
*(buf+10) = 'A'; *(buf+11) = 'B'; *(buf+12) == '\0';SInce you can't count on buf having more than 4 bytes at this time, you are writing into unallocated memory, with undefined results.
printf("\n Address is : %u String is : %s\n", buf, buf);
free( buf);
exit( 0 );
Instead of asking why you get different results on different platforms, you should be asking why the program doesn't crash on all platforms. :-)
You can avoid these problems with keeping track of allocating memory by using the C++ standard library instead of trying to manage low-level details yourself as in C code.
The standard string class, for example, extends itself as needed, and ensures that heap memory is freed when the string object is deleted or goes out of scope. You don't need pointers, malloc, free, or sizeof to use C++ strings.

Similar Messages

  • Why keyboard and mouse right click not working in Solaris and Linux?

    Hi all,
    I have two problems:
    1) I am working on AWT/Swing application and its working fine in window enviornment,but while running on solaris and linux mouse right-click option window not poping up.
    2) Ctrl+c,Ctrl+v,Home and End keyboard key are not working in solaris and linux OS for same application.
    Pls provide me some solution for these problem.
    -Dinesh

    Hi Nik,
    Thanks for reply. I found some solution for the above problem.
    For mouse right click there was problem in my source code.I have not implemented the mousePressed() method
    In case of keyboard Home, End and arrow key working fine after exporting AWTUSE_TYPE4_PATCH=false; in solaris and linux
    But still Ctrl-c and Ctrl-v not working.
    I am using JDK1.5.0_07+Eclipse IDE 3.1
    -Dinesh

  • Java RTS 2.1 Beta free evaluation release for Solaris and Linux available

    Hi:
    I would like to notify this forum that a free evaluation release of
    Java Real-Time System (Java RTS) 2.1 Beta is now available for downloading
    at our public web site.
    Supported platforms are Solaris/SPARC, Solaris/x86, and Linux/x86 with
    real-time POSIX APIs. The specific Linux distributions which this release
    has been tested on are: SUSE Linux Enterprise Real Time 10 (released)
    and Red Hat Enterprise MRG 1.0 (beta). As for the Solaris versions,
    both Solaris 10 Update 3 and Update 4 are supported.
    The URL for the web page where to start in order to be able to get to
    the download link is:
    http://java.sun.com/javase/technologies/realtime/rts/
    The download link will be presented to you after you fill out a quick
    survey and agree with a click-through, 90-days e-license.
    The latest version of the Java RTS Beta technical documentation
    bundle included with the product is being separately maintained at
    our public website and can be accessed starting from here:
    http://java.sun.com/javase/technologies/realtime/reference/rts_productdoc.html
    Thanks,
    -Carlos
    Carlos B. Lucasius
    Java SE Embedded and Real-Time Engineering
    Sun Microsystems, Inc.
    http://java.sun.com/javase/technologies/embedded/index.jsp
    http://java.sun.com/javase/technologies/realtime.jsp
    http://java.sun.com/javase/technologies/realtime/faq.jsp
    http://developers.sun.com/learning/javaoneonline/j1sessn.jsp?sessn=TS-1331&yr=2007&track=5
    http://developers.sun.com/learning/javaoneonline/j1sessn.jsp?sessn=TS-2901&yr=2007&track=5
    http://developers.sun.com/learning/javaoneonline/j1lab.jsp?lab=LAB-7250&yr=2007&track=4
    http://www.sun.com/training/catalog/courses/DTJ-4103.xml
    http://www.youtube.com/v/xH1yUXd9krU
    http://blogs.sun.com/jtc/
    http://blogs.sun.com/delsart
    http://blogs.sun.com/bollellaRT

    Hello,
    Just a quick question: can we have an official position from Sun regarding support of earlier releases of Solaris with Java RTS 2.1? Our customer is currently running Solaris 10 Update 3 with current Recommended patches, and the 2.1 beta cyclic driver supported this version of Solaris. However with the official release version of 2.1, support for U3 disappeared (only U4 and U5 are now supported). Aside from "rubber stamping" the Solaris build via /etc/release, is there a technical reason why U3 is no longer supported? As long as our kernel is up to date, can we safely use 2.1? Or is it just a case of being unable to officially support and test so many releases of Solaris?
    Is this a general rule-of-thumb we can expect in future: only supporting the last 2 updates of Solaris 10?
    Your advice is appreciated.
    Thanks,
    Dave.

  • Differences on Windows and Linux JVM about java.util.zip package

    Hello, there!
    I need some help if someone else has already face this problem.
    I have a Java server that process the bytes of a SWF File stored in the server and ouptut it to the user through a Servlet. The file was decompressed and re-compressed using the java.util.zip package (Deflater/Inflater).
    Everything works fine on Windows Server 2008 server. But now we need to migrate the server to Linux. The problem is that when I test the website now, the file seens to be corrupted.
    What really intrigues me is that everything runs normal on Windows Server configuration, when changed to Linux, the final file seens to be corrupeted... what could possible be the cause? Is there any difference between java.util.zip package on Window and Linux JVM?
    My Windows Server is:
    . Windows Server 2008 (6.0 - x86)
    . Apache 2.2.11
    . Tomcat 6.0.16.0
    . Java JDK 1.6.0_12-b04
    My CentOS Server is
    . CentOS 5.4 (2.6.18-164.15.1.el5 - i386)
    . Apache 2.2.3
    . Tomcat 6.0.16.0
    . Java JDK 1.6.0_12-b04
    Please, if someone could give me a lead, I would appreciate very much!
    Thank you all in advance,
    CaioToOn!

    ejp wrote:
    Thank you for the answer, but no. The path is correct.That's not what he meant. Zip file/directory entries are supposed to use / as the path separator. It is possible to use \ but such Zip files will only work under Windows. You may have erred here.Ohhh, I had really missunderstood what Ray said. But, I still think that this is not the problem, since the ZIP is a single SWF file generated by Flex SDK 3.4 and compressed in the ZLIB open standard (as in page 13, at [http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v9.pdf|http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v9.pdf] ). This is how Flash Compiler compress the files.
    jschell wrote:
    If the above suggestions do not solve the problem...Specify in detail with the exact steps used how you determined that it was corrupted.The reason why I believe the SWF is getting corrupted is that when it is loaded by Flash Player (in the client-side) the Player throws a VerifyError: Error # 1033. The [documentation says (see error 1033)|http://help.adobe.com/en_US/AS3LCR/Flash_10.0/runtimeErrors.html] that this error means that the SWF file is corrupted.
    As I said, what intrigues me is that this work perfectly in a Windows Server 2008 server. I just had setup a CentOS server and deployed the application. The client-remains unchanged, so why could the result change?
    raychen wrote:
    I would remove the side effect you are doing and send the file straight through, with decompress and compress, the servlet. It is more likely that you have a bug in your swf processor than the zip library.
    I had already tried it when first coding, in Windows Server 2008, it had not worked.
    Thank you all for the help.
    CaioToOn!

  • IndexOf - difference between Win and Linux encoding

    Hello folks, wondering if someone could put me on the right track over this little problem with porting a java app to Linux...
    I have a nice little program, developed on (the latest) JDK under windows which reads a custom file format, locates the second occurance of the substring 'PNG', ignores everything before the character before this PNG (hence the -1 below) and saves the remainder, which is now a bog-standard PNG image. The first 'PNG substring always occurs within the first 50 bytes (hence the 50 below) and the second around the 2kB mark. Here's the line that finds the location of the second 'PNG' in the file loaded into strFileContent:
    location = strFileContent.indexOf( "PNG", 50 )-1;All is well compiled and run on windows, say file 'test1.xyz' produces a value for location of 2076 and saves a nice PNG called 'test1.png'.
    When I haul it over to Linux (Ubuntu 9.04) and lo, location comes out as 1964 for the same file, and of course the file is no-longer a PNG because there are an extra 112 bytes on the front end. Running the windows compile of the code or a fresh Linux compile makes no difference.
    I'm suspecting Win and Linux Java count, perhaps, line endings or some such differently, perhaps have to check an encoding. I'd appreciate any pointers on correcting this to work on both platforms (ultimately I'm trying to appease a Mac user, but don't have a Mac to play with at the moment).
    Cheers,
    K.
    Ken

    phaethon2008 wrote:
    I'm suspecting Win and Linux Java count, perhaps, line endings or some such differently, perhaps have to check an encoding. I'd appreciate any pointers on correcting this to work on both platforms (ultimately I'm trying to appease a Mac user, but don't have a Mac to play with at the moment).The immediate cause of your problem is probably that Windows uses a 8bit encoding as the default (probably some ISO-8859-{noformat}*{noformat} variant or the Windows-bastardization of it), while Ubuntu uses UTF-8, which has a varying number of bytes per character.
    The much more important underlying problem is that you're trying to treat binary data as if it were text. A PNG image is not text. Handling binary data in Strings (or char[]) is a sure way to invite desaster.
    You must convert your code to handle InputStream/OutputStream/byte[] instead of Reader/Writer/String/char[].

  • DBLoad utility: (huge) difference between Windows and Linux

    Hello
    I have a backfile of 55M entries to load. I have prepared it under Linux (Dual Core machine + 4GB - Mandriva distribution - java 1.6). When I run DbLoad, here is the (partial) log:
    java -Xmx2048m -jar /home/pd51444/jNplMatchBackfile_Main_0.2/lib/je-3.3.69.jar DbLoad -h . -s group.db -f group.db.txt -v
    loaded 2817812 records 63275 ms - % completed: 5
    loaded 5624893 records 141023 ms - % completed: 10
    loaded 8462602 records 962019 ms - % completed: 15
    loaded 11285385 records 2401566 ms - % completed: 20
    loaded 14094928 records 786746 ms - % completed: 25
    loaded 16914275 records 8965457 ms - % completed: 30
    loaded 19741557 records 15766560 ms - % completed: 35
    loaded 22567310 records 2226015 ms - % completed: 40
    loaded 25376363 records 19662455 ms - % completed: 45
    Then I copied the exact same file on my Windows laptop (dual core + 2GB - XP - java 1.6), and DbLoad goes much faster:
    C:\nplmatch\db&gt;java -Xmx1024m -jar ..\jar\je-3.3.69.jar DbLoad -h . -s group.db -f group.db.txt -v
    Load start: Thu Oct 02 10:33:23 CEST 2008
    loaded 2817812 records 59876 ms - % completed: 5
    loaded 5624893 records 69283 ms - % completed: 10
    loaded 8462602 records 77470 ms - % completed: 15
    loaded 11285385 records 69688 ms - % completed: 20
    loaded 14094928 records 62716 ms - % completed: 25
    loaded 16914275 records 59122 ms - % completed: 30
    loaded 19741557 records 63200 ms - % completed: 35
    loaded 22567310 records 58654 ms - % completed: 40
    loaded 25376363 records 61482 ms - % completed: 45
    loaded 28197663 records 58889 ms - % completed: 50
    loaded 31019453 records 55937 ms - % completed: 55
    loaded 33839878 records 62045 ms - % completed: 60
    loaded 36664839 records 65749 ms - % completed: 65
    loaded 39498035 records 100718 ms - % completed: 70
    loaded 42302599 records 99733 ms - % completed: 75
    loaded 45125268 records 96000 ms - % completed: 80
    loaded 47947180 records 92749 ms - % completed: 85
    loaded 50755655 records 85485 ms - % completed: 90
    loaded 53578015 records 96240 ms - % completed: 95
    Load end: Thu Oct 02 10:57:36 CEST 2008
    Also I use the same je.properties file on both platforms.
    Any idea where this performance problem comes from?
    Thanks in advance
    Best regards
    Philippe

    Hello Phillipe,
    Nothing jumps out at me, but you might try the following:
    . Check the status of disk write caches. On linux, the cache may be disabled and it may be enabled on windows.
    . Does the windows machine have an SSD?
    . Run with -verbose:gc to see if the Linux is being held up by full GC's.
    . Use top or some other utility to see if something else is running on the linux box.
    . Take some random c-\'s to get some stack traces to see what is going on when things get slow.
    . Check on the JVM ergonomics. You may be getting a server or client JVM without knowing. Force it one way or the other with -server or -client.
    Here is a (future) FAQ entry regarding disk write caches (poorly formatted at the moment):
    During my system testing I pulled the power cord on my server to make the ultimate test of JE's durability claims. I am using commitSync() for my transactions, but some of the data that JE said it had committeed was not on disk when the system came back up. What gives?
    Quoting the Berkeley DB Reference Guide:
    Many disk drives contain onboard caches. Some of these
    drives include battery-backup or other functionality that guarantees that all
    cached data will be completely written if the power fails. These drives can
    offer substantial performance improvements over drives without caching support.
    However, some caching drives rely on capacitors or other mechanisms that
    guarantee only that the write of the current sector will complete. These
    drives can endanger your database and potentially cause corruption of your
    data.
    To avoid losing your data, make sure the caching on your disk
    drives is properly configured so the drive will never report that data has
    been written unless the data is guaranteed to be written in the face of a
    power failure. Many times, this means that write-caching on the disk drive
    must be disabled.
    Some operating systems enable the disk write cache by default.
    If you need true durability in the face of a power failure, then you should
    verify that the disk write cache is disabled or that you have some alternative
    means of ensuring durability (e.g. nvram, battery backup, an Uninterruptible
    Power Supply (UPS), Solid State Disk (SSD), etc.) Some disk drives may
    actually require changing hardware jumpers to enable/disable the write cache.
    You can check the status of the write cache using the
    hdparm utility on Linux and the format utility on Solaris.
    On Windows, use the Windows Explorer. Right click on
    the disk drive that you want to check, select Properties,
    click on the Hardware tab, select the desired disk, click
    on the Properties button, click on
    Policies and verify the cache setting with the check box.
    On Windows Server 2003 you generally disable the write caching
    from within the RAID controller software (OEM specific).

  • Solaris and Linux

    Hi all Gurus
    I build an HTMLDB application on an Linux box, and now I want to post it on the web which is managed by Solaris platform. Is it possible ? If yes, how should I do it.
    Thanks

    It will work fine.
    Create the database user in the new machine.
    Run exp/imp to copy your schema across.
    Export your htmldb workspace and app.
    Import the workspace into the new htmldb.
    Import the application in htmldb.

  • Solaris 10 and Linux inter-operability

    Hi there
    I have Ubuntu linux and recently installed Solaris 10 on my x86 machine. My setup is dual boot through grub.
    I wondered if there were any decent guides on Solaris and Linux inter-operability that could be recommended. My aim is to try Solaris 10 as a home desktop machine i.e. play music, video, surf email etc.
    Thanks in advance

    Hi, I am trying the same thing at least where I have windows xp, solaris 10 and Ubuntu Linux on one hard drive. I am also trying to configure Solaris to work like that too. Here is a link that I got from another forum that might help with that.
    http://www.opensolaris.org/jive/thread.jspa?threadID=44130&tstart=0

  • Jdeveloper and linux

    I want to change platform from NT to linux.
    Will I then loose the jdeveloper as the
    developement platform or do you think
    about building a release for linux ?
    null

    William Wise (guest) wrote:
    : Since JDeveloper is based on JBuilder technology and JBuilder
    : 3.0 will be available on Solaris and Linux Q1 2000 (by all
    : accounts) it seems at least possible that we could see
    : JDeveloper on those platforms sometime after that timeframe.
    : In the meantime, you'll be restricted to using either NetBeans
    : (www.netbeans.com) which is nice but slow since it is 100% java
    : or Visual Age for Linux.
    : Will
    JDeveloper is based on JBuilder 1.x and (I think) some on
    Jbuilder 2.x BUT according to JDev Team members posting on other
    threads will not take additional code from Borland. Thus,
    whatever JBuilder 3.x has or will have does not in any way
    reflect what will be in JDeveloper going forward (at least not
    because JDeveloper will "inherit" any of the code/features).
    I, for one, wish they had waited until JDeveloper was based on
    the upcoming pure Java Jbuilder 3.something so as to have a more
    portable product. (If wishes were fishes, :) )
    R.Parr
    null

  • Solaris and Windows (differences between the two OS for development)

    Hi All,
    From the moment that I learned Java, I have always been using Windows to do all of my implementation. Very soon, I will be moving to Solaris and I was just wondering whether anyone out here could share the things that I should take notice for developing under Solaris which in the past (in XP/NT/2000) would not be something that I have to deal with.
    Also, to speed things up, would it be helpful if I start experimenting Java under Linux?? or Developing under Linux is also different than Solaris. I might get comfortable playing with the commands (as it's been 10 years since I last worked on Unix)
    But really, I am more concerned about all the problems that I will have to face, I would appreciate if anyone could share their experience with me.
    Thx.

    The Java language is platform independent.
    You might find a few thread syncing issues on a true multitasking multiprocessor Solaris box which windows timeslicing won't reveal, and there's the unix file system has a few more tricks, like being able to read and write a file simultaniously, but that's about it (from memory).
    The only practical difference developing on Solaris is the box won't crash behind the JVM.
    Oh, and your ant scripts & properties files will need porting.
    Good luck. Keith.

  • SSH Differences between Solaris 9 and Solaris 10

    I use public key authentication when connecting via SSH but have noticed a difference between Solaris 9 and Solaris 10 and wondered if it's an environment setup issue. I keep my keys in $HOME/.ssh
    When connecting from Solaris 9 I can provide an identity file without a path regardless of the directory that I'm in e.g.
    ssh -i my_identity_file user@hostnameThe above works even if I'm not in the $HOME/.ssh directory. But when using the same from Solaris 10 I get the following error:
    Warning: Identity file my_identity_file does not exist.If I run the command from $HOME/.ssh on Solaris 10 it connects fine, and if I pass in the path like so it works fine:
    ssh -i $HOME/.ssh/my_identity_file user@hostnameIs there a setting specific to SSH somewhere as I can't see anything in my environment that's different between the two systems. There's certainly no entry in $PATH that points to $HOME/.ssh. How could I get SSH to work on Solaris 10 by just providing the identity file name and not the full path
    Regards
    Rich

    It's not explicitly defined in /etc/ssh/ssh_config, so I'm assuming it would be using the default which is ~/.ssh/id_dsa.
    But surely that's irrelevant if I'm using the -i switch to provide the identity file?
    Remember the problem here is that I have to provide a full path to the identity file, whereas before just the filename would do.
    Rich

  • What are the differences between HP-UX and linux?

    Hi,
    Could u please send me the differences between HP-UX and LINUX.
    Thanks.

    This is a forum about Oracle SQL and PL/SQL.
    It is not about Unix or Linux.
    Your question is inappropriate here and demonstrates inability to do any research on your own.
    Sybrand Bakker
    Senior Oracle DBA

  • Solaris 10 and linux IB

    We have a linux cluster running RH5.3 with ofed1.4 using Mellanox MT25418. The cluster is attached to a sun solaris10.7 thumper box. The thumper box export a zfs filesystem via NFS. linux clients mount the filesystem via IPoIB.
    Under filesystem I/O load the subnet manager gets repeated path record requests from the sun solaris box. This can bring the SM and the fabric down. Any any one else had issue with solaris IB <-> Linux IB? Any insight into what could be causing the issue?
    Thanks,
    Mahmoud
    Oct 15 19:37: 59 952368 [41E02960] 0x08 -> PathRecord dump:
    service id ..............0x0000000000000000
    dgid .................... Oxfe80000000000000 : 0x00237dffff949819
    sgid .................... Oxfe80000000000000 : 0x0003ba000100d0a5
    dlid .................... 0
    slid .................... 0
    hop_flow_raw............ OxO
    tclass .................. OxO
    num_path_revers......... Ox81
    pkey .................... 0x0
    qos_class ............... OxO
    sl ......................OxO
    mtu .....................OxO
    rate .................... OxO
    pkt_life ................0x0
    preference .............. 0x0
    resv2 ................... OxO
    resv3 ................... OxO
    Oct 15 19:37:59 952376 [41E02960) 0x08 -> osm_pr_rcv_process: Unicast
    destination requested
    Oct 15 19:37:59 952382 [41E02960] 0x08 ->
    osm_pr_rcv_get_port pair_paths: Src port 0x0003ba000100d0a5, Dst port
    0x00237dffff949819
    Oct 15 19:37:59 952388 [41E02960] 0x08 ->
    osmpr_rcv_get_port_pair_paths: Src LIDs [2 - 2], Dest LIDs [67-67]
    Oct 15 19:37:59 952393 [41E02960] 0x08 ->
    osm prrcv_get_lid_pair_path: Src LID 2, Dest LID 67
    Oct 15 19:37:59 952399 [41E02960] 0x08 -> osmpr_rcv_get-path_parms:
    Path min MTU = 4, min rate = 6
    Oct 15 19:37:59 952408 [41E02960] 0x08 - > osmpr_rcv_get-path_parms:
    Path params: mtu = 4, rate = 6, packet lifetime = 18, pkey = OxFFFF, sl
    = 0
    Oct 15 19:37:59 952417 [41E02960] 0x08 - > osmpr_rcv_get_path_parms:
    Path min MTU = 4, min rate = 6
    Oct 15 19: 37:59 952423 [41E02960] 0x08 -> osm pr_rcv_get_path parms:
    Path params: mtu = 4, rate = 6, packet lifetime = 18, pkey = OxFFFF, sl
    = 0
    Oct 15 19:37:59 952428 [41E02960] 0x08-> osm_sa_respond: Returning 1
    records
    Oct 15 19:37:59 952433 [41E02960] 0x08 - > osm_vendor_get: Acquiring UMAD
    for p_madw = 0x2a9567f2c8, size = 120
    Oct 15 19:37:59 952439 [41E02960] 0x08 -> osm_vendor_get: Acquired UMAD
    0x2a9567f390, size = 120
    Oct 15 19:37:59 952455 [41E02960] 0x08 - > osm_vendor_put: Retiring UMAD
    0x2a9567f390
    Oct 15 19:37:59 952460 [41E02960] 0x08 -> •.osm_vendor_send: Completed
    sending response or unsolicited p_madw'"j= Ox2a9567f2b0
    Oct 15 19:37:59 952466 [41E02960] 0x08 -> osm_vendor_put: Retiring UMAD
    0x724520
    ===============
    Loading IBDIAGNET from: /usr/1ib64 / ibdiagnetl.2
    -W- Topology file is not specified.
    Reports regarding cluster links will use direct routes.
    Loading IBDM from: /usr/lib64 / ibdml.2
    - I- Using port 1 as the local port.
    - I- Discovering ... 103 nodes (7 Switches & 96 CA- s) discovered.
    -I ---------------------------------------------------
    - I- Bad Guids /LIDs Info
    -I -------------------------------------------------- -
    -I- No bad Guids were found
    -I -------------------------------------------------- -
    -I- Links With Logical State = INIT
    -I -------------------------------------------------- -
    -I- No bad Links (with logical state = INIT) were found
    -I ---------------------------------------------------
    -I- PM Counters Info
    -I -------------------------------------------------- -
    -I- No illegal PM counters values were found
    -I ---------------------------------------------------
    -I- Fabric Partitions Report (see ibdiagnet.pkey for a full hosts list)
    -I ---------------------------------------------------
    -I- PKey:Ox7fff Hosts:97 full:97 partial:0
    -I -------------------------------------------------- -
    -I- IPoIB Subnets Check
    -I ---------------------------------------------------
    -I- Subnet: IPv4 PKey:Ox7fff QKey:Ox00000blb MTU:2048Byte rate:lOGbps
    SL:OxOO
    -W- Suboptimal rate for group. Lowest member rate:20Gbps > grouprate:
    lOGbps
    -I ---------------------------------------------------
    -I- Bad Links Info
    -I- Errors have occurred on the following links
    (for errors details, look in log file / tmp/ibdiagnet.log):
    -I ----------------------------------------------------
    Link at the end of direct route "1,11,23"
    -I- Stages Status Report:
    STAGE
    Bad GUIDs /LIDS Check
    Link State Active Check
    Performance Counters Report
    Partitions Check
    IPoIB Subnets Check
    Link Errors Check
    Errors Warnings
    0 0
    0 0
    0 0
    0 0
    0 1
    0 0
    Please see /tmp/ibdiagnet.log for complete log
    - I- Done. Run time was 6 seconds.

    Hi, I am trying the same thing at least where I have windows xp, solaris 10 and Ubuntu Linux on one hard drive. I am also trying to configure Solaris to work like that too. Here is a link that I got from another forum that might help with that.
    http://www.opensolaris.org/jive/thread.jspa?threadID=44130&tstart=0

  • RMI-server works on Windows and Linux but not on Solaris

    I wrote an application which uses RMI. The server is successfully tested on Windows and Linux. However it doesn't work on Solaris.
    Naming.lookup works, I can find the server. But calling a method on my remote interface causes a ConnectionException:
    java.rmi.ConnectException: Connection refused to host: 192.168.1.123; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
         at sun.rmi.server.UnicastRef.newCall(Unknown Source)
         at at.triton.javaengine.server.ServerImpl_Stub.connectToWindow(Unknown Source)
         at at.triton.javaengine.client.JavaEngineClient.connectToWindow(JavaEngineClient.java:288)
         at at.triton.javaengine.client.JavaEngineClient.main(JavaEngineClient.java:787)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
         ... 7 moreNote that I have almost no experience with Solaris.
    Additional information about the common pitfalls which I have already checked:
    * rmiregistry finds the server classes (the exception was different without them)
    * the server is in the LAN and the desktop firewall of the client is double-checked to let the required ports through to any destination.

    java.rmi.ConnectException: Connection refused tohost: >192.168.1.123; nested exception is:
    java.net.ConnectException: Connection refused:
    : connect
    Clearly indicates what is happening inside there.Clearly indicates that you don't know what you are talking about.
    Any applications invoked with a security manager must
    be granted explicit permission to access local system
    resources apart from read access to the directory and
    its subdirectories where the program is invoked.Any application that gets a java.net.ConnectionException: Connection
    refused is getting it more or less directly from the TCP/IP stack. If the problem had anything to do with policies and permissions and SecurityManagers, it would have been an AccessControlException .
    if your client RMI doesnt include these lines then If your 'client RMI' does include these lines then I would like a definition of what exactly a 'client RMI' really is, because I've been using RMI for ten years and wrote a book about it and I certainly don't know.
    1)just include these lines
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new
    SecurityManager());In other words, if the application doesn't already have a security manager, in which case the contents of the policy file or the 'client RMI', or whatever you want to call it, are completely irrelevant, such that they couldn't possibly be having the problem you desrcribe, add a security manager so that we get into the land where you might possibly know what you're talking about?
    e a policy file
    grant {
    permission java.net.SocketPermission
    "192.168.1.123:1099", "accept,connect,resolve";
    };And this is completely unnecessary if there isn't a security manager, and completely unrelated to the OP's problem.

  • Why is my SSD showing 250mb/s difference between read and write...

    So i have recently upgraded to a SSD in my 2011 MBP. 2.4Ghz i5 16Gb RAM. I swapped my HDD with a Samsung 840 Series 250Gb SSD, I noticed a huge speed bump. See attached photos. Read is clocked at 503MB/s peak, and Write is clocked at 260MB/s peak on the SSD. My Question is why is there a 250MB/s difference between read and write?? Using Black Magic Disk Speed test. Mac OS X 10.8.4 Beta.
    Thanks

    Writes are performed very differently on SSD than they do on a hard drive, and it is common for SSDs to have lower write speeds than reads.
    It's actually quite interesting if you're a geek: http://en.wikipedia.org/wiki/Write_amplification
    As long as the speeds do match your manufacturer specification for the model (and they do: http://www.samsung.com/us/computer/memory-storage/MZ-7TD250BW ) , there is nothing to be concerned about.

Maybe you are looking for

  • HiRes photos

    I have created photo pages using the conventional iPhoto / iWeb functionality. But my photos only load in low / med resolution when accessing the site. Can I provide an option for HiRes - large size - access to the photos?

  • BAPI_PR_CHANGE within user-exit

    Hi friends am using the BAPI_PR_CHANGE within a user-exit while doing transfer posting in MIGO. since its within the user-exit i am not able to write commit work or transaction commit . Is ther any other way to commit the BAPI. Even once the document

  • Is my macbook capable of harboring this RAM?

    So I've visited tons of sites with little to no clue on what I should be looking for for RAM upgrades for my macbook. OWC, new egg, and crucial all seem to be good ones... but I don't know which one has the most desirable RAM upgrades. Plus I'm confu

  • C7280 All-in-One Printer - "Pump Motor Stalled" - how to fix?

    Any advice on what is to be done to fix the above issue would be greatly appreciated.  Thanks

  • Cannot install 10.6.  Says cannot install on this machine

    what does this mean?