-251723760 CIP Error when trying to read and array of sgl from and AB ControlLogix PLC

I have the NI Ethernet/IP module to communicate with an Allen-Bradley ControlLogix PLC. I am doing both reading (only 13 values) and writing (over 200 values). I am using the basic ethernetip tag write.vi to  do the writing. These program are in an executable running on a 'run-time' machine. I have the list of tagnames I am reading and writing to and have confirmed with the person who created the AB load that the array I am writing to on the AB side has more than enough addresses (it is an array of length 300). However I am only able to write 118 values to it. When trying to write 119 or more I get the error:
-251723760 CIP error - extended status may be available
I have confirmed with NI OPC Servers with an OPC quick client (running on my development PC) connected to the AB ControlLogix that the values I am writing to up to element 118 are getting through correctly, i.e. if I write 123.456 to sample_array[13] then I in fact see this same value at that location in the OPC quick client.
To be honest I am a little disappointed that the error message is so cryptic and gives no hints as to what troubleshooting paths are possible. I have tried various combinations of group/tag names with and w/o offsets, e.g. [3], but nothing has led me any further.

Thanks for the quick response - here are screenshots of before (write OK - writing 118 values - all except last are 0) and after (error - when trying to write an array of length 119) as well as the simple test program I as using.
Attachments:
NI Ethernet_IP 3-20-2013 Troubleshooting.zip ‏90 KB

