Cisco Network Assistant - Error java.util.noSuchElementException

Hi!
i have a big Problem. the last 3 times i installed the CNA (for 2960X-series) at my custormers, i have the Problem that i can´t edit the Port-Settings in the CNA.
There always Comes the Message:
Java.util.noSuchElementException
i tried different Versions of CNA (5.8.9, 6.1, ...) and different different Software Images on my Switches : (15.0.2.EX2, 15.0.2.EX5)
can anyone help me please?
Thx
Martin

Hi David,
Are you migrating a MySQL 4.1 instance? There is a known problem with 4.1 (3, 4.0 and 5.0 are ok, this is unique to 4.1). The fix has been committed but will not be available until our next release.
If this is the case, your options are to move your db to a 5.0 instance, or wait until out next release.
Regards,
Dermot.

Similar Messages

  • SFTP: The invocation resulted in an error: java.util.NoSuchElementException

    I have created a business service using the SFTP protocol.
    When testing the BS, I received the "known_hosts doesn't exist or doesn't have read permission" error, which I resolve by placing the known_host file in $Domain_Home\config\osb\transports\sftp
    But now I have got another error "The invocation resulted in an error: java.util.NoSuchElementException". Does anyone know what this error refers to? I have already set the filename through the transport header.

    I have created a business service using the SFTP protocol.
    When testing the BS, I received the "known_hosts doesn't exist or doesn't have read permission" error, which I resolve by placing the known_host file in $Domain_Home\config\osb\transports\sftp
    But now I have got another error "The invocation resulted in an error: java.util.NoSuchElementException". Does anyone know what this error refers to? I have already set the filename through the transport header.

  • The invocation resulted in an error: java.util.NoSuchElementException

    I am trying to implement sftp protcol for oracle service bus using business service.
    While invocation it is throwing "The invocation resulted in an error: java.util.NoSuchElementException" error.
    Does any one know the reason for it?

    known_hosts file must contain data & hostname and IP address must be separated by a comma.
    e.g. localhost,127.0.0.1 ssh-rsa ABCDEF............==
    Regards,
    Anuj

  • Bursting ERROR: java.util.NoSuchElementException in 1 level XML (i.e. FSG)

    Hello,
    We are encountering error with 1-level XML(non-RDF reports - i.e. FSG) on bursting. It is happening when the bursting control file ("select" attribute under "request" element) only has 1 level of distribution XML(i.e. /MasterReport).
    I have found similar issue in this forum but got no definite solution - Re: Bursting Fails with java.util.NoSuchElementException after 5.6.3 upgrade
    Start bursting process..
    [032309_032311003][][EXCEPTION] java.util.NoSuchElementException
         at java.util.Vector.lastElement(Vector.java:449)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.removeEndPath(BurstingProcessorEngine.java:1999)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(BurstingProcessorEngine.java:1944)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1124)
         at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(BurstingProcessorEngine.java:2153)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingEndElement(BurstingProcessorEngine.java:1802)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1127)
         at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:227)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingConfigParser(BurstingProcessorEngine.java:959)
         at oracle.apps.xdo.batch.BurstingProcessorEngine.process(BurstingProcessorEngine.java:903)
         at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:269)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    Thanks in advance for your help.
    regards,
    Rownald

    Hi Ike,
    Thanks for your reply.
    Although I already went thru a different path on bursting FSG(Financial Statement Generator) reports (creating Java program to fetch/send email - Delivery Manager), I am still very interested in the idea of bursting FSG using the seeded bursting program(XDOBURSTREP) - which I still cannot figure out.
    Anyway, I am stuck having a data definition from FSG with only 1-level to burst on (see in bold below). This kind of XML data is causing the previous error that I've posted above.
    Trying to add another level (i.e. /MasterReport/fsg:SOBName/) won't work either - namespace being not supported by Oracle??
    <?xml version="1.0" encoding="utf-8"?>
    <*MasterReport* xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:fsg="http://www.oracle.com/fsg/2002-03-20/"
    xsi:schemaLocation="http://www.oracle.com/2002-03-20/fsg.xsd">
    <fsg:SOBName>COMPANY NAME</fsg:SOBName>
    Any idea would be highly appreciated.
    Thanks!

  • Error: java.util.NoSuchElementException while migrating from Mysql

    Hello All,
    I am trying to migrate a Mysql DB to oracle 10g, the following are the steps that I'm following:
    1. - Create an Oracle user named MIGRATIONS and grant it at least RESOURCE, CREATE SESSION, and CREATE VIEW privileges
    2. - Create a database connection named Migration_Repository that connects to the MIGRATIONS user.
    3. - Right-click the Migration_Repository connection, select Manage Migration Repository, and create the repository
    4. - Create an Oracle user whose schema is to be used as the destination for the objects to be migrated
    5. - Create and open an Oracle connection for the schema that I created.
    6. - Create and open a database connection for mysql DB
    7. - Capture the source schema objects to be migrated
    8. - Convert the captured objects to Oracle-format objects.
    9.- When I try to hit "GENERATE" to create the SQL*Plus script, it gets to Sequence 40 and it stops, as soon as I click close. I get the following error message:
    java.util.NoSuchElementException
    I have not been able to find answers in regards to this error, any help would be greatly appreciated.
    David Waizer

    Hi David,
    Are you migrating a MySQL 4.1 instance? There is a known problem with 4.1 (3, 4.0 and 5.0 are ok, this is unique to 4.1). The fix has been committed but will not be available until our next release.
    If this is the case, your options are to move your db to a 5.0 instance, or wait until out next release.
    Regards,
    Dermot.

  • Cisco Network Assistant errors

    Hi. I'm hoping someone can help me understand some of the errors I've been receiving with CNA version 5.8.8.1. It seems to be working fine with the 2960 Catalyst switch.
    But I see this  Java error "The launching request for Monitor > Event Notification is not supported" and Unsupported Device with the 837 router.
    An older version CNA 5.8.2 can see the 837 no problem.
    Also, just out of curiosity, why is the 2960XM router supported but not the 2960?
    And lastly, is there an alternative software package that provides the same functionality as CNA that would maybe support all of my devices?
    Thank you very much for any help/info.

    I don't have an answer for the bug question but I know the CNA developers watch the Network Management forum. You may have better luck moving your question over there. (You can do this from the actions tile in the top right of this discussion thread.)
    Re an alternative product, There aren't any free ones that will do a better job as far as I know. Cisco's Prime LMS has much more functionality but you need to pay for it. Other 3rd party products have lots of strengths as well but you need to evaluate them against your particular requirements to make an informed decision,

  • Java.util.NoSuchElementException Error

    when i am executing my servlet program tha i got this error
    java.util.NoSuchElementException
         at Scanning.scan(googlewsd.java:262)
         at googlewsd.doGet(googlewsd.java:67)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    what can i do to remove this error ..
    plz help me..its very urgent
    thanx

    java.lang.NullPointerException
         at java.util.StringTokenizer.(StringTokenizer.java:119)
         at java.util.StringTokenizer.(StringTokenizer.java:135)
         at Scanning.scan(googlewsd.java:237)
    pls tell me solution of this error.
    pls help me
    thanx

  • SFTP Issue in OSB invocation resulted in an error: java.util.NoSuchElement

    I created a Proxy Service to do SFTP Poll to read the file from abcserver and its working fine .
    (OSB is on abc server).
    known_hosts file is present on OSB server.
    It has abcserverhostname,IP ssh-rsa AA................. ==
    I created a business service to do SFTP Write to xyz server (remote) - Its not working.
    Error : The invocation resulted in an error: java.util.NoSuchElementException.
    My Business Service
    End Point URI : sftp://xyzserverhostname:22/directorypath
    Authetication Mode : user name, password.I have created a Service Account for xyz server and imported in Business Service.
    Later, I created business service to do SFTP Write on abc server (same server) and it failed.*
    Error : The invocation resulted in an error: java.util.NoSuchElementException
    Do I need to give anything else in known_hosts file ?
    OSBServer.log
    *<Error> <SFTPTransport> <OSBServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <db432d7c09c5a041:4295b211:1310705fe8e:-8000-000000000001f312> <1311176892037> <BEA-381801> <Error occured for endpoint java.util.NoSuchElementException*
    java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(StringTokenizer.java:183)
    at java.util.StringTokenizer.nextElement(StringTokenizer.java:149)
    at com.bea.wli.sb.transports.sftp.client.KnownHostVerifier.validateKnownHosts(KnownHostVerifier.java:102)
    at com.bea.wli.sb.transports.sftp.client.SFTPClient.authenticate(SFTPClient.java:104)
    at com.bea.wli.sb.transports.sftp.connector.SFTPResource.<init>(SFTPResource.java:77)
    at com.bea.wli.sb.transports.sftp.resource.SFTPUtils.createSFTPResource(SFTPUtils.java:170)
    at com.bea.wli.sb.transports.sftp.resource.SFTPConnectionPool.getResource(SFTPConnectionPool.java:104)
    at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.getSFTPResource(SFTPTransportProvider.java:958)
    at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.sendMessage(SFTPTransportProvider.java:145)
    at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.sendMessageAsync(SFTPTransportProvider.java:110)
    at sun.reflect.GeneratedMethodAccessor4031.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.bea.wli.sb.transports.Util$1.invoke(Util.java:83)
    at $Proxy142.sendMessageAsync(Unknown Source)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:148)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)
    at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:538)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:558)
    at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)
    at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:380)
    at com.bea.wli.sb.test.service.ServiceMessageSender.access$000(ServiceMessageSender.java:79)
    at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:137)
    at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:135)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
    at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:140)
    at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:454)
    at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
    at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unknown Source)
    at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Thanks
    Edited by: soauser on Jul 25, 2011 3:22 PM

    Patrick,
    I apologize. polling was done by some other service, not my current OSB Service.
    OSB Proxy Service to poll/read data is not working.
    I enabled logging to Error in Proxy Service. and enable tracing
    If I test my Proxy Service from Console. I see this message
    <con:metadata      xmlns:con="http://www.bea.com/wli/sb/test/config">
         <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
         </con:metadata>
    tail -f OSBServer.log
    <Error> <WliSbTransports> <OSBServer> <pool-20-thread-1> <weblogic> <> <db432d7c09c5a041:1f5dbb0e:1314411cf6c:-8000-000000000000213c> <1311178504443> <BEA-381602> <Error encountered while polling the resource for the service endpoint ProxyService$SFTPFileTesting$SFTPFilePoll: com.bea.wli.sb.transports.TransportException
    com.bea.wli.sb.transports.TransportException
    at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.execute(SFTPWorkPartitioningAgent.java:125)
    at com.bea.wli.sb.transports.poller.TransportTimerListener.run(TransportTimerListener.java:74)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
    at java.util.concurrent.FutureTask.run(FutureTask.java:149)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:109)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:215)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
    at java.lang.Thread.run(Thread.java:736)
    Caused By: java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(StringTokenizer.java:183)
    at java.util.StringTokenizer.nextElement(StringTokenizer.java:149)
    at com.bea.wli.sb.transports.sftp.client.KnownHostVerifier.validateKnownHosts(KnownHostVerifier.java:102)
    at com.bea.wli.sb.transports.sftp.client.SFTPClient.authenticate(SFTPClient.java:104)
    at com.bea.wli.sb.transports.sftp.connector.SFTPResource.<init>(SFTPResource.java:77)
    at com.bea.wli.sb.transports.sftp.resource.SFTPUtils.createSFTPResource(SFTPUtils.java:170)
    at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.getSftpResource(SFTPWorkPartitioningAgent.java:148)
    at com.bea.wli.sb.transports.sftp.connector.SFTPWorkPartitioningAgent.execute(SFTPWorkPartitioningAgent.java:58)
    at com.bea.wli.sb.transports.poller.TransportTimerListener.run(TransportTimerListener.java:74)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
    at java.util.concurrent.FutureTask.run(FutureTask.java:149)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:109)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:215)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
    at java.lang.Thread.run(Thread.java:736)
    Edited by: soauser on Jul 20, 2011 9:36 AM
    Edited by: soauser on Jul 25, 2011 3:22 PM

  • Error on java.util.NoSuchElementException

    Hi,
    I am facing an error "Exception in thread "main" java.util.NoSuchElementException" on my java code but i have no idea on how to solve this error. I have been figuring for very long but still no solution. Below is my code. Can anyone help? Thank in advance=D
    import java.io.FileReader;
    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.*;
    class Matrix {
          double[][] element;
         public static void getFile(String fileName) throws IOException{
            BufferedReader br = null;
            int numRows,numCols;
            Matrix m1 = new Matrix();
            try{
                  br = new BufferedReader(new FileReader(fileName));
                  String line = br.readLine();
                  //Get the number of rows
                  line = br.readLine();
                  StringTokenizer st = new StringTokenizer(line, "=");
                  st.nextToken();
                  String row = st.nextToken();
                  numRows = Integer.parseInt(row.substring(1));
                  //Get the number of columns
                  line = br.readLine();
                  StringTokenizer st2 = new StringTokenizer(line, "=");
                  st2.nextToken();
                  String col = st2.nextToken();
                  numCols = Integer.parseInt(col.substring(1));
                  line = br.readLine();
                  while ((line = br.readLine()) != null ){
                     //Declare and initialize the 2d array
                     m1.element = new double[numRows][numCols];
                     StringTokenizer st3 = new StringTokenizer(line, "</matrix>");
                     while(st3.hasMoreTokens()){
                          for(int r = 0; r < m1.element.length; r++){
                              for(int c = 0; c <= m1.element.length; c++){
                                 String record = st3.nextToken(" ");
                                 m1.element [r][c] = Double.parseDouble(record);
                      br.close();      
               }catch(FileNotFoundException ex){
                      System.out.println(ex.getMessage());
    }

    Tave wrote:
    Some things occur to me, none of which may be useful.
    Firstly, you have no constructor for your class.
    Secondly, you don't seem to have a main method, though this may be because this class is called by another.
    Thirdly, don't you have a line number or other identification for what is causing the exception?Thank for your reply=D
    Yap this is a class that is called by another class that why there is no main method for it. And for the line that causing the error is
    String record = st3.nextToken(" ");

  • Cisco Network Assistant (CNA) Error: Connect

    Best regards community,
    Please I need your help, I installed Cisco Network Assistant 5.8 (9.1) for manage some catalyst switches as 2950, 2960, 2960S, 2960X, 3750X. I can manage all devices except WS-C2960X-24TS-LL model, I have following message from CNA: "Error: Connect Index: 26, Size:26". This device have same configuration for level 15 access as other devices with user name and password. the catalyst switch IOS version is 15.0(2)EX4
    This problem is about either software or hardware? How can solve?
    Thanks in advance

    You're welcome.
    I know the product team monitor the Network Management Forum. If you post your question there, one of them may pick up on it.
    The CNA support typically lags the new product release by about 4-6 months, sometimes longer depending on how well the hardware product release matches up with the network management product's latest release date. The 2960XR just started shipping in July 2013 so a good guess would be that CNA might support it in the next release (5.9?). That's just a guess though.

  • Cisco Network Assistant access error

    Dear all,
    I've just installed Cisco Network Assistant (CNA) on my Windows 7 laptop but whenever I try to start it I get an error message as shown below:
    Read/write access problems:
    Access is denied
    =======================================
    Note: Read/write access is required for user home directory and installation directory:
    C:\Users\...........
    C:\Program Files (x86)\Cisco Systems\Cisco Network Assistant
    =======================================
    My Windows is 64-bit.
    Any ideas on how to sort out this will be appreciated.
    Regards,
    Davis M Onsakia

    i had the same problem and i wasn't willing to open the whole of the programs directory to what username cisco used when installing or when run, so i opt'ed to install in a root directory, make c:\cisco and install there, that way if there's a permissions error I can add what I wanted, but thats how i got mine to work. Install in a different directory, one that you can add read/write permissions to.
    BR Aylu

  • Why the Error in ArrayList Program : java.util.NoSuchElementException

    import java.util.List;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.ListIterator;
    import java.util.Collections;
    import java.util.Random;
    public class ArrayListDoubt {
        public static void main(String[] args) {
    //        ArrayList Creation
            List arraylistA = new ArrayList();
            List arraylistB = new ArrayList();
    //        Adding elements to the ArrayList
            for (int i = 0; i < 5; i++) {
                arraylistA.add(new Integer(i));
            arraylistB.add("beginner");
            arraylistB.add("java");
            arraylistB.add("tutorial");
            arraylistB.add(".");
            arraylistB.add("com");
            arraylistB.add("java");
            arraylistB.add("site");
    // Iterating through the ArrayList to display the Contents.
            Iterator i1 = arraylistA.iterator();
            System.out.print("ArrayList arraylistA --> ");
            while (i1.hasNext()) {
                System.out.print(i1.next()+ " , ");
            System.out.println();
            System.out.print("ArrayList arraylistA --> ");
            for (int j=0; j < arraylistA.size(); j++) {
                System.out.print(arraylistA.get(j)+ " , ");
            System.out.println();
            Iterator i2 = arraylistB.iterator();
            System.out.println("ArrayList arraylistB --> ");
            while (i2.hasNext()) {
                System.out.print(i2.next()+ " , ");
            System.out.println();
            System.out.println("Using ListIterator to retireve ArrayList Elements");
            System.out.println();
            ListIterator li = arraylistA.listIterator();
    //       next(), hasPrevious(), hasNext(), hasNext() nextIndex() can be used with a
    //        ListIterator interface implementation
            System.out.println("ArrayList arraylistA --> ");
            while (li.hasNext()) {
                 System.out.print(i1.next()+ " , ");
    Output
    ArrayList arraylistA --> 0 , 1 , 2 , 3 , 4 ,
    ArrayList arraylistA --> 0 , 1 , 2 , 3 , 4 ,
    ArrayList arraylistB -->
    beginner , java , tutorial , . , com , java , site ,
    Using ListIterator to retireve ArrayList Elements
    ArrayList arraylistA -->
    Exception in thread "main" java.util.NoSuchElementException
         at java.util.AbstractList$Itr.next(AbstractList.java:427)
         at ArrayListDoubt.main(ArrayListDoubt.java:58)

    System.out.println("Using ListIterator to
    retireve ArrayList Elements");
    System.out.println();
    ListIterator li = arraylistA.listIterator();
    next(), hasPrevious(), hasNext(), hasNext()
    nextIndex() can be used with a
    /        ListIterator interface implementation
    System.out.println("ArrayList arraylistA -->
    while (li.hasNext()) {
         System.out.print(i1.next()+ " , ");
    }I think you mean to call the next()-method of the ListIterator li, but instead call i1, which is an already used Iterator.
    Where you want to iterate with ListIterator, change this line
    System.out.print(i1.next()+ " , ");to this
    System.out.print(li.next()+ " , ");and it works

  • Cisco Network Assistant 5.5 and WS-X4013+10GE

    I have installed CNA 5.5 and it works fine with most of the devices, including catalyst 4500 series with different supervisors (WS-X4013+, WS-X4013+TS, WS-X45 SUP6-E).
    It can also detect supervisor WS-X4013+10GE, but CNA failed to show this device in Front Panel View. Is there anything I have to do to make the devices with Supervisor WS-X4013+10GE to be shown in Front Panel View?
    WS-X4013+10GE are in either 4503 or 4506 chassis, running IOS version 12.2(31)SGA or 12.2(40)SG.
    Please give some hints, thanks.
    Rgds,
    Sunny

    I  downloaded Cisco Network Assistant 5.5, everytime when I try to run
    I get error message "Could not creat Java virtual Machine' any idea how
    to solve this?
    To overcome this problem, open the file C:\Program Files\Cisco Systems\CiscoSMB\Cisco Network Assistant\startup\startup.properties (the default installation path), and modify this entry:
    JVM_MAXIMUM_HEAP=1024m
    Replace 1024m with a lower setting that does not exceed the available RAM. There is no way to foresee what value will work. Try 512m, and lower it further if necessary. You can use the dial peer tag range 2500 to 2999 out-of-band to define your own dial peers.
    Check out the below link for more information
    http://www.cisco.com/en/US/docs/net_mgmt/cisco_network_assistant/version5_0/release/notes/OL12210a.html
    Hope to Help !!
    Ganesh.H
    Remember to rate the helpful post

  • Java.util.NoSuchElementException when migrating from 10.1.3 to 11g Preview4

    I have migrated my project from Jdeveloper 10.1.3 to JDeveloper with OC4j11g Preview 4.
    I see below exception displaying 5 times.... Can some one help me in getting this project running on 11g....
    Jul 17, 2008 2:01:13 PM oracle.javatools.logging.LogUtils log
    WARNING: Exception in task oracle.jdevimpl.webapp.jsp.taglibraries.trinidad.addin.TrinidadModelListener$UpdateTrinidadNamespaceTask@157342 on model oracle.jdevimpl.webapp.jsp.JspXmlModel@42017c; txn name=Updating html, head, and body, to be under the Trinidad namespace
    java.util.NoSuchElementException
         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:844)
         at java.util.HashMap$KeyIterator.next(HashMap.java:877)
         at oracle.jdevimpl.webapp.jsp.taglibraries.trinidad.addin.TrinidadModelListener$UpdateTrinidadNamespaceTask.performTask(TrinidadModelListener.java:278)
         at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:195)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
         at oracle.jdevimpl.webapp.jsp.taglibraries.trinidad.addin.TrinidadModelListener.modelChanged(TrinidadModelListener.java:109)
         at oracle.bali.xml.model.XmlModel._deliverModelChangeEvents(XmlModel.java:3250)
         at oracle.bali.xml.model.XmlModel._deliverChangeEvents(XmlModel.java:3417)
         at oracle.bali.xml.model.XmlModel.__commitTransaction(XmlModel.java:2940)
         at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1773)
         at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2882)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:562)
         at oracle.bali.xml.model.task.NonValidatingTransactionTask.__commitWrapperTransaction(NonValidatingTransactionTask.java:32)
         at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:208)
         at oracle.adfdt.view.common.migration.MigrationManager$MigrationCallable.call(MigrationManager.java:618)
         at oracle.ide.model.Node.callUnderWriteLock(Node.java:1555)
         at oracle.adfdt.view.common.migration.MigrationManager$MigrationRunnable.run(MigrationManager.java:550)
         at oracle.adfdt.view.common.migration.MigrationManager.migrate(MigrationManager.java:105)
         at oracle.adfdtinternal.view.common.migration.wizards.MigrationHelper.migrate(MigrationHelper.java:30)
         at oracle.ide.migration.NodeMigrator.callHelperMigrate(NodeMigrator.java:474)
         at oracle.ide.migration.NodeMigrator.callHelpersMigrate(NodeMigrator.java:464)
         at oracle.ide.model.ProjectMigrator.super_callHelpersMigrate(ProjectMigrator.java:38)
         at oracle.ide.model.ProjectMigrator.mav$super_callHelpersMigrate(ProjectMigrator.java:26)
         at oracle.ide.model.ProjectMigrator$1.run(ProjectMigrator.java:54)
         at oracle.javatools.data.Structure.applyBatchChanges(Structure.java:164)
         at oracle.ide.model.HashStructureNode$1.run(HashStructureNode.java:326)
         at oracle.javatools.data.Structure.applyBatchChanges(Structure.java:164)
         at oracle.ide.model.HashStructureNode.applyBatchChanges(HashStructureNode.java:322)
         at oracle.ide.model.ProjectMigrator.callHelpersMigrate(ProjectMigrator.java:50)
         at oracle.ide.migration.NodeMigrator.doMigration(NodeMigrator.java:447)
         at oracle.ide.migration.NodeMigrator$1.run(NodeMigrator.java:400)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:615)
         at java.lang.Thread.run(Thread.java:595)
    I have made needed manual changes and made sure all the libraries are pointing to correct jar files.
    When I perform rebuild I have warning
    class javax.faces.el.ValueBinding has been deprecated
    When I try to run the jspx browser displays error message
    Missing class: oracle.adfinternal.view.faces.renderkit.RenderKitBase
    Embedded OC4J server has message
    Jul 17, 2008 3:12:30 PM com.evermind.server.http.HttpMessages logApplicationStartupFailedMessage
    SEVERE: The application named, current-workspace-app, could not start due to an error. oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: oracle.adfinternal.view.faces.renderkit.RenderKitBase

    Yes, I did follow all the steps mentioned at http://www.oracle.com/technology/products/jdev/tips/muench/1013srdemo/index.html
    What surprises me is even though it throws exception(reason i dont know) I see the migration completed message at the end.
    Most of the files I checked are migrated...
    When I try launch jspx by starting the embedded OC4J there is still some reference to ADF instead of TRINIDAD... How do I correct it?
    Thanks,
    -Josephine

  • Java.util.NoSuchElementException

    Hi friends,
    I am retrieving data from SAP to mysql table..
    While doing that i am getting the error of java.util.NoSuchElementException.
    Exact code which error is getting is
    count++;
                        for(com.sap.mw.jco.JCO.FieldIterator fI = tableList.fields(); fI.hasMoreElements(); mb.append("\r\n"))
                            com.sap.mw.jco.JCO.Field tabField = fI.nextField();
                            data = tabField.getString();
                            error = data;
                            StringTokenizer st = new StringTokenizer(data, "|");
                            mb.append("|");
                            for(int i = 0; i < rec_count; i++)
                                try
                                    String tempdata = st.nextToken();
                                    mb.append(tempdata + "\t|");
                                    tempdata = mysap.replace(tempdata, "\\", "\\\\");
                                    sapdata[i] = mysap.replace(tempdata, "'", "\\'");
                                   // System.out.println("Java memory in use = " + ((Runtime.getRuntime().totalMemory()) - (Runtime.getRuntime().freeMemory())));
                                catch(Exception ex1)
                                  //  sb.append("<BR>" + count + "[" + i + "]" + ex1.toString());
                                    System.out.println("Error insertData module:" +"<br>");
                                    System.out.println("<BR>" + count + "[" + i + "]" + ex1.toString());
                        }some part of error is
    Error insertData module:<br>
    <BR>488[10]java.util.NoSuchElementException
    Error insertData module:<br>
    <BR>563[10]java.util.NoSuchElementException
    Error insertData module:<br>
    <BR>700[10]java.util.NoSuchElementException
    Error insertData module:<br>
    <BR>1080[10]java.util.NoSuchElementException
    Error insertData module:<br>
    <BR>1081[10]java.util.NoSuchElementException
    Error insertData module:<br>
    <BR>1110[10]java.util.NoSuchElementException
    Error insertData module:<br>
    <BR>1112[10]java.util.NoSuchElementException
    Error insertData module:<br>
    etc...
    Please help me sort out this error.I am no familier with SAP type things
    thanks in advance

    Hi paul.miner
    Thank a lot for your reply..the problem is there only.
    In SAP table some rows has 10 field values.some rows has 9 field values.So these 9 values row is creating error.Any idea to handle this situation.
    sample output
    1.data0070000205|20050114|ZDR | 12.50 |USD |SG20|10|S01|SG20|0000045934|
    Error insertData module:<br>
    <BR>3877[10]java.util.NoSuchElementException
    2.data0005000557|20050114|ZOR | 500.00 |USD |SG20|20|T01|SG21|0000045941|3000026932
    In the above first record has no last filed
    second record has one more filed.
    so fist one is creating error.Any idea to handle this....
    If i use while (st.hasMoreTokens()) instead of
    for(int i = 0; i < rec_count; i++)
    tempdata = st.nextToken();
    some other part of the program is affecting
    once again thanks

Maybe you are looking for