abhijeetp
1st March 2004, 05:00
Hi all,

I am working on BCK 1.3 with Baan IV c4 with Windows NT. I had developed a few BOI COM proxy objects and were working fine.

Now I am working under a new environment on a new server with Windows 2000 and BCK 1.3 and Baan IV c4. I have re-done the BOI COM proxy objects and now am facing the following issues-

1. The javac compiler (jkd1.3) is not compiling the .java files generated ... it gives error even for the BOI sample provided :

.\ccmcscurrrates.java:13: duplicate class: ccmcscurrrates.ccmcscurrrates
public class ccmcscurrrates
^
ccmcscurrrates.java:6: package ccmcscurrrates clashes with class of same name
package ccmcscurrrates;

2. If I change the package name and regenerate the .cfg, .odl and .tlb files it allows to compile. Now when I refer the library in VB6.0 and run the program it gives error-

Runtime error "430" Class does not support automation or does not support expected interface.

I am using MDAC 2.7. What could be the problem ?
Any help much appreciated.

Thank you.

shaboo
4th March 2004, 03:48
Trying using the same jdk that you had used earlier.

abhijeetp
5th March 2004, 12:54
Hi Shaboo,

I am using the same jdk1.3 as earlier. If I change the package name all classes are generated. But it gives this error when running from the VB project.

Is there something to do with the OLE server ?


Thanks,

shaboo
5th March 2004, 15:38
Though I haven't worked with BCK, but I have seen such an error in OpenWorld BOIs and the reason in my case was that some required classes were missing.

But I remember doing some research on it and if you do a search on Google on this, you will find a number of reasons why this error could happen. One thing that you could try doing is to use a java based client for this call and see if it works. Atleast that way you will make sure that there is nothing wrong in generated java code.

abhijeetp
6th March 2004, 05:51
Hi,

Sorry ... I forgot to mention that I have tested the BOI with a java client and it works perfect.

Also I tried searching on google..... the runtime error 430 takes me to mostly to the fact that the MDAC is not update. In my case MDAC is already at 2.7.

Any other possibilities ? B'cos I am really surprised to find this error.... never seen such before. Also the sample provided works well in VB client... thts strange... this probably means that the COM interface classes are not getting generated correctly!! Anything to do with the jactivex and mktyplib versions ??

Any help much appreciated.

Thanks,