Similar Messages

  • On Windows Platform, encounters error when trying to open an Indesign document created from MAC

    Hi all,
    On Windows Platform, encounters error when trying to open an Indesign document in INDD format created from Mac. Error received "Either the file does not exist, you do not have permission, or the file may be in use by other application". I am currently using Adobe Indesign CC 9.2 Trial version.
    Kindly advise how can i open this document on windows platform and allows me to edit the document.
    Thanks!
    With Rgds,
    Fiona Choy

    Normally there is no problem to open any INDD opening on Windows, when created on the Mac.
    But Mac user are often not aware on the naming limitations. A file name must not contain /, \, |, :
    It should not contain any extended character, it is not a primary problem but will be, if something links to that file, so avoid also: ÄÖÜäöüß+&
    You can use all other non A-Z a-z, 0-9 and - and  _
    I personally would also recommend to avoid spaces.
    This is valid for the INDD file itself but also for all linked content.

  • Why do I get the 'PowerPC code' error when trying to launch an Intel-based app from a CD?

    When trying to launch a Flash-based app from a CD on my Mac Book Pro, I get the "PowerPC apps are no longer supported" error. Yet the app is not built with PowerPC code.
    This also happened with Microsoft Office programs soon after I upgraded to OSX Lion, but someone was able to solve that for me.

    It's just a free disc from a photo magazine, but the app runs fine on a Mac Pro running 10.7.3. Could it be hardware related?
    I have actually asked this on behalf of a reader (I work for the company that makes the magazine) who is experiencing this problem, I just can't find any reason why the error would display in these circumstances. I apologise if this is against the community's usual practise - I just want to sort this guy out!
    The app on the disc is compiled using MDM Zinc, but like I said it runs a-OK on Lion everywhere else.
    Any help would be gratefully received and appreciated!

  • Two issues: Runtime error when trying to Reduce Size or Optimize File. And navigation in some files is VERY SLOW.

    I haven't figured out if there is a pattern here, as of yet.
    This happens with larger files (1500 pages and so forth) and not all the time. 
    - Bookmarks may take up to 4-5 seconds to go to its page.  Scrolling up and down pages is just as painfully slow.
    Even when I break the big file into smaller sections, the navigation remains slower than molasses.  
    - When I try to Optimize certain files, or Reduce their size, I get a Runtime Error. I have disable the Updater (I read this could be an issue) but that made no difference.  I have also broken the larger files into 2 or 3 pieces.  One of the pieces may work out well (I can optimize and so forth) but the other(s) may not.
    Thank you.
    PS: I use Windows XP Pro, Service Pack 3.  I have requested an upgrade (several times) but my wishes are not their command, I am afraid.

    HI ,Thanks for your response. That was an error in the code I posted, but wasn't the error I was trying to solve. Once correcting that error you pointed out I am getting the problems not when I send a plain text email like:
              if(!sendmultipart)
                 // send a plain text message
                 msg.setContent(msgText, "text/plain");
              }but when I try and send multipart messages doing this:
              else
                 // send a multipart message// create and fill the first message part
                       MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(msgText);
          // create and fill the second message part
         MimeBodyPart mbp3 = new MimeBodyPart();
         // attach the file to the message
         FileDataSource fds = new FileDataSource(soundfile);
         mbp3.setDataHandler(new DataHandler(fds));
         mbp3.setFileName(fds.getName());
                       Multipart mp = new MimeMultipart();
         //adds the text to the message
          mp.addBodyPart(mbp1);
          //adds the attachment to the message
          mp.addBodyPart(mbp3);
           // adds the content to the message
          msg.setContent(mp);
         }So i get the error when executing the else branch.
    Can you spot any errors here? I get the same error as mentioned earlier.
    Thanks a lot,
    Jess

  • License error when trying to reading purchased content on new computer

    I have changed computers from the original purchase and license of a number of commercial text books. I have copied the "old" licensed content to a new computer but receive an error when I try to open the "old" content on the new computer. The error message indicates that I'm supposed to contact the original vendor and download the material again. Isn't there another/better way?

    In addition to the manual method you are trying, there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available (check for the one's that have been upgraded to be Vista compatible). You can also read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    iRepo Windows Only
    iPodRip Mac & Windows
    YamiPod Mac and Windows Versions
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows Versions

  • Facing error when trying to read message from MQ through B2B

    Hi,
    I'm trying to read the messages from MQ through B2B.
    I have created a listening channel in B2B console.
    Also place the required jar files in the Domain_Dir/lib folder.For your reference the jar files are given below,
    a. com.ibm.mqjms.jar
    b. dhbcore.jar
    c. com.ibm.mq.jar
    d. com.ibm.mq.jmqi.jar
    e. mqcontext.jar
    g. com.ibm.mq.commonservices.jar
    h. com.ibm.mq.headers.jar
    i. com.ibm.mq.pcf.jar
    But i'm encounter the below error while reading the MQ. Pls let me know if i'm missing something.
    ####<Oct 9, 2014 4:00:03 PM IST> <Error> <oracle.soa.b2b.engine> <ULCAKESBTD1P> <b2b-server> <Workmanager: , Version: 0, Scheduled=false, Started=false, Wait time: 0 ms
    > <<anonymous>> <> <0000KZoSn1y5YbWzLwyGOA1KDaCI000002> <1412850603388> <BEA-000000> <oracle.tip.b2b.transport.TransportException: [JMS_CONN_INVALID] JMS connection error.
      at oracle.tip.b2b.transport.TransportException.create(TransportException.java:93)
      at oracle.tip.b2b.transport.basic.jms.JMSMonitor.init(JMSMonitor.java:199)
      at oracle.tip.b2b.transport.basic.jms.JMSMonitor.<init>(JMSMonitor.java:181)
      at oracle.tip.b2b.transport.basic.JMSReceiver.init(JMSReceiver.java:266)
      at oracle.tip.b2b.transport.b2b.B2BTransport.init(B2BTransport.java:577)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:240)
      at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
      at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
      at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Caused by: oracle.tip.b2b.transport.TransportException: [JMS_CONN_FAC_NOT_FOUND] JMS_CONN_FAC_NOT_FOUND
      at oracle.tip.b2b.transport.TransportException.create(TransportException.java:78)
      at oracle.tip.b2b.transport.basic.jms.JMSConnectionFactoryFactory.getConnectionFactory(JMSConnectionFactoryFactory.java:208)
      at oracle.tip.b2b.transport.basic.jms.JMSConnectionFactoryFactory.getQueueConnectionFactory(JMSConnectionFactoryFactory.java:85)
      at oracle.tip.b2b.transport.basic.jms.JMSConnection.<init>(JMSConnection.java:136)
      at oracle.tip.b2b.transport.basic.jms.JMSMonitor.init(JMSMonitor.java:195)
      ... 7 more
    Caused by: java.lang.ClassNotFoundException: QMUL.PDT
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:190)
      at oracle.tip.b2b.transport.basic.jms.JMSConnectionFactoryFactory.getConnectionFactory(JMSConnectionFactoryFactory.java:162)
      ... 10 more
    oracle.tip.b2b.transport.TransportException: [JMS_CONN_INVALID] JMS connection error.
      at oracle.tip.b2b.transport.TransportException.create(TransportException.java:93)
      at oracle.tip.b2b.transport.basic.jms.JMSMonitor.init(JMSMonitor.java:199)
      at oracle.tip.b2b.transport.basic.jms.JMSMonitor.<init>(JMSMonitor.java:181)
      at oracle.tip.b2b.transport.basic.JMSReceiver.init(JMSReceiver.java:266)
      at oracle.tip.b2b.transport.b2b.B2BTransport.init(B2BTransport.java:577)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:240)
      at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
      at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
      at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Caused By: oracle.tip.b2b.transport.TransportException: [JMS_CONN_FAC_NOT_FOUND] JMS_CONN_FAC_NOT_FOUND
      at oracle.tip.b2b.transport.TransportException.create(TransportException.java:78)
      at oracle.tip.b2b.transport.basic.jms.JMSConnectionFactoryFactory.getConnectionFactory(JMSConnectionFactoryFactory.java:208)
      at oracle.tip.b2b.transport.basic.jms.JMSConnectionFactoryFactory.getQueueConnectionFactory(JMSConnectionFactoryFactory.java:85)
      at oracle.tip.b2b.transport.basic.jms.JMSConnection.<init>(JMSConnection.java:136)
      at oracle.tip.b2b.transport.basic.jms.JMSMonitor.init(JMSMonitor.java:195)
      at oracle.tip.b2b.transport.basic.jms.JMSMonitor.<init>(JMSMonitor.java:181)
      at oracle.tip.b2b.transport.basic.JMSReceiver.init(JMSReceiver.java:266)
      at oracle.tip.b2b.transport.b2b.B2BTransport.init(B2BTransport.java:577)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:240)
      at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
      at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
      at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Caused By: java.lang.ClassNotFoundException: QMUL.PDT
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:190)
      at oracle.tip.b2b.transport.basic.jms.JMSConnectionFactoryFactory.getConnectionFactory(JMSConnectionFactoryFactory.java:162)
      at oracle.tip.b2b.transport.basic.jms.JMSConnectionFactoryFactory.getQueueConnectionFactory(JMSConnectionFactoryFactory.java:85)
      at oracle.tip.b2b.transport.basic.jms.JMSConnection.<init>(JMSConnection.java:136)
      at oracle.tip.b2b.transport.basic.jms.JMSMonitor.init(JMSMonitor.java:195)
      at oracle.tip.b2b.transport.basic.jms.JMSMonitor.<init>(JMSMonitor.java:181)
      at oracle.tip.b2b.transport.basic.JMSReceiver.init(JMSReceiver.java:266)
      at oracle.tip.b2b.transport.b2b.B2BTransport.init(B2BTransport.java:577)
      at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:240)
      at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
      at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)
      at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    >
    ####<Oct 9, 2014 4:00:20 PM IST> <Warning> <oracle.adfinternal.view.faces.partition.FeatureUtils> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000KZoSn1y5YbWzLwyGOA1KDaCI000002> <1412850620868> <ADF_FACES-30130> <Ignoring feature-dependency on feature "AdfDvtCommon".  No such feature exists.>
    ####<Oct 9, 2014 4:00:21 PM IST> <Warning> <org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000KZoSn1y5YbWzLwyGOA1KDaCI000002> <1412850621197> <BEA-000000> <Configurator services already initialized.>
    ####<Oct 9, 2014 4:00:30 PM IST> <Notice> <Log Management> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1412850630361> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    ####<Oct 9, 2014 4:00:30 PM IST> <Notice> <WebLogicServer> <ULCAKESBTD1P> <b2b-server> <main> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac6> <1412850630614> <BEA-000365> <Server state changed to ADMIN>
    ####<Oct 9, 2014 4:00:30 PM IST> <Notice> <WebLogicServer> <ULCAKESBTD1P> <b2b-server> <main> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac6> <1412850630698> <BEA-000365> <Server state changed to RESUMING>
    ####<Oct 9, 2014 4:00:31 PM IST> <Notice> <Server> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac8> <1412850631051> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:214:4fff:feeb:478d:7003 for protocols iiop, t3, ldap, snmp, http.>
    ####<Oct 9, 2014 4:00:31 PM IST> <Notice> <Server> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac8> <1412850631051> <BEA-002613> <Channel "Default[1]" is now listening on 10.236.77.12:7003 for protocols iiop, t3, ldap, snmp, http.>
    ####<Oct 9, 2014 4:00:31 PM IST> <Notice> <Server> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac8> <1412850631052> <BEA-002613> <Channel "Default[3]" is now listening on fe80:0:0:0:214:4fff:feeb:478c:7003 for protocols iiop, t3, ldap, snmp, http.>
    ####<Oct 9, 2014 4:00:31 PM IST> <Notice> <Server> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac8> <1412850631053> <BEA-002613> <Channel "Default[4]" is now listening on 127.0.0.1:7003 for protocols iiop, t3, ldap, snmp, http.>
    ####<Oct 9, 2014 4:00:31 PM IST> <Notice> <Server> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac8> <1412850631053> <BEA-002613> <Channel "Default" is now listening on 192.168.107.97:7003 for protocols iiop, t3, ldap, snmp, http.>
    ####<Oct 9, 2014 4:00:31 PM IST> <Notice> <Server> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac8> <1412850631054> <BEA-002613> <Channel "Default[5]" is now listening on 0:0:0:0:0:0:0:1:7003 for protocols iiop, t3, ldap, snmp, http.>
    ####<Oct 9, 2014 4:00:31 PM IST> <Notice> <WebLogicServer> <ULCAKESBTD1P> <b2b-server> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac8> <1412850631055> <BEA-000332> <Started WebLogic Managed Server "b2b-server" for domain "b2b-domain" running in Development Mode>
    ####<Oct 9, 2014 4:00:32 PM IST> <Notice> <WebLogicServer> <ULCAKESBTD1P> <b2b-server> <main> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac6> <1412850632557> <BEA-000365> <Server state changed to RUNNING>
    ####<Oct 9, 2014 4:00:32 PM IST> <Notice> <WebLogicServer> <ULCAKESBTD1P> <b2b-server> <main> <<WLS Kernel>> <> <308025e28c55d051:50252314:148f4730231:-8000-0000000000007ac6> <1412850632559> <BEA-000360> <Server started in RUNNING mode>
    ####<Oct 9, 2014 4:00:38 PM IST> <Warning> <oracle.soa.services.notification> <ULCAKESBTD1P> <b2b-server> <TimerFactory> <<anonymous>> <> <0000KZoSn1y5YbWzLwyGOA1KDaCI000002> <1412850638612> <BEA-000000> <<.> Notification via email, voice, SMS or IM will not be sent. If you would like to enable them, please configure corresponding sdpmessaging driver. Then modify the accounts and set NotificationMode attribute to either NONE, EMAIL or ALL in workflow-notification-config.xml>
    ####<Oct 9, 2014 4:02:41 PM IST> <Warning> <Socket> <ULCAKESBTD1P> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <a2e657fa9e6b5d11:789eb8cc:148f4403946:-8000-00000000000029c4> <1412850761335> <BEA-000449> <Closing socket as no data read from it on 192.168.96.66:29,963 during the configured idle timeout of 5 secs>
    ####<Oct 9, 2014 4:02:51 PM IST> <Warning> <Socket> <ULCAKESBTD1P> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <a2e657fa9e6b5d11:789eb8cc:148f4403946:-8000-00000000000029d2> <1412850771337> <BEA-000449> <Closing socket as no data read from it on 192.168.96.66:29,970 during the configured idle timeout of 5 secs>
    ####<Oct 9, 2014 4:03:16 PM IST> <Warning> <Socket> <ULCAKESBTD1P> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <a2e657fa9e6b5d11:789eb8cc:148f4403946:-8000-00000000000029f4> <1412850796335> <BEA-000449> <Closing socket as no data read from it on 192.168.96.66:29,984 during the configured idle timeout of 5 secs>
    Thanks,
    Ravindra.

    Hi Ravindra,
    Which mode of connectivity are you trying (credential based / .bindings based)
    MQ connectivity  support is provided via JMS offering of Oracle B2B. This blog post will provide you the steps for the same - https://blogs.oracle.com/oracleb2bgurus/entry/b2b_communication_using_ibm_mq
    Please ensure to provide the proper values for connection factory and other details in JMS configuration in B2B
    HTH

  • Error when trying to read integer with JCreator

    *********CODE:
    import corejava.*;
    class Reverse {
         public static void main(String[] args) {
              int number;
              number = Console.readint("Please enter an integer: ");
    ***********ERROR:
    --------------------Configuration: TEST - j2sdk1.4.2_15 <Default> - <Default>--------------------
    C:\Documents and Settings\mik\My Documents\JCreator Pro\MyProjects\a\TEST\src\TEST.java:6: cannot access corejava.Console
    bad class file: C:\j2sdk1.4.2_15\jre\lib\ext\corejava.jar(corejava/Console.class)
    class file has wrong version 49.0, should be 48.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    number = Console.readint("Please enter an integer: ");
    ^
    1 error
    Process completed.
    Why is this happening ?
    i just cant seem to read an integer from the user no matter what i try :-(
    Edited by: miki85 on Oct 1, 2007 5:37 AM

    Here's one I used to use back in the 1.5 days... I take no credit for the code though.
    package krc.io;
    * Keyboard - static methods for basic line-buffered keyboard input.
    * Author: J. M. Morris (jmm at dcs gla ac uk).
    * Version 1.1 J. M. Morris October 28th 1998.
    * Version 1.2 K. R. Corlett January 27th 2007.
    * Example of use
    * The statements:
    *     i=Keyboard.readInt();
    *     b=Keyboard.readBoolean();
    *     c=Keyboard.readChar();
    *     t=Keyboard.readToken();
    *     s=Keyboard.readString();
    *     System.out.println("> i='"+i+"', b='"+b+"', c='"+c+"', t='"+t+"', and s='"+s+"'");
    * Given the Keyboard input:
    *     "      23    TRue X   Java123   the  rest   "
    * Produce the output:
    *     > i=23, b=true, c='X', t="Java123", and s="  the  rest   "
    * See: the unit tests in the main method for lots more usage examples.
    import java.io.*;
    import java.util.List;
    import java.util.ArrayList;
    public abstract class Keyboard {
        static BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
        static String bfr = "";
        static int bfrlen = 0;
        static int p = 1; // bfr[p..] contains next input
        // BASIC METHODS - READ THE NEXT WORD AND CONVERT IT TO DESIRED TYPE
        // Consume and return the remainder of current line (end-of-line discarded).
        public static String readString() {
            try {
                if( bfr!=null && p>bfrlen ) readLine();
                eofCheck();
                int t=p; p=bfrlen+1;
                return(bfr.substring(t));
            } catch (IOException ex) {
                System.err.println(ex);
                return "";
        public static String readString(String prompt) {
            print(prompt + " (String) : ");
            return readString();
        // Consume and return a character (which may be an end-of-line).
        public static char readChar() {
            try {
                if( bfr!=null && p>bfrlen ) readLine();
                eofCheck();
                char c = (p==bfrlen ? '\n' : bfr.charAt(p-1));
                p++;
                return(c);
            } catch (StringIndexOutOfBoundsException ex) {
                //just silently swallow the exception !!!
                return((char)0);
            } catch (IOException ex) {
                System.err.println(ex);
                return((char)0);
        public static char readChar(String prompt) {
            print(prompt +" (char) : ");
            return readChar();
        // Consume and return a boolean. Trailing delimiter consumed.
        // Any string other than "true" (case insensitive) is false.
        public static boolean readBoolean() {
            try {
                return new Boolean(getToken()).booleanValue();
            } catch (Exception ex) {
                System.err.println(ex);
                return false;
        public static boolean readBoolean(String prompt) {
            print(prompt + " (boolean) : ");
            return readBoolean();
        // Consume and return an integer. Trailing delimiter consumed.
        public static int readInt() {
            try {
                return Integer.parseInt(getToken());
            } catch (Exception ex) {
                System.err.println(ex);
                return 0;
        public static int readInt(String prompt) {
            print(prompt + " (int) : ");
            return readInt();
        // Consume and return a double. Trailing delimiter consumed.
        public static double readDouble() {
            try {
                return new Double(getToken()).doubleValue();
            } catch (Exception ex) {
                System.err.println(ex);
                return 0.0;
        public static double readDouble(String prompt) {
            print(prompt + " (double) : ");
            return readDouble();
        // ADVANCED PUBLIC METHODS
        // Consume and return the next token (word) from input.
        // The trailing delimiter is also consumed. A token is a maximal sequence
        // of non-whitespace characters.
        public static String readToken() {
            try {
                return getToken();
            } catch (IOException ex) {
                System.err.println(ex);
                return "";
        // The next available character if any (which may be an end-of-line). The
        // character is not consumed. If bfr is empty return null character.
        public static char peekChar() {
            if (bfr==null || p>bfrlen) return('\000');
            else if (p==bfrlen) return('\n');
            else return bfr.charAt(p);
        public static int available() {
        // Number of characters available on this line (including end-of-line,
        // which counts as one character, ie '\n')
            if (bfr==null) return 0;
            else return (bfrlen+1-p);
        public static boolean hasMoreTokens() {
        // Are there more tokens on the current line?
            if(bfr==null) return false;
            int q;
            for(q=p; q<bfrlen && isWhitespace(q); q++);
            return(q<bfrlen);
        public static void skipLine() {
        // Skip any remaining input on this line.
            if(bfr!=null) p = bfrlen+1;
        public static void skipWhitespace() {
        // Consumes whitespaces until a non-whitespace character is entered (which
        // is not consumed).
            try {
                skipWhitespaces();
            } catch (IOException ex) {
                System.err.println(ex);
        public static boolean eof() { // NOT More characters?
        // This method is intended for use when stdin has been redirected from file
            if(available()>0) return false;
            try {
                readLine();
            } catch (IOException ex) {
                System.err.println(ex);
            return (bfr == null);
        public static String pause() {
            print("Press return to continue.");
            return(Keyboard.readString());
        public static boolean isWhitespace(int offset) {
            return (Character.isWhitespace(bfr.charAt(offset)));
        // PRIVATE HELPER METHODS
        private static void readLine() throws IOException {
            p = 0;
            bfrlen = 0;
            bfr = null;
            bfr = stdin.readLine();
            bfrlen = bfr.length();
        private static String getToken() throws IOException {
        // Consumes and returns the next word from input.
            skipWhitespaces();
            int t = p++;
            while( p<bfrlen && !(isWhitespace(p)) ) p++;
            return(bfr.substring(t,p++));
        private static void skipWhitespaces() throws IOException {
        // Consumes input until a non-whitespace character is entered (which
        // is not consumed).
            while ( bfr!=null && (p>=bfrlen||isWhitespace(p)) ) {
                if (p>=bfrlen) {
                    readLine();
                } else {
                    p++;
        private static void eofCheck() throws IOException {
            if(bfr==null) throw new IOException("Unexpected end of file.");
        private static void print(String msg) {
            System.out.print(msg);
        private static void println(String msg) {
            System.out.println(msg);
        // test harness
        public static void main(String[] args) {
            int i;
            double d;
            char c;
            boolean b;
            String s, t, u;
            println("TEST KEYBOARD VERSION 1.1");
            println("-------------------------");
            print("\nEnter a sequence of integers, terminated by -9: ");
            do {
                i = Keyboard.readInt();
                println("> i=^"+i+"^");
            } while(i!=-9);
            print("\nEnter integer character double boolean string: ");
            i = Keyboard.readInt(); println(""+i);
            c = Keyboard.readChar(); println(""+c);
            d = Keyboard.readDouble(); println(""+d);
            b = Keyboard.readBoolean(); println(""+b);
            s = Keyboard.readString(); println(s);
            pause();
            // Test for the empty string
            print("\nTest no input: ");
            s = pause();
            println("> expect s=^^; s=^"+s+"^");
            // Test readInt eats trailing spaces
            println("\nTest readInt eats trailing spaces: Copy & paste the below line:");
            println("3 ");
            i = Keyboard.readInt();
            s = Keyboard.readString();
            println("> expect s=^^; s=^"+s+"^");
            // Test skipWhitespace
            println("\nTest skipWhitespace: Copy & paste the below line");
            println("      123");
            Keyboard.skipWhitespace();
            c = Keyboard.peekChar();
            println("The first non-whitespace you entered was: "+c);
            println("There should be 3 characters available is: "+Keyboard.available());
            Keyboard.skipLine();
            c = Keyboard.peekChar();
            if (c == '\000') println("Nothing available.");
            else println("Available c=^"+c+"^");
            // Test read methods
            println("\nTest read methods: Copy & paste the below line");
            println("      23    TRue X   Java123   the  rest   ");
            i = Keyboard.readInt(); println("> i=^"+i+"^");
            b = Keyboard.readBoolean();  println("> b=^"+b+"^");
            c = Keyboard.readChar(); println("> c=^"+c+"^");
            t = Keyboard.readToken();  println("> t=^"+t+"^");
            s = Keyboard.readString(); println("> s=^"+s+"^");
            // Test hasMoreTokens()
            println("\nTest hasMoreTokens: Enter several words on a line : ");
            List<String> list = new ArrayList<String>(10);
            do {
                list.add(Keyboard.readToken());
            } while(Keyboard.hasMoreTokens());
            Keyboard.skipLine();
            for (String item : list) {
                println("> " + item);
            // Test available()
            println("Test available: Enter an arbitrary line of text");
            s = "";
            c = Keyboard.readChar(); s += c;
            while(Keyboard.available()>0) {
                c = Keyboard.readChar(); s += c;
            println(s);
    }Edited by: corlettk on Oct 1, 2007 1:12 PM

  • VISA error when trying to read hex data over serial port

    Hi - Sorry about this. I am posting this question as a new thread as I am still having serious problems and may be able to shed more light now.
    Basically I am trying to read data formatted as a string of comma separated hexadecimal words over the serial link.
    The data is formatted thus:  <first word>,  <second word>, <third word> etc.... <last word, <CR>  where <CR> is a carriage return.
    Where each word represents a number, e.g.  AB01 is 43777 in decimal.
    Now the VI is stalling at VISA close (I attach VI again to this message), the string data is read across by the VI but it will not then close the link unless I remove to USB cable from the comms port.  When I run the device in hyperterminal I do not have this problem.  The data sting comes back fine (when I send out the command message), the carriage return is recognized as the end of the data message and the comma channel is cleared and ready to accept the next command message.
    LabVIEW is then not happy.  I don't know why but it could be that the amount of data the demo device I have is sending back is more than the NI-VISA can cope with.  Am I correct in thinking 13kbytes is the maximum.  If this were the case This would account for my problem.  It seems that the number of bytes read by the VI is consistently 12999.
    Hope someone can help or this information will at least be useful to somebody so they don't have this problem.
    Many Thanks
    Ashley.

    Yes there is. If your data contains data from 0x00 to 0xFF then you have to disable the 'termination char' in the VISA configure function. The boolean input at the top. Set it to false. Otherwise your transmission will stop at 0x0A by default. You can also tell what the termination character should be, if you want.
    btw. Still no VI attached. 
    Sorry replied to the wrong message. No I did not where are both replying at the same time
    Message Edited by K C on 12-08-2005 12:44 PM
    Message Edited by K C on 12-08-2005 12:46 PM

  • ORA-12154 error when trying to connect to Oracle 11g DB from Excel 2010

    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?

    user10832104 wrote:
    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?
    If you are able to connect with sqlplus, then this really becomes a question of how to define a data connection in Excel.
    But after quickly googling ..
    In excel ...
    "Data" tab
    "from other sources"
    "from data connection wizard"
    select ODBC DSN
    On data link properties, select the "connection" tab
    select "Use Data Source Name" and hit the drop-down
    select a dsn that you had previously set up to point to the oracle database.
    Anyway, that looks like how it is supposed to be done.  I'm getting a dll initialization error.  Probably due to the fact I have both 32-bit and 64-bit oracle clients, and windows never handles that very gracefully.  But then Windows never graceffully handles anything that isn't MicroSoft.   To paraphrase Forest Gump, "My momma always said Windows was like a box of chocolates.  You never know what you're going to get."
    In any event, the error you report means it was actually tying to look it up in tnsnames, but what you supplied wasn't found there.  That can also be a big issue when dealing with MS products, because they don't use the same terminology, so lead people into entering something other than what Oracle expects.  Are you referencing an ODBC DSN?  If so, have you tested that apart from Excel?

  • Error when trying to access a secured web service from Forms 10g 10.1.2.3

    Hello,
    I'm trying to access a secured web service from Forms10g 10.1.2.3 but i'm getting the next error when pressing the button the first time:
    java.rmi.RemoteException: ; nested exception is: HTTP transport error: javax.xml.soap.SOAPException:
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 UnauthorizeWhen i press the button a second time i got this error:
    javax.xml.rpc.soap.SOAPFaultException: The SOAP request is invalid. The required node 'Envelope' is missingThis is the code i have in my button:
    DECLARE
    jo ora_java.jobject;
    pdfObject ora_java.jobject;
    pdf     varchar2(900);
    rv varchar2(100);
    ex ora_java.jobject;
    BEGIN
    JO := SEARCHSOAPCLIENT.new;
    SEARCHSOAPCLIENT.setUsername(JO,'weblogic');
    SEARCHSOAPCLIENT.setPassword(JO,'welcome1');
    pdfObject := SEARCHSOAPCLIENT.quicksearch(JO,'1234',NULL);
    pdf := SEARCHSOAPCLIENT.tostring(pdfObject);
    message(pdf);
    message(' ');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    :error := Exception_.toString(ex);
    END;When i run it from JDeveloper it works, this is a portion of java code the proxy web service has:
    import oracle.webservices.transport.ClientTransport;
    import oracle.webservices.OracleStub;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
    public class SearchSoapClient {
        private webservicesproxywebcontent.proxy.SearchSoap _port;
        public SearchSoapClient() throws Exception {
            ServiceFactory factory = ServiceFactory.newInstance();
            _port = ((webservicesproxywebcontent.proxy.Search)factory.loadService(webservicesproxywebcontent.proxy.Search.class)).getSearchSoap();
            this.setUsername("weblogic");
            this.setPassword("welcome1");
            System.out.println("callling from _port "+ _port.quickSearch("1234234", null));
         * @param args
        public static void main(String[] args) {
            try {
                webservicesproxywebcontent.proxy.SearchSoapClient myPort = new webservicesproxywebcontent.proxy.SearchSoapClient();
                System.out.println("calling " + myPort.getEndpoint());
            } catch (Exception ex) {
                ex.printStackTrace();
         * delegate all operations to the underlying implementation class.
        public QuickSearchResult quickSearch(String queryText, IdcPropertyList extraProps) throws java.rmi.RemoteException {
            return _port.quickSearch(queryText, extraProps);
        }Also the secured web service was generated from Webcenter Content 11.1.1.6 that is why it's a secured web service.
    Kind Regards
    Carlos

    Without going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.

  • '.class' expected Error when trying to pass an Array

    In the below method I am trying to return an array. The compiler gives me one error: '.class' expected. I am not sure if I am writing the 'return' statement correctly and not really sure of another way to code it. Below is a portion of the code and I can post all of it if need be but the other methods seem to be fine.
    import java.util.Scanner;
    public class LibraryUserAccount
    Scanner input=new Scanner(System.in);
    private final int MAX_BOOKS_ALLOWED;
    private int checkedOutBookCounter;
    private long accountNumber;
    private String socialSecurityNumber, name, address;
    private final long isbnNumbers[];
    //constructor
    public LibraryUserAccount(long accountNumber, int maxBooksAllowed)
         this.accountNumber = 0;
         MAX_BOOKS_ALLOWED = maxBooksAllowed;
    //returns the array isbnNumbers[]
    public long getCheckedOutBooksISBNNumbers()
         return isbnNumbers[];
    The error displayed as:
    LibraryUserAccount.java:111: '.class' expected
         return isbnNumbers[];
    ^
    1 error
    Thanks in advance for the help.

    Rewriting the method as:
    public long[] getCheckedOutBooksISBNNumbers()
    return isbnNumbers;
    ... has fixed that particular compiler error. Thanks jverd. I appreciate the help.
    On a separate note I am having trouble with initializing the array. What I am trying to do is initialize an array of a size equal to a value passed to the class. Example being:
    //variables
    private final int MAX_BOOKS_ALLOWED;
    private long accountNumber;
    private final long[] isbnNumbers;
    //constructor method
    public LibraryUserAccount(long accountNumber, int maxBooksAllowed)
    this.accountNumber = 0;
    MAX_BOOKS_ALLOWED = maxBooksAllowed;
    long[] isbnNumbers = new long[MAX_BOOKS_ALLOWED];
    My goal is to set the size of isbnNumbers[] to the value of MAX_BOOKS_ALLOWED. I've tried a couple of different ways to initialize the array (the latest listed above) but the compiler doesn't like what I have done. Thanks again.

  • Casting error when trying to retrieve an EJB home interface from a servlet

              I am trying to call a method on a session bean from a servlet. I am receiving a Class Cast exception when trying to use the narrow method. I have this code working from an external java client. Is there something specific I have to do?
              

    Hi
              You must check the following rules :
              1) In JAR Files ( of your EJB ) check if there are remote mehods that return
              any class that is already used in servlets
              This classes must be remove from the servlet package ( if you are using WAR
              files ).
              2) Please read the BEA WebLogic Enterprise Java Beans Manual about the class
              loader and related problemas such as ClassCastException and
              ClassNotFoundException.
              Good Luck !
              Steve Schaber <[email protected]> escribió en el mensaje de noticias
              39ee4996$[email protected]..
              >
              > I am trying to call a method on a session bean from a servlet. I am
              receiving a Class Cast exception when trying to use the narrow method. I
              have this code working from an external java client. Is there something
              specific I have to do?
              >
              

  • Known Issue: "Unexpected error" when trying to update an Azure RemoteApp collection from the Azure portal

    Symptoms:  You select an Azure RemoteApp collection in the Azure portal and then click Update. The result is a pop-up like the following:
     Unexpected error
    An expected error occurred. Check the management portal for related information, and then try again. If you continue to experience this problem, please contact support.

    Workaround:
    Install the latest Azure PowerShell module (version 0.8.16 - you will encounter errors if you do not use at least this version)
    Connect to your subscription
    Use a cmdlet to update the collection:
    “Update-AzureRemoteAppCollection -CollectionName <collection> -ImageName <image name>"
    Resolution:  A fix for this has been applied to the Azure site.

  • I get a content encoding error when trying to read my yahoo mail. it says i have an invalid or unsupported form of compression. and to contact the website owners. what is the fix?

    my computer is an asus using linux 900a with mozilla 6.3.11.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": [http://kb.mozillazine.org/Menu_differences Edit > Preferences] > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: [http://kb.mozillazine.org/Menu_differences Edit > Preferences] > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Error when trying to read from a dictionary

    Hi there, I am trying to retrieve a piece of information using the 'get an item from a dictionary' action.  
    I've set up the action to read from a dictionary which stores information just retrieved using the call http web service action, but now I need an item in that dictionary.  I've parsed through the string returned from the http call and noticed that
    the information I want is under the route 'value/modified' which is what I entered, only without the single quotes...
    but my workflow gets suspended and following is the error message I get:
    RequestorId: 0de36620-da97-6e20-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.InvalidOperationException: Looking up a value using a key is not supported on an instance
    of 'Microsoft.Activities.Dynamic.DynamicArray'. at Microsoft.Activities.Dynamic.DynamicItem.TryGetValue(String key, DynamicItem& value) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem obj) at Microsoft.Activities.Dynamic.DynamicValueBuilder.PathSegmentFactory.ObjectPathSegment.Get(DynamicItem
    obj) at Microsoft.Activities.GetDynamicValueProperty`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
    executor, BookmarkManager bookmarkManager, Location resultLocation) Exception from activity GetDynamicValueProperty<String> Sequence Microsoft.SharePoint.WorkflowServices.Activities.AppOnlySequence Then If Project Number Generation Sequence Flowchart
    Sequence New Project.WorkflowXaml_6f5894a5_7f8f_480f_8b7b_6cc37164f328
    I got lost somewhere along the message....but I'm seeing that DynamicValue is not supported??I must be doing something wrong...please let me know what it is...
    the uri I used:
    https://vanguardengineering.sharepoint.com/Lists/getbytitle('Client List')/items?$format=jason&$filter=Title eq [%Current Item:Client%]
    snapshot of my workflow:
    P.S. I realize now that I've posted this question in the wrong discussion board....my apologies and please move me as you see appropriate...
    thank you!
    Fan

    Use a BitTorrent client instead of a ddl (direct download link). This way it's less prone to errors, because it's checked while it's being downloaded.
    Either that, or check its MD5 against the one from the Download page.
    There's also this: https://wiki.archlinux.org/index.php/Be … ion_medium
    Note: The quality of optical drives and the discs themselves varies greatly. Generally, using a slow burn speed is recommended for reliable burns. If you are experiencing unexpected behaviour from the disc, try burning at the lowest speed supported by your burner.
    Last edited by DSpider (2012-11-16 15:13:55)

Maybe you are looking for