Jumat, 21 Januari 2011

Petunjuk Error Handling pada aplikasi java Cimande

Petunjuk Error Handling pada aplikasi java Cimande

Aplikasi cimande secara default menggunakan database MySQL. Penanganan format DATETIME atau TIMESTAMP sangatlah merepotkan. Versi JDK dengan versi MySQL sangatlah saling berkaitan, dan tentunya format penanggalan default Sistem Operasi juga mempengaruhi penanganan penyimpanan tanggal.

Uji coba kami pada beberapa komputer, mulai dari penginstalan Cimande sampai muncul error yang terjadi rata-rata error disebabkan oleh penanganan DATETIME pada field create_date dan update_date oleh MySQL dan JVM yang belum bagus. Dengan catatan penamaan package, class dan path lokasi file sudah benar.

Berikut kami tuliskan error yang mungkin terjadi beserta bagaimana penanganannya:
Penanganan Error secara Umum:
 Jika error terjadi, kita lihat pesan error yang muncul di Browser. Pastikan kita baca pesan yang bisa kita cerna (pesan komunikatif dari sistem).
 Jika pesan dari browser sudah cukup jelas, selanjutnya kita tangani sesuai pengetahuan kita atau lihat pada list error di bawah ini.
 Jika pesan dari browser belum cukup jelas, selanjutnya lihat error yang muncul di Console. Kita lihat pesan error mulai dari baris paling bawah pelan-pelan kita lihat ke atas. Pesan Error yang Komunikatif biasanya terdapat tulisan "Caused By:", "SEVERE:", "INFO:", dll. Selanjutnya kita tangani sesuai pengetahuan kita atau lihat list error di bawah ini.
 Jika error terjadi dan kita tidak ada pengetahuan tentangnya, kita tanyakan ke Internet melalui Google, Yahoo atau Forum2 Java.

List Error beserta penanganannya

Error/ Penyebab /Penanganan
There is no Action mapped for namespace /module/akademi_jeni and action name filter. - [unknown location] Belum ada mapping action dengan nama filter. Definisikan mapping action pada file konfigurasi struts.xml (file lain yang di-include-kan)
HTTP Status 404:
The requested resource (/cimeng/module/akademi_jeni/create.action) is not available. - Aplikasi tidak berhasil dijalankan dengan baik
- Resource tidak ditemukan, biasanya kesalahan penulisan path lokasi/filename/ekstension
- Tag XML yang tidak lengkap/salah tulis - Cek Error di console
- Temukan file penyebab error
- Perbaiki penulisan/tag
Invalid date format '1980-01-01 00:00:00' - Format Date Sistem operasi tidak berformat yyyy-mm-dd h:i:s
- Versi MySQL dan JDK tidak kompatibel - Ganti Format Sistem Operasi melalui Control Panel
- Upgrade ke JDK 6
- Tambahkan kode untuk mengeset nilai kolom created_date, update_date.
Berikut kodenya (gunakan sesuai kebutuhan):

LogInformation log = new LogInformation();

log.setCreateDate(new Timestamp(System.currentTimeMillis())); log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
log.setCreateBy(sessionCredentials.getCurrentUser().getId());
log.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());

sebelum PersistenceManager menyimpan object, kita set dulu LogInformationnya.
Misal: Objectnya academy, maka cara mengeset LogInformation-nya:

getAcademy().setLogInformation(log);








.: Semoga Bermanfaat :.

save2pc Ultimate 4.16 Build 1323



DOWNLOAD save2pc Ultimate 4.16 Build 1323 | Serial | 2.5 MB

save2pc (formerly known as YouTube Downloader) is a free tool that downloads videos from Youtube or Google Video and saves it as Avi or Mpeg or Flv file to your local computer. save2pc allows you to easily grab and save desired youtube video. The user interface of save2pc is very simple, so you don't need any technical knowledge to use it. No need to use scripts for web browsers. Just run save2pc and start downloading! save2pc is a small, fast, useful, practical and powerful. It has a clean, simple interface. Simply paste the URL of a video into the program, press Start , and the AVI, MPEG or FLV file will be downloaded into the selected folder. You dont need any players to play flash video just play it on the defult media player clasic. save2pc is a completly FREE Software. It contains absolutely NO ADWARE, NO SPYWARE, NO REGISTRATION, NO POPUPS, NO MALWARE or other unwanted software.

Simply paste the URL of a video into the program, press Start , and the AVI, MPEG or FLV file will be downloaded into the selected folder. You dont need any players to play flash video just play it on the defult media player clasic.

- Easy to use
- Download from Youtube
- Download from Google Video
- Save youtube video as an AVI file
- Save youtube video as an MPEG file
- Save youtube video as an FLV file

Home Page - http://www.save2pc.com/

DOWNLOAD SmartFTP Client 4.0 Build 1156



SmartFTP - This FTP client utility lets you share files in local area networks and between servers on the Internet. The program delivers secure, reliable and efficient file transfer. This program can be used to publish and maintain web sites, uploading and downloading images, documents, movies and music, sharing files among friends and colleagues, creating backups of local or remote files. There is a built-in quick access to specialized services, FTP-search.

SmartFTP Client allows you to transfer files across the Internet. Multiple FTP connections can be opened at the same time, and you can copy files from one remote host to another (FXP). Remote-host directory information is cached for future viewing, and FTP URLs are supported. With a Windows XP look and feel and features including SSL (Implicit / Explicit), FXP Support, Multiple connections, Proxy Firewall support, Drag and Drop from Explorer, Remote Directory caching, the ability to resume broken downloads, Background transfers, Passive transfer mode and the ability to perform recursive downloads, uploads, and deletes.

SmartFTP can be used for:
- Publications and Support Website
- Downloads and sending images, documents, videos and music files
- Exchange files with your friends and colleagues
- Backups of deleted files

Features SmartFTP:
- Secure connection (TLS / SSL).
- File / cataloqgue synchronization.
- Support for IPv6.
- Compression "on the fly" (MODE Z).
- Support for UTF-8.
- Supports "grab and drag" (Drag'n'Drop).
- Multiple connections.
- Automatically reconnect and Resume files.
- Check the integrity of the transmission, verification programs (XCRC, XMD5, XSHA).
- Supports FXP (server transfer - Server).
- Remote file editing.
- Supports Enhanced NAT / UPnP
- The transmission queue
- Support for Proxy / Firewall
- Backup tool.
- Monitoring the Clipboard.
- Caching remote directory.
- Command line FTP.
- Special teams.
- CHMOD (Properties).

Changes in Version 4.0 Build 1156 (2011-01-11):
* Scheduler: Added sort in view
* Other internal changes

Home Page - http://smartftp.com

DOWNLOAD Polyglot 3000 3.54



DOWNLOAD Polyglot 3000 3.54

Polyglot 3000 is an automatic language identifier that quickly recognizes the language of any text, phrase or even single words. It is available for Windows 95/98/NT/ME/2000/XP.

Polyglot 3000 features:

-Recognizes more than 400 languages
-Supports Unicode texts.
-Convenient user interface.
-True-Coloured icons in menu and toolbar.
-Quick and correct language identification.
-Can be set to only check for popular languages.
-Multilingual interface (English, German, French, Spanish and others).

Home Page - http://www.polyglot3000.com/

Penulisan Artikel Website Otomatis

Formulir Pembuatan Artikel



Hasil artikel akan muncul di sini.