JVM GC problem

Hi,
(a) I experience memory problem. Rate at which objects are created are quite high (10,000 objects /secound).
Object expiration is done in a seperate thread. 2gb heapsize gets full in an hour. Seems rate of GC is not
high enough.
(b) GC should be done in concurrent, with no big pauses, for this to happen I attempted all below options - maximize young generation - prevent major collections. But none seem to work. Also I observer pause during profiling but verbose log gives no indication of full and tenured collections.
-Xms512m -Xmx2048m -XX:MaxPermSize=64m -XX:NewRatio=2 -XX:SurvivorRatio=10 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+PrintGCDetails -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Xloggc:gcprofile.log -verbose:gc -XX:+PrintTenuringDistribution -Xloggc:/home/soruser/workspace/sor/quotereceiver/gc.log -Xss128k -XX:+UseBiasedLocking -XX:ParallelGCThreads=20 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts -XX:SurvivorRatio=8 -XX
:TargetSurvivorRatio=90
(c) I need settings to be fast and close to real time systems. With huge amount of objects created garbage collection should happen fast.
Thanks

1.Can you upload your GC log?
2.Strongly reccomend JProfiler, you'd better use remote profiling mode.
3.You must modify your program. Simply tuning will never fix such problem.

Similar Messages

  • Unable to find jvm.dll problem

    Hi,
    The problem is how to let windows know the jvm.dll is located at c:\jdk1.3\jre\bin\classic. When I execute invoke.exe, it will say unable to create JVM, bcoz jvm.dll not found.
    If I copy the invoke.exe in c:\jdk1.3\jre\bin\classic, it is working fine, able to find jvm.dll
    Thank you

    I try to add PATH toc:\jdk1.3\jre\bin\classic, but it doesn't work.
    I did not put jvm.dll. But,Don't know why, suddenly it work. May be while compiling, I add jvm.dll directory in source files dir, header file dir, library file dir, executable file dir. I am not sure.
    Thank you very much.

  • JVM location problem

    Hi,
    Iam a new to java technology. one of the setup application askig the Java Virtual machine location in my system. i have java in C:\j2sdk1.4.1_02
    what should i give from dir's in that like bin,lib and jre

    usually when a program asks for the jvm location, give the top level directory, such as
    C:\j2sdk1.4.1_02
    not the bin or lib directories

  • JVM Encoding Problem

    Hi everyone:
    I have encountered a wried problem. I developed my program on Windows and my windows is Chinese, Then I packaged my program and run it under Linux., My Linux is English. Well the problem comes out, I found the output in linux os is mess code.
    How can I solve this problem,Thank very much.

    Hi everyone:
    I have encountered a wried problem. I developed
    my program on Windows and my windows is Chinese,
    Then I packaged my program and run it under Linux.,
    My Linux is English. Well the problem comes out, I
    found the output in linux os is mess code.Yeah. That says it all.
    How can I solve this problem,Thank very much.By providing a better problem descriptions. What's not showing correctly where?

  • JVM memory problem

    I have a memory problem which it exceeds a maximum limit and my application will suspend to restart my service of this application, after that everything is okay.
    so i need ask about,
    How can I know if my Garbage Collection is working or not??
    How can I force Garbage Collection to work???
    How can I force Garbage Collection to stop???
    if there are addetional way to trace Memory performance beside Runtime class??

    Cross post:
    http://forum.java.sun.com/thread.jspa?threadID=693125

  • JVM Upgrade Problems - ASAP

    One of our customers has recently migrated from 1.3.01 to 1.4.1. Unfortunately our GUI now behaves incorrectly. In particular when calling a method to invoke a dialog box fails. All the user sees is the small blue strip at the top of the box. All the other parts are missing.
    I was wondering what has been depricated in this version. Unfortuately, the applet was developed and is still maintained using Symantec Visual Studio 2.5! I am unable to replicate this problem in debug.
    If our customer uses opts to use the MVM the GUI behaves normally. I hope someone can point me in the right direction.
    Thanks in advance
    Gary

    Suggest you recompile under 1.4.1 and then give it to them to try if you have not already.
    I know I had issues moving 1.2 - 1.3 and recompiling the code under 1.3 fixed the problems.
    Does the bar you mention have the blank dialog underneath, or is it just a case that you only see the blue bar and the dialog is non existant. If it is the later and by dragging the dialog bigger you see the text then you need to chec how you are making the layout. (I know what I mean but I cannot seem to write it out ;0( )

  • JVM Installation Problems

    October 24, 2004
    This is my first time and am also very new to the Java community. Hopefully, you can answer some of my questions. For several months, I have been unable to get into the chat rooms because my browser is unable to support Java. Please enable Java and reload or try our HTML Client.
    On 10-24-04, after talking with Microsoft technical support, they mentioned about downloading and installing the Virtual Machine by going to http://www.microsoft.com/java which I downloaded from.
    Here is a list of the downloading and installation which I did.
    1. Installed the solaris patches 7, 8, 9
    2. Downloaded and installed the Java web start.
    3. Downloaded and installed the j2re-1_4_2 05 solaris sparc.sh
    4. Downloaded and installed the j2re-l_4_2_05 windows j586-piftw.exe
    I am also receiving an error message from Microsoft Vlsual C++Runtime Library Rintime Error -Program C: Program Files Internet Explorer\ieexplorer.exe $6025 pure vurtual function call.
    I do have Windows XP Home Version which I have upgraded from Windows 98. My internet provoder is MSN.
    I need some answers as to what I need to do in order to get into the Yahoo chat.
    Please help me.

    I suggest:
    - Uninstal the Microsoft VM
    - run windowsupdate.microsoft.com
    - reinstall the latest windows from Sun.

  • Oracle 9i Lite and CPU problems

    Are there any known problems with 9i Lite clients on Celeron or other CPU models ?
    I know there were JVM related problems with one of the Oracle Universal Installers (been there) but this problem occurs when running msql to access the polite db.
    eg.
    msql system/x@polite
    msql system/x@polite:polite
    msql system/x@jdbc:polite:polite
    All return a [POL-3013] bad database or invalid password error. Suspect that MSync does not work for the same reason.

    I also get the POL-3013 error message when trying to connect to the polite database as well as my own db. I can setup the user-dsn and run CREATEDB with no errors. I can even validate the db and no errors are reported. But I cannot use msql to connect to it. It used to work on my previous Win2k-machine with P4 cpu, but will not work with XP and Celeron.

  • Repeated object sending problem

    why when you serialize the same reference multiple times after an internal state change does it not update in the sent copy?
    meaning , if i have a Tree object with a height parameter , and i send it with height=50 and then i update the same objects (SAME!!!) height
    to 30 and send it , it will still arive to its destination with 30 .
    Tree t=new Tree(30);
    out.writeObject(t);
    t.setHeight(50);
    out.writeObject(t); ...
    Tree t=(Tree)in.readObject();
    System.out.println(t); //height : 30
    t=(Tree)in.readObject();
    System.out.println(t); //height:30 i think it maybe JVM cache problem that saves the objects fields in order to send it faster in future times .

    ObjectInput/OutputStreams have this functionality to keep and object from being serialized multiple times if the object is reference multiple times in an object graph. If you want to resend and object that you have already sent, and you want your changes to go with it, then you must call:
    ois.reset();

  • Lauching a JVM from C and providing interface to C++

    Hi
    I'm work on a project that launch a JVM using JNI.
    I need to provide a interface to a C++ class through JNI in order to allow the launched JVM to access it. The code of this class is in the program that launch the JVM
    The problem is that java does not find the given function and fails with:
    java.lang.UnsatisfiedLinkError: altitude
    The function is present in the database (checked with "nm" against the name given by javah).
    I supposed that there is some kind of addressing or kind of "namespace", but don't know how to avoid it.

    From a program in a JVM call a routine which has a JNI that launches a new JVM using
    C? Why would you want to do this?No it's not what I am doing.
    From a C++ program that follows I launch a JVM (that's working, the code have been simplified a bit) and retrieve methods id to store them in attributes (variables names starting with underscore):
          // Create the JVM oine time only
          if (NULL == _env)
            JavaVMInitArgs  vm_args;
            JavaVMOption*   options = NULL;
            char*           char_options = NULL;
            list<string>    user_options;
            _database.getPropertyList("simu.locals.java", "option", &user_options);
            if (0 != user_options.size())
              unsigned long index = 0;
              options = new JavaVMOption[user_options.size()];         
              for (list<string>::iterator   it = user_options.begin();
                   user_options.end() != it; it++)
                char_options = strdup(it->c_str());
                options[index++].optionString = char_options;
              vm_args.nOptions = user_options.size();
            vm_args.version = JNI_VERSION_1_4;
            vm_args.options = options;
            vm_args.ignoreUnrecognized = JNI_TRUE;     
            JNI_CreateJavaVM(&_jvm, (void**)&_env, &vm_args);    
          // Retrieve the class and method that will allow to create the
          // planner
          _cls = _env->FindClass(class_name->c_str());
          string*   method =
            _database.getProperty("simu.locals.java.methods.init.name");
          string*   sig =
            _database.getProperty("simu.locals.java.methods.init.signature");
          string*   port =
            _database.getProperty("simu.locals.java.methods.init.argument");
          string            nid = str(format("%d") % id);
          jmethodID         mid =
            _env->GetStaticMethodID(_cls, method->c_str(), sig->c_str());
          jint              arg1 = lexical_cast<unsigned int>(*port);
          jstring           arg2 = _env->NewStringUTF(nid.c_str());
          _planner = _env->CallStaticObjectMethod(_cls, mid, arg1, arg2);
          // Save the method ID we'll need later     
          method =
            _database.getProperty("simu.locals.java.methods.incoming.name");
          sig =
            _database.getProperty("simu.locals.java.methods.incoming.signature");
          _incoming = _env->GetStaticMethodID(_cls, method->c_str(), sig->c_str());
          method =
            _database.getProperty("simu.locals.java.methods.outgoing.name");
          sig =
            _database.getProperty("simu.locals.java.methods.outgoing.signature");
          _outgoing = _env->GetStaticMethodID(_cls, method->c_str(), sig->c_str());Then I call the retrieved static method of the class when needed.
    This work perfectly, as far as i have tested.
    But now, the java part will need to access some algorithm and datas already existing in the C part. So i made a very simple interface:
    ** Interface to the environement C++ class
    package provided;
    public class Environment
        ** Methods implemented in Environment.cc
        public static native double altitude(double lat, double lon);
    }I generate the interface with javah and implement it quicly (doing nothing):
    #include <iostream>
    using namespace std;
    ** This file implement the interface betwen the C++ class Environment
    ** (from Environment.h) and the Java class provided.Environment whose
    ** native method are described in provided_Environment.h.
    ** It uses jni.h
    #include "provided_Environment.h"
    #include "Environment.h"
    #include "jni.h"
    * Class:     provided_Environment
    * Method:    altitude
    * Signature: (DD)V
    extern "C" JNIEXPORT
    jdouble JNICALL Java_provided_Environment_altitude(JNIEnv*      env,
                                                       jclass     c,
                                                       jdouble      lat,
                                                       jdouble      lon)
      cout << ARTEMIS::Environment::altitude(lat, lon) << endl; 
      return (ARTEMIS::Environment::altitude(lat, lon));
    }nm returns:
    nm mms | grep altitude
    080aa94c t _GLOBAL__I_Java_provided_Environment_altitude
    080aa6e4 T Java_provided_Environment_altitude
    080a8778 T _ZN7ARTEMIS11Environment8altitudeEddSo there is no .so . I've tried to have one but there is the same kind of problem as when I load the .so, I have a error because the .so can find the required symbols that are in the program (here the ARTEMIS::Environment::altitude function)
    Is it clearer ??

  • Sun Microsystems JVM version 1.5.0

    Hi! On this page:
    http://www.norwalkfurnitureidea.com:80/roomplanner.asp
    when I wanted to use Room Planner I got a Warning: You are using a Java Virtual Machine from a vendor other than Sun Microsystems (Apple Computer, Inc.). The recommended JVM is Sun Microsystems version 1.5.0. Older versions of the JVM have problems saving and loading large room plans. Would you like to download the latest version from www.java.com now?
    Question: What to do to be able to use Room Planner (if that is possible)?
    TIA (thanks in advance)!

    To run Java 1.5 I think you will need to upgrade to
    OS X 10.4.5 at least:
    http://www.apple.com/support/downloads/j2se50release4p
    pc.html
    Tom, thanks so much for your reply. I marked it helpful only because I'm not sure of a couple of things on the apple link. The immediate version of Java 1.5 is 5? Is this link saying that I would DEFINITELY need Java 5 to use Room Planner?

  • InvalidClassException: JComponent; local class incompatible - JVM Version?

    Iam having trouble deserializing some old objects.
    My object header is
    public class SoundMatrix extends AbstractTableModel implements Serializable
    So i happend to save some swing components :(
    Now i got the problem of deserializing them again. What can i do to recover the data?
    The serialVersionUID is the same, none has changed.
    java.io.InvalidClassException: javax.swing.JComponent; local class incompatible: stream classdesc serialVersionUID = -2514362798440941654, local class serialVersionUID = -1030230214076481435
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at javax.swing.event.EventListenerList.readObject(EventListenerList.java:255)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at dk.tigermedia.Prog.main(Prog.java:119)
    I guess its a JVM Versioning problem, the version may have changed over time, the application have been used.
    I know the problem is, that i have serialized Swing objects- the docs even warn against this. Great :)
    Can i see which version was used to make the files? Can take control over the deserializing process?
    Tryed overwriting the readObject - but it dont seem to get that far.
    Any help is much appreciated. Thanks.

    Update versions don't matter, just 1.3, 1.4, 1.5 etc.
    You don't need to recompile except backwards, e.g. if you're using JDK 1.3 you need binaries produced by 1.3 or with -target 1.3. But I'd advocate writing a new mini application for this conversion task, using 1.3 or whatever the JDK version actually was when the data was serialized.
    You also need to inform management about this debacle and the reasons for it. The warnings about serialization-incompatibility of Swing classes have been right there in the Javadoc since the beginning. No competent IT professional should have perpetrated this act. Make sure it doesn't happen again.

  • JVM hand on heavy load

    Hi,
    We encounter a recurent problem with JVM hanging on production platform (RH9, JVM 1.4.1) and locked thread in a "curious" state, here is (one of) our stack trace :
    "reaper:user" daemon prio=1 tid=0x0x698267f0 nid=0x6e3d in Object.wait() [69afe000..69aff010]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x47cf4e38> (a java.util.Hashtable)
    at org.webmacro.broker.ResourceManager$1.run(ResourceManager.java:164)
    - locked <0x47cf4e38> (a java.util.Hashtable)
    "reaper:template" daemon prio=1 tid=0x0x69826620 nid=0x6e3d in Object.wait() [69a7e000..69a7f090]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x47cf4eb0> (a java.util.Hashtable)
    at org.webmacro.broker.ResourceManager$1.run(ResourceManager.java:179)
    - locked <0x47cf4eb0> (a java.util.Hashtable)
    "reaper:config" daemon prio=1 tid=0x0x69825ae8 nid=0x6e3d in Object.wait() [699ff000..699ff110]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x47cf4f28> (a java.util.Hashtable)
    at org.webmacro.broker.ResourceManager$1.run(ResourceManager.java:179)
    - locked <0x47cf4f28> (a java.util.Hashtable)
    Our product is a mobile "web" (in fact wap) application and use an old webmacro version, but we encounter the same problem in other code section: a thread which own a lock wait later in the program for this lock ?
    Have anybody encounter this problem ? Is this related to an internal JVM process which will own the lock (GC ?) ...
    We have planned to update the JVM version to a more recent 1.4.2 and I've also read RH9/NTP may have some pthreads problem but I'm not sure this will solve the problem.

    A code defection is always possible, but our platform handle 200 to 1000 req/s perfectly for hours, load balanced with more than ten java server where some of them don't restart for several days.
    For a long time we note java server hanging and we have in our production environment external process examining server activity (logs) and restart them if required, sending a "kill -3" to output a stack trace we can examine later (very useful to find and workaround application bottleneck).
    Reading carefully the stack trace show that all waiting threads are "waiting on condition" or "- waiting on <...>", all other threads are runnable. Reading http://java.sun.com/developer/technicalArticles/Programming/Stacktrace, the threads are in CW or MW states which are "normal states" but I don't know for our problem where is the monitor at this time !
    We encounter this condition each time a code is using a "synch. object": Vector, Hashtable ... with additionnal synchronized blocks, for example :
    Hashtable xyz;
    synchronized(xyz) {
    xyz.put(...);
    Replacing the Hashtable with a simple HashMap and managing the lock ourself solve the problem (we don't encounter other hang in this code later). Sometimes the problem occur in code we don't own : JVM internal: Class loading, String.intern(), Date format "static synched" ... or external components we use.
    I admit the problem may be elsewhere and the stack trace we examine are perhaps "normal JVM states", showing only slower because "critical" code section. But it may be also a JVM monitor problem which show in stack trace where our application need synchronized objects !
    We will try upgrading the JVM version.

  • Could not see the data in the report

    Hi,
    BOXI R3.1 is intalled newly in my sytem.Through Infoview,when i refresh a new report, though data is getting into the report ,I am not able to see the data in the report plus the Header color is blue and the rest of the row colors are displaying as yellow.
    when I am logging in another machine i am able to see the data.Please help me in solving this issue.
    Thanks in Advance.
    Regards,
    Spandana.

    Spandana,
    As suggested, JVM is problem. You can find out it at Control Panel == Java (Double-click) General tab == About button (See the build version) (build 1.6.0_20-b02). So you have to choose below 20 (I prefer 17).
    Alternatively, You might have several Java's running on your machine. Uninstall all Java versions and start developing reports or Editing any existing reports, now BO will prompt for you to install JVM, Run it, Now the problem is solved.
    Hope it should solves the issue.
    If you want to see the data:(now with yellow & blue)
    Select Column == properties == Read cell content as, change it to HTML.
    Thank You!!
    Sent from iPhone

  • JDev 11g update 1 base edition on windows: error building default domain

    Hi all,
    (refer to [url http://forums.oracle.com/forums/thread.jspa?messageID=3168105]here for original post)
    I'm posting this again with some more information. When downloading the Studio Edition (Base - no JDK) version of JDeveloper 11g update 1, an error occurs upon first (and each subsequent) startup of JDeveloper (error details below).
    Tests that I have done:
    1). Install using JDK 6 u 11 - JDK did not show up automatically in the installer, had to browse to find it and select it. Running using 6u11, 6u10, and 6u7 (deleting the system directory after each try) - error occurs.
    2). Install using JDK 6 u7 - JDK was automatically found by the installer. Running using 6u7, 6u11, and 6u10 (deleting the system directory after each try) - error occurs
    These errors do not occur when using the Windows installer. For information: my machine is Windows 2008 Server Standard 32-bit. An update - I just tried this on a Vista 64-bit laptop (running Sun 32-bit JDK 6u10) and did not have the problem. Ergo, this seems to be an issue with the JDK and detecting Windows 2008 as a Windows platform (or possibly with whatever mechanism JDev/WLS is using to detect the OS platform). I'll do more research on that and update if I find anything.
    One more update: I didn't find any issues reported like this related to Windows 2008, but I did one more test: install and run JDeveloper using:
    java version "1.6.0_05"                                                        
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)                           
    BEA JRockit(R) (build R27.6.0-50_o-100423-1.6.0_05-20080626-2105-windows-ia32, compiled mode)                                                                   The issue does not occur using this JDK. So to summarize, installing JDev 11g update 1 Studio edition, base installer using any of the SUN JDK's on Windows 2008 gives this problem. Using the windows installer or JRockit Mission Control JVM - no problems.
    Finally, one last update - the error is related to the JVM that is used to install, not the one used to run JDeveloper (via editing jdev.conf) - the offending JDK is in wlserver_10.3\common\bin\commEnv.cmd. Seems like a no-no to have one JDK running JDev and another running the integrated WLS, though. Quite a pity, as JDev starts up pretty slowly using JRockit Mission Control.
    JRockit Realtime seems to be a bit faster... sigh - now to remove the 72 extra JDK's on my laptop ;)
    My going forward plan: use the Windows installer. Wish I never installed Windows Server 2008.
    Now for the error details; the log shows:
    ERROR:  An error occurred while building the default domain.
    Please see this log file for more details:
    C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.logThe aforementioned log file shows:
    Default domain will be created:
    C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain
    C:\o\jdev11\wlserver_10.3\common\bin\wlst.cmd "C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.py"
    Process started
    wlst >
    wlst > CLASSPATH=c:\o\jdev11\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Java\JDK16~1.0_1\lib\tools.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic.jar;c:\o\jdev11\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\o\jdev11\WLSERV~1.3\server\lib\webservices.jar;c:\o\jdev11\modules\ORGAPA~1.5/lib/ant-all.jar;c:\o\jdev11\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    wlst >
    wlst > PATH=c:\o\jdev11\patch_wls1030\profiles\default\native;c:\o\jdev11\patch_jdev1111\profiles\default\native;c:\o\jdev11\patch_cie660\profiles\default\native;C:\o\jdev11\WLSERV~1.3\server\native\win\32;C:\o\jdev11\WLSERV~1.3\server\bin;c:\o\jdev11\modules\ORGAPA~1.5\bin;C:\Java\JDK16~1.0_1\jre\bin;C:\Java\JDK16~1.0_1\bin;c:\o\db11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Subversion\bin;c:\o\wfc\bin;c:\o\wfc\jre\1.4.2\bin\client;c:\o\wfc\jre\1.4.2\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\o\odp;c:\o\odp\bin;c:\java\apache-ant-1.7.1\bin;C:\Program Files\Plazmic CDK 4.6\bin;c:\o\db11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Subversion\bin;c:\o\wfc\bin;c:\o\wfc\jre\1.4.2\bin\client;c:\o\wfc\jre\1.4.2\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\o\odp;c:\o\odp\bin;C:\o\jdev11\WLSERV~1.3\server\native\win\32\oci920_8
    wlst >
    wlst > Your environment has been set.
    wlst >
    wlst > CLASSPATH=c:\o\jdev11\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Java\JDK16~1.0_1\lib\tools.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic.jar;c:\o\jdev11\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\o\jdev11\WLSERV~1.3\server\lib\webservices.jar;c:\o\jdev11\modules\ORGAPA~1.5/lib/ant-all.jar;c:\o\jdev11\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbembedded57.jar;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbtools57.jar;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar
    wlst >
    wlst > Initializing WebLogic Scripting Tool (WLST) ...
    wlst >
    wlst > Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
    wlst >
    wlst > Welcome to WebLogic Server Administration Scripting Shell
    wlst >
    wlst > Type help() for help on available commands
    wlst >
    wlst > Creating Default Domain
    wlst > Reading template: /C:/o/jdev11/wlserver_10.3/common/templates/domains/wls.jar
    wlst > Setting Name to 'DefaultServer'
    wlst > Setting ListenAddress to ''
    wlst > Setting ListenPort to 7101
    wlst > Setting domain password.
    wlst > Failed to get environment, environ will be empty: (0, 'Failed to execute command ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')
    wlst > Problem invoking WLST - Traceback (innermost last):
    wlst >   File "C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.py", line 50, in ?
    wlst >   File "Lib/javaos.py", line 137, in __getitem__
    wlst >   File "Lib/UserDict.py", line 14, in __getitem__
    wlst > KeyError: DOMAIN_PASSWORD
    wlst >
    Elapsed time:  40920 msAs noted in the original post - it seems that the WebLogic scripting tool is assuming a Unix-type host.
    Best,
    John

    Hi all,
    (refer to [url http://forums.oracle.com/forums/thread.jspa?messageID=3168105]here for original post)
    I'm posting this again with some more information. When downloading the Studio Edition (Base - no JDK) version of JDeveloper 11g update 1, an error occurs upon first (and each subsequent) startup of JDeveloper (error details below).
    Tests that I have done:
    1). Install using JDK 6 u 11 - JDK did not show up automatically in the installer, had to browse to find it and select it. Running using 6u11, 6u10, and 6u7 (deleting the system directory after each try) - error occurs.
    2). Install using JDK 6 u7 - JDK was automatically found by the installer. Running using 6u7, 6u11, and 6u10 (deleting the system directory after each try) - error occurs
    These errors do not occur when using the Windows installer. For information: my machine is Windows 2008 Server Standard 32-bit. An update - I just tried this on a Vista 64-bit laptop (running Sun 32-bit JDK 6u10) and did not have the problem. Ergo, this seems to be an issue with the JDK and detecting Windows 2008 as a Windows platform (or possibly with whatever mechanism JDev/WLS is using to detect the OS platform). I'll do more research on that and update if I find anything.
    One more update: I didn't find any issues reported like this related to Windows 2008, but I did one more test: install and run JDeveloper using:
    java version "1.6.0_05"                                                        
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)                           
    BEA JRockit(R) (build R27.6.0-50_o-100423-1.6.0_05-20080626-2105-windows-ia32, compiled mode)                                                                   The issue does not occur using this JDK. So to summarize, installing JDev 11g update 1 Studio edition, base installer using any of the SUN JDK's on Windows 2008 gives this problem. Using the windows installer or JRockit Mission Control JVM - no problems.
    Finally, one last update - the error is related to the JVM that is used to install, not the one used to run JDeveloper (via editing jdev.conf) - the offending JDK is in wlserver_10.3\common\bin\commEnv.cmd. Seems like a no-no to have one JDK running JDev and another running the integrated WLS, though. Quite a pity, as JDev starts up pretty slowly using JRockit Mission Control.
    JRockit Realtime seems to be a bit faster... sigh - now to remove the 72 extra JDK's on my laptop ;)
    My going forward plan: use the Windows installer. Wish I never installed Windows Server 2008.
    Now for the error details; the log shows:
    ERROR:  An error occurred while building the default domain.
    Please see this log file for more details:
    C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.logThe aforementioned log file shows:
    Default domain will be created:
    C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain
    C:\o\jdev11\wlserver_10.3\common\bin\wlst.cmd "C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.py"
    Process started
    wlst >
    wlst > CLASSPATH=c:\o\jdev11\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Java\JDK16~1.0_1\lib\tools.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic.jar;c:\o\jdev11\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\o\jdev11\WLSERV~1.3\server\lib\webservices.jar;c:\o\jdev11\modules\ORGAPA~1.5/lib/ant-all.jar;c:\o\jdev11\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    wlst >
    wlst > PATH=c:\o\jdev11\patch_wls1030\profiles\default\native;c:\o\jdev11\patch_jdev1111\profiles\default\native;c:\o\jdev11\patch_cie660\profiles\default\native;C:\o\jdev11\WLSERV~1.3\server\native\win\32;C:\o\jdev11\WLSERV~1.3\server\bin;c:\o\jdev11\modules\ORGAPA~1.5\bin;C:\Java\JDK16~1.0_1\jre\bin;C:\Java\JDK16~1.0_1\bin;c:\o\db11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Subversion\bin;c:\o\wfc\bin;c:\o\wfc\jre\1.4.2\bin\client;c:\o\wfc\jre\1.4.2\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\o\odp;c:\o\odp\bin;c:\java\apache-ant-1.7.1\bin;C:\Program Files\Plazmic CDK 4.6\bin;c:\o\db11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Subversion\bin;c:\o\wfc\bin;c:\o\wfc\jre\1.4.2\bin\client;c:\o\wfc\jre\1.4.2\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\o\odp;c:\o\odp\bin;C:\o\jdev11\WLSERV~1.3\server\native\win\32\oci920_8
    wlst >
    wlst > Your environment has been set.
    wlst >
    wlst > CLASSPATH=c:\o\jdev11\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Java\JDK16~1.0_1\lib\tools.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic.jar;c:\o\jdev11\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\o\jdev11\WLSERV~1.3\server\lib\webservices.jar;c:\o\jdev11\modules\ORGAPA~1.5/lib/ant-all.jar;c:\o\jdev11\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbembedded57.jar;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbtools57.jar;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar
    wlst >
    wlst > Initializing WebLogic Scripting Tool (WLST) ...
    wlst >
    wlst > Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
    wlst >
    wlst > Welcome to WebLogic Server Administration Scripting Shell
    wlst >
    wlst > Type help() for help on available commands
    wlst >
    wlst > Creating Default Domain
    wlst > Reading template: /C:/o/jdev11/wlserver_10.3/common/templates/domains/wls.jar
    wlst > Setting Name to 'DefaultServer'
    wlst > Setting ListenAddress to ''
    wlst > Setting ListenPort to 7101
    wlst > Setting domain password.
    wlst > Failed to get environment, environ will be empty: (0, 'Failed to execute command ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')
    wlst > Problem invoking WLST - Traceback (innermost last):
    wlst >   File "C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.py", line 50, in ?
    wlst >   File "Lib/javaos.py", line 137, in __getitem__
    wlst >   File "Lib/UserDict.py", line 14, in __getitem__
    wlst > KeyError: DOMAIN_PASSWORD
    wlst >
    Elapsed time:  40920 msAs noted in the original post - it seems that the WebLogic scripting tool is assuming a Unix-type host.
    Best,
    John

Maybe you are looking for