The type Comparable is not generic; it cannot be parameterized

I´ve some third party sourcecode which i had to customize. I imported the code into eclipse (ganymede). The project is using a 1.5 SDK. There is some source file which shows the following error just in line 0:
Description     Resource     Path     Location     Type
The type Comparable is not generic; it cannot be parameterized with arguments <E>     ContentTransferComponent.java     LEMI_WEB/webcomponent/src/com/documentum/webcomponent/library/contenttransfer     line 0     Java Problem
By copying the methods into a new class, i was able to track down the problem to the inner interface definition. Removing the inner interface removes the error from the class. However as the interface is implemented by two other classes from the same package, this isn´t really a solution.
Is this some kind of source code error or maybe i would better have reported this issue into some of the eclipse forums?
======
package com.documentum.webcomponent.library.contenttransfer;
import *
* Class ContentTransferComponent.
* @author pawelz
* @version $Revision: 12$
public abstract class ContentTransferComponent extends Component
      implements IContentTransferComponent
    * Component initialisation.
    * @param arg Dictionary of form arguments.
   public void onInit(ArgumentList arg)
      super.onInit(arg);
      initControlsFromConfig();
    * Initializes controls from component's config settings.
   protected void initControlsFromConfig()
      try
         IConfigElement initControls = lookupElement("init-controls");
         if (initControls != null)
            for (Iterator controls = initControls.getChildElements(); controls.hasNext();)
               IConfigElement ctrl = (IConfigElement) controls.next();
               String ctrlName = ctrl.getAttributeValue("name");
               String ctrlType = ctrl.getAttributeValue("type");
               if ((ctrlName != null && ctrlName.length() > 0)
                     && (ctrlType != null && ctrlType.length() > 0))
                  Class cl = Class.forName(ctrlType);
                  Control control = getControl(ctrlName, cl);
                  for (Iterator props = ctrl.getChildElements(); props.hasNext();)
                     IConfigElement initProp = (IConfigElement) props.next();
                     String propName = initProp.getChildValue("property-name");
                     IConfigElement valueElem = initProp.getChildElement("property-value");
                     if ((propName != null && propName.length() > 0)
                        && valueElem != null)
                        String propValue = valueElem.getValue();
                        //BeanUtils.setProperty(control, propName, propValue);
                        HashMap propMap = new HashMap(1);
                        propMap.put(propName, propValue);
                        BeanUtils.populate(control, propMap);
      catch (ClassNotFoundException e)
         throw new WrapperRuntimeException(e);
      catch (IllegalAccessException e)
         throw new WrapperRuntimeException(e);
      catch (InvocationTargetException e)
         throw new WrapperRuntimeException(e);
    * Creates an instance of transport used by the service.
    * @return transport instance
   protected IServiceProcessor createServiceProcessor()
      Class processorClass = getProcessorClass();
      if (processorClass == null)
         throw new WrapperRuntimeException("Could not create processor");
      IServiceProcessor proc;
      try
         proc = (IServiceProcessor) processorClass.newInstance();
      catch (Exception e)
         throw new WrapperRuntimeException("Could not instantiate processor", e);
      return proc;
   // some code removes due to max. length restricton
    * IBocsWriteModeConfigurator Interface
   public interface IBocsWriteModeConfigurator
       * Gets the Bocs write-mode selection.
       * @return bocs write-mode selected
      BocsWriteMode getMode();
      /** BOCS write modes. */
      public enum BocsWriteMode
         /** BOCS write mode not applicable. */
         NOT_APPLICABLE,
         /** BOCS Synchronous write mode. */
         SYNC,
         /** BOCS Asynchronous write mode. */
         ASYNC
}

masijade. wrote:
georgemc wrote:
spille2 wrote:
I imported the code into eclipse (ganymede). The project is using a 1.5 SDK. These two statements make me wonder if you understand that Eclipse uses it's own compiler, not the Sun SDK, and that the JRE used to run Eclipse in, the JRE used to launch your projects in, and the version of the compiler, are all separately configurable, sometimes with unusual results. It's possible to set it up so that, for example, it's compiling code for 1.5 against 1.4 class libraries. Of course, I could be barking up the wrong tree, but this is something to checkWell, it's possible to do that with javac, too, just, there, it's much easier to notice that you're doing it (since you would have to type it in explicitly). ;-)You can make javac run itself in a different JRE?? :-)

