JDev 9.0.3 - generating useless imports

Hello,
When I modify objects (entities, view objects, application modules) in my BO project, I find out that JDeveloper inconsistently adds for me some useless imports.
This will happen on any modification of that object. Even if I only open the properties wizard for an entity and click OK, without modifying anything in fact, I get some fresh new import(s).
For entities, I use a different base class than oracle.jbo.server.EntityImpl. I defined MyEntityImpl class both in Preferences/Business Components/Base Classes and it is, of course, in the Entity Object Wizard, in Java/Extends...
As I was saying, each time I press OK for an entity, I get in its java file:
import oracle.jbo.server.EntityImpl;
Elsewhere, the preferred import seems to be:
import oracle.jbo.RowIterator;
This is quite embarassing, as I checked for the project the option to report unused import warnings... And becomes difficult to see the real problems (if any).
Is there any other option to set, or is just a generation inconsistency?
Thanks,
Adrian

Hi Adrian,
I've been able to reproduce your reported behaviour:
1. define and use MyEntityImpl (extended from EntityImpl) class for myEO entity object
2. Add it in Preferences/Business Components/Base Classes
3. Check project option to report unused import warnings
3. Open myEO entity wizard, make no changes and hit OK - default import statement is added - import oracle.jbo.server.EntityImpl;
But, unlike in your case, when I compile myEO - the unused import is specified in the log window. If I compile again, the unused import is not detailed again (unless I've made some change to the class - added a comment .... - between the two compiles.
I am looking further into this behaviour for you. However, as a workaround, use the code editor context menu(RMB) of the class -> Organise Imports -> Remove Unused Imports to delete the unwanted import
Rgds
Susan
JDeveloper Product Manager

Similar Messages

  • Excise Accounting document not generated for Imported Asset GR

    Dear all,
    Excise accounting document is not generated for imported asset goods receipt(MIGO)
    but "C" Register part 2 no. is generated,usual accounting document is generated for GR,
    Asset is Dr to GR/IR
    Process is
    1. Create asset purchase order with acct. assignment "A",
    2. Customs miro based on p.o.
    3. Do GR with excise
    4. Post invoice for orginal vendor.
    What will be cause of this problem ?
    How to solve this issue ?

    The above issue may be due to Accout assignmnet -A . Check your accout assignment  in spro -mm-purchasing -accout assignment - Asset A - GR Non valuated has Ticked on . If it is ticked on - No Fi entry will happen at the Time of GR .
    The reason being , if an FI entry happen for the first time , asset is capitalised . To avoid this GR is made in ur config as this .
    rewdzzzz is full if correct
    Edited by: manu m on Apr 24, 2010 11:11 AM

  • Deleted standard class and BAdI. Need to re-generate/re-import.

    Hello SAPients,
    My buddy was working on the implementation of a BAdI. He arrived to a point where he couldn't save the Implementation because the system showed the error "Interface doesn't exist". He thought that deleting the implementation and re-creating it he would be able to save the implementation but then the system requested for an Access Key to modify the object, he requested the Key to the Basis guys, they provided it and my buddy deleted the implementation (that's what he thought). Actually, something weird happened and he deleted the class and the BAdI. Now, we are having trouble with short dumps in standard TCodes. The question is, is it posible to re-generate/re-import this standard objects? How?
    Thanks in advance for your kind help.

    I already told him that.
    BAdI: FTR_CUSTOMER_EXTENT.
    Class: CL_EX_FTR_CUSTOMER_EXTENT.
    We have too many developers working on this system, if we restore it from a backup we'll lose their work.
    Any other idea?
    Thanks.

  • JDev 10.1.3 generates incorrect getter/setter for CMP EJB 3.0 - Please help

    Hi,
    I am using JDev 10.1.3 Production and using the EJB3.0 CMP wizard to generate the code from a MySQL database. No matter what type I specify for my database columns in schema, code generator always generates the properties of type String only. e.g if a column called Age is specified as Integer in schema, the generator generates setters/getters with String type.
    Can somebody please help me.
    Regards
    Vimal

    I was able to reproduce the problem and logged bug 5035459 for now. -- thanks

  • Why do I no longer get previews generated when importing with LR 3.4.1?

    Problem:  This week while Importing a batch of 900+ photos they all show up in the Library as gray boxes (no previews).  I can still see previews of all my previously imported photos and the new ones are visible normally when viewing them with other programs (e.g., Canon Zoombrowser, My Pictures).
    Also, when I close LR3 and select the Backup option I get the error 'Lightroom encountered an error when trying to read its preview cache and needs to quit - Lightroom will attempt to fix this problem next time it launches'.  After clicking on OK for the error pop-up window LR3 freezes up and does not close, it just spins with Lightroom (Not Responding) on the top of the window.
    Environment:  Windows Vista Home Premium, Lightroom 3.4.1, photos are Canon raw CR2 format from 40D and 7D DSLRs. The Catalog is on a 2 TB external USB drive tethered to my Lenova Thinkpad laptop.
    I have over 40,000 photos in my catalog, most from the same cameras, and I REALLY don't want to start over or have to regenerate that many previews.
    Tried importing using both Copy and Copy as DNG with the same result - no previews in Library.
    Tried importing them from the memory card via a USB card reader and via a USB memory stick after moving them from the memory card to a different laptop - same result.
    Tried manually selecting a few photos and rendering new standard previews, LR3 starts the rendering per the status box in the upper left corner, but no progress toward generating a preview is made while in Library mode.  It just sits there.
    I can see the photos in Develop mode when I select one to view AND, it seems to stay there when I move back to Library.
    But, when I attempt to close LR3 (with the above error/crash) and restart it, the previews generated in Develop mode are gone.
    Is there a relatively simple solution for this?  I had not run into this while using prior levels of LR3.
    Thanks a bunch!!!
    Jim

    Rlrood wrote:
    Jay,
    I googled my problem and to my great surprise received a solution. It seems that the monitor profile I was using (the monitor default) was corrupted. I changed the profile to an earlier one I had created using Spyder 3 and the problem went away. The previews appeared. Of course, now my screen has a slightly pinkish cast, but as the days go by I'm learning to live with it:)  (I stopped using the profile because of the pink cast).
    Hope this helps.
    Thanks..  I'll try to generate a new profile tomorrow, but not sure that's related.  I've seen similar issues with previews on a Macbook Pro, which has a totally different profile.  I don't know the underpinnings of LR to that degree, but in my case, simply moving to the page of images in Library almost instantly changes the gray version of the thumbnail to a "picture".
    Jay S.

  • JDev 10g: Problem when generating database objects from UML diagram

    Hi,
    I have noticed following problem.
    I made some business components through UML diagrammer in 9.0.3. From the diagram I generated database objects. It worked fine.
    When I doing the same thing in 10g, the generation fails on several tables with the message that the "identifier is too long".
    Looking at the SQL produced in one of the failing tables. In 9.0.3 following is produced:
    create table sfs_document_def (
    id number constraint document_definition_id_check not null,
    caption varchar2(100) constraint document_definition_caption_ch not null,
    index1 number,
    owner_type number constraint document_definition_owner_type not null
    alter table sfs_document_def add (constraint documentdefinition_primary_key primary key (id));
    And in 10g following is produced:
    create table sfs_document_def (
    id number,
    caption varchar2(100) constraint sfs_document_def_caption_check not null,
    index1 number,
    owner_type number constraint sfs_document_def_owner_type_ch not null
    alter table sfs_document_def add ( constraint documentdefinition_primary_key primary key (id));
    alter table sfs_document_def add ( constraint document_definition_id_check check ("id" is not null));
    alter table sfs_document_def add ( constraint sfs_document_def_caption_check_10 check ("caption" is not null));
    alter table sfs_document_def add ( constraint sfs_document_def_owner_type_ch_10 check ("owner_type" is not null));
    It seems that column that are set not to be null in 10 g first get a constraint creating the table and then when altering the table. Furthermore, notice that the name of the second constraint is longer than 30 chars, which is reason to the error when creating the tables.

    Thanks for reporting the issue. I have managed to reproduce your problem and logged a bug to get the problem fixed.
    Thanks,
    Lisa Sherriff
    JDev QA

  • Code generated from imported web service model does not compile

    I have created a model in Web Dynpro by importing a web service model using a valid WSDL, but the generated code won't compile because of type mismatches.
    The problem is that methods sometimes try to pass plain objects to methods whose parameter is an array of that object, and a List to methods whose parameter is a plain object.
    [Examples from SAP Netweaver tasks below]
    Thanks,
    Alastair
    snip
    The method setSessionData(EntInstType) in the type AssessRequestData is not applicable for the arguments (EntInstType[])     
    ComplexType_AssessRequestData.java
    Type mismatch: cannot convert from EntInstType to EntInstType[]     
    ComplexType_AssessRequestData.java
    The method setResult(List) in the type Response_JrbrsRefGeneric_listGoals is not applicable for the arguments (EntType)
    Request_JrbrsRefGeneric_listGoals.java

    I'm getting the same error.
    Type mismatch: cannot convert from short[][] to short[]
    ComplexType_Carton.java
    and...
    The method setNumeroscarton(short[][]) in the type Carton is
    not applicable for the arguments (short[])
    ComplexType_Carton.java     
    Steps to recreate the problem:
    1. Create and Expose webservice method with a parameter whose type has a short[][] (or bidimensional array of anything) field (property).
    2. Try to import the web service in web dynpro... <b>kaputt</b> it won't compile.
    <b>Seems like a bug to me. Someone please advice.</b>

  • Why Internet Script Error is generating while importing .SWF file in Robohelp 5?

    Hi!
    I am using Robohelp version 5. I am trying a import a .SWF generated using Adobe Captivate into a file. I am getting the following error message. Can any one let me know what needs to be done?
    Thanks in advance,
    Latha

    Hi,
    I pasted the following code (This code was given in one of the discussions) in the true code to fix the error that is poping up while viewing the .chm file.
    <p><object type ="application/x-shockwave-flash"id="object1" data ="../Menucheckmark.swf" style ="border:none; "width= "400" height ="300">
    <param name = "movie" value ="../Menucheckmark.swf"/>
    <param name = "quality" value ="high"/>
    Loading multimedia control.... </object></p>
    I changed the swf file name and pasted in the true code. After generating the file, the true code changes as shown below:
    <p><object type="application/x-shockwave-flash"
       id="object1"
       data="../RTDC.swf"
       style= "border:none;"width: "851";
         height:"718";
    <param name="movie" value="../RTDC.swf"  />
    <param name="quality" value="high"  />
    loading multimedia control.... </object></p>
    But still I am getting the error message. Can anyone help me on this?
    Thanks,
    Latha

  • Sun ONE generated Cert import to apache

    Hello,
    I would like to import a sun one generated Certificate into Apache. I can not seem to find a straight step by step answer... anyone out there done this?
    I am keeping the same domain and the apache server will be running on the same system.
    Thanks,
    Angel

    Hello KB,
    As for questions #1 - The existing cert will continue to work. The CSR is created based on the existing private key
    # 2 - During installation of the Renewal certificate you will see a dialog box indicating the certificate already exists - Do you want to overwrite it, you answer YES - The new certificate is now the default certificate.
    # 3 - Problem
    Moving an SSL certificate from one Sun iPlanet 6.1 Web server to another
    Move certificate
    Resolution
    The process of moving (migrating) an SSL (Secure Sockets Layer) certificate from one host running Sun iPlanet Web Server 6.1 to another host also running Sun iPlanet Web Server 6.1 involves the following steps:
    Locate the alias directory within the iPlanet directory.
    Locate the https < server_name > cert7.db (or cert8.db depending on version) and https <server_name> key3.db files and copy them to the new iPlanet Web server's alias directory.
    On the new iPlanet Web server add a new server instance with the exact name as the previous server.
    Stop and start the Web server.

  • Corrupt dump file, foreign keys not generated on import

    Hi,
    In our refresh job, we get the dump file from production and use it to refresh the schema in UAT.
    The dump file thus we got from production seems to be corrupt - as its giving error - "IMP-00008: unrecognized statement in the export file: "
    But the error we are getting is for few users, while other users are being imported fine. For the users which got imported fine, the foreign keys are missing !!!
    There is no "error" in the import log regarding the foreign keys.
    We tried to get the indexfile and it has all "Create Table" statements, along with indexes, primary key, check constraints etc .... only the FOREIGN KEYS are missing.
    How can this be explained ?
    With Regards,
    Shalini.

    Some suggestions:
    1. Check Note:111384.1 if you are trying to import from the tape directly.
    2. You can set a bigger buffer size and check whether the error reappears.
    3. If you are trying to perform a full import and the error always seemed to be happening when it tried to import the 56th user, you set init.ora parameter license_max_users (which is set to 55) to a bigger value.
    These are apart from the main reason for this error, i.e., corrupted export file or Import internal bug.

  • COPA document is not generating for import sales billing document.

    Hi Gurus,
    At the time of billing i got an error that condition type is not assigned to COPA. I assigned the condition type in KE4I and the entry posted but no COPA document generated.
    Why the COPA document not generated?
    Is there any link between billing type and COPA? if yes, then where we link the same to copa!
    Note:- COPA document is generating for other billing documents.
    What are the criterias for system to determine the generation of COPA documents?
    It is urgent.
    Regards,
    Ramakanta

    Hi ,
    I am really very much appreciate your cooperation for the issue.
    When i try the same through KE4S in test run system is showing the below lines.....
    Number of billing documents read:                        1
    Number of line items to be transferred:                  0
    No. of billing doc. items already transferred:           0
    Number of billing docs with errors:                      0
    Note:- Number of line items to be transfered  0  then there is nothing to transfer to COPA.
    Please suggest.

  • JDev 11r1 minor bug in Subversion Import Wizard

    Hi all,
    When performing the initial import of an application into a Subversion repository, on step 4 of 6 of the import wizard (Filters), there is a minor UI bug. Both the "New" button (for adding a new ignore filter) and the "Next" button (for going to the next step of the wizard) have a shortcut key of "N".
    Obviously not a show-stopper, but a minor annoyance.
    John

    Logged bug 7516297 for this

  • Generate or import xml form content into portal

    Hi, we have a content repository type "fsdb" in wich we have created a xml form to publish content.
    Now we need to develope a program or process that read information from a database and generate the xml content in the repository,
    How can we generate the xml form content?
    I have tried coping and existing element of the repository from the file system and changing the data but something more is needed, I think that is necesary to update the database.
    Any suggestion is welcomed.
    Thanks in advanced.
    Regards.

    Hi,
    I differred my theme, cause I also had to use and transport the xml-forms into another portal. For this reason I have to use xml-forms. I've found out how to modify the the content/text of an subscription-mail.
    Is there any way to define different layouts for subscription-mails? (Maybe depending on the folder.)
    Is there any way to send an e-Mail to a specified address (including the content) when saving the xml-form?
    Greets
    Janko

  • Failure to generate waveform / import audio from a video

    When I try to load an avi, which used to work before, the video gets loaded and I can watch it however there is absolutely no audio imported. I have tried opening videos that I had previously used and those don't have sound either. I also updated, didn't help
    Thanks

    the last thing that I have installed would be divx player and some of the codecs that came along with it.

  • Jdev 10g web services - Generated WSDL/message part name does not match

    Hi,
    Any idea how to get the generated WSDL sequence element name and Java WSDL mapping file message part name to match the parameter names of the EJB exposed as a web service (using the bottom-up approach)? Right now what happens is these 2 names are generated based on the parameter type (e.g. Integer_1, String_2, etc). Thanks for any help.
    rgds,
    Ong

    It depends on a number of things because the JAXRPC 2.0 spec. will be dependent on a number of
    other specs. We are hoping to have an EA later this year or early next year.

Maybe you are looking for

  • Peculiar object creation

    Hello all, I had a quick question regarding a peculiar call to construct a new object. I have a couple of example classes (deliberately not checked for clarity or consistency), one of which extends the other. The call shouldn't work, but I'm just not

  • Package concept?

    Hi, I am confusing how to understand the term "package" in javacard. Is it similar concept in java? example, java.lang, java.io, ... are packages? if they are packages then do they have AIDs ? my own thought, the concept of package in javacard is not

  • HowtO - Upgrade 10gR1 WIN 2003 ent(non-asm) to 11gR2 WIN 2008 ent(non-asm)

    I did this on VMWare: Two servers: Two servers - old ; new Steps old - oracle 10g ; win 2003 enter - 3 databases (rman catalog ; production ; testing) 1.installed 11g r2 - different home (software ONLY) 2.cold backups - 10g db 3.upgraded them to 11g

  • Picture workflow for slideshow in FCP

    i have forty pictures that have a resolution of 3000 x 4000 pixels approx. and need to know how to bring pictures into FCP video track. Current problems: 1. Pictures are keyframed for panning but resolution gets blurry. 2. Pictures seem much larger t

  • I have the latest Pages  5.2 and get a sign saying "INDEX.pages" can't be opened. I have need of some of the documents. What can i do?

                            I have the latest Pages  5.2 and get a sign saying "INDEX.pages" can't be opened. I have need of some of the documents. What can i do?