Getting compile time errors during gwt application compilation

Hi,
I am getting below compile errors while running ant script for my GWT application.
javac:
[javac] Compiling 32 source files to D:\Projects\workspace\MckSurvey\war\WEB-INF\classes
[javac] D:\Projects\workspace\MckSurvey\src\com\spinsci\survey\client\model\QuestionBean.java:38: type parameters of <X>X cannot be determined; no unique maximal instance exists for type variable X with upper bounds int,java.lang.Object
[javac]           return get("questionId");
[javac] ^
I am using JDK 1.6 and ANT 1.7 s/w.
below is the target which is used in the build file:
<javac srcdir="src" includes="**" encoding="utf-8"
destdir="war/WEB-INF/classes"
nowarn="true"
debug="true" debuglevel="lines,vars,source"
     includeDestClasses="false"
     source="1.5" target="1.5"      
          >
<classpath refid="project.class.path"/>
<compilerarg value="-Xlint:-unchecked"/>
</javac>
Please suggest me accordingly to overcome this generics compile time errors.
Regards,
Sunder.

dannyyates wrote:
There are/have been numerous examples of differences in spec interpretation between Eclipse (ecj) and the Sun compiler. I generally find that Eclipse is more accurate in it's interpretation than Sun! :-)
I would suggest raising this on an appropriate Eclipse forum. The guys there are normally very good at digging into the issue and explaining why they think they are right or else admitting that they've got it wrong.I totally agree on both accounts. I myself have seen at least two compiler bugs and asked both the Sun guys and the Eclipse guys (through their respective bug tracking systems) and both have been resolved (in both cases ecj was actually right, but I wouldn't dare drawing any conclusions from that ;-)).

