SelectInputDate problem in Thai environment

I am using JSF EA17 with Thai environment (default locale is Thai) and JDeveloper 10.1.3
In my jsf page I used following
<af:selectInputDate binding="#{backing_application_newApplication.selectInputDate1}"
label="Date of Birth"
value="#{someBean.dateOfBirth}"/>
where value of bean is defaulted to the current date.
When I run page it is properly showing date as 23/8/2548 (according thai calendar),
however when I press calendar icon to show Pick a data dialog it is showing date 23/8/3091 (exactly 543 year difference between gegorian and thai calendar)
Also in case I add converDateTime and set locale to us, date shown in text field is
23/8/2005 but in Pick a date dialog it is shown as 23/8/2548 (the same year difference).
Is this a bug, or am I doing something wrong? If it is bug is there any simple workarround?
Regards
ferdo

try adding the following to faces-config.xml <application>
   <locale-config>
     <default-locale>en</default-locale>
     <supported-locale>th</supported-locale>
   </locale-config>
</application>

Similar Messages

  • Reports problem in web environment

    Hi Friends,
    We have developed the application using developer/2000 and web
    enabled the same. The problem is reports are not working in web.
    We are using run product to call the reports. I.e. reports are
    called from forms using the run product. The following error is
    displayed when ever we try running the reports from forms
    using Netscape 4.06 browser. But If we call forms from forms
    using run product , it is working fine.
    Similar installtion is workig in our test environment.
    Err:frm:40733 - PL/SQL Built-in RUN-PRODUCT Failed.
    Hardware Environment:
    Application server : Pentium /128 MB RAM / 20 GB Hard Disk
    Application Clients : Pentium 233 MX, 32 MB RAM, 1.44 MB floppy
    drive and 2.1 GB HDD.
    Software Environment:
    Operating system :
    MS Windows NT server 4.0 ( Server)
    MS Windows 95 Clients
    Application Platform :
    Oracle Enterprise server 8.0.4
    Oracle developer/2000 Release 2.1 for Windows NT and Windows 95
    Oracle Developer/2000 Server for Windows NT Release 2.1 ( Only
    forms server is installed )
    Oracle Jinitiator 1.1.5.21.1
    Netscape Navigator 4.0.6
    null

    Hi Shahmayur,
    I too am facing the same problem. If your problem is cleared then please let me know, so that i can continue the work.
    Rgds
    Bhaskar

  • Compilation problem in 11g environment

    Hello mates,
    we have migrated from oracle 10g to 11g recently. we have lot of pro*c and
    forms programs. so i need to check all these programs are running same as in
    10g environment. for this i want to compile all the pro*c programs in unix environment.
    we have a script to compile pro*c programs.when i am trying to compile pro*c programs getting these errors.
    let me know what is the problem...
    Thanks in advance...
    $> C xxx.pc
    Compilation xxx.pc Successful
    Compilation .pc Successful
    Linking Started <./gen_all>.....
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libsql10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/rdbms/lib32/kpudfo.o: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libplp10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory

    ramadurga.v wrote:
    Hello mates,
    we have migrated from oracle 10g to 11g recently. we have lot of pro*c and
    forms programs. so i need to check all these programs are running same as in
    10g environment. for this i want to compile all the pro*c programs in unix environment.
    we have a script to compile pro*c programs.when i am trying to compile pro*c programs getting these errors.
    let me know what is the problem...
    Thanks in advance...
    $> C xxx.pc
    Compilation xxx.pc Successful
    Compilation .pc Successful
    Linking Started <./gen_all>.....
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libsql10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/rdbms/lib32/kpudfo.o: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libplp10.a: No such file or directory
    gcc: /oracle/app/product/11.2.0.3_cli/lib32/libpls10.a: No such file or directoryDoesn't seem to to do with SQL or PL/SQL as such. Please post in the correct forum (possibly {forum:id=67})

  • Child Table Cache Problem - Only in Environment

    Hi All,
    I have master-child tables in a page. Master table is based on a VO and child table is based on pl/sql EO. When user updates any child table row and hits on save, I load the same page again by releasing AM. The problem is when the page loads again after update, two records are being shown in child table. One record with old value and other record with the modified value. But in database only record exists and it is successfully updated. If we again hit "Apply" on the page then only the updated record is shown. I am sure this is due to vo/eo caches. But after insert/update, I am forwarding to same page with retain am set to false. So this should clear-off all associated caches. I had even tried to clear vo caches explicitly before redirection. But even this doesnt help. This issue exists only in the environment but cannot be reproduced locally in JDev. Its working perfectly fine in JDev.
    Any pointer on the above issue?
    Thanks in advance,
    Murari

    hmm...caching may be happening at webbean level rather than the VO level. You can confirm this by getting the value of VO.getrowcount in processRequest.
    For both Classical table as well as Advanced Table, clearcache() method is available to clear the cache of data object for inner table. Call this in processRequest. You can put in a check to call this only when you self-redirect to this page.

  • Kodo class/resource loading approach will be a problem in managed environment.

    Hello,
    Kodo does not work with Apache Tomcat 3 and 4 unless Kodo jars and my
    persistent classes loaded by the same class loader. Kodo uses
    Class.forName() and class.getResources() on class loader which loaded Kodo
    classes thus it is not able to find system.prefs or package.jdo (and even if
    it was able to find system.prefs how would it handle multiple system.prefs
    from multiple contexts each managed by its own class loader?)
    The problem as I see it is that web containers usually have container
    classloader(s) and a class loader per web context. Desired configuration
    would be to share Kodo classes among all contexts and implement jndi factory
    to provide PersistentManagerFactory lookup in each web container
    environment. According to Tomcat specs I placed Kodo jars in
    $tomcat_home/lib (class loader shared among all contexts) and deployed my
    persistent classes along with system.prefs and *.jdo files to my context
    WEB-INF/lib directory. As a result Kodo would not find system.prefs resource
    and eventually fail with error - required resource db/url could not be
    loaded. I tried to place Kodo jars into together with my persistent classes
    in WEB-INF/lib it did not help (this was really strange since all classes
    should have been loaded by the same context class loader) The only
    configuration that works is when I put Kodo and my persistent classes in
    tomcat's common directory or on system class path. Which is of course not a
    right way to go as context specific classes such as my persistent classes
    should be shared
    Without source code it is hard to figure out what is going on and how
    resources get loaded, so could somebody look into it. It is quite important
    for us to resolve this issue as we are planning to use Kodo with tomcat.
    Also I am not sure that system.prefs is a good idea. As I mentioned when
    integrated with appserver/web container environment jndi it is up to jndi
    factory to create and configure PersistentManagerFactories. Different
    PersistentManagerFactories will be bound to different jndi names often in
    different contexts under common or separate class loaders and they should
    not be in my opinion dependent on common system.prefs
    I would greatly appreciate your suggestion on proper use of Kodo in web
    container environment
    Thank you very much in advance
    Alex Roytman

    I want to add that even if we put both Kodo jars and persistent classes jar
    in WEB-INF/lib to be loaded by context class loader it does not work due to
    following piece of code in Prefs.java:
    private static synchronized void loadSystem() {
    try {
    Enumeration enumeration =
    (com.techtrader.util.app.Prefs.class).getClassLoader().getResources("system.
    prefs");
    Object obj = null;
    Object obj1 = null;
    InputStream inputstream;
    for (; enumeration.hasMoreElements(); inputstream.close()) {
    URL url = (URL)enumeration.nextElement();
    inputstream = url.openStream();
    _cache.parse(inputstream, url.toString(), "");
    catch (Exception exception) {
    throw new ParseException(exception);
    however if we replace it with following it will work:
    private static synchronized void loadSystem() {
    try {
    Object obj = null;
    Object obj1 = null;
    URL url =
    (com.techtrader.util.app.Prefs.class).getClassLoader().getResource("system.p
    refs");
    InputStream inputstream = url.openStream();
    _cache.parse(inputstream, url.toString(), "");
    inputstream.close();
    catch (Exception exception) {
    throw new ParseException(exception);
    "Alex Roytman" <[email protected]> wrote in message
    news:[email protected]...
    Hello,
    Kodo does not work with Apache Tomcat 3 and 4 unless Kodo jars and my
    persistent classes loaded by the same class loader. Kodo uses
    Class.forName() and class.getResources() on class loader which loaded Kodo
    classes thus it is not able to find system.prefs or package.jdo (and evenif
    it was able to find system.prefs how would it handle multiple system.prefs
    from multiple contexts each managed by its own class loader?)
    The problem as I see it is that web containers usually have container
    classloader(s) and a class loader per web context. Desired configuration
    would be to share Kodo classes among all contexts and implement jndifactory
    to provide PersistentManagerFactory lookup in each web container
    environment. According to Tomcat specs I placed Kodo jars in
    $tomcat_home/lib (class loader shared among all contexts) and deployed my
    persistent classes along with system.prefs and *.jdo files to my context
    WEB-INF/lib directory. As a result Kodo would not find system.prefsresource
    and eventually fail with error - required resource db/url could not be
    loaded. I tried to place Kodo jars into together with my persistentclasses
    in WEB-INF/lib it did not help (this was really strange since all classes
    should have been loaded by the same context class loader) The only
    configuration that works is when I put Kodo and my persistent classes in
    tomcat's common directory or on system class path. Which is of course nota
    right way to go as context specific classes such as my persistent classes
    should be shared
    Without source code it is hard to figure out what is going on and how
    resources get loaded, so could somebody look into it. It is quiteimportant
    for us to resolve this issue as we are planning to use Kodo with tomcat.
    Also I am not sure that system.prefs is a good idea. As I mentioned when
    integrated with appserver/web container environment jndi it is up to jndi
    factory to create and configure PersistentManagerFactories. Different
    PersistentManagerFactories will be bound to different jndi names often in
    different contexts under common or separate class loaders and they should
    not be in my opinion dependent on common system.prefs
    I would greatly appreciate your suggestion on proper use of Kodo in web
    container environment
    Thank you very much in advance
    Alex Roytman

  • Firewall problem in domain environment

    I have built two domains for testing purposes. Having deployed domain controllers, exchange servers, sccm/scom servers, sql servers along with some client computers I noticed that I had problems accessing some of servers/clients - I could not manage
    some of them directly with manage command from domain controller or access them via unc path. Some of them I could not ping neither. I was able to solve these problems by changing inbound firewall rules on these machines thus
    allowing some connections such as smb-in, dcom-in . . . In my production environment (I have been working there as system engineer for almost seven years) I have never had these problems - any domain member, whether it has been server or client, was easily
    accessible (managed from dc, unc, ping, . . .). I could deploy GPO with all necessary settings for inbound rules but it should be done automatically - as soon as machine is joined to the domain it must be accessible by using at least common protocols such as
    dcom, smb for managing or simple file copy operation. I checked my production environment again and there were no GPOs for altering default firewall settings on domain member computers so I have no idea why this is happening in my testing domains.

    No one but me has access to these machines. Also Symantec Endpoint Protection software is installed on these machines as it is the case with my production machines where everything is functioning flawlessly - as I mentioned I can access all my machines
    in production domain via computer management, smb, ping . . . One of my test domains has FFL/DFL Windows Server 2008 R2,  the same as my production domain, the other one has FFL/DFL Windows Server 2012 R2 and it is created for learning purposes. As I
    said, in both test domains, all domain computers have SEP installed - the same version and configuration as on my production machines. I have not done anything related to firewall in my test domains on problematic machines - I installed OS on them, joined
    to the domain, installed SEP and afterwards I have worked with specific product machine was created for - SCCM/SCOM, Exchange, SQL . . . servers and their clients.

  • Problem in production environment

    Hi,
    Using Designer and Headstart to generating forms!
    I have an application that runs on Client/server, I am using a template and .pll, .plx and .olb. and the application runs good!
    For installing the same application on another environment, I have copied the *.fmx , *.pll, *.plx, *.olb,
    I have added the necessary paths to the registry!
    When running this application on this environement,
    the toolbar does not appear under the menu on the main form!!!!
    Have I need to copy the template(the horizontal toolbar is a property of the template and its set correctly) ???? or what is the problem?????
    Thanks for help!!!

    I think your case requires a SR with Oracle.
    Idan.

  • Problem in new environment and in old environment.

    Hi gurus
    I have a problem in data loading we have two environments old and new
    The data flow in new environment is differ from old
    The data flow is like this In BW side i have ODS first and from  ODS the data is going to two Cubes
    But in these  two Cubes one cube is in old environment and another in new environment
    My problem is I have a char 0NOTIFICATION and a key figure. But this  key figure is filled with Time char
    In new environment for some notification no's the key figure is bringing same data as it is in ODS
    But in old environment it is bringing some dates for the same notification nos
    Actually I have checked the Transfer rules and update rules to check any routines are there. No routines are available here
    How can I achieve this problem
    And one more thing I want to check whether remaining notifications is getting the same problem or not I have huge amount of data in cubes to compare Please let me know the simple way to Reconcile the data
    Thanks in advance

    I couldn't get a LC ES Forms server solution to this problem.  Adobe LC support stated that I had to modify the XDPs that show the bolding problem.  According to Product Engineering and Escalations group, LC ES 8.2.1 contained changes with respect to font attributes that we need to modify the XDP.  There are no server level changes that can solve the problem.
    Solution for me:
    1.  Open the XDP that showed the bolding problem in LC Designer ES SP3.
    2.  Find the bolded Chinese characters and unbold them.  Save the XDP.
    3.  Drop the updated XDP on to the LC ES Update 1 (8.2.1) Forms server.
    4.  Render the form in LC ES Update 1 (8.2.1).  No unwanted bolded characters for me.  As a plus I noticed the XDP size grow smaller in terms of file size after I saved it on ES Designer SP3.

  • Destination creation problem in Cloud Environment

    Hello,
    I am having a problem with the creation of a destination (hana.ondemand.com) - Import from File method.
    The destination I am creating has a password that looks like this: 0!8)^(mH3p*V2>p
    When I used this destination I got a 401 error from the server I was trying to connect to.
    This doesn't happen on a local server (SDK 1.51.16), and when I edit the destination -> password the issue is fixed.
    I am guessing that the special characters used in this password falls under some escaping rules that were changes in the Import from File feature.
    This file was used to create a destination in the past (multiple times) without any problems - so this is a new bug.
    How can I create a bug for this?
    Do I need to add escaping characters to my password?
    Thanks,
    -Eran Bergman

    Hi Timo,
    The destination is indeed created, but when I use the destination API for getting a HttpClient based on the destination I get an authentication error from the remote server I am connecting to.
    If I would edit the destination and copy+paste the password (the exact same one from the imported file) I don't get the authentication error anymore.
    From the cockpit you can't really see the exact content of the destination's password, so I can't know for sure how it was created from the file import, but in this case it doesn't work properly.
    My guess is some form of escaping problem in the import process.
    This (import destination) problem does not happen on a local server (SDK 1.51.16), just on the cloud environment, which is much harder to debug of course...
    Regards,
    Eran Bergman

  • RE: Problems setting up environment failover SOLVED.

    Kamran:
    Solved the problem.
    You know what was causing the problem ? The way I was copying files to
    the destination environment. Yes, I was copying the files to vithar from
    kronos in ASCII mode, which in turn modified the header information for
    each file and Forte could not interpret them. Thanks to Martin who
    found out this, and we copied the entire appdist dir structure again in
    binary mode RE-INSTALLED all and now every thing looks great.
    Thank you very much Kamran for your quick responses !
    Thiru.
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Kamran:
    Solved the problem.
    You know what was causing the problem ? The way I was copying files to
    the destination environment. Yes, I was copying the files to vithar from
    kronos in ASCII mode, which in turn modified the header information for
    each file and Forte could not interpret them. Thanks to Martin who
    found out this, and we copied the entire appdist dir structure again in
    binary mode RE-INSTALLED all and now every thing looks great.
    Thank you very much Kamran for your quick responses !
    Thiru.
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • A transaction problem in cluster environment,help!

              I need to take a complicated data operation which will have to call sevearl SQL
              sentences to add datas into DB in a circle. In order to minimize the cost of DB
              connection, I use one connection to create 5 statements,which are used to add
              datas repeatedly. You can read the corresponding codes below. These codes run
              very well in stand-alone environment,but problem occurs when changed to cluster
              environment. The console shows that it's timeout because the transaction takes
              too long time. But when it runs in stand-alone environment,it completes in less
              than one second! In both situations I use the same TX data source. I guess when
              changed to cluster environment,the transaction processing becomes very complicated
              and then it leads to dead-lock. Anybody agrees with this, or has any experience
              about it before? Help,thanks a lot!
              conn = getConnection();
              pstmt3 = conn.prepareStatement
              (DBInfo.SQL_RECEIPTPACK_CREATE);
              pstmt4 = conn.prepareStatement
              (DBInfo.SQL_RECEIPT_CREATE);
              pstmt5 = conn.prepareStatement
              (DBInfo.SQL_RECEIPTPACKAUDIT_INSERT_ALL);
              pstmt6 = conn.prepareStatement
              (DBInfo.SQL_RECEIPTAUDIT_INSERT_ALL);
              int count = (endno+1-startno)/quantity;
              for(int i=0;i<count;i++)
              int newstartno = startno +
              i*quantity;
              int newendno = newstartno +
              quantity - 1;
              String newStartNO =
              Formatter.formatNum2Str(newstartno,ConstVar.RECEIPT_NO_LENGTH);
              String newEndNO =
              Formatter.formatNum2Str(newendno,ConstVar.RECEIPT_NO_LENGTH);
              pstmt1 = conn.prepareStatement
              (DBInfo.SQL_RECEIPTPACK_SEQ_NEXT);
              rs1 = pstmt1.executeQuery();
              if(!rs1.next()) return -1;
              int packid = rs1.getInt(1);
              cleanup(pstmt1,null,rs1);
              pstmt3.setInt(1,packid);
              pstmt3.setString(2,newStartNO);
              pstmt3.setString(3,newEndNO);
              pstmt3.setInt(4,quantity);
              pstmt3.setLong(5,expiredt);
              pstmt3.setInt
              (6,ConstVar.ID_UNIT_TREASURY);
              pstmt3.setInt
              (7,Status.STATUS_RECEIPTPACK_REGISTERED);
              pstmt3.setLong(8,proctm);
              pstmt3.setInt(9,procUserid);
              pstmt3.setInt
              (10,ConstVar.ID_UNIT_TREASURY);
              pstmt3.setInt(11,typeid);
              pstmt3.addBatch();
              //audit
              pstmt5.setInt(1,procUserid);
              pstmt5.setInt(2,packid);
              pstmt5.setInt
              (3,OPCode.OP_RCT_RGT_RECEIPTPACK);
              pstmt5.setLong(4,0);
              pstmt5.setLong(5,proctm);
              pstmt5.addBatch();
              for(int
              j=newstartno;j<=newendno;j++)
              String receiptNO =
              Formatter.formatNum2Str(j,ConstVar.RECEIPT_NO_LENGTH);
              pstmt2 =
              conn.prepareStatement(DBInfo.SQL_RECEIPT_SEQ_NEXT);
              rs2 =
              pstmt2.executeQuery();
              if(!rs2.next()) return -
              1;
              int receiptid =
              rs2.getInt(1);
              cleanup
              (pstmt2,null,rs2);
              pstmt4.setInt
              (1,receiptid);
              pstmt4.setString
              (2,receiptNO);
              pstmt4.setInt
              (3,Status.STATUS_RECEIPT_REGISTERED);
              pstmt4.setDouble
              (4,00.0);
              pstmt4.setInt(5,0);
              pstmt4.setDouble
              (6,00.0);
              pstmt4.setDouble
              (7,00.0);
              pstmt4.setDouble
              (8,00.0);
              pstmt4.setInt
              (9,procUserid);
              pstmt4.setLong
              (10,proctm);
              pstmt4.setLong
              (11,expiredt);
              pstmt4.setInt(12,0);
              pstmt4.setInt
              (13,packid);
              pstmt4.setInt
              (14,typeid);
              pstmt4.addBatch();
              //audit
              pstmt6.setInt
              (1,procUserid);
              pstmt6.setInt
              (2,receiptid);
              pstmt6.setInt
              (3,OPCode.OP_RCT_RGT_RECEIPTPACK);
              pstmt6.setLong(4,0);
              pstmt6.setLong
              (5,proctm);
              pstmt6.addBatch();
              pstmt3.executeBatch();
              cleanup(pstmt3,null);
              pstmt5.executeBatch();
              cleanup(pstmt5,null);
              pstmt4.executeBatch();
              cleanup(pstmt4,null);
              pstmt6.executeBatch();
              cleanup(pstmt6,null);
              

    Hello,
    Are you using any kind of Load Balancer, like an F5. I am currently troubleshooting this issue for one of our ADF apps and I originally suspected the F5 was not sending traffic correctly. We have not set the adf-config file for HA and the dev team will fix that. But my concern is that will just hide my F5 issue.
    Thanks,
    -Alan

  • Problem with my environment variable

    hello,
    I've set the following environment variables in Windows XP professional:
    JEE_HOME = C:\j2sdkee1.3.1
    JAVA_HOME = C:\j2sdk1.4.2_05
    PATH = ....... ;C:\j2sdkee1.3.1\bin
    When I wanted to run the J2EE server, I've got the following:
    C:\>j2ee
    Exception in thread "main" java.lang.NoClassDefFoundError: C:\j2sdkee1/3/1;C:\j2sdk1/4/2_05\lib\tools/jar;C:\j2sdkee1/3/1\lib\jhall/jar
    The "." changed in a "/"!
    Does somebody know how I can solve this problem?
    Thanks!

    So,
    I have in System PATH : C:\app\xps\product\11.2.0\dbhome_1\bin
    I have in HKEY_LOCAL_MACHINE > SOFTWARE > ORACLE > SYSMAN > OracleDBConsoleorcl : ORACLE_HOME value C:\app\xps\product\11.2.0\dbhome_1
    When i execute sqlplus / as sysdba comman, i receive error "the procedure entry point longjmp could not be found in the dynamic link lib. orauts.dll" and Error "ORA-12560"
    If i execute
    set ORACLE_HOME=C:\app\xps\product\11.2.0\dbhome_1
    C:\>set PATH=%ORACLE_HOME%\bin;%PATH%
    sqlplus "/ as sysdba"
    I don't receive Error.
    Why?

  • OMB PLUS - Problem passing Unix environment variables to OMBPlus

    Due to a requirement to encapsulate deployment of OWB applications, we currently start OMBPlus.sh from our own wrapper ksh script (deploy.ksh) in order to get the new / changed application into the target control center etc.
    We now have a new requirement that means we need to pass the content of the Unix environment across to OMBPlus.sh (and from thence into our deployment tcl scripts).
    No problem, if you believe the tcl documentation. The entire Unix environement gets dumped into a hash array called 'env', so you can get the variable's value out just by saying $env(unix_valraible).
    Sounds great, it should work a treat.
    Except OMBPlus only silghtly resembles tclsh.
    The 'env' that gets into OMBPlus bears practically no resemblance to the 'env' that existed before OMBPlus.sh got invoked.
    Does anyone have:
    a decent explanation for why the env gets scrambled (and how to avoid it) ?
    or an alternative method of getting the Unix environment varaible values into OMBPlus ?
    Please do not propose passing them all on the command line because (would you beleive it) the values are database passwords !
    Edited by: user10466244 on 23.10.2008 09:28

    Unfortunately, the java implementation of TCL that Oracle used as the basis for OMB+ is NOT a fully-featured implementation. Just try using packages...
    However, and understanding why you don't want to hard-code passwords into a file, you can always edit the setowbenv.sh file in your owb/bin/unix directory to grab your specific shell environment variables and propogate them to the java session.
    towards the bottom of this env file you will see a section that looks something like:
    JDK_HOME=../../../jdk
    OWB_HOME=/owb
    ORA_HOME=/owb
    OEM_HOME=/owb
    IAS_HOME=/owb
    ORACLE_HOME=/owb
    CLASSPATH=Personalties.jar:../admin:$MIMB_JAR:
    CLASSPATH_LAUNCHER="-classpath ../admin:../admin/launcher.jar:$CLASSPATH: -DOWB_HOME=$OWB_HOME -DJDK_HOME=$JDK_HOME -DORA_HOME=$ORA_HOME -DOEM_HOME=$OEM_HOME -DIAS_HOME=$IAS_HOME -Doracle.net.tns_admin=$ORA_HOME/network/admin Launcher ../admin/owb.classpath"
    export ORA_HOME
    export OWB_HOME
    export JDK_HOME
    export OEM_HOME
    export IAS_HOME
    export ORACLE_HOME
    You could add in the environment variables that you want propogated, include them into the CLASSPATH_LAUNCHER, and then they will turn up in your OMB+ session env array.
    e.g., to propgate an environment variable called MY_DATABASE_PASSWORD you would:
    JDK_HOME=../../../jdk
    OWB_HOME=/owb
    ORA_HOME=/owb
    OEM_HOME=/owb
    IAS_HOME=/owb
    ORACLE_HOME=/owb
    CLASSPATH=Personalties.jar:../admin:$MIMB_JAR:
    CLASSPATH_LAUNCHER="-classpath ../admin:../admin/launcher.jar:$CLASSPATH: -DOWB_HOME=$OWB_HOME -DMY_DATABASE_PASSWORD=${MY_DATABASE_PASSWORD} -DJDK_HOME=$JDK_HOME -DORA_HOME=$ORA_HOME -DOEM_HOME=$OEM_HOME -DIAS_HOME=$IAS_HOME -Doracle.net.tns_admin=$ORA_HOME/network/admin Launcher ../admin/owb.classpath"
    export ORA_HOME
    export OWB_HOME
    export JDK_HOME
    export OEM_HOME
    export IAS_HOME
    export ORACLE_HOME
    So now you have no protected data hardcoded, it will pick up your specific environment variables at runtime, and when you start OMB+ you will be able to:
    array get env MY_DATABASE_PASSWORD.
    cheers,
    Mike

  • Runtime.exec Problem with setting environment

    Hello
    I will run a command with a new process environment. As example I take "ls". If I use the "exec(String)" method it works fine (like it should; my PATH is ...:/usr/bin:...).
    Next when I use "exec(String cmd, String[] env)" with cmd = ls and env = {PATH=} then the programm also prints out the listing of the current directory. In my opinion this shoudn't work.
    I have the problem using jdk1.2.2 (Solaris VM (build olaris_JDK_1.2.2_10, native threads, sunwjit)) on Solaris 8.
    As I understand the exec the method should work like this:
    1. fork a new Process
    2 set environment for the new process
    3 exec the new Programm in this process
    Is this statement right?
    On Solaris 2.6 the program works fine and I get an IOException.
    Some hints way the env for the process isn't set?
    Thanks
    ========================================================
    import java.io.*;
    public class Test {
    /** Version der Klasse. */
    public static final String VERSION = "$Revision:$";
    public static void main(String[] arg) {
    try {
    call("ls", new String[]{"PATH="});
    } catch (Exception ex) {
    System.out.println(ex);
    private static void call(String cmd, String[] env)
    throws Exception
    Runtime rt = Runtime.getRuntime();
    try {
    System.out.println(cmd);
    Process p = rt.exec(cmd, env);
    StreamGobbler errorGobbler = new
    StreamGobbler(p.getErrorStream(), "ERROR", System.err);
    StreamGobbler outputGobbler = new
    StreamGobbler(p.getInputStream(), "OUTPUT", System.out);
    errorGobbler.start();
    outputGobbler.start();
    try {
    p.waitFor();
    } catch (InterruptedException e) {
    if (p.exitValue() != 0) {
    throw new Exception("Process failed");
    } catch (IOException ex) {
    System.out.println("IOException: " + ex.toString());
    class StreamGobbler extends Thread {
    private InputStream m_input;
    private OutputStream m_output;
    private String m_type;
    private StringBuffer m_message;
    StreamGobbler(InputStream is, String type, OutputStream os) {
    this.m_input = is;
    this.m_output = os;
    this.m_type = type;
    this.m_message = new StringBuffer();
    outputGobbler.start();
    try {
    p.waitFor();
    } catch (InterruptedException e) {
    if (p.exitValue() != 0) {
    throw new Exception("Process failed");
    } catch (IOException ex) {
    System.out.println("IOException: " + ex.toString());
    class StreamGobbler extends Thread {
    private InputStream m_input;
    private OutputStream m_output;
    private String m_type;
    private StringBuffer m_message;
    StreamGobbler(InputStream is, String type, OutputStream os) {
    this.m_input = is;
    this.m_output = os;
    this.m_type = type;
    this.m_message = new StringBuffer();
    public synchronized void run() {
    try {
    InputStreamReader reader = new InputStreamReader(m_input);
    BufferedReader bufferedReader = new BufferedReader(reader);
    PrintWriter writer = new PrintWriter(m_output, true);
    String line = null;
    while ( (line = bufferedReader.readLine()) != null) {
    writer.println(m_type + "> " + line);
    this.m_message.append(m_type + "> " + line + "\r\n");
    } catch (IOException ioe) {
    ioe.printStackTrace();
    public synchronized String getMessage() {
    return this.m_message.toString();

    I'm having the same problem...
    Have you been able to solve your problem yet?

  • Problem with initialization environment files

    I'm trying to get a .profile file to work in my login environment, but it just doesn't want to cooperate. I get errors on just about everything. In fact, the only thing I've been able to get to work is the echo command. It doesn't matter whether or not I use fully qualified paths for the commands or not. Here's a short list of some of the problems.
    1. Blank lines generate the following error...
    : command not found
    2. pwd command generates the following error...
    : command not found
    3. /bin/ls command generates the following error...
    : No such file or directory
    4. Echoing the PATH environment variable actually works...
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    BTW, these commands work just fine from the command line. But if I manually run .profile, or have it run automatically when I launch a terminal window, these errors appear. I'm very familiar with command line interfaces as I've used a multitude of shells over the years in both Solaris and Linux environments. I just don't get what's going on with the Mac. Searching with Google has also drawn a blank, so far. I'm hoping someone has a simple answer for this.

    First, by any chance did your .profile get transferred to your Mac via a Windows system so that it is now <CR><LF> terminated. That will mess up just about every Unix shell
    Here are the steps I used to initially get my environment files over to the Mac.
    1. Created a tar file on a linux platform with my pre-existing environment files.
    2. Tar file was compressed with gzip.
    3. Compressed tar file was then burned to CD.
    4. CD loaded onto a Windows platform.
    5. From Windows platform, tried to email tar file to myself but it was too big to send.
    6. From Windows used WinZip to uncompress and open the tar file.
    7. Extracted the contents to a folder.
    8. Removed unnecessary files from folder to make result smaller. Also split contents of folder into multiple folders.
    9. Used WinZip to zip new folders containing necessary files into multiple zip files.
    10. Emailed zipped files to my home email account.
    11. Opened email from Mac and downloaded zip files.
    12. From a terminal window unzipped files using /usr/bin/unzip.
    13. Copied environment files to home directory with a cp –pr command.
    14. Disabled all environment files (by adding different file extensions) so I could begin experimenting with what I needed to change.
    15. Started with the .profile file by commenting out most of the file and leaving just a few commands. This is when my problems began. BTW, I used xemacs to edit the file. Xemacs was download and installed via Macports a while back in preparation for creating a development environment for myself. Getting my login environment going was my next step in the process.
    16. Since I couldn't get it to work, I then put nothing but some simple shell commands in the .profile to see what would happen. Commands like pwd, ls, and echo. And as I explained in the original post, the only thing that worked was the echo command.
    Looking at the preceding steps, the files were never opened on the Windows platform… is it possible that the WinZip steps caused <CR><LF> characters to appear somehow? Or, is it possible that xemacs messed up my file? I use emacs and xemacs all the time on linux and solaris systems with no such problems. Actually, at one point in my messing with the .profile file, in frustration, I decided to open it with vi. I hate vi, but know just enough to be dangerous. What I did was to remove a blank line (remember, blank lines are generating errors too) and insert another one. I figured vi is about as basic and primitive an editor as you can get. So, if any funny control characters are present, that should at least alleviate the problem. Unfortunately, even that still generated the same error.
    Have you tried a simplified .profile?
    Yes. See #16 above.
    Do you have more than one shell initialization file. Bash will look for
    .bash_profile
    .bash_login
    .profile
    in that order and use the first one it finds, then stop looking. If you any of the 2 earlier initialization files, bash will not bother looking at your .profile
    No, I do not have more than one initialization file... at the moment. And yes, I know what bash looks for, and in what order. At the moment I am only using a .profile just to see if I can get things working. See #14 and #15 above.
    I am assuming your shell is 'bash', the current Mac OS X default, however, if you started using Macs back in the Jaguar days, and have just been upgrading, then you shell might be tcsh, which would not even look at .profile, and trying to run it interactively would generate strange results when interpreted by tcsh.
    And of course, it is always possible you intentionally changed your shell. If you did that would be useful information. I suspect you did not, but I figured I would ask.
    Yes, I'm using the bash shell. $SHELL returns /bin/bash, and $0 returns -bash.
    If your lines end in ^M, then your .profile has been DOS'ified.
    Ok, I did the cat command you've suggested. BTW, thanks for the options on the cat command. I didn’t realize cat had options to show special characters. I’ve used it for years and never really looked at the man page on it. I believe there is also a way to see control characters within xemacs, but I can’t remember how to do that.
    Anyway, the file is definitely showing ^M characters. My first question is, is ^M the same as <CR><LF>? The reason I ask is it may have been xemacs that put those there, or they may have already been there from the files I transferred from the linux platform. I'm pretty sure xemacs uses ^M's because whatever mode I was able to put xemacs in in the past to see control characters, I'm about 99% sure I've seen all lines ending in that. Of course, that brings me to my next question. If that's true, why do these files work on linux and solaris platforms and not OS X? Like I said, I do most of my editing with xemacs, and I know the environment files were originally created on the other platforms using xemacs.
    If you have any ideas on these questions, please enlighten me. In the mean time, I'll play around with trying to get rid of the ^M's to see what happens. Not sure how I'm going to do that though since I'm not that familiar with a lot of other editors, so I wouldn't know how to load the files and remove the invisible ^M characters. I also really do not want to hand type in all my environment files if this turns out to be the problem. And if I use xemacs to perform the editing, then it'll just save the file with ^M's anyway.
    Thanks for your help.

Maybe you are looking for

  • Regarding date calculations

    Hi Experts,     My problem is i have a start date and either the no of weeks or no of months will be entered dynamically based on this value i.e take for eg. 10 months is entered then i have to calculate the stock for 10 months and display 1st month 

  • Getting deserialization error when calling a secured webservice

    Hi All, I am getting deserialization error: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement when I am calling my secured web service through a proxy client. I have secured my webservice using a keystore, I had created using keytool . In

  • Hindi fonts in java

    i have read in books that java supports unicode and hence all the language charectors. i have the unicodes for hindi fonts. i want to write them in TextArea or JTextArea. but the problem is that when i use command append(""+<code>), i see some number

  • Running Scripts

    Hi, I'm new to adobe, and I've been reading lots on this forum to get info on writing scripts in forms. I'm creating a form that has two pages, one for internal and one for our client. I've written a couple things, and I was wondering what you do to

  • Help on IS utilities Billing

    Hello friends,                    I am an Abaper and I am new to IS utilities, I have been through a demo on IS Utilities Billing part. Few questions i need to ask How as an Abaper i am supposed to work in IS Utilities and any documents or pdf i can