<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by a_sim</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Fri, 30 Oct 2026 10:30:01 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>JSP Charset Encoding For Vietnamese Not Displaying</title>
            <link>http://forum.lowyat.net/topic/1910433</link>
            <description>Hi all,&lt;br /&gt;&lt;br /&gt;We already have our web application displaying properly in Simplified chinese (GB18030) and english (Cp1252).&lt;br /&gt;&lt;br /&gt;Right now, I am trying to make some changes to have the web application display in Vietnamese. I have tried &amp;#39;UTF-8&amp;#39; but to no avail.&lt;br /&gt;&lt;br /&gt;Below is how I am currently doing it&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&amp;#60;%@ page contentType=&amp;#34;text/html;charset=UTF-8&amp;#34;%&amp;#62;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;The characters in the database are displayed correctly though when I use Oracle SQLDeveloper to do a &lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;SELECT * FROM TABLENAME&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;.&lt;br /&gt;&lt;br /&gt;We are currently using&lt;br /&gt;1. Java 1.4&lt;br /&gt;2. Oracle DB 10g&lt;br /&gt;3. Oracle Internet Appliaction Server 10g (OC4J)</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Wed, 08 Jun 2011 17:56:14 +0800</pubDate>
        </item>
        <item>
            <title>Oracle Locks</title>
            <link>http://forum.lowyat.net/topic/716105</link>
            <description>I am having a hard time understanding how and what Oracle locks when a DML (INSERT, UPDATE, DELETE) happens. The reason I need to understand this is because our application recently had 10 deadlocks at the same time. But before going into the deadlocks, I would like to understand Oracle&amp;#39;s locking mechanism (if I can call it that)&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s a scenario:&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;SQL&amp;#62; create table item &amp;#40;&lt;br /&gt; &amp;nbsp;2 &amp;nbsp;sku varchar2&amp;#40;13&amp;#41; primary key,&lt;br /&gt; &amp;nbsp;3 &amp;nbsp;ddate date&lt;br /&gt; &amp;nbsp;4 &amp;nbsp;&amp;#41;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Let&amp;#39;s insert a record&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;SQL&amp;#62; insert into item values &amp;#40;&amp;#39;00000017&amp;#39;, to_date&amp;#40;&amp;#39;10-06-2008&amp;#39;, &amp;#39;dd-MM-yyyy&amp;#39;&amp;#41;&amp;#41;;&lt;br /&gt;&lt;br /&gt;1 row created.&lt;br /&gt;&lt;br /&gt;SQL&amp;#62; commit;&lt;br /&gt;&lt;br /&gt;Commit complete.&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Then I do an update on this record&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;SQL&amp;#62; update item set ddate = to_date&amp;#40;&amp;#39;11-06-2008&amp;#39;, &amp;#39;dd-MM-yyyy&amp;#39;&amp;#41;;&lt;br /&gt;&lt;br /&gt;1 row updated.&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Next I view the records in v&amp;#036;lock for this session (SID: 150) and below is what I see&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;SQL&amp;#62; select type, id1, id2, lmode, request, block&lt;br /&gt; &amp;nbsp;2 &amp;nbsp;from v&amp;#036;lock&lt;br /&gt; &amp;nbsp;3 &amp;nbsp;where sid = &amp;#39;150&amp;#39;;&lt;br /&gt;&lt;br /&gt;TY &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ID2 &amp;nbsp; &amp;nbsp; &amp;nbsp;LMODE &amp;nbsp; &amp;nbsp;REQUEST &amp;nbsp; &amp;nbsp; &amp;nbsp;BLOCK&lt;br /&gt;-- ---------- ---------- ---------- ---------- ----------&lt;br /&gt;TX &amp;nbsp; &amp;nbsp; 262182 &amp;nbsp; &amp;nbsp; 223257 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;TM &amp;nbsp; &amp;nbsp; 103897 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s what I understand from the v&amp;#036;lock result above&lt;br /&gt;1. ID1 where the value is 103897 is the object_id for item (select object_name from dba_objects)&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s what I am confuse.&lt;br /&gt;1. TM is a lock. Is TM a row, table or row lock?&lt;br /&gt;2. My previous understanding of TX is it is a row lock. But after reading articles on locking in asktom.oracle.com, I found out that TX is just showing a transaction has happened. &lt;br /&gt;&lt;br /&gt;Can someone be kind enough to shed some light on this for me?&lt;br /&gt;&lt;br /&gt;Many thanks &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Tue, 10 Jun 2008 18:22:38 +0800</pubDate>
        </item>
        <item>
            <title>Problem starting up OC4J</title>
            <link>http://forum.lowyat.net/topic/692346</link>
            <description>Our production server is currently running on Red Hat Linux with Oracle Application Server 9.0.4.3.0. All has been fine until last month when I added 3 JVMs to one of the OC4Js.&lt;br /&gt;&lt;br /&gt;Since then, every time when we stop and start it, we will see the below error message:&lt;br /&gt;&lt;!--QuoteBegin--&gt;&lt;div class='quotetop'&gt;QUOTE&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;08/04/21 23:14:13 Start process&lt;br /&gt;--------&lt;br /&gt;08/04/21 23:14:17 Error instantiating application at file:/oracle/App/j2ee/abc/applications/abc.ear: Unable to find/read assembly info for /oracle/App/j2ee/abc/applications/abc (META-INF/application.xml)&lt;br /&gt;08/04/21 23:14:20 Error initializing site OracleAS Java Web Site: No application named &amp;#39;abc&amp;#39; found in the server&lt;br /&gt;08/04/21 23:14:20 Oracle Application Server Containers for J2EE 10g (9.0.4.3.0) initialized&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;br /&gt;And there were a couple of times when we hit the below error message:&lt;br /&gt;&lt;!--QuoteBegin--&gt;&lt;div class='quotetop'&gt;QUOTE&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;08/05/05 07:51:53 Start process&lt;br /&gt;--------&lt;br /&gt;08/05/05 07:51:57 /oracle/App/j2ee/abc/applications/abc/abc/META-INF/MANIFEST.MF could not be deleted ...ArchiveContext.close() returns false Read: false Writ&lt;br /&gt;e: false&lt;br /&gt;08/05/05 07:51:57 /oracle/App/j2ee/abc/applications/abc/abc/META-INF could not be deleted ...ArchiveContext.close() returns false Read: false Write: false&lt;br /&gt;...&lt;br /&gt;&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;br /&gt;Temporary what we did to bring it up is to stop it again and then start it. Then only it can start up normally.&lt;br /&gt;&lt;br /&gt;And today, a new error appeared stating that it couldn&amp;#39;t find web.xml inside WEB-INF. We had to redeploy the WAR file again.&lt;br /&gt;&lt;br /&gt;I have been searching google and oracle&amp;#39;s metalink but couldn&amp;#39;t find anything.&lt;br /&gt;&lt;br /&gt; &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt; Thanks.&lt;br /&gt;&lt;br /&gt;</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Fri, 09 May 2008 11:46:47 +0800</pubDate>
        </item>
        <item>
            <title>Linux Server Hang</title>
            <link>http://forum.lowyat.net/topic/665104</link>
            <description>I have a production server which has Red Hat Linux 3.4 (Kernel 2.4.21 - 32).&lt;br /&gt;&lt;br /&gt;This morning at 4.04 am, this server hanged and could not be accessed via telnet but there was a response when we pinged it.&lt;br /&gt;&lt;br /&gt;Our customer rebooted the server via kvm because the server is actually in another location so he was not able to see if there&amp;#39;s a kernel panic message on the server screen. &lt;br /&gt;&lt;br /&gt;I am trying to find if a kernel panic did happened or not but I can&amp;#39;t find any so far. I have gone through all the log files in /var/log/ and there was no log entries after 4.04 am until the server rebooted at 8.52am. I have also gone through Oracle&amp;#39;s log files (this server is running Oracle Application Server) and no log messages that says why it hanged.&lt;br /&gt;&lt;br /&gt;Any other way I can find this kernel panic message (if there is a kernel panic) or somewhere I can look at that can tell me what has caused it to hang?&lt;br /&gt;&lt;br /&gt;Thanks.</description>
            <author>a_sim</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Wed, 02 Apr 2008 18:36:31 +0800</pubDate>
        </item>
        <item>
            <title>Project Management</title>
            <link>http://forum.lowyat.net/topic/660183</link>
            <description>What tools does your company use to manage its projects? I am interested in something which also allows collaboration from other stakeholders such as project managers, users, system analyst and architects, developers, testers ,etc. &lt;br /&gt;&lt;br /&gt;Our company is currently looking for something of sort to implement into our projects.&lt;br /&gt;&lt;br /&gt;Thanks.</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Wed, 26 Mar 2008 18:36:44 +0800</pubDate>
        </item>
        <item>
            <title>Weird Behaviour From Oracle Database</title>
            <link>http://forum.lowyat.net/topic/626690</link>
            <description>Hi, it&amp;#39;s me again with another problem and this time is the Production database.&lt;br /&gt;&lt;br /&gt;Let me tell you about the setup first.&lt;br /&gt;&lt;br /&gt;The database is an Oracle 10g Database Standard Edition release 10.1.0.2.0 running on AIX version 5.3 ML 03 with 4 CPUs and 4GB of RAM.&lt;br /&gt;&lt;br /&gt;I have created a schema and tablespaces. Below is a list of the tablespaces created:&lt;br /&gt;a) MASTERSPACE&lt;br /&gt;    - MASTERSPACE01.DBF [300MB]&lt;br /&gt;    - MASTERSPACE02.DBF [300MB]&lt;br /&gt;b) TRANSSPACE&lt;br /&gt;    - TRANSSPACE01.DBF [300MB]&lt;br /&gt;    - TRANSSPACE02.DBF [300MB]&lt;br /&gt;c) HISTSPACE&lt;br /&gt;    - HISTSPACE01.DBF [300MB]&lt;br /&gt;d) WORKSPACE&lt;br /&gt;    - WORKSPACE01.DBF [300MB]&lt;br /&gt;e) INDEXMASTERSPACE&lt;br /&gt;    - INDEXMASTERSPACE01.DBF [300MB]&lt;br /&gt;f) INDEXTRANSSPACE&lt;br /&gt;    - INDEXTRANSSPACE01.DBF [300MB]&lt;br /&gt;    - INDEXTRANSSPACE02.DBF [300MB]&lt;br /&gt;g) INDEXHISTSPACE&lt;br /&gt;    - INDEXHISTSPACE01.DBF [300MB]&lt;br /&gt;h) INDEXWORKSPACE&lt;br /&gt;    - INDEXWORKSPACE02.DBF [300MB]&lt;br /&gt;&lt;br /&gt;We have a day job running daily at 1am and this day job consists of a list of programs. &lt;br /&gt;&lt;br /&gt;But unfortunately, just one of the program suffered tremendously in this day job. The timing for that program increased from around 2 minutes to 2 hours.&lt;br /&gt;&lt;br /&gt;I am curious as to what could have affected the performance of this program.&lt;br /&gt;&lt;br /&gt;What I have done to check this problem&amp;quot;&lt;br /&gt;a) Check program.&lt;br /&gt;    It has not been changed recently and it has the same md5sum as the other instances which are not having this problem.&lt;br /&gt;b) Ran Oracle trace within the application itself&lt;br /&gt;    I changed the program a bit by implement Oracle trace and from the tkprof output, I saw that the program ran for 45     seconds and not 2 hours.&lt;br /&gt;c) Simulated in UAT DB server&lt;br /&gt;    With the same tablespaces setup, I ran the day end job again and this program took 2 minutes to finish.&lt;br /&gt;d) Simulated in Live DB Server&lt;br /&gt;    I created a test schema and also the same setup of test tablespaces in the live db server and I am able to simulate the problem. Next, I created 3 new tablespaces with 1 database file [500MB] for each tablesoace. Used ALTER TABLE to move the tables from MASTERSPACE and TRANSSPACE to MASTERSPACENEW and TRANSSPACENEW which has only 1 database file each. Ran the day job again and this time 2 minutes.&lt;br /&gt;e) 2nd Simulation in Live DB Server&lt;br /&gt;    I created a different setup whereby each tablespaces has total of 300MB of database file but broken into 100MB each e.g. MATERSPACE01.DBF [100MB], MASTERSPACE02.DBF [100MB] and MASTERSPACE03.DBF [100MB]. Ran the day end job again and now the program is taking 2 hours.&lt;br /&gt;&lt;br /&gt;The only difference which I could see between the uat db server and the live db server is the aix version. The uat server is aix 5.2.&lt;br /&gt;&lt;br /&gt;Why is the performance affected if oracle tablespaces has more than one database file? Is this normal? Our company&amp;#39;s DBA consultant can&amp;#39;t figure out why.&lt;br /&gt;&lt;br /&gt;Thanks.</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Tue, 05 Feb 2008 16:43:50 +0800</pubDate>
        </item>
        <item>
            <title>How Much To Allocate For Swap Space</title>
            <link>http://forum.lowyat.net/topic/617042</link>
            <description>In the office, we are having different opinions on whether the swap space size is sufficient on our customer&amp;#39;s Linux server.&lt;br /&gt;&lt;br /&gt;The server is a dell server with 2 CPUs and 8GB of RAM. It is running Red Hat Linux ES 3.4 2.4.21-32.ELsmp. This server is our Java Web application server.&lt;br /&gt;&lt;br /&gt;Currently the swap space is 2GB. My colleagues are arguing that it is not enough and should be 16GB (2 X 8GB). I am saying it is enough because I do not believe in setting bigger swap space for a production server. 1GB or 2GB is sufficient.&lt;br /&gt;&lt;br /&gt;I would like to get some of your opinions on this issue.&lt;br /&gt;&lt;br /&gt;Thanks.</description>
            <author>a_sim</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Tue, 22 Jan 2008 12:20:00 +0800</pubDate>
        </item>
        <item>
            <title>Oracle Application Server On Linux Problem</title>
            <link>http://forum.lowyat.net/topic/611702</link>
            <description>Our client&amp;#39;s application server has been live for 6 months now and currently there is an issue. &lt;br /&gt;&lt;br /&gt;This server is a Dell 6850 running Red Hat Linux ES 3.4 (Taroon Update 5) and kernel 2.4.21-32 with 2 CPUs and 8Gb of ram. Our J2EE web application runs in Oracle Application Server and currently 5 OC4Js are up and running.&lt;br /&gt;&lt;br /&gt;The issue we are facing is the server has frequently gone to a hang state. When this happened, we won&amp;#39;t be able to telnet into the server but there are ping responses. So the only thing to do then would be to reboot the server.&lt;br /&gt;&lt;br /&gt;Now I have setup nmon for linux to run 24 hours in the server taking snap shots of the server&amp;#39;s performance every 10 minutes. From the nmon output, I could see free memory is always around 20Mb - 50 Mb and sometimes would shoot up to 1Gb and then in 3 hours back down to 20Mb - 50Mb. Is this a normal pattern for a linux server?&lt;br /&gt;&lt;br /&gt;From the Oracle console under memory usage, I saw that around 1.5Gb is being used by the Application Server, 36Mb free and 6.5Gb used by other processes. Now, I am curious as what this other processes are and why are they using 6.5Gb.&lt;br /&gt;&lt;br /&gt;I am not sure if this is caused by a faulty hardware, OS/kernel bug, or our web application and I hope you guys in Codemaster could help me.&lt;br /&gt;&lt;br /&gt;What I have done:&lt;br /&gt;i) monitor /var/log/messages but no suspicious error being logged not even before or during the server hang.&lt;br /&gt;ii) monitor Oracle Application Sever log files but no suspicious errors logged.&lt;br /&gt;iii) monitor nmon output daily&lt;br /&gt;iv) searched for similar cases using Google and Oracle&amp;#39;s Metalink  but found nothing.&lt;br /&gt;&lt;br /&gt;Thanks.</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Mon, 14 Jan 2008 17:08:38 +0800</pubDate>
        </item>
        <item>
            <title>Managing files between UAT and Live environment</title>
            <link>http://forum.lowyat.net/topic/590592</link>
            <description>Our development team is currently having a serious issue in our deployment process. Our users are complaining that after the deployment, the new functions are not taken effect or the bugs are still there. And when we check the file size it is different from the one in UAT and the last modified date is months ago i.e. the file was not deployed.&lt;br /&gt;&lt;br /&gt;Our deployment process is as below:&lt;br /&gt;1) run shell script to append file to a jar file&lt;br /&gt;2) at the end of the day or early in the morning, the jar file is uploaded to the server and extracted out&lt;br /&gt;3) the OC4J instance is stopped and started&lt;br /&gt;4) run few shell scripts which compares file sizes for all the files in each OC4J instance in the UAT and Live environment.&lt;br /&gt;&lt;br /&gt;I know that this is mostly due to human error but I am looking for a solution to avoid this problem.&lt;br /&gt;&lt;br /&gt;Anyone who was or is in this kind of situation? Or I would greatly appreciate it if you could share with me your deployment process.</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Thu, 13 Dec 2007 19:23:04 +0800</pubDate>
        </item>
        <item>
            <title>Executing java programs outside of OC4J</title>
            <link>http://forum.lowyat.net/topic/520578</link>
            <description>We have two servers - App and DB Server. In the App Server, we have OC4J (Oracle Container for Java) installed and our Java Classes are sitting inside it.&lt;br /&gt;&lt;br /&gt;My question is, can I directly port some of our Java classes to the DB Server without installing OC4J on it and execute the Java classes directly via shell script?&lt;br /&gt;&lt;br /&gt;I have tried but I am getting a NoClassDefFoundError (below).&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;Exception in thread &amp;#34;main&amp;#34; java.lang.NoClassDefFoundError&amp;#58; oracle/dms/console/DMSConsole&lt;br /&gt;at oracle.jdbc.driver.DMSFactory.&amp;#60;clinit&amp;#62;&amp;#40;DMSFactory.java&amp;#58;27&amp;#41;&lt;br /&gt;at oracle.jdbc.driver.OracleConnection.createDMSSensors&amp;#40;OracleConnection.java&amp;#58;522&amp;#41;&lt;br /&gt;at oracle.jdbc.driver.OracleConnection.&amp;#60;init&amp;#62;&amp;#40;OracleConnection.java&amp;#58;345&amp;#41;&lt;br /&gt;at oracle.jdbc.driver.OracleDriver.getConnectionInstance&amp;#40;OracleDriver.java&amp;#58;515&amp;#41;&lt;br /&gt;at oracle.jdbc.driver.OracleDriver.connect&amp;#40;OracleDriver.java&amp;#58;345&amp;#41;&lt;br /&gt;at java.sql.DriverManager.getConnection&amp;#40;DriverManager.java&amp;#58;512&amp;#41;&lt;br /&gt;at java.sql.DriverManager.getConnection&amp;#40;DriverManager.java&amp;#58;171&amp;#41;&lt;br /&gt;at com.util.ejb.connection.DataSource.getJDBCConnection&amp;#40;DataSource.java&amp;#58;98&amp;#41;&lt;br /&gt;at com.util.ejb.connection.DataSource.getLocalConnection&amp;#40;DataSource.java&amp;#58;76&amp;#41;&lt;br /&gt;at com.util.ejb.connection.DataSource.getLocalConnection&amp;#40;DataSource.java&amp;#58;43&amp;#41;&lt;br /&gt;at com.system.logging.DBLogHandler.jbInit&amp;#40;DBLogHandler.java&amp;#58;42&amp;#41;&lt;br /&gt;at com.system.logging.DBLogHandler.&amp;#60;init&amp;#62;&amp;#40;DBLogHandler.java&amp;#58;20&amp;#41;&lt;br /&gt;at com.system.logging.LoggerFactory.setRootLogger&amp;#40;LoggerFactory.java&amp;#58;101&amp;#41;&lt;br /&gt;at com.system.logging.LoggerFactory.getLogger&amp;#40;LoggerFactory.java&amp;#58;39&amp;#41;&lt;br /&gt;at com.batch.EOD.EODActivator.&amp;#60;clinit&amp;#62;&amp;#40;EODActivator.java&amp;#58;27&amp;#41;&lt;br /&gt; command &amp;#58; + /oracle/DB/jdk/bin/java -cp /oracle/App/j2ee/home/oc4j.jar&amp;#58;/oracle/App/j2ee/Pro/applib&amp;#58;/oracle/App/j2ee/Pro/applib/itext-1.3.1.jar&amp;#58;/oracle/App/j2ee/Pro/applib/iTextAsian.jar&amp;#58;/oracle/App/j2ee/Pro/applib/LinearBarCode.jar com.batch.EOD.EODActivator COM TESTSLSUPL&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;And below is the command in the shell script which I used to execute it.&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;/oracle/DB/jdk/bin/java -cp /oracle/App/j2ee/home/oc4j.jar&amp;#58;/oracle/App/j2ee/Pro/applib&amp;#58;/oracle/App/j2ee/Pro/applib/itext-1.3.1.jar&amp;#58;/oracle/App/j2ee/Pro/applib/iTextAsian.jar&amp;#58;/oracle/App/j2ee/Pro/applib/LinearBarCode.jar com.batch.EOD.EODActivator COM TESTSLSUPL&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Thanks.</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Fri, 14 Sep 2007 19:35:23 +0800</pubDate>
        </item>
        <item>
            <title>Java PrintWriter not displaying output</title>
            <link>http://forum.lowyat.net/topic/506201</link>
            <description>I have a Servlet which reads a text file and writes it out using PrintWriter. I have no problems when it is in a windows or an AIX environment, but it doesn&amp;#39;t work properly in a Linux environment.&lt;br /&gt;&lt;br /&gt;To be more specific, in a Linux environment, if the text file has more than 3 lines, it has no problem writing it out. If it has 3 lines or less, then the output will only be out after 1 hour.&lt;br /&gt;&lt;br /&gt;I have searched everywhere for a work around but it just didn&amp;#39;t work. &lt;br /&gt;&lt;br /&gt;This function is suppose to loop continuesly so that the users will be able to see new lines which are created inside the text file.&lt;br /&gt;&lt;br /&gt;Below is the method in the Servlet which does the write out:&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;public void display&amp;#40;String filename, HttpServletRequest request, HttpServletResponse response&amp;#41; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;throws Exception&lt;br /&gt; &amp;nbsp; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;HTTPSessionAttributeWrapper jbSession = &amp;#40;HTTPSessionAttributeWrapper&amp;#41;request.getSession&amp;#40;&amp;#41;.getAttribute&amp;#40;&amp;#34;jbSession&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;jbSession == null&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; jbSession = new HTTPSessionAttributeWrapper&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.getSession&amp;#40;&amp;#41;.setAttribute&amp;#40;&amp;#34;jbSession&amp;#34;, jbSession&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;// set a flag to session to indicate the view status process is running&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;jbSession.setAttribute&amp;#40;&amp;#34;VIEW_STATUS&amp;#34;, &amp;#34;Y&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;jbSession = null;&lt;br /&gt; &amp;nbsp; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.pwrt = response.getWriter&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;BufferedReader IN = new BufferedReader&amp;#40;new FileReader&amp;#40;filename&amp;#41;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;String line;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;int &amp;nbsp;in_sleep_mode_before = 0;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;int count = 0;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;flushWinOs&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;while&amp;#40;EXECUTE&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //System.out.println&amp;#40;new java.util.Date&amp;#40;&amp;#41;.toString&amp;#40;&amp;#41;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; line = IN.readLine&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if&amp;#40;line &amp;#33;= null&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;in_sleep_mode_before &amp;#62; 0&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; println&amp;#40;&amp;#34;.&amp;#34;&amp;#41;; // new line&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; in_sleep_mode_before = 0;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// after printed out lines in buffer &amp;#40;arr1 and arr2&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// now we can print all the new comming lines&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;print_all_lines == true&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; println&amp;#40;line&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; response.flushBuffer&amp;#40;&amp;#41;; // this also does not work when it is in IBM Server&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if &amp;#40;count++ &amp;#60; start_at_last_lines&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// keep the last few lines in buffer arr2&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;arr2.add&amp;#40;line&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// arr2 is full, keep it in arr1&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;arr1 = arr2;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// init arr2&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;arr2 = new ArrayList&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count = 0; // reset counter&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;print_all_lines == false&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printLastLines&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;jbSession = &amp;#40;HTTPSessionAttributeWrapper&amp;#41;request.getSession&amp;#40;&amp;#41;.getAttribute&amp;#40;&amp;#34;jbSession&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// if it is null, means user has change to other jsp page, &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// so we should stop the process&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;jbSession == null || jbSession.getAttribute&amp;#40;&amp;#34;VIEW_STATUS&amp;#34;&amp;#41; == null&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EXECUTE = false;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break; // exit the while loop&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;jbSession = null;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;in_sleep_mode_before++ % 60 == 0&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; println&amp;#40;&amp;#34; &amp;#34;&amp;#41;; // new line&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flushAix&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print&amp;#40;&amp;#34;.&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; response.flushBuffer&amp;#40;&amp;#41;; // this also does not work when it is in IBM Server&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flushAix&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thread.sleep&amp;#40;3800&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch&amp;#40;Throwable t&amp;#41;{}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;#40;this.EXECUTE == false&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; println&amp;#40;&amp;#34;&amp;#60;&amp;#60;Stop reading file ... Exit.&amp;#62;&amp;#62;&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.pwrt.close&amp;#40;&amp;#41;; &amp;nbsp; &lt;br /&gt; &amp;nbsp; }&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;When I remark the entire while loop and replace it with the one below:&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;while&amp;#40;&amp;#40;line = IN.readLine&amp;#40;&amp;#41;&amp;#41; &amp;#33;= null&amp;#41; { &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; println&amp;#40;line&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; println&amp;#40;&amp;#34;.&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;pwrt.flush&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;response.flushBuffer&amp;#40;&amp;#41;;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;This one works. But this is not part of the requirement. &lt;br /&gt;&lt;br /&gt;I hope you guys can give me solutions for this. Thanks.&lt;br /&gt;&lt;br /&gt;[addedon]August 20, 2007, 4:55 pm[/addedon]i thought it was because the Response Buffer Size which I set was not enough. Initially it was set at 8186. now i am testing at 256 X 1024 and it is still not flushed out.&lt;br /&gt;&lt;br /&gt;Anymore suggestions are greatly appreciated.&lt;br /&gt;&lt;br /&gt;[addedon]August 20, 2007, 5:04 pm[/addedon]i thought it was because the Response Buffer Size which I set was not enough. Initially it was set at 8186. now i am testing at 256 X 1024 and it is still not flushed out.&lt;br /&gt;&lt;br /&gt;Anymore suggestions are greatly appreciated.</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Fri, 17 Aug 2007 17:08:25 +0800</pubDate>
        </item>
        <item>
            <title>Problem starting standalone OC4J</title>
            <link>http://forum.lowyat.net/topic/504186</link>
            <description>I am having problem trying to startup this standalone OC4J in my new laptop. &lt;br /&gt;&lt;br /&gt;My laptop is a Dell Vostro with an Intel Core 2 Duo processor and 2Gb Memory and it&amp;#39;s running Vista Business Edition.&lt;br /&gt;&lt;br /&gt;My java version is as below:&lt;br /&gt;&lt;!--QuoteBegin--&gt;&lt;div class='quotetop'&gt;QUOTE&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;java version &amp;quot;1.4.2_04&amp;quot;&lt;br /&gt;Java&amp;#153; 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)&lt;br /&gt;Java HotSpot&amp;#153; Client VM (build 1.4.2_04-b05, mixed mode)&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;br /&gt;The error I get when I try to start the standalone OC4J is as below:&lt;br /&gt;&lt;!--QuoteBegin--&gt;&lt;div class='quotetop'&gt;QUOTE&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;C:&amp;#092;oc4j10grob&amp;#092;j2ee&amp;#092;home&amp;gt;java -jar oc4j.jar&lt;br /&gt;07/08/14 01:46:27 Node started with id=11595221023676&lt;br /&gt;07/08/14 01:46:28 Auto-deploying ../../home/applications/admin_ejb.jar (Class &amp;#39;oracle.oc4j.admin.jmx.ejb.MBeanServerEjbRemote&amp;#39; had been updated)... Error in application default: Error loading package at file:/C:/oc4j10grob/j2ee/home/applications/admin_ejb.jar, javac.exe not found under C:&amp;#092;Program Files&amp;#092;Java&amp;#092;j2re1.4.2_04, please use a valid jdk or specify the location of your java compiler in server.xml using the &amp;lt;java-compiler .../&amp;gt; tag&lt;br /&gt;Error initializing server: Error initializing ejb-module, Exception: javac.exe not found under C:&amp;#092;Program Files&amp;#092;Java&amp;#092;j2re1.4.2_04, please use a valid jdk or specify the location of your java compiler in server.xml using the &amp;lt;java-compiler .../&amp;gt; tag&lt;br /&gt;Fatal error: Cannot instantiate ApplicationServerThread AND not in embedded mode&lt;br /&gt; - forcing exit&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;br /&gt;My JAVA_HOME and CLASSPATH is as below:&lt;br /&gt;&lt;!--QuoteBegin--&gt;&lt;div class='quotetop'&gt;QUOTE&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;C:&amp;#092;oc4j10g&amp;#092;j2ee&amp;#092;home&amp;gt;echo %JAVA_HOME%&lt;br /&gt;C:&amp;#092;j2sdk1.4.2_04&amp;#092;bin&lt;br /&gt;&lt;br /&gt;C:&amp;#092;oc4j10g&amp;#092;j2ee&amp;#092;home&amp;gt;echo %CLASSPATH%&lt;br /&gt;%CLASSPATH%&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Tue, 14 Aug 2007 09:58:05 +0800</pubDate>
        </item>
        <item>
            <title>Java ResultSet problem</title>
            <link>http://forum.lowyat.net/topic/496564</link>
            <description>Hi guys.&lt;br /&gt;&lt;br /&gt;I have a program which executes a Select statement to our Oracle DB and the values it returns are numbers. But when my program loops the resultSet reaches a particular record, it will throw a Nullpointer Exception.&lt;br /&gt;&lt;br /&gt;I used SQL Tools to view that particular record, but i do not see any null values. The values are either positive, negative or 0.0.&lt;br /&gt;&lt;br /&gt;Below is the data i retrieved from SQL Tools&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;-74.237435 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; 30583.8593 &amp;nbsp; &amp;nbsp; 4619.777 &amp;nbsp; &amp;nbsp;264.76250 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp;2773.51716 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 29210&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s a snippet of my code&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;double dblA = 0.0;&lt;br /&gt;&lt;br /&gt;while &amp;#40;resultSet &amp;#33;= null &amp;amp;&amp;amp; resultSet.next&amp;#40;&amp;#41;&amp;#41; {&lt;br /&gt; &amp;nbsp; &amp;nbsp;dblA = resultSet.getDouble&amp;#40;&amp;#34;columnA&amp;#34;&amp;#41;;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;I have googled but found no solution. I am currently running java version 1.42.&lt;br /&gt;&lt;br /&gt;Thanks.</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Mon, 30 Jul 2007 20:49:09 +0800</pubDate>
        </item>
        <item>
            <title>Managing code</title>
            <link>http://forum.lowyat.net/topic/466439</link>
            <description>I would like to know (if it is practised in your company/work place):&lt;br /&gt;&lt;br /&gt;a) does your project manager, senior developer, etc do code reviews on the codes written by your programmers?&lt;br /&gt;&lt;br /&gt;b) if code reviews are done, how is it done?&lt;br /&gt;&lt;br /&gt;c) does your company have a standard way in writing codes as in a distinctive format on how codes should be written i.e use 4 spaces for tabs or angular brackets should always be on a new line or comments should written this way or all the open connections and statements and resultsets must be in a try-catch-finally block or etc.&lt;br /&gt;&lt;br /&gt;d) is there training for the new programmer staff?&lt;br /&gt;&lt;br /&gt;The reason I am asking this is recently, we found out that there were problems in our codes, such as: &lt;br /&gt;a) lots of rubbish written in our codes&lt;br /&gt;&lt;br /&gt;b) most of the connections and resultsets and statements were not closed after being used or opened&lt;br /&gt;&lt;br /&gt;c) there were basically no comments and most of us have to figure our what that piece of code does&lt;br /&gt;&lt;br /&gt;d) new objects are always being created in a while or for loop&lt;br /&gt;&lt;br /&gt;e) long and ineffective sql statements&lt;br /&gt;&lt;br /&gt;f) poor exception and error handling&lt;br /&gt;&lt;br /&gt;g) System.out.println() are everywhere in the code&lt;br /&gt;&lt;br /&gt;h) functions/methods are not reused but copy-and-paste-and-modify&lt;br /&gt;&lt;br /&gt;i) a single class can have more than 3000 or 4000 lines. A report program I saw had a class with 5000 lines.&lt;br /&gt;&lt;br /&gt;By the looks of all these, I am beginning to worry. More problems may surface and the program my be harder to debug.&lt;br /&gt;&lt;br /&gt;So, what is practised in your company/work place?</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Sat, 02 Jun 2007 09:50:22 +0800</pubDate>
        </item>
        <item>
            <title>Credit Card payment Module</title>
            <link>http://forum.lowyat.net/topic/271499</link>
            <description>Has anyone any experience in doing a web application module which involves credit card payment?&lt;br /&gt;&lt;br /&gt;I have this project which enables users to do online booking through the web and pay via credit card. I would like to know how do I go about in building this online booking module. Are there certain parties which I should contact to enable me to pass the user&amp;#39;s credit card information?&lt;br /&gt;&lt;br /&gt;All I know right now is that I would need to implement SSL into the module? I&amp;#39;ve also done a brief search and found that Verisign has a service which needs to be puchased to enable the use of credit card payments via web.&lt;br /&gt;&lt;br /&gt;Thanks</description>
            <author>a_sim</author>
            <category>Codemasters</category>
            <pubDate>Mon, 03 Apr 2006 10:02:24 +0800</pubDate>
        </item>
    </channel>
</rss>
