URLDecoder behaviour in Solaris

I run following piece of code in solaris and windows env. and get different results. Pls can someone give idea what is wrong in my solaris setup.
//---------CODE START--------------
public class TestEncBasic
public static void main(String arg[])
String strURL = "%DC" ;
String strTest = java.net.URLDecoder.decode(strURL);
for (int i = 0 ; i < strTest.length() ; i++)
System.out.println("char =" + strTest.charAt(i) + " int =" + (int)strTest.charAt(i) ) ;
System.out.println("System encoding =" + System.getProperty("file.encoding"));
// ---------CODE END----------
Output in Solaris :
char =? int =65533
System encoding =646
java full version "1.3.1_06-b01"
OS : SunOS amazon 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-4
Output in Windows2000 :
char =&#9604; int =220
System encoding =Cp1252
java full version "1.3.1_04-b02"
Output in Linux :
char =� int =220
System encoding =ISO-8859-15
java full version "Blackdown-1.3.1-FCS"
OS: Linux conjurer 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown

The URLDecoder method you used uses the default charset encoding for the system you are on. You should use the method where you can specify the charset. a good charset to use is UTF-8 since it is a charset that java supports.
//---------CODE START--------------
public class TestEncBasic
public static void main(String arg[])
String strURL = "%DC" ;
String strTest = java.net.URLDecoder.decode(strURL, "UTF-8");
for (int i = 0 ; i < strTest.length() ; i++)
System.out.println("char =" + strTest.charAt(i) + " int =" + (int)strTest.charAt(i) ) ;
System.out.println("System encoding =" + System.getProperty("file.encoding"));
// ---------CODE END----------
This code should return the same answer for all systems

