Arun Bavera

Syndicate content
Updated: 37 min 30 sec ago

How to get Thread dump for Forms Applets?

Wed, 2008-08-13 05:46
Enabling the Java Console for Verbose output
Goto->ControlPanel-> Java->Java tab(Java Applet Runtime Settings)->View

Add this in the Runtime Parameters:
-verbose -Djavaplugin.trace=true -Djavaplugin.trace.option=basic|net|cache||security|ext|liveconnect|temp
You can add other optimizing parameters here.

This opens a command window with more info (verbose)
Once you get hang or Crash you will get more info or you can use Ctrl+Break key to dump the curent thread info.

You can then use the TDA to analyze the thread dump.
Thread Dump analyzer
(https://tda.dev.java.net/files/documents/4691/83255/tda-bin-1.6.zip)

To enable more info in the Java console:
Goto->ControlPanel-> Java->Advanced->Debugging (Enable all)
Goto->ControlPanel-> Java->Advanced->Java Console (Show Console)

Also, you can do v in the current Java console to get the Thread Stack

And see if there is any application error listed in the Java/Jinit Console
Categories: Development

Managing and Changing the HTTP ports for ORACLE

Mon, 2008-07-21 13:56
If you want to change the Oracle HTTP ports on 9.0.4 or 10.1.2 refer:
This also helps on how to change the ports to 80 on UNIX as it requires root permission on UNIX systems for anything running on port below < 1024.

9.0.4
http://download.oracle.com/docs/cd/B10464_01/core.904/b10376/ports.htm
Changing the Oracle HTTP Server Non-SSL Listen Port (with Web Cache)
Changing the Oracle HTTP Server SSL Listen Port (with Web Cache)
Changing the Oracle HTTP Server Non-SSL Listen Port (No Web Cache)
Changing the Oracle HTTP Server SSL Listen Port (No Web Cache)

10.1.2
http://download.oracle.com/docs/cd/B14099_19/core.1012/b13995/ports.htm
Categories: Development

How to fix SMSD Crashes on 1.1.4 iPhone

Tue, 2008-07-08 11:08
The problem with SMSD is it cant understand the old sms.db in /var/root/Library/SMS or /var/mobile/Library/SMS
for the existing system 1.1.4 so it crashes

So, to workaround the problem:

Install the latest Beta version of SMSD from:
a) Using Installer add source SOSiPhone - http://repo.sosiphone.com/
or
b) Manually from Amrut Joshi - SMSD, http://amrut.joshi.googlepages.com/

Do SSH to your iPhone
cd /var/root/Library/SMS
mv /var/root/Library/SMS/sms.db sms.db.old

cd /var/mobile/Library/SMS
mv /var/mobile/Library/SMS/sms.db sms.db.old

Reboot the iPhone, SMSD creates a new sms.db in /var/mobile/Library/SMS

cd /var/mobile/Library/SMS
mv /var/mobile/Library/SMS/sms.db /var/root/Library/SMS/.
cp /var/mobile/Library/SMS/sms.db.old /var/mobile/Library/SMS/sms.db

Now, the normal SMS application reads its DB from /var/mobile/Library/SMS/sms.db with all old data intact.
and Amrut's SMSD reads the DB from /var/root/Library/SMS/sms.db

Hope this helps
Arun
Categories: Development

Finding CLASS file inside the JAR files

Mon, 2008-06-23 13:27

Some time we may need to find which JAR file the class file belongs to when we get Class not found Excption and when we dont know which JAR file to add to avoid these errors:

----------------------------------------For Linux ---------------------------
#!/bin/ksh
JAVA_HOME=$ORACLE_HOME/jdk
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
if [ $# -eq 0 ]
then
echo "Usage: classfind.sh className path\n"
exit 2
fi
for i in `find $2 -name "*jar" ! -type d -print`
do
result=`jar -tvf $i grep -i $1`
if [ "$result" != "" ]
then
echo $i
jar -tvf $i grep -i $1
fi
done

---------------------------------------------------------------------------------

Example:

findJars.sh oracle.ias.cache.Configurator $ORACLE_HOME

------------------------For Windows------------------------------

@echo off

set path=%oracle_home%\jdk\bin;%path%

if %1abc==abc goto :usage

if %2abc==abc goto :usage
for %%i in (jar.exe) do set jarpath=%%~$PATH:i

if not defined jarpath goto :definejarpath
if not exist %2 goto :invaliddir
for /f %%i in ('dir /s/b %2\*.jar') do call :findclass %%i %1

goto :EOF
:findclass

jar -tf %1 | findstr /R "^%2 /%2"

if %errorlevel% == 0 call :echodot %1

goto :EOF

:echodot

echo Found in jar file : %1

echo.

goto :EOF
:usage

echo Usage: findjars.bat className path

goto :EOF
:definejarpath

echo jar.exe not found in the PATH.

goto :eof
:invaliddir

echo Directory/path %2 doesn't exist

---------------------------------------------------------------------------

Example:

findjars.bat oracle.ias.cache.Configurator %ORACLE_HOME%

Categories: Development