[BC4J-bug] obsolete import statements remain behind in AM source file

Just wondering if the following problem is a known bug or not:
I've got an application module called 'AMExample' and it consists of 2 files: AMExample.xml and AMExampleImpl.java.
When I remove a view from this module, the corresponding import statement in the AMExampleImpl.java file remains behind, which leads to compilation errors after I delete this (obsolete) view entity from the project.
Regards,
Patrick.

Just wondering if the following problem is a known bug or not:
I've got an application module called 'AMExample' and it consists of 2 files: AMExample.xml and AMExampleImpl.java.
When I remove a view from this module, the corresponding import statement in the AMExampleImpl.java file remains behind, which leads to compilation errors after I delete this (obsolete) view entity from the project.
Regards,
Patrick.

Similar Messages

  • [svn:osmf:] 10528: Removing obsolete import statements.

    Revision: 10528
    Author:   [email protected]
    Date:     2009-09-23 02:47:21 -0700 (Wed, 23 Sep 2009)
    Log Message:
    Removing obsolete import statements.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/media/IContainerGateway.as
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/media/IMediaGateway.as

  • Filename in import statement

    Hi srinivas bobbala,
    Thank you for your response.But I think my quesition was not clear.My ques... is for suppose there is one datafile for importing like.. "datafile_21" Here my intention is it takes file from datafile_21 only but it appears in import statement like datafile_21<<curmon>>.
    import database sample.sample data from data_file "c:\\ABC\datafile_21_AUG.txt" using server rules_file datafile on error abort;
    In this it takes datafile from datafile_21.But it appears like datafile_21_AUG in import statement.This AUG coming from batch file.
    Essmsh c:\\ABC\loadmxl.mxl %curmon%

    No it is not possible.
    I assume the data file "datafile_21" is first renamed to datafile_21_${CurrMth} in the batchscript.
    After that this data file *datafile_21_${CurrMth}* is pointed in the import statement.
    In the logs you will see this file as datafile_21_Aug.

  • Importing data for tuple changes the order from source file - please help

    Hi all:
    I am using MDM 7.1 with the new tuple functionality. I have to import some product texts in a specific order. Tuples is working fine, the only issue is that it changes the order of the rows when importing from Excel.  Let's say I have product number
    A123, Text 1
    A123, Text 2
    A123, Text 3
    When importing in MDM I get:
    A123, Text 2
    A123, text 3
    A123, Text 1
    It is changing the order in which records are from source Excel file. Any ideas on how to force it to import in the same order as source file?
    Thanks,
    -Arturo Blasi.

    import java.util.*;
    import java.io.*;
    Student Name: Qiang Wu
    Student Number: 205722913
    public class Check05C
         public static void main(String[] args) throws IOException
              Scanner input = new Scanner(System.in);
              PrintStream output = System.out;
              output.print("Please enter filename...");
              File MarkFile = new File(input.nextLine());
              Scanner fileinput = new Scanner(MarkFile);
              double average;
              int maxmark = 0;
              int minmark = 100;
              int sum = 0;
              for (int score = fileinput.nextInt(); fileinput.hasNextInt(); score = fileinput.nextInt())
                   sum = sum + score;
                   if (score >= maxmark)
                        maxmark = score;
                   else if (score <= minmark)
                        minmark = score;
              average = (maxmark + minmark) / 2;
              output.println("Class Average is: " + average);
              output.println("Maximum mark is: " + maxmark);
              output.println("Minimum mark is: " + minmark);
              fileinput.close();
    }: ) I still cant figure out how to modify.

  • "Source file does not conform to XML Schema!" error at Import Server

    Dear SDN,
    When I run Import Server the import job stopped with the error "Source file does not conform to XML Schema!" in Log file. I used MDM SP05 Patch01 and HF1.
    Both of 2 Import Server have same problems. Of course it works in Import Manager.
    What do I have to check?
    Regards,
    Eric

    Hi Eric
    Just confirm this...
    One needs to load XML schema file in MDM and can be done by specifying this file in Port .
    Refer this link.
    http://help.sap.com/saphelp_mdm550/helpdata/en/fa/69b20ae0ae4b158a3f6d025b3d3847/content.htm
    Just make sure that corresponding XSD file is specified in the port
    Regards

  • Auto Complete import statements

    When I create a new Module and select "optimize for application" when I am writing actionscript I seem to have a 50/50 chance of Flash Builder auto inserting the import statements.  In preferences I've selected restore defaults and under Project 'Build Automatically' is selected.  AutoComplete works great just not inserting import statements.   Am I missing something?

    The idea behind "Organize imports" is that it should remove used imports only if it detects they aren't needed in your document anymore, either because they are duplicates, don't exist or are in the same package as your current context.
    If this feature is removing imports that don't fit within those conditions, please file a bug and include a test file we can use to reproduce it on our side.  The bugbase url is here: http://bugs.adobe.com/flex.
    Thanks!
    -David

  • FB Beta 2 removing import statements

    I have a project that was started in FB Beta 1 (everything was working great) and updated to FB Beta 2 SDK 4.0.0.10988.  I have a frequent but inconsistent problem in which while working in a module I'll have import statements in my script removed.  The last instance two import statements for user created MXML components were removed, and the code I was modifying didn't have anything to do with these components.  Previously I had import statements for ConversionType and TextConverter removed, this time I put the import statements in right before writing code to use them.
    I still have problems with Flash Builder Beta 2 output folder issues this is a previous post that was unanswered.
    If it helps: using MAC OSX and FB Beta 2 standalone.

    The issue with comments being removed when organize imports is run is a known issue captured by a small set of bugs:
    https://bugs.adobe.com/jira/browse/FB-18479 Comments do not remain with currect import statements when performing 'organize imports'
    https://bugs.adobe.com/jira/browse/FB-11396 Any data in between imports are deleted when doing an "organize imports" operation
    https://bugs.adobe.com/jira/browse/FB-17160 Import inserted into wrong location when existing import is followed by a single line comment
    Essentially, what it boils down to, we follow the same behavior as the JDT with one glaring exception: Turn off organizing imports when auto importing from code hints:
    https://bugs.adobe.com/jira/browse/FB-23179 Change code hints auto import behavior so that imports are inserted in order, but unused imports should not be removed
    With the FB-23179 fix, your imports will only be removed when you explicitly organize imports. I hope this info helps.
    Jason San Jose
    Quality Engineer, Flash Builder

  • Dynamic parameter with an IMPORT statement

    Hello experts. I hope you can help me with this issue:
    I have a report performing an EXPORT statement into a Buffer:
      EXPORT I_USER    FROM P_USER
                    I_NAME    FROM P_NAME
                    I_SURNAME FROM P_SURNAM
               TO DATA BUFFER V_XPARVALUES.
    Then it calls the first FM where a type I program is created by using INSERT REPORT... This dynamic-generate INCLUDE has the explicits declaration for variables: I_USER, I_NAME, I_SURNAME.
    Afeter the dynamic Include generation, it calls a second FM, wich has the reference to the dynamic Include created before with the data declaration. The only thing remain is to IMPORT all the data from the buffer V_XPARVALUES:
    The following code lines are within a LOOP. wa_param-paramname has the name of the variable (I_USER, I_NAME I_SURNAME).
        ASSIGN (wa_param-paramname) TO
          FROM DATA BUFFER v_xparvalues.
    but what I need to achieve is dynamic parameters in the IMPORT statement.
    Had anybody came across this problem?
    I hope I have been clear with the explanation.
    Regards,
    Andrés Sarcevic.

    IMPORT/EXPORT scope didn't work out. Instead, I used CALL TRANSFORMATION and XML approach, besides some ABAP creativity.

  • JSP import Statement importing a Class File giving ERROR

    Hey guys,
    There is a problem to which I dont know the reason,
    Consider the code below:
    <%@ import Converter, ConverterHome %>
    It gives me a Compile Time error of this type:
    '.' Required in import Converter ;
    but when i put these classes in a package suppose "converter"
    and the above import statement like this :
    <%@ import converter.Converter,converter.ConverterHome%>
    It gives me no error
    So whats the reason behind this? Cant I compile a JSP program by refrencing classes without in any package?
    please Reply
    Thanks in advance..

    So whats the reason behind this?
    Cant I compile a JSP program by refrencing classes without in any package?No, I do not beleive you can, is you are using Java 1.4. In 1.4, you can only reference classes in the Default Package (none) from other classes in the default package. If you are in a package, then you can not import from the default package. And this is for ALL java classes, not just JSP and Serlets. Since the JSP servlet would be part of a package (which depends on the server you are using) you will need to put your classes into packages to import them...

  • What is import statement for ?

    Hi all,
    Sorry for asking a silly question. Since it is a new to java forum I am asking this.
    What is happening when an import statement is triggered at compile time and at runtime.
    What is the difference/advantages/disadvantages between importing an entire package and importing required classes only.
    Is there any size limit on the generated class file.
    rgds
    Antony Paul

    looks like we are both beguinners
    i just received a newsletter from sun and in it has this
    MONITORING CLASS LOADING AND GARBAGE COLLECTION
    Have you ever wondered what classes are loaded when you launch an application or from where the classes are loaded? Have you ever wondered when garbage collection runs or how long it takes? The java command line tool offers several different command line options that you can use to get answers to those questions.
    You might already be familiar with a number of command line options available with the java command line tool, such as -cp, -Xms, and -Xmx. The -cp option is used for specifying the classpath. The -Xms and -Xmx options are used to specify the heap size. For example, instead of setting the CLASSPATH environment variable, you can use the -cp option to tell the system to look in a specific directory for necessary class files:
    java -cp ExampleDir MyExample
    Here, the system will look in the ExampleDir subdirectory for the MyExample.class file and anything else needed besides the system classes. The ExampleDir in the command line tells the system to look only in the ExampleDir directory (assume that it's the parent directory). If MyExample.class is located in the current working directory, the system would not find it.
    Two less frequently used command line features report on class loading and garbage collection. The -verbose:class option reports when a class is loaded into the Java virtual machine and from where it came. For instance, if you use the -verbose:class option when loading the SwingSet2 demo that comes with the J2SE 1.4.2 SDK, you get a report on the many different classes that are loaded as part of the demo, such the following two:
    java -verbose:class -jar
    C:\j2sdk1.4.2\demo\jfc\SwingSet2\SwingSet2.jar
    [Loaded FilePreviewer]
    [Loaded javax.swing.plaf.TableUI from
         C:\j2sdk1.4.2\jre\lib\rt.jar]
    The first line indicates that the class came from the main JAR for the demo (assuming it was started with java -jar SwingSet2.jar). The second line indicates that the TableUI class was loaded from the rt.jar file that comes with the runtime located in the c:\j2sdk1.4.2\jre directory. (From there, the rt.jar file is located in the lib subdirectory.) Different implementations of the Java platform can have different formats here. The only requirement is that -verbose:class displays messages as classes get loaded and unloaded.
    Let's see when classes are loaded, and how many classes are needed for the following simple program:
    public class Sample {
    public static void main(String args[]) {
    System.out.println("Hello, World");
    Compile the Sample class. Then run it with the -verbose:class option enabled:
    java -verbose:class Sample
    When you run the command, you'll see that this simple program requires the opening of five jar files (such as rt.jar) and the loading of almost 250 classes.
    To see an example of a class unloading message, try the -verbose:class command line option with the RunItReload class shown in the August 19, 2003 Tech Tip titled Unloading and Reloading Classes.
    The -verbose:gc option reports on each garbage collection event. This includes the time for garbage collection to run, and the before and after heap sizes. This is demonstrated in the following lines:
    [GC 27872K->26296K(42216K), 0.0069590 secs]
    [GC 28973K->26455K(42216K), 0.0036812 secs]
    [GC 29134K->26474K(42216K), 0.0016388 secs]
    [GC 29117K->26487K(42216K), 0.0008859 secs]
    [GC 29134K->26498K(42216K), 0.0009197 secs]
    [GC 29180K->26479K(42216K), 0.0008711 secs]
    [GC 29149K->26484K(42216K), 0.0008716 secs]
    Like the output for -verbose:class, there is no requirement for output format, and it is subject to change without notice. The "GC" at the beginning indicates what kind of collection occurred. The number before the "->" is the heap occupancy before the collection. The number after the "->" is the heap occupancy after the collection. The number in parentheses is the currently allocated size of the heap. The seconds are the duration of the collection.
    This information can be useful in debugging. For example, it could help you determine if garbage collection happened at a critical point in time, and might have caused a program to crash. This sometimes happens when mixing Java and C/C++ code with JNI, especially when there is an underlying bug on the C/C++ code side.
    If you're ever curious about why it takes so long for an application to start, or if garbage collection in the middle of an operation appears to cause a problem, be sure to try out these command line options.
    hope it helps

  • Auto-organization of import statements broken

    Anyone else having this problem?
    it happens pretty regularly, when I use auto-complete on a new object type, then flexbuilder goes and totally screws up all my imports, causing me to have to go through and ctrl-space (alt+"/" ) each one.
    Also, it seems to never put in the correct import statement for an MXML component that I refer to in my AS block. I finally just used the fully qualified name because I was sick of FlashBuilder removint the import after I added it 5 times.

    Known bug http://bugs.adobe.com/jira/browse/FB-23179 or one of the related bugs.
    Jason San Jose
    Quality Engineer, Flash Builder

  • Essbase JAPI maxl session gives NPE with import statement

    Anybody know why I get a NPE from the Java API when trying to use the IEssMaxlSession to do an import? Here's my code snippet. I've verified the session work using the simpler maxl command commented out below. I also know the import syntax is OK at the maxl prompt. Essbase Error(0) isn't the most helpful diagnostic I've come across.
    Thanks
    IEssMaxlSession maxlSess = null;
    try {
         maxlSess = olapSvr.openMaxlSession("Maxl Test");
                   try {
                        String maxl;
    //                    maxl = "display database \"184_r\".rep";
                        maxl = "import database \"184_a\".agg dimensions connect as \"admin\" identified by \"password\" using server rules_file '/TmpltRFs/RFs/Plan.rul' on error write to \"errlog.log\"";
                        logger.debug(maxl);
         maxlSess.execute(maxl);
         printMessages(maxlSess.getMessages());
                   } catch (EssException e) {
                        printMessages(maxlSess.getMessages());
                        logger.debug(e.getMessage());
                        e.printStackTrace();
    } catch (EssException e){
         logger.debug(e.getMessage());
    14:47:40 DEBUG (essbase.RunMaxl 109): Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
    com.essbase.api.base.EssException: Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
         at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect.executeMaxlStatement(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMaxlMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod2(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod(Unknown Source)

    This is due to the unpublished Bug 12661416: MAXL STATEMENT IMPORT DB DIMENSIONS FROM RELATIONAL DATABASE FAILS WITH JAPI. This error is not fixed in next release.
    However, there is one workaround.
    "As a workaround we installed Essbase client 9.3.1 on the epm11 test box, copied native libraries from 9.3.1 admin server and connected to maxl shell from the v 9.3.1 maxljni interface. This seems to work fine."
    Edited by: Karthik_P on Apr 9, 2012 1:12 PM

  • Flash builder 4 beta 2 import statement disapper

    I create my own button component under package component. Then I use this component inside a view BookingView under view package.
    I need to import BookingComponent by entering
    import component.BookingButton;
    But every time I change this view, this import statement disapper and I need to re-type it.

    Known bug http://bugs.adobe.com/jira/browse/FB-23179.
    Jason San Jose
    Quality Engineer, Flash Builder

  • Introspecting import statements

    Sir
    How to introspect import statements of the input class.

    Hi,
    As far as I know, there is no way using introspection or reflection to determine what (if any) classes have been imported in a source file.
    As far as I know, when the source code is compiled (using javac) to a byte code .class file, no reference remains of the import lines, but rather, all type names are rewritten as fully-qualified names.
    One option you could look into (although it isn't a very good one), is to read in the source .java file, if it's available, and use regular expressions (or whatever text matching method you prefer), to locate the import statements and determine what classes are being imported in this way.
    Beyond that, I don't know what else to tell you. I don't think it's possible using reflection (and hence by extension, using introspection). On the other hand, I don't really know what you wish to accomplish with this, either. The import keyword simply allows you to take a short-cut when writing the code, by allowing you to use the cannonical name of a class, rather than the fully-qualified version. It doesn't really add functionality to the class itself. This in itself raises an issue to attempting to determine the import lines, because these lines may or may not be present without changing the functionallity.
    For example, if you are attempting to determine what types a method with parameter of type Object can recieve by determining which classes are imported, these may not be listed as imports at all.
    On the other hand, if you wish to determine which types a class is using for it's declared fields, this can be done by reflecting on the class for DeclaredFields, and determine the type of each one, to make a list.
    Again, I'm really not sure what you're trying to do here. Perhaps if you explained that, I (or somebody else here) may be able to suggest an alternative that would help you get the functionality you want.

  • Import Statement Different ways to refer ???

    Dear Friends,
    Can any one help me the difference between the usage of import statement....
    1. using import statement
    2. using the class directly
    that is,
    for example ;
    1. import java.util.Date;
    Date dt = new Date();
    2. java.util.Date dt = new java.util.Date();
    what's the difference between two reference of Date class...is there any meaning beyond this ?????
    Regards,
    V.Prasanna

    what's the difference between two reference of Date
    class...is there any meaning beyond this ?????there is no difference once the code is compiled - the compiler resolves single class names to their fully-qualified names (ie with the package prefix) and that appears in the .class file constant pool
    before compilation then my opinion is that having all the imports at the top of the file is good practice because you can see what is being used easily

Maybe you are looking for

  • My blackberry curve 8520 has lost all my pictures in the lost.dir folder how do I recover them

    I have a blackberry curve 8520 and it has moved all of my pictures on my memory card into a folder called LOST.DIR (I`m not 100% sure they have moved there but  I found a lot of files in there that seem to be my pictures) I am not sure how I  can rec

  • Difference between UUID: DocumentID AND UUID:InstanceID

    Hi All,          This is my first query in this forum. Hope I am into the right location.           Can anyone please tell me what is the difference between UUID: DocumentID and UUID:InstanceID? AND            Based on what properties these ID's will

  • Error when generating and excuting the query in RSRT

    Hi Experts, When running the query in RSRT giving the below error massage, An exception (CX_RSR_X_MESSAGE) occurred Message no. TPDA430 when genarating the query in RSRT getting the below error, An exception (CX_SY_MOVE_CAST_ERROR) occurred Message n

  • Videos don't work after update

    Hi, I have downloaded videos and they were working fine until I updated iTunes a few days ago. The video works but there is no sound. The sound on the music tracks is fine, it's just the videos that isn't working. I assume that has something to do wi

  • Compress Fails because Final Cut Quits

    Every time I try to compress my movie from FCP to Compressor there is ALWAYS a problem. It is extremely frustrating. I would estimate that it would successfully compress once in five tries. One error I most frequently run into is that Final Cut "quit