Similar Messages

  • The type Iterator is not generic; it cannot be parameterized with arguments

    Hi all, i have a problem, and i think is a JRE problem
    The error is the following:
    If i share a Web JSF Exadel project enterely, with the .classpath, the .project,
    ect everything go ok. I can Check out the project
    and work with it without problems.
    But if i share only the JavaSource and the Webcontent of the same project
    and the other files and folders like the .classpath, the .project, the ant folder,
    ect are added to the subversion then appear the problem. When i Check out the project and build it (not with shift-alt-x Q but with the Build Project option of the Projec Menu in Eclipse)
    appear an strange error that say: "The type Iterator is not generic; it cannot be parameterized with arguments <E>".
    If i build the project using the build.xml file that came with the project everything is ok, but when i run the project into the Exadel the error
    appear againt.
    The error appear with all the eclipse versions from 3.1 to 3.3 and with all the ExadelStudio Pro versions from 3.5 to 4.0.4 and with the JRE versions 1.5.0_05 and 1.6.0_02
    Any idea will be very appreciated.

    Hi, i think i found a clue to discover the mistery, i deployed the same .war in the ExadelStudio Pro 3.5.1 tomcat and in the ExadelStudio Pro 4.0.1(and 4.0.4) tomcat in the first one everythink work fine but in the second i get the error i described above.
    The ExadelStudio Pro 3.5.1 use Tomcat 5.0 and ExadelStudio Pro 4.0.1 and 4.0.4 use Tomcat 5.5
    There are some problem with the new versions of Tomcat?
    Something related to the use of an old version of the JVM by default?
    There are some problem with the jdk1.5, something related to the posibility that i can't mix code compiled with an old version of jdk with code compiled with the jdk1.5?
    Any suggestion will be very appreciated

  • The type Set is not generic; it cannot be parameterized with arguments K ?

    When I use Hashtable or HashMap to get the keySet, it shows the error of "The type Set is not generic; it cannot be parameterized with arguments <K>".
    The following is my code:
    Hashtable table = new Hashtable();
    table.put("A", new Integer(1));
    table.put("B", new Integer(2));
    Iterator its = table.keySet().iterator(); // <<<<<<<<<<<<<< this line shows the error "The type Set is not generic; it cannot be parameterized with arguments <K>"
    How can I solve it? Please help me! I have no idea on it. It works fine in 1.4.
    Best regards,
    Eric

    The original is my codes, please help!
    public static List findDlicApp(Date startDate, Date endDate, Connection con) {
              String SQL = getSQL("app.sql");
              String where = getSQL("app.sql.where");
              boolean hasWhere = false;
              if (startDate != null) {
                   SQL = SQL + " where d.create_date >= to_date('" + DMSUtil.convertDateToString(startDate) + "', 'yyyy-MM-dd')";
                   hasWhere = true;
              if (endDate != null) {
                   if (hasWhere) {
                        SQL = SQL + " and to_date(to_char(d.create_date, 'yyyy-mm-dd'), 'yyyy-mm-dd') <= to_date('" + DMSUtil.convertDateToString(endDate) + "', 'yyyy-MM-dd')";
                   } else {
                        SQL = SQL + " where to_date(to_char(d.create_date, 'yyyy-mm-dd'), 'yyyy-mm-dd') <= to_date('" + DMSUtil.convertDateToString(endDate) + "', 'yyyy-MM-dd')";
                   hasWhere = true;
              if (hasWhere) {          
                   SQL = SQL + " and " + where;
              } else {
                   SQL = SQL + " where " + where;
              SQL = SQL + " " + getSQL("app.sql.order");
              //System.out.println(SQL);
              //Connection con =  getParaDMConnection("findDlicApp");
              HashMap<String, DlicApp> dlicDocs = new HashMap<String, DlicApp>();
              List result = new ArrayList();
              try {
                   Statement stmt = con.createStatement();
                   ResultSet rs = stmt.executeQuery(SQL);
                   long lastDocID = 0;
                   boolean hasStartDate = false;
                   while(rs.next()) {
                        long docID = rs.getLong("docID");
                        String docName = rs.getString("docName");
                        String refNo = rs.getString("refNo");
                        java.util.Date createDate = rs.getDate("createDate");
                        String creator = rs.getString("creator");
                        String profileType = rs.getString("profileType");
                        String assunto = rs.getString("assunto");
                        String fromEntity = rs.getString("fromEntity");     
                        String location = getLocation(docID, con);
                        long fieldID = rs.getLong("fieldID");
                        String fieldValue = rs.getString("fValue");
                        DlicApp doc = null;
                        if (dlicDocs.containsKey(String.valueOf(docID))) {
                             doc = (DlicApp)dlicDocs.get(String.valueOf(docID));
                        } else {
                             doc = new DlicApp();
                        doc.setId(docID);
                        doc.setDocName(docName);
                        doc.setReferenceNo(refNo);
                        doc.setCreateDate(createDate);
                        doc.setCreator(creator);
                        doc.setProfileType(profileType);
                        doc.setAssunto(assunto);
                        doc.setFrom(fromEntity);
                        //if (doc.getStartDate() == null) {                    
                        //     doc.setStartDate(createDate);
                        doc.setLocation(location);
                        if (fieldValue != null) {                    
                             if (fieldID == 1114) {
                                  doc.setChineseName(fieldValue);
                             if (fieldID == 1115) {
                                  doc.setPortugueseName(fieldValue);
                             if (fieldID == 1116) {
                                  doc.setApplicationCategory(fieldValue);
                             if (fieldID == 1118) {
                                  doc.setStatus(fieldValue);
                             if (fieldID == 1119) {
                                  Date d = DMSUtil.parseDate(fieldValue, "yyyy-MM-dd");
                                  doc.setStartDate(d);
                                  hasStartDate = true;
                             if (fieldID == 1120) {
                                  Date d = DMSUtil.parseDate(fieldValue, "yyyy-MM-dd");
                                  if (!StringUtils.isEmpty(fieldValue)) {
                                       //System.out.println(docName + ":" + fieldValue + ">>>>>>>>>findDlicApp>>>>>>>>>>>>>>>>>>APP END DATE: " + d);
                                       doc.setEndDate(d);
                        if (docID != lastDocID) {                    
                             doc.setRelatedDocs(findRelatedDoc(docID, con));
                             lastDocID = docID;
                        dlicDocs.put(String.valueOf(docID), doc);
                   stmt.close();
                   rs.close();
                   Iterator<String> its = dlicDocs.keySet().iterator();
                   while(its.hasNext()) {
                        String id = (String)its.next();
                        DlicApp a = (DlicApp)dlicDocs.get(id);
                        a.setRelatedDocs(findRelatedDoc(a.getId(), con));
                        dlicDocs.put(id, a);
                   result.addAll(dlicDocs.values());
                   // take out start date is not in the given period
                   int n = 0;
                   while(true) {
                        if (n < result.size()) {
                             DlicApp a = (DlicApp)result.get(n);               
                             Date sd = a.getStartDate();
                             if (!isWithin(sd, startDate, endDate)) {
                                  result.remove(n);
                             } else {
                                  n++;
                        } else {
                             break;
              } catch(Exception e) {
                   e.printStackTrace();
              if (result.size() > 0) {
                   Collections.sort(result, new DmsDocComparator());
              return result;
         }Edited by: EJP on 13/01/2011 14:41: added code tags for you. Please use them next time.

  • The data source "....." referenced in the form template is not valid or cannot be found

    Greetings,
    I have an InfoPath 2013 form that uses an external data connection.  The data connection became corrupt (somehow, no one knows who changed what).  A user went in to InfoPath designer and created a new data connection and changed all references
    to use that new data connection.  Now the form cannot be published at all with the error
    "The data source "GetUserProfileByName" referenced in the form template is not valid or cannot be found"
    The new data source they created is GetUserProfileByName2 and changed all references.
    Of course, since it is broke, they asked me to see if I can find the issue.  I went through the form looking to see if they missed any references to the old data connection and can't find anything.
    Where is InfoPath storing the old data connection information and where can I remote it?  I looked in the manifest and don't see it there either.
    Any thoughts?
    Thank you!

    Hi Bob,
    There are many XML schema files for the data connection, I recommend to check if the references to the XML files have been changed to the new schema files in the manifest file.
    For example, if we create a data connection called GetUserProfileByName, then there will be one XML file and three XML schema files for the data connection.
    Please make sure that all the references are updated in the manifest file.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • The requested URL was not found, or cannot be served at this time.

    Hi,
    While processing the Reports request, the Reports CGI gives
    the following error -
    The requested URL was not found, or cannot be served at this
    time.
    The error is shown only when the URL exceeds more than 1500 -
    2000 something. If i remove some of the parameters to make the
    URL shorter then it works fine. Is there any limitation
    regarding the length(number of characters) of the URL send to
    RWCGI60. Immediate help would be appreciated.
    Thanks in advance,
    Aniruddha.

    hello,
    there is a limitation of the URL length. this limitation is
    depending on the HTTP protocol and the used browser. it has
    nothing to do with oracle reports.
    a work around would transfer the parameter in the HTTP header.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Outlook error "The Delegate settings were not saved correctly. cannot activate send-on-behalf-of list. The operation failed"

    Hi,
    Re: "The Delegate settings were not saved correctly. cannot activate send-on-behalf-of list.  The operation failed" 
    I have a client who is getting the above error when attempting to change delegate permissions in Outlook 2010.
    She is also getting this error when she tries to remove a delegate.
    I have tried recreating her mail profile.
    I have also tried kb2593557. The auto fix didn't work at all and the registry fix only removes the error message and not the problem. This client would like to be able to edit her delegate permissions.
    She is on Exchange 2010
    Any assistance would be appreciated.

    The article you provided is not related to the error message that the user is getting it.
    Can you please provide better solution? I know this answer and this post is old but I am having same issue.
    The error message is only (The Delegates settings were not saved correctly. cannot activate send-on-behalf-of list. The operation failed) I was not able to attach screen shot.

  • "there was a problem connecting to the server. URLS with the type 'file' are not supported"

    i have a new macbook pro 13" and every 6 minutes or so it pops up a window that says "there was a problem connecting to the server. URLS with the type 'file' are not supported". it never seems to cause any problems but is supremely annoying. how can i make this come to an end?

    I tried someone's solution of taking another external disc and plugging it in, then when it showed up and time machine asked if I wanted to use it or that someone might be trying to trick me, I chose not use it.  Then I  shut down my computer, plugged in the original Lacie, and rebooted the computer and all seems to work fine now-- the Lacie appears on my desktop and all seeems to be in working order. Who knows why or anything else,- as weird as it gets- but for now things seemed fixed--- maybe others can try this too-- it worked for me so far.

  • "There was a problem connecting to the server.   URLs with the type "file:" are not supported.  Why?  What can be done to eliminate it?

    After upgrading to Mountain Lion, I repeatedly get this message:  "There was a problem connecting to the server.   URLs with the type "file:" are not supported. 
    Why? 
    What can be done to eliminate it?

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • Message - There was a problem connecting to the server. URLs with the type "file:" are not supported

    new macbook pro receving this message: There was a problem connecting to the server. URLs with the type "file:" are not supported. What is causing this and how do

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • There was a problem connecting to the server. URLs with the type "file:" are not supported. OK

    I have just upgraded to Mountain Lion from Leopard, but now I keep getting this message when I open some web-pages and every time I wake the Mac up after going to sleep. For some odd reason I get it in Swedish sometimes (installed language) and some times in English...
    There was a problem connecting to the server.
    URLs with the type "file:" are not supported.
    OK
    What is this and how can I get rid of it. I use Firefox and have updated to latest version.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • Since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    A Davey1 wrote:
    Not a nice answer!
    Posting "Check the 'More like this'" area and not simply providing the answer is a great way to make these groups worthless.
    You're ignoring context.  On the old Apple Discussion Groups I never posted replies like that, instead giving people relatively detailed answers.  The new Apple Support Communities made things worse by introducing certain inefficiencies.  Then came Lion.  The flood of messages that came with Lion required a painful choice for any of the people who had been helping here: (1) Give quality responses to a few questions and ignore the rest.  (2) When applicable, give a brief answer such as the one that you found objectionable.  (3) Give up all the other normal activities of life and spend full time trying to answer questions here.
    People who needed help with Lion problems seemed to have trouble discovering existing message threads that described how to solve their problems.  I never posted the suggestion of "Check the 'More like this' area" without verifying that the help that the poster needed could be found there.  Even doing that, what I posted saved me time that I could use to help someone else.
    The people helping here are all volunteers.  None of them is being paid for the time they spend here.  They all have a life outside of Apple Support Communities.  It's arrogant of you to demand that people helping here spend more time than they already do.

  • Error: The requested URL was not found, or cannot be served at this time.

    Hi gurus,
    I have a report that has a parameter file. When I call the report the parameter form is displayed but after I enter the parameter values and click SUBMIT QUERY, I receive this error:
    Error: The requested URL was not found, or cannot be served at this time.
    Oracle Reports Server CGI - Reports Server name is not specified.
    If I run the report without parameter file it runs fine.
    Does anyone have an idea on how I can make this work.
    Thanks

    * Can you please tell what version of Reports you are using ie 6i or 9i and the exact version [ In builder give Help->About] . In this problem we cannot deduce anything from the version. But if it is very old, we can recommend installing the latest patch.
    * Please post the full command line request. If you have used any keys in cgicmd.dat , please post the expansion of that keys also.
    * If possible as a workaround give paramform=no&paramName=paramValue ... in request till this problem is resolved.
    Thanks
    The Oracle Reports Team

  • I'm being shown an error pop-up message periodically saying "There was a problem connecting to the server. URLs with the type 'file:' are not supported." I have a brand new MacBook Pro, and at no time am I actually having trouble connecting to the server.

    I'm being shown an error pop-up message periodically saying "There was a problem connecting to the server. URLs with the type 'file:' are not supported." I have a brand new MacBook Pro, and at no time am I actually having trouble connecting to the server, but this message continues to pop-up several times a day at random intervals. Is there something I'm doing wrong? Or is my computer just having a glitch? Other than that, and a mildly sticking caps lock button, it's working perfectly.
    Thank you!

    Alright it didn't solve it. Any other suggestions?
    I haven't suggested a solution yet. I want to know whether you still get the messages while Time Machine is disabled. Do you? If so, try any or all of the solutions proposed in this thread:
    There was a Problem connecting to the...: Apple Support Communities

  • I keep getting an error message saying "There was a problem connecting to the server.  URLs with the type "file:" are not supported."  Can someone help me get rid of it.

    I keep getting an error message saying "There was a problem connecting to the server.  URLs with the type "file:" are not supported"  Can someone help me locate and get rid of this error.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off .

    My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off and continue working.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

Maybe you are looking for

  • System shutdown unexpected

    I need help... I got the error or it could said crash. In the error event log said, " the previous system at xxx time was shutdown unexpected". It happened when I run dick cleanup and play media player, after that my laptop shutdown automatically. My

  • How to Enable Full Screen Viewing?

    Hi I want to upload flv files to my website. I have got it worling fine - insert media - flv - progressive download - etc. When I view the file in the testing server it does not have the option to "view in full screen" which I need as I want to keep

  • BPM Condition editor QUALF issue

    Hi Gurus, we are using a switch step to define different processing branches. If the "ORGID" in the second E1EDK14 segment is "S1" and the "QUALF" is "015", we can process the message. Otherwise the message hast to be stopped. <E1EDK14 SEGMENT="1">  

  • No HspEssbaseEnv in java.library.path (Planning + Weblogic + JRockit)

    Hello! When I'm running Planning in 64-bit JRockit JVM in SPARC box, аfter initialization EssBase API, in the log I get the following error: java.lang.UnsatisfiedLinkError: no HspEssbaseEnv in java.library.path at java.lang.ClassLoader.loadLibrary(Cl

  • Probelm with BAPI_GOODSMVT_CREATE

    Hi Experts, I am trying to create a goods reciept with reference to a purchase order, while creating that using BAPI_GOODSMVT_CREATE, I am getting an error "PL Stock in transit exceeded by 100 LB : LC-1114 3000 0001". What does this indicate and how