Similar Messages

  • Compile time errors for large code in try-catch blocks

    Hi, Has anyone ever faced this problem of a compile time error, where the Java compiler returns with the following error that Code is too large for try block.
    I have about 5000 thousand lines in my try-catch block and am facing this problem. Please suggest possible solutions

    1) Are you sure that your try/catch blocks contain 5 million lines?! I seriously don't believe this.Sounds like generated code. The generator needs to be a bit cleverer. In particular, it seems to be generating repeated blocks of code that ought to be stuffed into methods somewhere.

  • Compile time error

    I am a newbie in XML. I am trying to compile the following code. I am getting compile time errors. I have following environment varaibles set. Any help will be really appreciated.
    TIA.
    set JAVA_HOME=C:\Program Files\jdk1.3.1_03
    set JWSDP_HOME=C:\Program Files\jwsdp-1.1
    set JAXB_HOME=%JWSDP_HOME%\jaxb-1.0
    set JAXB_LIBS=%JAXB_HOME%\lib
    set JAXP_LIBS=%JWSDP_HOME%\jaxp-1.2.2\lib
    set JWSDP_LIBS=%JWSDP_HOME%\jwsdp-shared\lib
    set PATH=%JAVA_HOME%\bin;%JAXB_HOME%\bin;%JWSDP_HOME%\jwsdp-shared\bin;%PATH%
    set CLASSPATH=%JAXB_LIBS%\jaxb-api.jar;%JAXB_LIBS%\jaxb-ri.jar;%JAXB_LIBS%\jaxb-xjc.jar;%JAXB_LIBS%\jaxb-libs.jar;%JAXP_LIBS%\jaxb-api.jar;%JAXP_LIBS%\endorsed\xercesImpl.jar;%JAXP_LIBS%\endorsed\xalan.jar;%JAXP_LIBS%\endorsed\sax.jar;%JAXP_LIBS%\endorsed\dom.jar;%JWSDP_LIBS%\jax-qname.jar;%JWSDP_LIBS%namespace.jar;.
    C:\Learn XML>javac -verbose CountSax.java
    [parsing started CountSax.java]
    [parsing completed 63ms]
    CountSax.java:3: package org.xml.sax does not exist
    import org.xml.sax.* ;
    ^
    CountSax.java:4: package org.xml.sax.helpers does not exist
    import org.xml.sax.helpers.* ;
    ^
    CountSax.java:5: package javax.xml.parsers does not exist
    import javax.xml.parsers.*;
    ^
    CountSax.java:7: cannot resolve symbol
    symbol : class DefaultHandler
    location: class CountSax
    public class CountSax extends DefaultHandler {
    ^
    [loading C:\jdk1.3.1_02\jre\lib\rt.jar(java/lang/String.class)]
    CountSax.java:22: cannot resolve symbol
    symbol : class Attributes
    location: class CountSax
    public void startElement(String name,Attributes atts) {
    import java.io.* ;
    import org.xml.sax.* ;
    import org.xml.sax.helpers.* ;
    import javax.xml.parsers.*;
    public class CountSax extends DefaultHandler {
    public static void main(String args[]) {
    SAXParserFactory factory = SAXParserFactory.newInstance() ;
    SAXParser saxParser = factory.newSAXParser() ;
    saxParser.parse(new File(args[0]),new CountSax()) ;
    static private int eltCount = 0 ;
    public void startDocument() {
    eltCount = 0 ;
    public void startElement(String name,Attributes atts) {
    eltCount ++ ;
    public void endDocument() {
    System.out.println("Total number of elements: " + eltCount) ;
    }

    Here is my classpath now
    set CLASSPATH=%JAVA_HOME%;%JAXB_LIBS%\jaxb-api.jar;%JAXB_LIBS%\jaxb-ri.jar;%JAXB_LIBS%\jaxb-xjc.jar;%JAXB_LIBS%\jaxb-libs.jar;%JAXP_LIBS%\jaxb-api.jar;%JAXP_LIBS%\endorsed\xercesImpl.jar;%JAXP_LIBS%\endorsed\xalan.jar;%JAXP_LIBS%\endorsed\sax.jar;%JAXP_LIBS%\endorsed\dom.jar;%JWSDP_LIBS%\jax-qname.jar;%JWSDP_LIBS%namespace.jar;.
    It still doesn't work. The pakages that it is complaining about comes from sax.jar which is already in classpath. Can anybody please help.
    TIA

  • Pls suggest a reason for a compile time error

    the following program gives a compile time error bcoz of the statement
    ((State)this).val=this.val. if u could suggest why?
    public class Mainc
    public static void main(String args[])
    State st=new State();
    System.out.println(st.getvalue());
    State.Memento mem= st.memfunc();
    st.altervalue();
    System.out.println(st.getvalue());
    mem.restore();
    System.out.println(st.getvalue());
    public static class State
    protected int val=11;
    int getvalue()
         return val;
    void altervalue()
         val=(val+7)%31;
    Memento memfunc()
         return new Memento();
    class Memento
         int val;
    Memento()
         this.val=state.this.val;
         void restore()
              ((State)this).val=this.val;
    }

    The statement :
    ((State)this).val
    tries to cast Memento into its super class State which is inorrect [former is not latter's subclass]
    restore method should be as follows:
    void restore()
    State.this.val=this.val;
    }

  • TS1277 I recently allowed an iTune update to be downloaded to my PC.  SInce then I'm getting a Run time Error "R6034 An application has made an attempt to load the C runtime library incorrectly."  THen I cannot run iTunes.

    I recently allowed an iTune update to be downloaded to my PC.  SInce then I'm getting a Run time Error "R6034 An application has made an attempt to load the C runtime library incorrectly."  Then I cannot run iTunes.  I tried "fixing" it, "Un-installing and re-installing iTunes.  Still getting the same message and not able to run iTunes.

    Follow the directions of tt2 in https://discussions.apple.com/thread/5822086 and note to run as admin

  • I am getting the following error during the play of a rented movie from my MacBook that i am trying to watch on AppleTV Could not play the rental "A Thousand Words" because it is authorized to play on another computer or device." any ideas?

    I am getting the following error during the play of a rented movie from my MacBook that i am trying to watch on AppleTV Could not play the rental “A Thousand Words” because it is authorized to play on another computer or device." any ideas?

    Rentals can only play on one device/computer at a time.  Have you tried to play on the computer and still have that window open?
    Have you transferred the rental to iPod/iPhone or iPad to watch?
    If it won't play anywhere contact iTunes support at:
    expresslane.apple.com
    AC

  • Iam getting run time error message when i try to open dream weaver cs4

    iam getting run time error message when i try to open dream weaver cs4

    exact message am getting when i try to open dreamweaver cs4- this application has requested the run time to terminate in it in an unusual  way . please contact the applications support team for more information.

  • Getting run time errors while executing the copied SAP programs

    Hi folks,
    i want to copy an sap program.after coping i need to change some coding there.then i have to create a new transaction for that.
    i am just copying the sap program RQEEAL10(transaction-QA32) to Z_RQEEAL10. it has 4 include  programs.i am copying them to z programs like
    RQ00MF10 copied to z_RQ00MF10
    RQALVF14 copied to z_RQALVF14
    RQALVF16 copied to z_RQALVF16
    RQALVTOP copied to z_RQALVTOP.
    now i am executing that program Z_RQEEAL10.but i am getting run time errors as given below.
    <b>runtime error---</b>
    The termination occurred in the ABAP program "Z_RQEEAL10" in           
    "SELECT_FIELDS_MANIP2_F16".                                           
    The main program was "Z_RQEEAL10 ".                                                                               
    The termination occurred in line 257 of the source code of the (Include)
    program "RQALVF16"                                                    
    of the source code of program "RQALVF16" (when calling the editor 2570).
    --Error in ABAP statement when processing an internal table.  
    --When changing or deleting one or more lines of the internal table         
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS" or when inserting in the table   
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS", 0 was used as                  
    the line index. An index less than or equal to zero is not                
    allowed.                                                                               
    The error can occur when using the following options:                     
    1. "INDEX idx" for specifying the line number in the table                
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS"                                 
       where you want to change, insert or delete.                            
    2. "FROM idx" for specifying the start index when deleting a line         
       area from or inserting a line area into the table                      
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".                                
    3. "TO idx" for specifying the end index when deleting a line             
       area from or inserting a line area into the table                      
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".                                                                               
    When the program terminated, the table had 2 lines.                       
    these r the runtime errors what i am getting.where is the problem?i have activated all interface & includes.plz advice.
    Thanks & regards

    Hi Madhu,
    I will give you one more check point where you have to give your concentration while copying the standard programs....
    Call Customer-Function (Function Exists) if any in the Program when copied will not get executed. Instead you need to call the FM Directly.
    one more is also here
    You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.
    ~~Guduri

  • How to get deployment time of an J2EE application

    Hi All,
    I am developing J2EE applications on NetWeaver 7.0 and 7.1. In my application, I need to get deployment time of a J2EE application installed in the J2EE engine.
    For NetWeaver 7.1, I found SAP's Java APIs to do that:
          com.sap.engine.services.deploy.server.cache.dpl_info.Applications.get("appName").getMonitorData().getDateOfLastRedeployment();
    But for NetWeaver 7.0, I haven't found any similar stuffs.
    Could you give me any helps for the case of NetWeaver 7.0?
    Thank you very much.
    Viet

    I'm not 100% sure but you may be able to turn on tracing for the Java stack "Deploy" service.
    In Visual Administrator, go to "Global Conf [Server] -> services -> Deploy" change additional_debug_info.
    Then in "Cluster [server x] -> services -> log configurator [locations] -> com -> sap -> engine -> services -> deploy" change the debug level to "Info" or something.
    This should put some additional tracing out to the trace files which can be viewed in the Log Viewer.
    Don't forget to reset the trace level when you're done.

  • I can't update, I keep getting a "Fatal error during installation.  Error 1603" message

    I can't update, I keep getting a "Fatal error during installation.  Error 1603" message

    ireeeeen wrote:
    Oh it's from photoshop elements 5.0
    hopefully you can answer my question
    You'll have more luck in the Elements forum:
    http://forums.adobe.com/community/photoshop_elements

  • Kp26 getting run time error  in program "COCC2009 "

    Dear all
    Im getting run time error massage once the KP26 running . "The data object "ITDAT1" has no component called "TXTUPL", but there is a component called "TXTUP".
    The following syntax error occurred in program "COCC2009 " in include "RKCCAI02
    We are working on upgraded system. please hep me to solve this issue.
    Regard,
    nawa

    Hi
    I am using ECC 6.0 and when I checked the field mentioned TXTUPL, it is available there.
    Can you check the COCC2009 program whether the field is there or not.
    Shiva

  • Getting run time error for multiple counter plan

    Hi Friends,
    Its very critical issue,wherein i am getting run time error for multiple counter plan.
    Explanation:While try to change the Call horizon or scheduling period of the counter based plan through IP42 or IP15,systam allowing me to change the data but while saving also i am getting "Maintenance plan has changed" message and once come to the back of the transaction instantly i am getting pop up window saying that "Express document get terminated".However we have been maintaining copy of this data in another client wherein we are not getting any Run time error.
    Please find the screen shots for your reference and please let me know how to fix the issue.
    Regards,
    Srinika

    Hi,
         Please check reason for update termination in Transaction code SM13.

  • Getting run time error while calling smartform

    hi,
    i am getting run time error of "maintain output device in your master data" while calling smart form.
    p_output_options-xsfcmode = 'X' .
      p_output_options-xsf = space .
      p_output_options-xdfcmode = 'X' .
      p_output_options-xdf = space .
      p_output_options-tddest = 'LP01'.
      p_output_options-tdnewid = 'X'.
      p_output_options-tddelete = SPACE.
      p_control_parameters-no_dialog = 'X' .
      p_control_parameters-getotf = 'X' .
      p_control_parameters-DEVICE = 'PRINTER'.

    Hi Neha
    Your program looks out for the default printer configured against your user (Check SU01 : Constant tab ). You dont seem to have maintained it properly as a result of which you get this message. You will have to configure your printer device to overcome this error.
    Choose menu: System -> User Profile -> Own data.
    On the Defaults tab, give LOCL code for the output device.
    You can also check the output device setting in transaction SPAD.
    Regards,
    Uday

  • I get run time error in step Set Report in reportgen_xml sequence

    I get run time error in step "Set Report" in reportgen_xml.seq. The error code is "Out of memory".
    I don't know what to do.
    I use BatchModel, I have 6 batch loops. The problem appears on the 3d loop. I have NI 3.5.
    Help me!!!!!!
    I send attachment (screen of error).
    Attachments:
    problem.jpg ‏106 KB

    Hi Terry, it happened again :-(
    Actually I see that the problem appeares in the same subsequence of my sequence. In that  subsequence I have approximately 25 numeric steps, 6 of them are on skip now.
    The problem appeares suddenly after many batch loops.  I have the message "Error, Parameter new value: Out of memory. [Error code -17000, out of memory].
    After that on next loop I see it runs and writes reports for others subsequences and steps, but on the "problem subsequence" again I get message "Out of memory"...
    At the one of the problem loops I saw other message "An error occured calling 'Process One Result' in ITSO FlyReportGen of TestStand on-the-Fly-Report-Generator. Out of memory. Source: TSOTFRG  [Error Code: -17000, Out of memory].
    I use "Discard Results or Disable Results " enable option in the ModelOptions. But without success. Is this a problem of TestStand or may be is this the special problem of my subsequence or any step in that subsequence?

  • I am getting run time error 6034 after updating iTunes to new version.Any help?

    I am getting run time error 6034 after updating iTunes to new version.Any help?
    I tried different ways to resolve it like uninstall/install itunes
    I am also getting error message on iTunes helper.exe

    Hi isush!
    I have an article for you that will help you troubleshoot this issue:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

Maybe you are looking for