Similar Messages

  • Different X behaviour between Solaris 2.6 and 8

    Hi,
    We have recently upgraded a development box to Solaris 8 from 2.6. We have recompiled (same compiler) an application with no changes... and we get different behaviour. There are two problems that we are tracking so far:
    1. Buttons don't seem to be responding to their callbacks so we never leave our modal event loops.
    2. It looks like we're getting truckloads of X expose events causing lost of flicker on every dialog. The CPU is maxing out the whole time, redrawing windows takes forever after hiding it, etc. It seems to be mainly text boxes, but I can't be sure.
    We've copied a binary compiled on 2.6 onto the box and it runs fine so it seems. Is anyone aware of any issues/patches around this area, or any other info we can get to assist tracking down where the exposes are coming from.
    Thanks,
    Rhys

    Progress!
    If I compile with -DMOTIF12_HEADERS and then link with -lMrm12 (which resolves to libMrm.so.3 instead of libMrm.so.4 )and -lXm12 (which resolves to libXm.so.3 instead of libXm.so.4) my application behaves as expected.
    So it would seem that something has changed in Motif that my application does not like, or we were aleays doing something wrong and it just got worse, or... any ideas on where I can start hunting for such a beast?
    Thanks,
    Rhys
    Moazam,
    Just rebuilt using 6U2 both with and without -compat=4
    and it still exhibits the same behaviour... lots of
    expose events, flicker all over the place, high CPU
    usage (its around 60% and Xsun is around 30%).
    Any further ideas?
    Rhys
    To my knowledge, 4.2 is not supported on Solaris 8.
    You should try compiling your code with Forte
    Developer 6.2, and if you need, you can use the
    -compat flags.
    -Moazam

  • Correct Forum? CGI and Server behaviour on Solaris at system()-call

    Hi to you all,
    Do not know if i am in the correct forum, but maybe it is a Webserver problem.
    I have Sun ONE Webserver 6.1 running on Solaris.
    Craete some CGI`s in C.
    Now I have a problem with one CGI, which have to call a Shellscript via system() call.
    The Client just calls the CGI with some parameters, which will write the informations in a file with some additional informations from a database, after that, the script should be startet and do some printjobs in the background.
    The CGI and the Shell-script is working fine. My Problem is, that the system() call always waits, until the ShellScript has finished, so the Webserver send the "data successful written" site after a couple of minutes, it should send it immeditatly to the client, so the session is closed.
    I have tried to put the shellscript in background with "&", also with nohup and a second shell script which justs starts the first script, also with all combinations of nohup and "&" for background process.
    also i tried with "pclose(popen(SCRIPT,"W");" to call the script, it is always the same, the session will close only, when the script has been finished.
    In an other Forum I found an entry, that , however, IPlanet webserver always will do this in this way. The session will be closed, when all called processes has benn fisnished.
    Any Ideas to solve my problem?

    The web server reads from the CGI program's stdout. It knows the HTTP response is complete when the CGI program closes its stdout.
    When you call system(), the child process inherits the CGI program's stdout and keeps it open until it finishes. If you want the child process to run asynchronously from the HTTP response, you should give the child process a new stdout with > /dev/null. (You'll still need to place the child process in the background with &.) Alternatively, you can fork(), close(1), then exec().

  • JDK 1.6 on Solaris. Multiple java processes and thread freezes

    Hi, we've come across a really weird behavior on the Solaris JVM, reported by a customer of ours.
    Our server application consists of multiple threads. Normally we see them all running within a single Java process, and all is fine.
    At some point in time, and only on Solaris 10, it seems that the main Java process starts a second Java process. This is not our code trying to execute some other application/command. It's the JVM itself forking a new copy of itself. I assumed this was because of some JVM behaviour on Solaris that uses multiple processes if the number of threads is > 128. However at the time of spawn there are less than 90 threads running.
    In any case, once this second process starts, some of the threads of the application (incidentally, they're the first threads created by the application at startup, in the first threadgroup) stop working. Our application dumps a list of all threads in the system every ten minutes, and even when they're not working, the threads are still there. Our logs also show that when the second process starts, these threads were not in the running state. They had just completed their operations and were sleeping in their thread pool, in a wait() call. Once the second process starts, jobs for these threads just queue up, and the wait() does not return, even after another thread has done a notify() to inform them of the new jobs.
    Even more interesting, when the customer manually kills -9 the second process, without doing anything in our application, all threads that were 'frozen' start working again, immediately. This (and the fact that this never happens on other OSes) makes us think that this is some sort of problem (or misconfiguration) specific to the Solaris JVM, and not our application.
    The customer initially reported this with JDK 1.5.0_12 , we told them to upgrade to the latest JDK 1.6 update 6, but the problem remains. There are no special JVM switches (apart from -Xms32m -Xmx256m) used. We're really at a dead end here in diagnosing this problem, as it clearly seems to be outside our app. Any suggestion?

    Actually, we've discovered that that's not really what was going on. I still believe there's a bug in the JVM, but the fork was happening because our Java code tries to exec a command line tool once a minute. After hours of this, we get a rogue child process with this stack (which is where we are forking this command line tool once a minute):
    JVM version is 1.5.0_08-b03
    Thread t@38: (state = IN_NATIVE)
    - java.lang.UNIXProcess.forkAndExec(byte[], byte[], int, byte[], int, byte[], boolean, java.io.FileDescriptor, java.io.FileDescriptor, java.io.FileDescriptor) @bci=168980456 (Interpreted frame)
    - java.lang.UNIXProcess.forkAndExec(byte[], byte[], int, byte[], int, byte[], boolean, java.io.FileDescriptor, java.io.FileDescriptor, java.io.FileDescriptor) @bci=0 (Interpreted frame)
    - java.lang.UNIXProcess.<init>(byte[], byte[], int, byte[], int, byte[], boolean) @bci=62, line=53 (Interpreted frame)
    - java.lang.ProcessImpl.start(java.lang.String[], java.util.Map, java.lang.String, boolean) @bci=182, line=65 (Interpreted frame)
    - java.lang.ProcessBuilder.start() @bci=112, line=451 (Interpreted frame)
    - java.lang.Runtime.exec(java.lang.String[], java.lang.String[], java.io.File) @bci=16, line=591 (Interpreted frame)
    - java.lang.Runtime.exec(java.lang.String, java.lang.String[], java.io.File) @bci=69, line=429 (Interpreted frame)
    - java.lang.Runtime.exec(java.lang.String) @bci=4, line=326 (Interpreted frame)
    - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame)There are also several dozen other threads all with the same stack:
    Thread t@32: (state = BLOCKED)
    Error occurred during stack walking:
    sun.jvm.hotspot.debugger.DebuggerException: can't map thread id to thread handle!
         at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.getThreadIntegerRegisterSet0(Native Method)
         at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.getThreadIntegerRegisterSet(ProcDebuggerLocal.java:364)
         at sun.jvm.hotspot.debugger.proc.sparc.ProcSPARCThread.getContext(ProcSPARCThread.java:35)
         at sun.jvm.hotspot.runtime.solaris_sparc.SolarisSPARCJavaThreadPDAccess.getCurrentFrameGuess(SolarisSPARCJavaThreadPDAccess.java:108)
         at sun.jvm.hotspot.runtime.JavaThread.getCurrentFrameGuess(JavaThread.java:252)
         at sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg(JavaThread.java:211)
         at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:50)
         at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
         at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
         at sun.jvm.hotspot.tools.JStack.main(JStack.java:58)I'm pretty sure this is because the fork part of the UnixProcess.forkAndExec is using the Solaris fork1 system call, and thus all the Java context thinks all those threads exist, whereas the actual threads don't exist in that process.
    It seems to me that something is broken in UnixProcess.forkAndExec in native code; it did the fork, but not the exec, and this exec thread just sits there forever. And of course, it's still holding all the file descriptors of the original process, which means that if we decide to restart our process, we can't reopen our sockets for listening or whatever else we want to do.
    There is another possibility, which I can't completely rule out: this child process just happened to be the one that was fork'd when the parent process called Runtime.halt(), which is how the Java process exits. We decided to exit halfway through a Runtime.exec(), and got this child process stuck. But I don't think that's what happens... from what I understand that we collected, we see this same child process created at some point in time, and it doesn't go away.
    Yes, I realize that my JVM is very old, but I cannot find any bug fixes in the release notes that claim to fix something like this. And since this only happens once every day or two, I'm reluctant to just throw a new JVM at this--although I'm sure I will shortly.
    Has anyone else seen anything like this?

  • Password cannot be entered on Solaris 10

    Tried several complete installations for Solaris 10 on AMD based computer. After installation is complete I cannot enter the password when prompted for it at logon.

    Are you sure? The default behaviour in Solaris is not to echo anything back to you when you type your password. Just keep on typing it and finish with "enter".
    .7/M.

  • Fopen() on solaris 7 and solaris 8

    Hi,
    When I am trying to open more than 255 files using fopen()
    call, I am getting the different behaviour on solaris 7 and
    solaris 8. On sol 7 it returns 0 and errno set to 0. On
    sol 8 it returns 0, but errno set to 24. My application is
    using value of errno to implement the code to allow users
    to open more than 255 files. But it is failing on solaris 8
    becoz of the above behaviour. Is there any change in fopen()
    call?
    I have to fix my application ASAP. Any help in this regard
    will be greatly appreciated.
    regards,
    vinod.

    Hi Vinod,
    The err no 24 being returned by Solaris 8 is correct.
    if rlimit has been adjusted to greater than 256 fds, and
    fopen()'s call to open() returns a descriptor value greater
    than 255, fopen() used to return NULL but did not set
    the errno. hence it was fixed to set the errno to EMFILE
    which does correctly say " Too Many open Files".
    HTH
    Shridhar

  • Setting a floating IP in a solaris local zone!!

    I want to install my fault tolerant application in two different
    solaris local zones just to save the hardware cost and for testing
    purposes.
    Earlier before solaris 10, My application runs on two different
    machines and receives the incoming requests on a floating IP, thus it
    achieves the Fault tolerant behavior with floating IP moving across
    the machines on the active application.
    There was a separate monitoring process on each machine which runs as
    root user and sets and unsets the floating IP using ioctl system calls
    on a particular machine as per request received from the application.
    Now i want to replicate the same behaviour in solaris 10 setup with my
    Fault tolerant application running on two local zones and my
    monitoring process which runs on each local zone, set and unset the
    floating IP on the particular local zone.
    No i want to know that if it is possible for any application to set
    floating IP on a particular local zone, from that zone itself and how
    can we achieve the same?
    regards,
    rish

    <div class="jive-quote">
    <span class="jive-quote-header">MichaelMyers wrote:</span>
    I gather some big changes are afoot with the IP stack and zones with the latest Solaris update (the 8/07, update 4 release) -- each zone either does or can have it's own IP stack. This may change the answer to this question...those who's been playing with Open Solaris and/or Solaris Express probably can answer more about that.
    </div>
    That's correct. You can now use private IP instances for a non-global zone if you want. That zone will now have it's own IP stack and can up/down addresses or whatever. But for now they have to have their own dedicated "interface". This has to be an ethernet device or a VLAN device.
    <div class="jive-quote">
    <span class="jive-quote-header">
    On an unrelated note: the new forum editor apparently doesn't have a way to insert "code" type examples (eg. pre-formatted, in courier, etc.)...
    </span>
    </div>
    Yup. Even in the old editor it was inconsistent where worked.  Some forums it would, but not all.  I guess now it consistently doesn't work? :-)<br />
    <br />
    -- <br />
    Darren<br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Solaris hangs when Oracle SGA is too large

    I am an Oracle DBA with preconfigured Solaris servers. Our Unix admin is outsourced so we don't have a lot of good support here. When I set the instance SGA too large the server hangs and requires a hard reboot It seems that the error is due to insufficient memory or swap. Is this normal behaviour for Solaris 10? Shouldn't the process abend before the server does?

    I've managed to duplicate this behavour on two seperate boxes. The first server is quite small only 1G physical memory and the SGA target was set too high. Additionally Oracle was competing with other resources on this box. Still it was surprising to me that the server actually hung. I would have expected to get something like "shared memory realm does not exists" if there was not enough memory.
    The second box has 8G physical memory and 4G swap. I set up the oracle /etc/project parameters for this one, here are the kernel settings:
    shminfo_shmmni = 256
    seminfo_semmni = 128
    shminfo_shmmax = 4G
    seminfo_semmsl = 256
    In this case Solaris hung when I started the database with a 4G MAX_SGA_SIZE, I don't think SGA_TARGET was set. I think the server ran out of swap but I'm still confused because it seems like physical memory should have been available. Also I don't understand why the Oracle instance would have even been using swap because Oracle locks physical memory using ISM or DISM.
    In both case the OS hung and could only be revived with a hard reboot.

  • Weird behaviour of firefox in solaris 10

    Hi forum,
    I have noticed some weird (at least to me) of Firefox on Solaris.
    My desktop system is OpenSuse 11.1 and when I login to the Solaris server using ssh -X and then start Firefox remotely on the server one of 2 things happen.
    1- If I am not running firefox on my desktop Firefox is started remotely on the server and displayed locally, exactly as you expect it to.
    2- If ,however, I am already running Firefox on my OpenSuse system, the weird thing happens: even though I start Firefox remotely it actually (somehow) runs another instance of Firefox on my desktop as is obvious from the bookmarks end the ps command.
    Frankly I do not understand how this clever feature works, but I would like to switch this of definitely.
    Any ideas please?

    Firefox is looking at the X server to see if a copy is already running, then sending an X message to it to open another window.
    I'm not sure if there's an option to modify the behavior.
    Darren

  • Solaris 10 - strange behaviour

    Hi
    I've upgraded Solaris 9 to Solaris 10.
    All of the sudden the server hangs 1-4 times a day with the following messages:
    (I've greped for restarts and the strange messages)
    egrep -i 'SunOS|Resource temporarily unavailable' *
    14:Jan 12 20:06:02 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    14:Jan 12 20:10:22 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    14:Jan 14 00:21:37 invldnunetbkupv1 inetd[706]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    14:Jan 15 07:33:55 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    14:Jan 15 15:19:17 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    14:Jan 15 18:38:32 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    14:Jan 15 19:19:12 invldnunetbck1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    15:Jan 16 16:21:06 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    15:Jan 16 16:34:05 invldnunetbck1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    15:Jan 16 17:10:27 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    15:Jan 17 17:28:08 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    15:Jan 18 13:04:32 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    15:Jan 18 13:49:52 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    15:Jan 19 23:13:44 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    16:Jan 23 21:00:38 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    16:Jan 23 22:59:03 invldnunetbck1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    16:Jan 24 09:39:08 invldnunetbck1 tldcd[1775]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 09:50:47 invldnunetbck1 tldd[1763]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 09:53:56 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/telnet:default: Resource temporarily une
    16:Jan 24 09:54:41 invldnunetbck1 tldd[1763]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 09:56:50 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/telnet:default: Resource temporarily une
    16:Jan 24 09:57:35 invldnunetbck1 tldd[1763]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 09:58:03 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarily e
    16:Jan 24 09:58:41 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarily e
    16:Jan 24 10:00:12 invldnunetbck1 tldd[1763]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 10:01:19 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarily e
    16:Jan 24 10:01:39 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarily e
    16:Jan 24 10:07:53 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarily e
    16:Jan 24 10:08:13 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarily e
    16:Jan 24 10:08:33 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarily e
    16:Jan 24 10:08:53 invldnunetbck1 inetd[354]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarily e
    16:Jan 24 10:28:33 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    16:Jan 24 13:29:11 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:31:34 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:35:02 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:35:04 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:35:24 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:35:45 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:36:11 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:37:24 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:41:13 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:41:13 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:44:07 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:45:53 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:46:14 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:46:37 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:47:04 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:47:33 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:47:55 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:47:59 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:48:24 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:48:49 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:49:24 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:51:37 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:52:27 invldnunetbkupv1 tldcd[1768]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:52:28 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:52:52 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:53:17 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:53:51 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:54:19 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:54:48 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:55:15 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:55:40 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:56:10 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:56:41 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:57:05 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 13:57:30 invldnunetbkupv1 tldcd[1768]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 13:57:30 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:00:11 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 14:01:01 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:01:21 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:01:42 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:02:03 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:02:48 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 14:05:31 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 14:13:44 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 14:18:23 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/login:rlogin: Resource temporarily une
    16:Jan 24 14:18:43 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:19:03 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:19:23 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:19:43 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:20:07 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:20:33 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:20:59 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:29:44 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 14:29:49 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:30:10 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:30:30 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: Resource temporarile
    16:Jan 24 14:32:00 invldnunetbkupv1 inetd[340]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/login:rlogin: Resource temporarily une
    16:Jan 24 14:35:42 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 14:38:03 invldnunetbkupv1 tldd[1759]: [ID 607622 daemon.error] TLD(0) fork failure, Resource temporarily unavailable
    16:Jan 24 14:43:13 invldnunetbkupv1 genunix: [ID 540533 kern.notice] ^MSunOS Release 5.10 Version Generic_118833-33 64-bit
    as you can see after the message "Resource temporarily unavailable" I have to restart server because NetBackup cannot be reached from the outside.
    Could you help me with it? The worst thing is that the Microsoft guys says that Solaris is very unstable and I cannot deny it :-(
    Regards
    Paul

    Mar 6 08:33:59 swtc xntpd[6880]: [ID 774427 daemon.notice] time reset (step) 0.203715 s
    Mar 7 11:15:39 swtc xntpd[6880]: [ID 774427 daemon.notice] time reset (step) 0.372859 s
    Mar 7 15:15:18 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/UserCounter/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:15:44 swtc last message repeated 1 time
    Mar 7 15:16:11 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/MikepLogin/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:16:38 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/ecomfd/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:17:15 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/ecomd/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:17:40 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/vnetd/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:18:08 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/pverupde/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:18:36 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/UserCounter/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:19:28 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/ecomd/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:19:59 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/vnetd/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:20:27 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/bpcd/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:20:56 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/pverupde/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:21:21 swtc VERITAS: [ID 702911 user.error] Failed to add server.
    Mar 7 15:22:58 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/telnet:default: ���������� ���������� ������ ����
    Mar 7 15:23:24 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/UserCounter/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:23:31 swtc sg: [ID 686534 kern.notice] VERITAS SCSA Generic Revision: 3.5c
    Mar 7 15:23:31 swtc pseudo: [ID 129642 kern.info] pseudo-device: devinfo0
    Mar 7 15:23:31 swtc genunix: [ID 936769 kern.info] devinfo0 is /pseudo/devinfo@0
    Mar 7 15:23:33 swtc pseudo: [ID 129642 kern.info] pseudo-device: fcsm0
    Mar 7 15:23:33 swtc genunix: [ID 936769 kern.info] fcsm0 is /pseudo/fcsm@0
    Mar 7 15:23:49 swtc sg: [ID 686534 kern.notice] VERITAS SCSA Generic Revision: 3.5c
    Mar 7 15:23:52 swtc inetd[355]: [ID 702911 daemon.error] Unable to fork inetd_start method of instance svc:/network/ecomfd/tcp:default: ���������� ���������� ������ ����
    Mar 7 15:24:04 swtc sg: [ID 686534 kern.notice] VERITAS SCSA Generic Revision: 3.5c
    Mar 7 15:24:05 swtc pseudo: [ID 129642 kern.info] pseudo-device: devinfo0
    Mar 7 15:24:05 swtc genunix: [ID 936769 kern.info] devinfo0 is /pseudo/devinfo@0
    Mar 7 15:24:07 swtc pseudo: [ID 129642 kern.info] pseudo-device: fcsm0
    Mar 7 15:24:07 swtc genunix: [ID 936769 kern.info] fcsm0 is /pseudo/fcsm@0
    Mar 7 15:24:13 swtc VERITAS: [ID 702911 user.error] Failed to add server.

  • Behaviour  of JSTL c:choose tag on solaris .

    Hi
    I am using <c:choose> JSTL tag like
    <c:choose>
    <c:when..>
    </c:when>
    <c:when..>
    </c:when>
    <c:choose>
    instead of
    <c:choose>
    <c:when..>
    </c:when>
    <c:otherwise>
    </c:otherwise>
    <c:choose>
    It works fine on windows but not work on solaris.
    I am really confused . can any one plzz help me out?
    Thanks in advance

    That makes sense, but when I try other code like it, see below, it's not working again. Can you see anything wrong with this code?
    <select name="state">
    <c:forEach items="${pageBean.states}" var="state">
    <option value="<c:out value="${state.stateCode}" />"
    <c:choose><c:when test="${state.stateCode == detailsBean.state}"> selected="selected"</c:when>
    <c:otherwise><c:when test="${state.stateCode == 'PA'}"> selected="selected"</c:when></c:otherwise></c:choose>><c:out value="${state.stateCode}"/></option>
    </c:forEach>
    </select>
    The JSP won't display properly with the code this way, but it looks like what you suggested.

  • View works in Solaris in 1 minute but doesn't work in WIn2003

    We have a view is badly written. Other than the non-searchable conditions like '%*%'. What else is wrong:
    CREATE OR REPLACE FUNCTION anycon_p(neid NUMBER, joinaid VARCHAR2, sdf NUMBER, nodetype NUMBER ) RETURN N
    UMBER IS
    fromid NUMBER :=0;
    BEGIN
    if (nodeType=302 or nodetype = 303 )then
    select count(1) into fromid from JS_CM_TP tp where (tp.ne_id=neid)
    and (tp.tp_joinaid = joinaid) and (tp.tp_sdf = sdf) and (tp.crs_emlkey is not null);
    elsif (nodeType=307)then
    select count(1) into fromid from JS_CM_TP tp where (tp.ne_id=neid)
    and (tp.tp_joinaid = joinaid)and (tp.tp_sdf <= sdf)
    and (tp.tp_sdf+2 >= sdf)and(tp.crs_emlkey is not null);
    elsif (nodeType=308)then
    select count(1) into fromid from JS_CM_TP tp where (tp.ne_id=neid)
    and (tp.tp_joinaid = joinaid) and (tp.tp_sdf <= sdf)
    and (tp.tp_sdf+11 >= sdf)and(tp.crs_emlkey is not null);
    end if;
    RETURN fromid;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RETURN 0;
    END;
    CREATE OR REPLACE VIEW JS_QUERY_FAC_AVAIL_VW AS
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid,
    c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND (tp.TP_DV_NODETYPE='300')
    AND (tp.TP_TPTYPE ='DGR')
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR tp.CRS_EMLKEY is null)
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    UNION ALL
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid,
    c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND ((tp.TP_DV_NODETYPE='302' AND tp.tp_tptype='DGR'
    AND((tp.tp_rawpst NOT LIKE '%UAS%') OR(tp.tp_joinaid NOT LIKE 'EPMX24%')))
    OR(tp.TP_DV_NODETYPE='303' AND((tp.tp_rawpst NOT LIKE '%UAS%') OR
    (NOT EXISTS ( select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.NE_ID)
    where (tp1.ne_id = tp.NE_ID)
    and (tp1.tp_sdf = tp.tp_sdf)
    and (tp1.tp_dv_nodetype = '302')
    and (tp1.tp_rawpst not like '%UAS') )))))
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR (NOT EXISTS ( select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.NE_ID)
    and (tp1.tp_joinaid = tp.tp_joinaid)
    and (tp1.tp_sdf = tp.tp_sdf)
    and (tp1.crs_emlkey is not null) ) ) )
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    UNION ALL
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid,
    c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND tp.TP_DV_NODETYPE IN ('307')
    AND (tp.tp_aid not like '%-P-%')
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR (NOT EXISTS (select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.NE_ID)
    and (tp1.tp_joinaid = tp.tp_joinaid)
    and (tp1.tp_sdf <= tp.tp_sdf)
    and (tp1.tp_sdf >= tp.tp_sdf-2)
    and (tp1.crs_emlkey is not null) ) ) )
    UNION ALL
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid, c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND tp.TP_DV_NODETYPE = '308'
    AND (tp.tp_aid not like '%-P-%')
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR (NOT EXISTS (select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.ne_id)
    and (tp1.tp_joinaid = tp.tp_joinaid)
    and (tp1.tp_sdf <= tp.tp_sdf)
    and (tp1.tp_sdf >= tp.tp_sdf-11)
    and (tp1.crs_emlkey is not null) ) ) )
    WITH READ ONLY;

    If you think anybody's going to be able to point out flaws in that code you're mistaken. Well, maybe somebody with time on their hands will go through it but I doubt it.
    But given your subject the real point of enquiry ought to be, what is the difference between your Solaris set up and your Windows environment? And what do you mean by
    doesn't work in WIn2003please describe observed behaviour, including error messages if appropriate.
    Cheers, APC

  • Custom JButton displays properly on Win2K, not under Solaris

    We have an applet that creates a panel of custom JButtons, each of which has a set of associated icons, two of which are "active" and "inactive" (there are also disabled, rollover, etc. icons). At runtime, when a button is clicked, its icon property is set to the "active" one. If another button in the panel is clicked, the first button has its icon property set to the "inactive" one.
    This displays fine when the applet is running on a Win2k machine (with the Java 1.3 plugin under either Netscape 6.2 or IE 5.5, but when we run it on a SunRay connected to a Sun Ultra80 running Solaris 8 with Netscape 6.2 and the Java 1.3 plugin, the "inactive" icon for one particular button is blank - we get a white rectangle - but when we click on the rectangle (or mouseover it), the appropriate icon appears as it should.
    When I specify a different icon to be used (reusing the .gif file from one of the other buttons)I get the same behaviour. When I reorder the buttons in the panel, the same button (now in a different position) still behaves improperly.
    Any thoughts?
    Thanks,

    No solution, but for what it's worth.
    As part of my "diagnosis by trying things out" (NOT "debugging by..." - or at least I don't admit to that :) I created a second instance of the problem button and stuck it in the panel.
    Lo! the new instance had the problem, BUT THE FIRST WAS FINE. I did a few more experiments, and the first-created instance was the one to have problems, while the second is fine, so the current work-around is to make an instance, ignore it (just leave it as a field of the class that builds the panel, but don't add it to the panel), make another instance and use that in the panel.
    My boss is happy, our client is happy (they have a demo using the a group of Sunrays), but I really wish I knew what was going on. I don't THINK that the problem button was the first instance of its class to be created (I'm at home and the thought just came to me) but it's possible and raises some more hypotheses to test.

  • Select() function is not working properly in solaris 10.

    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.
    Thanks a lot.
    Regards,
    Srikanth.

    haisrig wrote:
    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.Hi
    It sounds to me that you've been lucky for 20 years then.
    Local POD variables on the stack that aren't explicitly initialized can contain any value. Here's what I see in your app with dbx
    (dbx) run
    Running: sel
    stopped in main at line 9 in file "sel.cpp"
        9      sleeptime.tv_sec = 60;
    (dbx) print sleeptime
    sleeptime = {
        tv_sec  = -4198732
        tv_usec = 0
    }That's on a Solaris 10 SPARC machine. If I try it on a Solaris 10 x86 box then I get
    (dbx) print sleeptime
    sleeptime = {
    tv_sec = -830490588
    tv_usec = 134510556
    and I see the behaviour that you describe.
    Paul

  • Strange GC behaviour

    We have an application which is very heavy on object creation. When we run the application after 4-6hours we get OutOfMemory(OOM) even though there seems to be enough memory and high enough permanent generation space (~256MB).
    I have tried various options to use parallel young generation and CMS GC for olf generation. Also tried allowing class unloading from the permanent generation space. We do not get OOM now but the application grinds to halt with a very high CPU usage, which corresponds to long and contunuous GC that takes more than 10 second for minor collections.
    I have tried various settings to help the promotion of objects in the YG to tenured space by lowering the size of YG and setting JVM parameters to compact the tenured space to prevent fregmentation.
    Profiler does not show any suspicuos memory leak in our application.
    However, there is something happening in the GC logs that I cannot understand. The following is from the GC output
    12199.621: [GC 12199.622: [ParNew: 16256K->0K(16320K), 0.2017510 secs] 207698K->191557K(786368K), 0.2019374 secs]
    12201.795: [GC 12201.795: [ParNew: 16256K->0K(16320K), 0.2048213 secs] 207813K->192260K(786368K), 0.2050363 secs]
    12203.873: [GC 12203.873: [ParNew: 16256K->0K(16320K), 0.2146450 secs] 208516K->194418K(786368K), 0.2148564 secs]
    12206.033: [GC 12206.033: [ParNew: 16256K->0K(16320K), 1.0297104 secs] 329458K->314748K(786368K), 1.0299117 secs]
    12208.379: [GC 12208.379: [ParNew: 16256K->0K(16320K), 0.9179062 secs] 331004K->316549K(786368K), 0.9181090 secs]
    12211.448: [GC 12211.448: [ParNew: 16256K->0K(16320K), 0.9260658 secs] 332805K->318359K(786368K), 0.9262664 secs]
    If you look at the output in bold where the GC time jumps from 0.2148564 secs to 1.0299117 secs, the heap size after collection also jumps from 194418K to 314748K.
    How could this be? A jump of 120330K is more than 7 times bigger that the YG size. This cannot be due to object allocation?
    Only thing I can think of is a JVM bug with class loaders. I found a JVM bug with class loaders (5033614) which is according to release notes fixed with in 1.4.2_07. I have tried 1.4.2_08 with no success.
    I observed this sort of jumps are happening wiht class unloading messages such as below where GC time jumps from 0.3070497 secs to 1.0390087 secs.
    5231.303: [GC 5231.304: [ParNew: 16256K->0K(16320K), 0.3068234 secs] 386613K->370358K(786368K), 0.3070497 secs]
    5231.866: [GC 5231.866: [ParNew: 12685K->0K(16320K), 0.4980721 secs]5232.365: [CMS[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor138]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor20]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor29]
    [Unloading class sun.reflect.GeneratedMethodAccessor13]
    : 370358K->195960K(770048K), 3.4865979 secs] 383043K->195960K(786368K), 3.9850061 secs]
    5236.620: [GC 5236.620: [ParNew: 16256K->0K(16320K), 1.0387359 secs] 331000K->314830K(786368K), 1.0390087 secs]
    AFAIK this would only happen when there is not enough space in the Permanent Generation space. This would even happen even with the -XX:PermSize=256m -XX:MaxPermSize=256m. Is there something else that triggers class unloading? (Tuning off class unloading did not help with the GC times)
    The platform is 2 CPU Solaris 9, 1.4.2 Sun JDK, OC4J app server. And the log is produced with
    java -server -XX:PermSize=192m -XX:MaxPermSize=192m -XX:NewSize=8m -XX:MaxNewSize=8m -Xms1024m -Xmx1024m -XX:SurvivorRatio=64 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:-CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -Djava.awt.headless=true -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar oc4j.jar
    Any comment is greatly appreciated.

    I do not have the heap statistics when OOM occurred but there were enoughtmemory available then. I am certain that permanenet generation space was not exceeded which was 256MB and never exceeds 128MB in my GC output analysis. I suspect it was something to do with heap resizing so I fixed -Xms and -Xmx to do same value and run parallel and CMS garbage collection and we did not get the OOM again.
    However, the stack dump when OOM occurred consistently showed a line in our code with a thread in 'waiting on condition' state. The code that is implicated is only using log4j to log some messages.
    "HttpRequestHandler-1450695169" prio=5 tid=0x00000001018bc6b0 nid=0x19 waiting on condition [ffffffff012ff000..ffffffff01301500]
    I suspected of a thread deadlod but stack dump shows no deadlock message. Profiling of the app also did not point out any deadlocks. Is there a known issue with log4j in this area? (I could not find any reference to this on the Internet)
    With the current settings we do not get OOM but we get some unusual behviour as I posted in my original post which shows a jump in old generation (probably permanent generation or C heap) that is 7+ time bigger than the objects allocated in that period.
    At the moment I see continuous and slow GC without any apparent need -plenty of tenured and permanent space are available. The young generation collection is taking too long with CPU consumption stauck at ~95%. See below
    19384.564: [GC 19384.564: [ParNew: 8064K->0K(8128K), 5.5018406 secs] 563049K->555965K(1048512K), 5.5020402 secs]
    19390.254: [GC 19390.255: [ParNew: 8064K->0K(8128K), 5.2093746 secs] 564029K->556598K(1048512K), 5.2095620 secs]
    19395.593: [GC 19395.594: [ParNew: 8064K->0K(8128K), 5.1898968 secs] 564662K->557699K(1048512K), 5.1900956 secs]
    19400.904: [GC 19400.904: [ParNew: 8064K->0K(8128K), 5.1879878 secs] 565763K->558361K(1048512K), 5.1881776 secs]
    I don't think promation of YG objects|fragmentation of tenured spaces is the problem as the YG is set to be very small 8MB (ond heap is 768MB) and compaction is done for tenured space (-XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0).
    I don't have a test case as I do not know the cause . The application is very large and under heavy load with plenty of reflection code but observation of GC output showed Permanent Generation remains under 128MB and we are having this problem with settings of -XX:PermSize=256m -XX:MaxPermSize=256m
    I cannot understand GC behaviour I described in my original post but I did see similar bug entries with no satisfactory explanation from the Sun engineers.
    I suspect C Heap might be strained and it might be it that is causing class unloading as I said it occurs even when there is plenty of Permanent Generation space is available (turning off class unloading did not help either).

Maybe you are looking for

  • How to Upload Mutilple Images in content repository?

    Hi How to Upload Mutilple Images in content repository? I have a html which shd be displayed and it has 3 images which shd be displayed in the same page Here i am able to display the HTML uploaded in content repository but the images are not displaye

  • Viewing Tif images in a browser

    Hello all, please keep in mind that I know nothing about BEA so try to dumb down any of responses. :) Thanks. Here's the issue. My company has outsourced a project to a company and there's currently a problem with the program of viewing tif images in

  • How much data does a Ipod touch 8gb hold? Music? Games ? Apps?

    How much does an ipod touch hold 8GB ? How much music ? How much Apps ? And how much games?

  • URGENT REQUIRE -- parameter's form language cann't read

    i have a problem with my report. field in parameter form in report builder can not change in thai language (font). So I can't read output word in Thai. what should I do ? (urgent require...) )

  • Issue exporting JPEGs

    Hi there, I'm having some major issues exporting JPEGs from inDesign. Where I've been successful before on another copy (a workmate's) my newly purchased copy of inDesign CS5.5 is being troublesome. What I want to do is select a series of images in a