Why is this throwing ClassCastException

case Types.LONGVARBINARY:{
   int colIndex = rs.findColumn( columnName );
  byte[] longvarbinary = rs.getBytes( colIndex );
  break;
}I have the above code in my project.
Passing it a set of column names, some go through and for some, it throws the exception below even though the columns are of the same type
ensured by the surrounding case statement
java.lang.ClassCastException: java.lang.StringWhy would the resultset try and cast to a string if you have definetely said it will be a byte array??
Edited by: gcameo on Jan 5, 2010 3:31 AM

This is the full method
  protected void getData(
    ResultSet rs,
    ResultSetMetaData meta,
    String columnName,
    StringBuffer html,
    String nullValue,
    String formatPattern,
    boolean dataSpaceToNbsp,
    boolean dataEscapeHtml,
    boolean nullSpaceToNbsp,
    boolean nullEscapeHtml) throws Exception
    int colIndex;
    try {
      colIndex = rs.findColumn( columnName );
    catch (Exception e) {
      throw new HrFieldDefException( "Field " + columnName + " not found!" );
    int colType = meta.getColumnType( colIndex );
    switch ( colType ) {
      case Types.CHAR:
        String chr = rs.getString( colIndex );
        if ( !rs.wasNull() && chr.length()>0 ) {
          HrUtilsRowSetToHtml.htmlAppend( html, chr, dataSpaceToNbsp, dataEscapeHtml );
        else {
          HrUtilsRowSetToHtml.htmlAppend( html, nullValue, nullSpaceToNbsp, nullEscapeHtml );
        break;
      case Types.CLOB:
        break;
      case Types.JAVA_OBJECT:
        break;
      case Types.LONGVARBINARY:
        //Code breaks here. Using the Netbeans Debugger, I am able to trace it to here and it falls back to the calling methods Catch block
        byte[] longvarbinary = rs.getBytes( colIndex );
        /* getBytes does not set wasNull so have to check value for null instead */
        if ( longvarbinary != null && longvarbinary.length > 0 ) {
          HrUtilsRowSetToHtml.htmlAppend( html, new String( longvarbinary, "US-ASCII" ), dataSpaceToNbsp, dataEscapeHtml );
        else {
          HrUtilsRowSetToHtml.htmlAppend( html, nullValue, nullSpaceToNbsp, nullEscapeHtml );
        break;
      case Types.LONGVARCHAR:
        String longvarchar = rs.getString( colIndex );
        if ( !rs.wasNull() && longvarchar.length() > 0 ) {
          HrUtilsRowSetToHtml.htmlAppend( html, longvarchar, dataSpaceToNbsp, dataEscapeHtml );
        else {
          HrUtilsRowSetToHtml.htmlAppend( html, nullValue, nullSpaceToNbsp, nullEscapeHtml );
        break;
      case Types.TIMESTAMP:
        Timestamp timestamp = rs.getTimestamp( colIndex );
        if ( !rs.wasNull() ) {
          String format = null;
          if ( formatPattern != null && formatPattern.length() > 0 ) {
            format = formatPattern;
          else {
            format = "dd/MM/yyyy";
          HrUtilsRowSetToHtml.htmlAppend( html, new SimpleDateFormat( format ).format( timestamp ), dataSpaceToNbsp, dataEscapeHtml );
        else {
          HrUtilsRowSetToHtml.htmlAppend( html, nullValue, nullSpaceToNbsp, nullEscapeHtml );
        break;
      case Types.TINYINT:
        break;
      case Types.VARBINARY:
        break;           
      case Types.VARCHAR:
        String varchar = rs.getString( colIndex );
        if ( !rs.wasNull() && varchar.length()>0 ) {
          HrUtilsRowSetToHtml.htmlAppend( html, varchar, dataSpaceToNbsp, dataEscapeHtml );
        else {
          HrUtilsRowSetToHtml.htmlAppend( html, nullValue, nullSpaceToNbsp, nullEscapeHtml );
        break;
      default:
        HrUtilsRowSetToHtml.htmlAppend( html, nullValue, nullSpaceToNbsp, nullEscapeHtml );
  }This is the full stacktrace
java.lang.ClassCastException: java.lang.String
        at sun.jdbc.rowset.CachedRowSet.getBytes(CachedRowSet.java:1778)
        at com.haydenr.lib02.crs2html.HrHtmlFldData.getData(HrHtmlFldData.java:102)
        at com.haydenr.lib02.crs2html.HrHtmlFldDataColumn.toHtmlData(HrHtmlFldDataColumn.java:28)
        at com.haydenr.lib02.crs2html.HrHtmlFldData.toHtml(HrHtmlFldData.java:393)
        at com.haydenr.lib02.crs2html.HrHtmlCellDataInputTextArea.toHtml(HrHtmlCellDataInputTextArea.java:61)
        at com.haydenr.lib02.crs2html.HrGrid.toHtmlCellData(HrGrid.java:488)
        at com.haydenr.lib02.crs2html.HrGrid.toHtmlCellDataDiv(HrGrid.java:399)
        at com.lalpac.web.Helper_Base.getHtmlCellDataDiv(Helper_Base.java:334)
        at com.lalpac.web.Helper_Base.getHtmlCellDataDiv(Helper_Base.java:324)
        at com.lalpac.web.HelperWizApp.getHtmlDataAfiEditDiv(HelperWizApp.java:2055)
        at org.apache.jsp.protected_.wca.wizAppFormLicensingObjectives_jsp._jspService(wizAppFormLicensingObjectives_jsp.java:88)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
        at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:609)
        at org.apache.jsp.protected_.wca.wizAppForm_jsp._jspService(wizAppForm_jsp.java:406)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

Similar Messages

  • Why does this throw an error?

    just trying to modify an element value here...
    declare
    v_xml_new xmltype;
    doc dbms_xmldom.DOMDocument;
    ndoc dbms_xmldom.DOMNode;
    node dbms_xmldom.DOMNode;
    childnode dbms_xmldom.DOMNode;
    nodelist dbms_xmldom.DOMNodelist;
    docelem dbms_xmldom.DOMElement;
    buffer ta_debug_log.message%type;
    begin
    v_xml_return.schemaValidate;
    ta_debug.writeDebug('DEBUG: xml instance validated '||C_PROCEDURE_NAME||'.');
    exception
    when others then
    -- failed validation
    ta_system.writeSystem('ERROR: xml instance message failed schema validation '||C_PROCEDURE_NAME||'.');
    -- return a new wellformed instance
    ta_debug.writeDebug('DEBUG: creating new empty instance '||C_PROCEDURE_NAME||'.');
    v_xml_new := xmltype.createXML(xmldata => rm_xml_survey_maintenance.C_EMPTY_SURVEY_XML_INST,
    schema => rm_xml_survey_maintenance.C_SURVEY_SCHEMA_NAME);
    ta_debug.writeDebug('DEBUG: creating dom reference '||C_PROCEDURE_NAME||'.');
    doc := dbms_xmldom.newDOMDocument(v_xml_new);
    -- attempt to populate return xml instance with source info
    ta_debug.writeDebug('DEBUG: attempting to acquire and populate source info '||C_PROCEDURE_NAME||'.');
    ta_debug.writeDebug('DEBUG: source information requesterID is '||
    ta_xml_utils.xml_extract_no_exception(v_xml_return, '/SurveyRequest/messageSource/requesterID/text()')||' '||C_PROCEDURE_NAME||'.');
    docelem := dbms_xmldom.getDocumentElement(doc);
    nodelist := dbms_xmldom.getElementsByTagName(docelem, 'requesterID');
    node := dbms_xmldom.item(nodelist, 0);
    childnode := dbms_xmldom.getFirstChild(node);
    the last line causes the code the throw:
    ERROR: SQLCODE = -31020 SQLERRM = ORA-31020: The operation is not allowed,
    Reason: Invalid pl/sql DOM Node hdl
    ORA-31154: invalid XML
    (rm_xml_survey_maintenance.create_cad_plan_pair).
    this code is operating after an xmltype fails to validate. would this be the cause?
    are there any simpler methods using pl/sql, the xmltype and xpath to modify contents of an xmltype instance?
    any advice most appreciated.

    I can't answer the better/simpler method part of the question, other than to say there is an UpdateXML function but it works only from within the scope of a SQL statement. Not sure whether you'd want to make a SQL call just to do something to your XMLType that exists only in PL/SQL.
    In regard to your current error, I can only say the following script does not produce an error. If you can develop a test case/script that reproduces the error that would be helpful. You may even uncover the error at that point. Have you confirmed the contents of v_xml_new and if on 10g used DBMS_UTILITY.Format_Error_Backtrace to verify the line that threw the error?
    declare
       v_xml_new xmltype;
       doc       dbms_xmldom.domdocument;
       nodelist  dbms_xmldom.domnodelist;
       node      dbms_xmldom.domnode;
       childnode dbms_xmldom.domnode;
    begin
      v_xml_new := XMLTYPE(
      '<?xml version="1.0" encoding="UTF-8"?>' ||
      '<SurveyRequest>' ||
       '<messageSource>' ||
        '<requesterID>U571</requesterID>' ||
       '</messageSource>' ||
      '</SurveyRequest>'
      doc := dbms_xmldom.newdomdocument(v_xml_new);
      nodelist  := dbms_xmldom.getelementsbytagname(doc, 'requesterID');
      node      := dbms_xmldom.item(nodelist, 0);
      childnode := dbms_xmldom.getfirstchild(node);
    end;

  • Why it is throwing null at last  whenever i am running this program

    public static void main(String args[])
              String str;                    
              try     
              FileReader fis = new FileReader(C:\\src\\vinaysingh\\xmlreq.xml");
              BufferedReader br= new BufferedReader(fis);
              do
                   str=br.readLine();
                   System.out.println(str);
              while(!str.equals(null));
    why it is throwing null on last if i am reading any xml file

    get the value of string as the value which u
    had collected from the string instead of nullWhat? That just doesn't make any sense. At all.
    I presume what you're asking is:
    How do I read lines from a text file, ignoring empty lines. Especially how do I know when I've reached the end of the file so that I can stop trying to read more lines.
    this might help some ...
    package krc.utilz.io;
    import java.util.Collection;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.io.File;
    import java.io.Reader;
    import java.io.FileReader;
    import java.io.BufferedReader;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    import java.io.InputStream;
    import java.io.FileInputStream;
    import java.io.Closeable;
    import java.io.IOException;
    import java.io.FileNotFoundException;
    * @class: krc.utilz.io.Filez
    * A collection of static "file handling" helper methods.
    public abstract class Filez
      public static final int BFRSIZE = 4096;
       * reads the given file into one big string.<p>
       * Warning: don't use this on big files. It uses too much RAM!
       * @param String filename - the name of the file to read
       * @return the contents filename
      public static String read(String filename)
        throws FileNotFoundException
        return Filez.read(new FileReader(filename));
       * Reads the contents of the given reader into one big string, and closes
       * the reader.
       * Warning: don't use this on big files. It uses too much RAM!
       * @param java.io.Reader reader - a subclass of Reader to read from.
       * @return the whole contents of the given reader.
      public static String read(Reader in)
        try {
          StringBuffer out = new StringBuffer();
          try {
            char[] bfr = new char[BFRSIZE];
            int n = 0;
            while( (n=in.read(bfr,0,BFRSIZE)) > 0 ) {
              out.append(bfr,0,n);
          } finally {
            if(in!=null)in.close();
          return out.toString();
        } catch (IOException e) {
          throw new RuntimeIOException(e.getMessage(), e);
       * (re)writes the given content to the given filename
       * @param String content - the new contents of the fil
       * @param String filename - the name of the file to write.
      public static void write(String content, String filename) {
        try {
          PrintWriter out = null;
          try {
            out = new PrintWriter(new FileWriter(filename));
            out.write(content);
          } finally {
            if(out!=null)out.close();
        } catch (IOException e) {
          throw new RuntimeIOException(e.getMessage(), e);
       * Appends the given content to the given filename.
       * @param String content - the string to write to the file.
       * @param String filename - the name of the file to write to.
      public static void append(String content, String filename) {
        try {
          PrintWriter out = null;
          try {
            out = new PrintWriter(new FileWriter(filename, true)); //true=append
            out.write(content);
          } finally {
            if(out!=null)out.close();
        } catch (IOException e) {
          throw new RuntimeIOException(e.getMessage(), e);
       * reads each line of the given file into an array of strings.
       * @param String filename - the name of the file to read
       * @return a fixed length array of strings containing file contents.
      public  static String[] readArray(String filename)
        throws FileNotFoundException
        return readList(filename).toArray(new String[0]);
       * reads each line of the given file into an ArrayList of strings.
       * @param String filename - the name of the file to read
       * @return an ArrayList of strings containing file contents.
      public static ArrayList<String> readArrayList(String filename)
        throws FileNotFoundException
        return (ArrayList<String>)readList(filename);
       * reads each line of the given file into a List of strings.
       * @param String filename - the name of the file to read
       * @return an List handle ArrayList of strings containing file contents.
      public static List<String> readList(String filename)
        throws FileNotFoundException
        try {
          BufferedReader in = null;
          List<String> out = new ArrayList<String>();
          try {
            in = new BufferedReader(new FileReader(filename));
            String line = null;
            while ( (line = in.readLine()) != null ) {
              out.add(line);
          } finally {
            if(in!=null)in.close();
          return out;
        } catch (IOException e) {
          throw new RuntimeIOException(e.getMessage(), e);
       * reads the whole of the given file into an array of bytes.
       * @param String filename - the name of the file to read
       * @return an array of bytes containing the file contents.
      public static byte[] readBytes(String filename)
        throws FileNotFoundException
        return( readBytes(new File(filename)) );
       * reads the whole of the given file into an array of bytes.
       * @param File file - the file to read
       * @return an array of bytes containing the file contents.
      public static byte[] readBytes(File file)
        throws FileNotFoundException
        try {
          byte[] out = null;
          InputStream in = null;
          try {
            in = new FileInputStream(file);
            out = new byte[(int)file.length()];
            int size = in.read(out);
          } finally {
            if(in!=null)in.close();
          return out;
        } catch (IOException e) {
          throw new RuntimeIOException(e.getMessage(), e);
       * do files A & B have the same contents
       * @param String filenameA - the first file to compare
       * @param String filenameA - the second file to compare
       * @return boolean do-these-two-files-have-the-same-contents?
      public static boolean isSame(String filenameA, String filenameB)
        throws FileNotFoundException
        try {
          File fileA = new File(filenameA);
          File fileB = new File(filenameB);
          //check for same physical file
          if( fileA.equals(fileB) ) return(true);
          //compare sizes
          if( fileA.length() != fileB.length() ) return(false);
          //compare contents (buffer by buffer)
          boolean same=true;
          InputStream inA = null;
          InputStream inB = null;
          try {
            inA = new FileInputStream(fileA);
            inB = new FileInputStream(fileB);
            byte[] bfrA = new byte[BFRSIZE];
            byte[] bfrB = new byte[BFRSIZE];
            int sizeA=0, sizeB=0;
            do {
              sizeA = inA.read(bfrA);
              sizeB = inA.read(bfrB);
              if ( sizeA != sizeB ) {
                same = false;
              } else if ( sizeA == 0 ) {
                //do nothing
              } else if ( !Arrays.equals(bfrA,bfrB) ) {
                same = false;
            } while (same && sizeA != -1);
          } finally {
            Clozer.close(inA, inB);
          return(same);
        } catch (IOException e) {
          throw new RuntimeIOException(e.getMessage(), e);
       * checks the given filename exists and is readable
       * @param String filename = the name of the file to "open".
       * @param OPTIONAL String type = a short name for the file used to identify
       *  the file in any exception messages.
       *  For example: "input", "input data", "DTD", "XML", or whatever.
       * @return a File object for the given filename.
       * @throw FileNotFoundException if the given file does not exist.
       * @throw IOException if the given file is unreadable (usually permits).
      public static File open(String filename)
        throws FileNotFoundException
        return(open(filename,"input"));
      public static File open(String filename, String type)
        throws FileNotFoundException
        try {
          File file = new File(filename);
          String fullname = file.getCanonicalPath();
          if(!file.exists()) throw new FileNotFoundException(type+" file does not exist: "+fullname);
          if(!file.canRead()) throw new RuntimeIOException(type+" file is not readable: "+fullname);
          return(file);
        } catch (IOException e) {
          throw new RuntimeIOException(e.getMessage(), e);
       * gets the filename-only portion of a canonical-filename, with or without
       * the extension.
       * @param String path - the full name of the file.
       * OPTIONAL @param boolean cutExtension - if true then remove any .ext
       * @return String the filename-only (with or without extension)
      public static String basename(String path) {
        return(basename(path,false));
      public static String basename(String path, boolean cutExtension)
        String fname = (new File(path)).getName();
        if (cutExtension) {
          int i = fname.lastIndexOf(".");
          if(i>0) fname = fname.substring(0,i);
        return(fname);
    }You'll probably want to remove all references to RuntimeIOException... just throw the standard checked IOException instead.

  • Help! why is this an excpetion?!?!?!

    why does this code throw a ClassCastException?
    URL url = new URL ("http://central-intell.hypermart.net/applets/test.pl");
    HttpURLConnection cxn = (HttpURLConnection) url.openConnection();
    and I need to turn the URLConnection into an HttpURLConnection, so how could I fix it?

    Works ok for me. Try printing out the class returned by url.openConnection(); to see what it is.
    URLConnection cxn =  url.openConnection();
    System.out.println(cxn.toString());

  • In iMovie, I can't see my iPhoto videos in the event library. Why ? this is after updating to 10.7.4

    in iMovie, I can’t see my iPhoto videos in the event library. Why ? this is after updating to 10.7.4
    also, if I want to use a picture in my movie, it says 'Open iPhoto to see photos from your iPhoto Library in this list.'
    It never use to do this.

    JimHdk,
    thanks for your reply, but why I could wtach the videos on land mode using the ios 6 and why I can't watch them using this new ios 7 on land mode?
    i give you the name of the videos :  BJJ OPEN GRD, BJJ THROWS 1, BJJ THROWS 2, BJJ ChoKes, BJJ SWEEPS,
    I work with this, I study watching the videos, and please, I need to resolve this,
    thanks JimHdk for you help and cooperation

  • Lately when I sync certain albums to my iPhone, the tracks are duplicated one behind the other so that I have to listen to each song twice. Why does this happen and how can it be fixed?

    Lately when I sync certain albums to my iPhone, the tracks are duplicated one behind the other so that I have to listen to each song twice. Why does this happen and how can it be fixed?

    Very strange behavior.  Don't entirely give up on the "Manually Added Items" category ... I have seen things magically appear there even after I've checked and seen nothing there.  I think things got real quirky when Apple released iCloud ... I don't remember extra copies of purchases lingering on my iPhone once transferred to my library before that.  Sure, if I bought an album directly to my iPhone it would stay on there even after I sync to my library, but if I deleted the album from the iPhone it stayed deleted.  Now it seems that there are some phantom copies that come and go with no explanation.
    jcburbank wrote:
    I've tried deleting the album from both the phone and from iTunes and then redownloading them to both and the same problem occurs.
    If you're re-downloading an album to iTunes and your iPhone, that may perpetuate the problem.  What happens if you completely delete every copy of the album, then just download to your iTunes library and then sync the album to your iPhone from your library?  That should put only one copy on your iPhone.
    A few other things to try:
    1- Completely sign out of your Apple account on your iPhone, then re-sync to iTunes, then sign into your account on your iPhone again.  Maybe throw in a Reset or at least a power OFF/ON somewhere in the middle.
    2- Go to Settings/ General/ Usage, then select Music and when you see All Music, swipe your finger across it and tap the Delete button.  Before doing anything else, Reset your iPhone.  This does not actually delete your music, but seems to clear up some cobwebs left behind (people use this technique to reduce "Other" that swells up over time).

  • Why does this ring operation occasionally give an error?

    I am using LabWindows/CVI, and I created a low-level ring acquisition. It works normally at first, but if I stop it and start a few times (does not always happen on the first stop / start cycle), then I get the error:
    NON-FATAL RUN-TIME ERROR: "Dalsa.c", line 2716, col 13, thread id 0x000012A4: Function imgSessionCopyBuffer: (return value == -1074397014 [0xbff600aa]).
    The requested buffer has been overwritten and is no longer available. It occurs on the second line of the following code:
    (2715) imgGetAttribute(Sid, IMG_ATTR_LAST_VALID_BUFFER, &currentRingBufNum);
    (2716) imgSessionCopyBuffer(Sid, currentRingBufNum, (uInt8*)pixel_address, FALSE);
    I stop my acquisition by :
    imgSessionAbort(Sid, &ringBufNum);
    Then I unlock my ring buffer, dispose each element, and finally dispose of the buffer list. The next acquisition starts by creating a buffer list, creating and allocating each element, locking the buffer list, and configuring the session to use that buffer list. I am NOT closing the session or the interface, I only do that upon quitting my program. Why do I get this error??
    Buffer creation code:
    //Create a buffer list
    imgCreateBufList(NUMRINGBUFFERS, &Bid);
    //Find out how big the buffers should be in memory
    imgGetAttribute(Sid, IMG_ATTR_BYTESPERPIXEL, &bytesPerPixel);
    bufSize = AcqWinWidth * AcqWinHeight * bytesPerPixel;
    //Create the ring buffer
    for (i = 0; i < NUMRINGBUFFERS; i++)
    //Create individual buffer elements
    imgCreateBuffer(Sid, IMG_HOST_FRAME, bufSize, &ringBuffer[i]);
    //Now tell the buffer list where these buffers are by populating them into the Buffer List Bid
    imgSetBufferElement(Bid, i, IMG_BUFF_ADDRESS, (uInt32)ringBuffer[i]);
    imgSetBufferElement(Bid, i, IMG_BUFF_SIZE, bufSize);
    //If we are still filling the buffer, this configures the current buffer on the list to move to the next buffer
    //If we are configuring the last buffer in the list, this buffer will now loop to the first element when it is filled
    bufCmd = (i == (NUMRINGBUFFERS - 1)) ? IMG_CMD_LOOP : IMG_CMD_NEXT;
    imgSetBufferElement(Bid, i, IMG_BUFF_COMMAND, bufCmd);
    //Locks the buffers in the buffer list
    imgMemLock(Bid);
    //Configure the session to be a ring acquisition using our buffer list
    imgSessionConfigure(Sid, Bid);
    Buffer disposal code:
    //Unlock the ring buffer memory
    if (Bid) imgMemUnlock(Bid);
    //Free the ring buffer memory
    for (i = 0; i < NUMRINGBUFFERS; i++)
    if (ringBuffer[i] != NULL)
    imgDisposeBuffer(ringBuffer[i]);
    ringBuffer[i] = NULL;
    //Free the buffer list
    if (Bid) imgDisposeBufList(Bid, FALSE);
    Bid = 0;

    I have made some progress on narrowing the error down, but it still remains a large problem. Error trapping allows me to avoid the necessity of rebooting the system. However, I must still close and re-open my LabWindows application in order to successfully acquire from a ring.
    I have narrowed the problem down to the buffer index provided by "imgSessionStatus" : on the acquisition that throws an error, it returns "-1" as the current buffer index. Why is this??
    I have modified my program so that I close both the session and the interface when I hit "Stop", and yet I'm still receiving this problem when I attempt to restart the ring acquisition after stopping.  I have also started using "imgStopAcquisition" instead of "imgSessionAbort".  What could I not be properly resetting after I free, dispose and close the buffers, buffer list, session and interface?  Obviously the resource is being properly freed upon application closure, so I must be missing something ...

  • Some of the entries in my address book show birthdays one day/year earlier in Ical. I cannot change this except by putting in the birthdays a day/year earlier than they are. Why is this happening only for some entiries and not others?

    Some of the birthdays I have entered in Address book appear in my Ical one day and one year earlier than the date I have given. Eg. I have entered a birthday in Address book as 23 March 2011 and it appears in Ical as being on 22 March 2010. Other names have no problems. There are only some that do not appear with the correct date and year. Why is this?  Has anyone found how to correct this strange problem?  I have Time Zones ticked.
    Bronze2011

    I'm having this exact same problem, but it's doing it with a bunch of birthdays. I also did 0001 when I didn't know the birth year, so I went back and did a more current year, but they still aren't showing up where they should be...or at all. It's completely bizarre.

  • I have installed snow leopard 10.6.8 on my macbook, i got a problem that every time i want to save or put something on desktop it, says you dont have permisson why is this, also my dock want stay the same everytime i start up it defaults back?

    i have installed snow leopard 10.6.3 on to my macbook which was currently 10.4.11, i wanted to do this so i can run Final Cut Pro 10 which needs 10.6.8 or higher. so i updated the snow leopard to 10.6.8 installed final cut pro ok. the problem i got is else where i cant save on put anything on desktop, it says i dont have permisson, and when i try and click on my documents same again. also i adjusted my dock to smaller added a few applications onto it, but every time i restart the laptop it defaults back why is this?!! so annoying. i had a look at my disk utilites and i have still got 10.4.11 on my Macintosh i can switch too? i installed the snow leopard 10.6.3 on my Data Disk. can anyone help me out why i am getting these problems and what i need to do to solve it?

    disk0s2: I/O error.
    disk0s2: I/O error.
    The MBP's disk is damaged and requires replacement.
    Genius Bar Reservations: http://www.apple.com/retail/geniusbar/

  • HT1349 I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great

    I cannot send an email from my iPad 2? No problem receiving, why does this happen? Have tried the suggestions for setting up email and after doing the sync mail through iTunes receiving worked great but still cannot send? Any help would be great!

    The fact that you can receive means you have a valid e mail address, and have established the connection to the incoming server, so all of that works.  Since the send does not work, that means your outgoing server is rejecting whatever settings you used formthe outgoing set up.  Try them again. 
    Google your particular isp, and ipad and many times you will find the exact settings needed for your isp.  Or tell us here, and soneone else may be on the same isp.  Some mail services need you to change a port, or have a unique name for the outgoing server.  
    Kep trying.

  • I created a form, I want the email notices to go to several people. Why is this so difficult? It seems like they have to be a co-author/reader or something? I don't get it

    I created a form, I want the email notices to go to several people. Why is this so difficult? It seems like they have to be a co-author/reader or something? I don't get it

    This is crazy! I paid for this service to make it easier to create forms for a company that has had several acquisitions all over the globe. This was supposed to make it easy to create forms hosted on adobe so no matter what happens on all their servers, we would be safe using this forms service until we can integrate all acquisitions and build a permanent web site on a single server. Now I find out that even this is a major issue sending emails to team members, many I have never met so making them a collaborator or even setting up forwarded emails is not something I wanted to do. This service was advertised as simple and easily send notifications to many people. I am now frustrated and thinking this was a waste of money! Why is it like that?

  • All my excel files were converted to pdf. Why would this happen and how do i stop it from doing so?

    All my excel files were converted to pdf. Why would this happen and how do i stop it from doing so?

    shloimypt wrote:
    All my excel files were converted to pdf. Why would this happen and how do i stop it from doing so?
    Relax, they weren't converted to PDF.
    You can tell by right clicking ANY of them and choosing "Properties". You'll see there that they're STILL .xls or .xlsx files. The "association" has changed and Windows now indicates that they open with Reader, which isn't right.
    Where it says "Open With" under the General tab, you can click "Change" and re-select Excel as the default app to open thim.
    See: http://helpx.adobe.com/acrobat/kb/application-file-icons-change-acrobat.html

  • When I want to update my app a different account comes up now.  Wierd.  It's the family plan owners id...why is this happening and how do I fix it?

    Upon  wanting to update some of my apps, I now get prompted to login with the owner of the family plans login.
    I have my own account attached to this phone.  Why is this now happening and how do I return it to update my apps with my login ID?

    Did you by chance accidentally purchase these app with the different account? 
    Because all apps are tied to the apple id that was used to purchase it.
    You can also check settings - appstore - apple id - if it isn't your id, log out and log in with your id.

  • When trying to purchase anything on iTunes I am getting an error message (there was a problem with the itunes store. Please try later -42408).  Why is this?

    When trying to purchase anything on itunes I am getting an error message.  (There was an error in the itunes store.  Please try later - 42408)   Why is this?

    poppypower wrote:
    When trying to purchase anything on itunes I am getting an error message.  ...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

Maybe you are looking for

  • We downloaded Adobe Reader XI and our PC no longer works properly.

    We run Microsoft Windows XP Professional Version 2002 Service Pack 3, and use Internet Explorer 8.  We once were running a Trend Micro AntiVirus that seemed capable of producing some issues, but we believe it to be disabled.  Before downloading Reade

  • Prioritizing of messages in PI 7.0 SP6

    Hi all When we are recieving messages from the server it is sending the messages to the other end Correctly. But the problem we are facing is, the meessages are not sent in the order they are recieved (FIFO), But they are are randomly processed. PLea

  • Repost: Cart find class of Bean :-{

    People, HELP!! I am getting desperate!!! I am a newbie when it comes to TOMCAT, but i have been using Blazix before. My current system is using APACHE/TOMCAT on a Solaris machine and I keep hitting the same problem. I have gone through the archives b

  • Examples with Nokia PC Connectivity SDK 3.0 not wo...

    Windows XP SP2 PC Suite 6.70.22 Connection Method = cable Mobile Phone = 6100 Error Message: Run-time error '-2147467259(800004005)': Automation error Unspecified error I'm currently looking at the example code that comes with PC Connectivity SDK 3.0

  • 2006 Mac Pro (OSX 10.7.5) and USB 3 speeds

    I'm considering the purchase of a HighPoint RocketU 1144CM USB 3.0 PCIe card and would like to know if there's anything in the architecture of my 2006 Mac Pro [Build 1,1] which might limit throughput speeds to USB2 standards. The manufacturer's [High