VECTOR: Can't Locate Where to Specify Content Type

Hi all. I'm confused with warning from compiler. I'm specifying methods for swing TableModel using vector data and it always shows me unchecked call to set as a member of raw type (method setValueAt). I just have no idea how to cast type there. The code is below:
import java.util.Vector;
public class SSCCE {
public static void main(String[] args){
    new dk_MF();
class dk_MF{
dk_MF(){ constructTable();  }
public void constructTable(){
  Vector<Vector> bigvec = getTabData();
  Vector smallvec = (Vector) bigvec.elementAt(0).clone();
  bigvec.remove(0);
  Model MM = new Model(bigvec,smallvec);
  System.out.println(MM.getValueAt(0,0)); }
public Vector<Vector> getTabData(){
  Vector<Vector> bv = new Vector<Vector>();
  Vector<String> sv = new Vector<String>();
  sv.add("one"); sv.add("two");
  bv.add((Vector)sv.clone());
  bv.add((Vector)sv.clone());
  sv.clear();
  return bv; }
class Model {
  private Vector columnNames = null;
  private Vector data = null;
  public Object getValueAt(int row, int col){
   return ((Vector) data.elementAt(row)).elementAt(col); }
  public void setValueAt(Object value, int row, int col) {
   ((Vector) data.elementAt(row)).set(col, value);  }
  public void createNewTable(Vector b, Vector s) {
   data = (Vector) b.clone();
   columnNames = (Vector) s.clone();  }
  Model(Vector big, Vector small) {
   createNewTable(big,small);
}

Thanks for the tip on casting problem! But now I'm back to the starting point. OK, I have a Vector of Vectors of Arbitrary Data: Vector<Vector<?>>. I've done all this description in the code (below). But this cursed "unchecked call to set" remains.
What, actually, this "unchecked call" means? Why casting ((Vector) data.elementAt(row)) at getValueAt does not get a warning?
P.S. I've tryed to put Vector<?> (caused error) and Vector<Object> (warning) in setValueAt, but this did not help!
import java.util.Vector;
public class SSCCE {
public static void main(String[] args){
    new dk_MF();
class dk_MF{
dk_MF(){ constructTable();  }
public void constructTable(){
  Vector<Vector<?>> bigvec = getTabData();
  Vector smallvec = (Vector) bigvec.elementAt(0).clone();
  bigvec.remove(0);
  Model MM = new Model(bigvec,smallvec);
  System.out.println(MM.getValueAt(0,0)); }
public Vector<Vector<?>> getTabData(){
  Vector<Vector<?>> bv = new Vector<Vector<?>>();
  Vector<String> sv = new Vector<String>();
  sv.add("one"); sv.add("two");
  bv.add(new Vector<String>(sv));
  bv.add(new Vector<String>(sv));
  sv.clear();
  return bv; }
class Model {
  private Vector columnNames = null;
  private Vector data = null;
  public Object getValueAt(int row, int col){
   return ((Vector) data.elementAt(row)).elementAt(col); }
  public void setValueAt(Object value, int row, int col) {
   ((Vector) data.elementAt(row)).set(col, value);  }
  public void createNewTable(Vector b, Vector s) {
   data = (Vector) b.clone();
   columnNames = (Vector) s.clone();  }
  Model(Vector big, Vector small) {
   createNewTable(big,small);
}

Similar Messages

  • How do I stop a BBC News feed that comes into my email? I can't locate where this feed originates from to stop it.

    How do I stop a BBC News feed that comes into my email? I can't locate where this feed originates from to stop it.

    This is the link to subscribe: http://feeds.bbci.co.uk/news/rss.xml
    Since there's no "Unsubscribe" button, there should be a link in the email you receive which enables you do do that.
    If you don't see it there, try using the email address at the foot of this page: http://news.bbc.co.uk/2/hi/help/3223250.stm

  • How can i locate where game center account is my village located?

    how can i locate where game center account is my village located? because i'll transfer my account to my other ios device. Thanks.

    Please check the FAQ for the game you are referencing.

  • My iPhone 3GS was stolen today while I was grocery shopping. How can I locate where my phone is?

    My iPhone 3GS was stolen today. Can anyone help me figure out how to locate where my iPhone has been taken to? Some Low Life stole it while I was grocery shopping. I need that phone. I don't have a Contract phone, just a Gov't Free phone number/minutes. Please help me someone.

    Thank You roaminggnome, I don't think I turned Find My Phone app on on my phone, but I did turn it on on my laptop. I deleted my contacts list and Hope that Iit somehow deleted my contacts list on my phone. Also, I turned on Find My Phone on my laptop and it says my phone is turned off. So I think that whoever stole my phone took out my Sim Card and replaced it with theirs or that they sold my phone for Crack. I hope my phone hasn't been restored. Ty for your response Roaming. God Bless You ,, Tinynawlinswoman6

  • Specifying Content Type of the Response

    Can anyone enlist the different content type supported by browsers.
    In the Servlet, I need to set this to enable file download.
    My web application should supoort upload and download of files of any file type.

    http://www.ietf.org/rfc/rfc2045.txt

  • How can we know where the exchange rate type is used?

    Hello experts,
    I have a question regarding exchange rate type.
    There is a custom exhange rate type ZXXX in our system, however, we don't know where this exchange rate type ZXXX is used. Is there any method that we can find where this exchange rate type is used?
    Many thanks.
    Christina.
    Edited by: Christina wang on Nov 28, 2008 4:28 AM

    Exchange Rate Type is created in SPRO:-SAP Net Weaver>General Settings>currency>Check Exchange Rate type.
    It is used for maintainace of Exchange Rate in OB08 for direct & indirect quote..
    Regards,
    Alok

  • Can I create an email message content type?

    Just want to be able to select me email message from the New Document drop down in the library.
    It doesn't work. 
    So I tried a link content type to an email message in a document library and that doesn't work either.
    Has anyone got any ideas for this?
    Thanks.
    Mel

    Hi Cameron
    I have a library that I like to put email messages into.
    But I would like to create an email message that I use all the time. So, I was hoping I could add the message as a content type and have it available in the dropdown from 'New Document', just like other Word doc content types.
    It doesn't seem to like this, gives me a message:
    So I was hoping there was a work around somehow.
    Mel
    Mel

  • Google Maps app. Can't locate where I live?

    It is placing me 2.4 miles away from where I am, on my Original iPhone.
    On an iphone 3G, it is placing me about 4 blocks away.
    Any thoughts?

    It's late August, started noticing location weirdness about a month ago, thought I'd lost my mind. Now I see your post. The location feature was rough on 2G, but now it's way off. Mymother's 3GS seems off too now. Like the master library has been changed, and there's some offset improperly set.
    Hope somebody gets an answer an solution. If this feature doesn't workhalf as well as it did, something has changed on the head end, I'm sure

  • I can't locate where my aol reminders are coming from so i can't edit them

    I thought I had 1 calendar but it seems that every time i create a new reminder i also create a new calendar, and i can't edit or remove reminders cause i don't know where they are "hiding".

    Which problems do you have on that website?
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Can not locate where to find refresh button to put on menu bar

    I do not find the refresh icon on menu bar as before, the print icon is the only one there. I went to customize toolbar and the icon was not there. Please help, need to refresh pages. Thank you.

    Firefox 4.0 has a combined Reload and Stop and Go button that appears at the right end of the location bar.
    * Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
    * Move the Reload and Stop buttons to their previous position at the left side of the location bar.
    * Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
    * Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons.

  • After completing a scan of 15 pages I can't find where the scanned files have been sent.

    After completing a 15 page scan I find I can't locate where my files were sent.  Help! Thanks,Firstsergeant

    Since it seems App related, I'm not sure what to offer you.  I guess the only suggestion I have is for you to reboot your iPad and then try again.  To reboot, hold the power and home buttons at the same time for at least 10 seconds (keep holding past the swipe to shut down bar if it appears) until the Apple Logo appears, then let go of both buttons and your iPad will restart.  You won't lose any settings or data, so it's worth a shot.

  • I keep getting a window saying there is an Amazon button update, I can't find where to update it from? Any thoughts?

    I get a little window that pops up, states there is an Amazon update to the button. It then disappears. I can't locate where in Firefox to make it update.
    == This happened ==
    Every time Firefox opened
    == couple weeks ago

    Hello Sandy.
    This window is probably there because of an extension. You should get support with the extension's author.
    Or it could be malware...

  • Http to RFC [http adapter issue] - The system can not locate the resource.

    Hi,
    When I post the message with http client, I am getting the below error.
    Line 33: The system can not locate the resource specified.
    i.e --> xhttp.send (payload);
    It is a java script error.
    Result URL:
    http://xxx.xxx.xxx.xxx:8000/sap/xi/adapter_plain?namespace=http%3A//www.cisco.com/httptobapi&interface=MI_request_response_cisco&service=BS_HTTP_CISCO&party=&agency=&scheme=&QOS=BE&sap-user=xxxxX&sap-password=xxxx&sap-client=500&sap-language=EN
    Any idea what went wrong?
    Thanks
    Balaji

    hi,
    I have given all the details correct.
    Server Host,Port, Client, Sender Service, Interface and namespace and then payload.
    It looks like problem is with http client. It is not posting the data correctly.
    I tried on 2 different systems.
    On one system it gave a problem at line 33 which i mentioned at the first post.
    And second system gave line: 27 Permission denied.
    Line 27 :  xhttp.open ("POST", reqString, false);
    Payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_request_sales_cisco xmlns:ns0="http://www.cisco.com/httptobapi">
      <Customer_Number>1002</Customer_Number>
      <Sales_Organization>1000</Sales_Organization>
    </ns0:MT_request_sales_cisco>
    Thanks
    Balaji

  • Can I track where my iPhone has been

    Hi, just wondering if I can track locations where my iphone has been? For example can I look back to December 25th and see the locations my phone (and subsequently I) was that day?
    This is to track my own phone, not someone elses!
    Thanks

    No. Find My iPhone can only show you where your iPhone, or other registered device, is at the moment.

  • Unsupported response content type "text/html", must be: "tex

    Hi Gurus,
    I'm trying to access a WebService (http://200.68.11.21/WebServices/RecibeMsgSoapISP.wsdl), but I've been facing the following problem below. Could anybody help me?
    //****************************** MY CODE
    FileInputStream file = new FileInputStream("c:\\EXE\\deuda2.xml");
    byte[] bytes = new byte[file.available()];
    file.read(bytes);
    String xml = new String(bytes);
    System.out.println("Xml:\n" + xml);
    URL endPoint =
    new URL(
    "http://200.68.11.21/WebServices/RecibeMsgSoapISP.wsdl");
    Call call = new Call();
    SOAPTransport m_httpConnection =
    new org.apache.soap.transport.http.SOAPHTTPConnection();
    call.setSOAPTransport(m_httpConnection);
    call.setTargetObjectURI("urn:RecibeMsgSoapIsp");
    call.setMethodName("RecibeM2TGR");
    call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    //SOAPTransport st = new SOAPHTTPConnection();
    //call.setSOAPTransport(st);
    Vector params = new Vector();
    params.addElement(new Parameter("StrXml", String.class, xml, null));
    call.setParams(params);
    //call.setHeader();
    Response response = call.invoke(endPoint, "");
    Parameter result = response.getReturnValue();
    System.out.println("result:" + result);
    //****************************** MY EXCEPTION
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <html dir=ltr>
    <head>
    <style> a:link               {font:8pt/11pt verdana; color:FF0000} a:visited          {font:8pt/11pt verdana; color:#4e4e4e}
    </style>
    <META NAME="ROBOTS" CONTENT="NOINDEX">
    <title>No se puede mostrar la p&aacute;gina</title>
    <META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
    </head>
    <script>
    function Homepage(){
    <!--
    // in real bits, urls get returned to our script like this:
    // res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm
         //For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
         DocURL=document.URL;
         //this is where the http or https will be, as found by searching for :// but skipping the res://
         protocolIndex=DocURL.indexOf("://",4);
         //this finds the ending slash for the domain server
         serverIndex=DocURL.indexOf("/",protocolIndex + 3);
         //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
         //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
         //urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
         BeginURL=DocURL.indexOf("#",1) + 1;
         urlresult=DocURL.substring(BeginURL,serverIndex);
         //for display, we need to skip after http://, and go to the next slash
         displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
         InsertElementAnchor(urlresult, displayresult);
    function HtmlEncode(text)
    return text.replace(/&/g, &apos;&amp&apos;).replace(/&apos;/g, &apos;&quot;&apos;).replace(/</g, &apos;&lt;&apos;).replace(/>/g, &apos;&gt;&apos;);
    function TagAttrib(name, value)
    return &apos; &apos;+name+&apos;="&apos;+HtmlEncode(value)+&apos;"&apos;;
    function PrintTag(tagName, needCloseTag, attrib, inner){
    document.write( &apos;<&apos; + tagName + attrib + &apos;>&apos; + HtmlEncode(inner) );
    if (needCloseTag) document.write( &apos;</&apos; + tagName +&apos;>&apos; );
    function URI(href)
    IEVer = window.navigator.appVersion;
    IEVer = IEVer.substr( IEVer.indexOf(&apos;MSIE&apos;) + 5, 3 );
    return (IEVer.charAt(1)==&apos;.&apos; && IEVer >= &apos;5.5&apos;) ?
    encodeURI(href) :
    escape(href).replace(/%3A/g, &apos;:&apos;).replace(/%3B/g, &apos;;&apos;);
    function InsertElementAnchor(href, text)
    PrintTag(&apos;A&apos;, true, TagAttrib(&apos;HREF&apos;, URI(href)), text);
    //-->
    </script>
    <body bgcolor="FFFFFF">
    <table width="410" cellpadding="3" cellspacing="5">
    <tr>
    <td align="left" valign="middle" width="360">
         <h1 style="COLOR:000000; FONT: 13pt/15pt verdana"><!--Problem-->No se puede mostrar la p&aacute;gina</h1>
    </td>
    </tr>
    <tr>
    <td width="400" colspan="2"> <font style="COLOR:000000; FONT: 8pt/11pt verdana">No se puede mostrar la p&aacute;gina que est&aacute; buscando porque la direcci&oacute;n de la p&aacute;gina es incorrecta.</font> </td>
    </tr>
    <tr>
    <td width="400" colspan="2"> <font style="COLOR:000000; FONT: 8pt/11pt verdana">
         <hr color="#C0C0C0" noshade>
    <p>Pruebe lo siguiente:</p>
         <ul>
    <li>Si escribi&oacute; la direcci&oacute;n de la p&aacute;gina en la barra de direcciones, compruebe que la ha escrito correctamente.<br>
    </li>
    <li>Abra la p&aacute;gina principal
    <script>
         <!--
         if (!((window.navigator.userAgent.indexOf("MSIE") > 0) && (window.navigator.appVersion.charAt(0) == "2")))
              Homepage();
         //-->
         </script>
         y busque v&iacute;nculos a la informaci&oacute;n que desee.</li>
    </ul>
    <h2 style="COLOR:000000; FONT: 8pt/11pt verdana">HTTP 405 &ndash; Resource not allowed<br> Servicios de Internet Information Server</h2>
         <hr color="#C0C0C0" noshade>
         <p>Informaci&oacute;n t&eacute;cnica (para personal de soporte)</p>
    <ul>
    <li>M&aacute;s informaci&oacute;n:<br> Soporte t&eacute;cnico de Microsoft
    </li>
    </ul>
    </font></td>
    </tr>
    </table>
    </body>
    </html>
         at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208)
         at org.apache.soap.rpc.Call.invoke(Call.java:255)
         at test.Test.main(Test.java:42)
    Best regards,
    George

    Is this statement that causes the exception? "Response response = call.invoke(endPoint, "");"
    If so you might be able to catch the SOAPException and interogate the response variable - surround the call with a try, catch block and within the catch you can get the MimeHeaders and check "Content-Type" If it's "text/html" then you know it not a SOAP message so don't use the SOAP api calls.
    It sounds like the web service is offline and the web server is trying to send you an HTML error page which of course is not a SOAP message and so a SOAPException is thrown.

Maybe you are looking for

  • HP 200 Can i upgrade my processor For My laptop ?

    Can I upgrade my cpu like for gaming (Minecraft) and where i can buy it. My Laptop Info  hp  2000-2b29WM 2.20GHz Intel Pentium Processor B960 http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c03499318

  • Auto Sync Files not working with Local Host

    Hi, I am developing a site locally and testing on a local host. I have my working files in Adobe cloud and then 'upload' to my local host to test. This works fine when I click upload, or control+shift+u, but its extremely annoying. I have checked the

  • DVI to SDI or Component Production Monitor?

    I will be hooking up a new Panasonic HD professional production monitor (BT-LH2600W) to my G5. I only need to monitor from Final Cut Pro's Timeline; no input or output needed (like from a Kona Card). Panasonic monitor: http://catalog2.panasonic.com/w

  • PO with Order Acknowledgment

    Hi experts, Please help me with the following: I have created a PO and entered the AB confirmations for this PO. Now I want to reduce the quantity in the PO from 10 PC to 5 PC. I have previously enterd the AB confirmation for 10 PC. Now I get the err

  • AppleTV struggles to find resolution at start up

    Hi Folks, I love my AppleTV but it has annoyed me for the last time. When ever I turn the thing on, it blinks and blinks and acts like it is struggling to set the resolution. Sometimes it blinks around forever, never actually getting to a usable stat