Sistematika’s Journal

Diberkati untuk memberkati

ADempiere NoClassDefFoundError while applying customization

Posted by: Bayu Cahya P on: January 9, 2009

Hello everybody, Happy New Year to all of you. I wish, in this new year, we can have a more prosperous life. And hope we can share and spread our mercy.

In todays talks, we will discussing about ADempiere NoClassDefFoundError while applying our customization. Recently, I had a duty to applying bug fixing which not patched yet in the ADempiere previous version (342s. — means ADempiere 3.4.2 stable version –).

ADempiere current trunk, has a lot of new features and bug fixing which made ADempiere ERP even better and better. But, applying current trunk bug fixing to previous version is a challenging tasks. It’s not just about merging the source code only. There are so many things which needed carefully attention, like ensure that applying this fixing will not break ADempiere 342s core functionality. So I have to make sure to merge the proper codes and test this new codes accordingly.

I just realized that, they were so many activity to “broke the wall” which need to be done to ensure this patch working properly.

After a hours of “heating our brains” (we are working for https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2129781&group_id=176962), we started to test our new patches codes. Surprisingly, I had an ADempiere No Class Def Found Error messages. Take a look at below figure

adempiere accounting processor noclassdeferror

These error comes while ADempiere accounting processors, running its activity. I just do not understand, why this was happened.

Previously, we made our patching on Doc_Production.java files also and got java.lang.NoClassDefFoundError: org/compiere/acct/Doc_Production. And yes, our customizations contains several java class including MInvoice and Doc_Production classes.

We tried to isolate this issue with removing Doc_Production class first from our customization.jar, and the result was raise another no class def found error (in this case, we got error message appearing in the previous figure). We ensure that our patches java sources was compiled properly and successfully integrated with ADempiere core during executing run_setup.bat (or run_silentsetup.bat).

After “broken the other wall” during our test, finally we found what is the main problem are. Our machine box has 2 JDK version installed, ie JDK 5 and JDK 6. Currently, for testing purposes, I had set our JAVA_HOME to JDK 5 and compile ADempiere 342 with this version. Whereas, while developing the patches, Eclipse was setting up using JDK 6 as default java compiler. With our cases, changing to using JDK 5 after all, could eliminate NoClassDefFoundError error message.

eclipse java compiler setup

Well, this is the end of today writings. Hope this can help readers, in case they face the same problems.

9 Responses to "ADempiere NoClassDefFoundError while applying customization"

1 | Henry Indra Kristanto

January 17th, 2009 at 3:40 pm

Hallo Pak Bayu, saya newbies di Adempiere. Saya sudah berhasil menginstall Adempiere ke komputer saya dan mulai mendalaminya. Pak, apakah bapak mempunyai skema accounting versi indonesia? terima kasih

2 | Bayu Cahya P

January 17th, 2009 at 4:16 pm

Halo,

Beberapa saat yang lalu, rekan kita dari Goodwill menyediakan skema tersebut. Untuk memudahkan, silahkan di download di http://sistematika.web.id/files/accounting-id.xls dan lakukan modifikasi seperlunya.

Salam
Bayu

3 | Henry Indra Kristanto

January 18th, 2009 at 2:44 pm

Terima Kasih Pak Bayu

4 | hodish

January 19th, 2009 at 12:39 am

hi

we want your help in open source adempiere in :
– setup
– customize adempiere to our company need
– implement
– training IT & End Users

can u help us or let me know other company can provided above required

we very thanks for your help

Best regard
hodish
yemen 00967 711206198

5 | Bayu Cahya P

January 19th, 2009 at 12:07 pm

Hi Hodish,

Thank you for contacting us.

I just visited your sites and it seems that you are doing a good drink (milk) business.

With cooperation with our partner, we are glad to support you for your ADempiere implementation plan.

Could you give us an estimation about on what time your team will be ready for starting a positioning phase?

If there are any things you need to clarify, do not hesitate to contact us at email nospam at sistematika dot web dot id

I look forward to hearing from you.

Thanks and regards
Bayu Cahya P
62-02470268109

6 | marlon

June 10th, 2009 at 10:21 am

pa bayu bisa bantu saya dalam adempiere,.. (saya masih newbiew ERP open source ini)

di kantor, sy sdh instalasi adempiere menggunakan OS Ubuntu server ‘

edition & u databasenya menggunakan Postgres. instalasi sudah selesai.

yg sy mau tanyakan, untuk import file, kantor sy dulu menggunakan

software open source CRM (VTiger). masalahnya VTiger ini menggunakan database mysql. gimana yah caranya saya ambil data2x dari VTiger ini untuk saya pakai ke ADEMPIERE ?..

Terimakasih atas informasinya

Marlon. S

7 | Bayu Cahya P

June 10th, 2009 at 10:35 am

P Marlon,

ADempiere menyediakan feature untuk mengimport data seperti business partner, general ledger etc.

Proses import data tsb menggunakan format csv files. Yang diperlukan disini adalah team anda agar menyiapkan data sesuai dengan format yang dibutuhkan oleh ADempiere. Format yang dibutuhkan ADempiere secara prinsip dituangkan dalam menu Import Loader Format.

Jika anda membutuhkan profesional support, anda bisa mengontak saya di nospam at sistematika dot web dot id

Terima kasih dan salam
Bayu Cahya P

8 | janie

December 8th, 2009 at 8:03 am

Pak Bayu Cahya P gimana cara mendapatkan buku adempiere? di toko buku tidak di jual ya

9 | Bayu Cahya P

December 8th, 2009 at 9:29 am

Janie,

Terima kasih atas perhatiannya kepada buku ADempiere 3.4 ERP.

Kita sedang mengupayakan untuk menjual di Indonesia.
Mohon tunggu kabar selanjutnya, baik via blog ini atau lewat id-adempiere dan indocompiere mailing list.

Salam
Bayu

Comment Form

SEO Powered by Platinum SEO from Techblissonline