JD3 show stopper error reloading BC4J prjs

From: Randall J. Parr <RParr_at_TemporalArts.COM>
Date: Wed, 08 Dec 1999 10:34:23 -0600
Message-ID: <384E888F.EEFD8F14_at_TemporalArts.COM>



I have Oracle JDeveloper3 and am trying to use it to develop a two-tier application using Oracle Business Components (BC4J).

I have hit an error which is a real show stopper. I have tried the Oracle Technet forums and am not getting ANY response (helpful, unhelpfull, whatever). JD3 IS UNUSABLE WITHOUT A SOLUTION TO THIS PROBLEM. I used JD3 to create a new business components project "db.prj" and used the wizard to generate package "com.mydomain.db" which include tables and default view objects for my database (have tried both my entire database of 74 tables and a subset of 10 tables) The package is created and compiles with no errors. I can create AppModules which contain the view objects. The workspace/project can be saved without error. I can create another project "app.prj" and use the wizard to generate Infobus dataforms based on the com.mydomain.db AppModules. These compile and run fine. All can be saved without problem. I can exit JD3 and restart JD3.

At this point I have not may ANY modifications to the db.prj or any of the files generated in this project. I've simply generated them, compiled them, saved them, and referenced them from another project.

At some point, after restarting JD3 one or more times (it varies) I start to get the following error when JD3 tries to reload the com.mydomain.db package java and/or xml files.



Load Error: Project: .../db.jpr (my ...) Exception: oracle.jbo.dt.objects.JboException Load Error:
Exception: oracle.jbo.dt.objects.JboException Object db
Exception: java.lang.ClassCastException
[oracle.jdb.dt.objects.JboEntityUseage

sometimes the last line is missing from the error message.

When the package is just being reopened and/or recompiled, the compilation continues and completes successfully and the Infobus forms using this package do appear to run ok. I can even deploy the package to a jar file and it appears to run ok.

BUT when I attempt to use a wizard, such as creating another Infobus data form, which references the com.mydomain.db package, JD3 tries to reload the entire package, gets the error, and either won't go on or doesn't find any objects to use in its generation. This is an even bigger problem than it might be as JD3 does not seem to remember (even early on when there are no errors yet) that it has the project loaded and it is unchanged as it appears to be reloading the entire package every time it is referenced by some action such as a wizard reference and/or just viewing a component in the project.

The db.prj containing com.mydomain.db becomes unuseable. The only way I have found to fix the error is to remove the project completely and regenerate it. This is, of course, a totally unacceptable long-term solution because it means I would constantly loose all changes made after generation.

I do not believe it is a memory size problem. It happens on large (74 table) and small (10 table) packages. I am running NT4 on a 400Mhz PII with 256M RAM. The system monitor shows I am only using 190M of 256M at the time of these errors but I'm not sure how much memory the JVM is using. I originally got the error with projects saved to a network drive (J:) but also get the error with projects saved to the local drive (C:).

PLEASE! ANY SUGGESTIONS GREATLY APPRECIATED Thanks
R.Parr
Temporal Arts
608.833.4578 Received on Wed Dec 08 1999 - 17:34:23 CET

Original text of this message