Problem in casting a vector object

Hi friends,
I have stored dates in a vector. The date is as a string(10-08-2001). I have tried to store the vectore object into a variable. But it is displaying StringIndexOutOf BoundsException. the gist of the code is as follow. The vector object displaying its values.
code
a.addElement(rss.getString(1));
a.elementAt(i)
it is displaying value but
(String)a.elementAt(i));
it is displaying nothing
plese tell the reason if you know

Add
System.out.println("Value="+rss.getString(1)); before the add
element - I am not onvinced the error is wth the Vector.

Similar Messages

  • Problem in casting a database object to Java object

    hi everyone,
    Iam trying to execute following example which was provided in oracle documentation. iam planning to implement this concept in my project...But, i am not able to run...iam herewith enclosing the sample code and its error...Kindly help me out
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import java.math.BigDecimal;
    import oracle.sql.*;
    import oracle.jdbc.*;
    public class PersonObject
    public static void main (String args [])
    throws Exception
    // Register the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    // Connect to the database
    // You need to put your database name after the @ sign in
    // the connection URL.
    // The sample retrieves an object of type "STUDENT",
    // materializes the object as an object of type ADT.
    // The Object is then modified and inserted back into the database.
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@raman.monsanto.com:1521:ramdevl","multispec", "mspec");
    // It's faster when auto commit is off
    conn.setAutoCommit (false);
    // Create a Statement
    Statement stmt = conn.createStatement ();
    try
    stmt.execute ("drop table people");
    stmt.execute ("drop type PERSON FORCE");
    stmt.execute ("drop type ADDRESS FORCE");
    catch (SQLException e)
    System.out.println("Error during executing a statement: "+ e);
    stmt.execute ("create type ADDRESS as object (street VARCHAR (30), num NUMBER)");
    stmt.execute ("create type PERSON as object (name VARCHAR (30), home ADDRESS)");
    stmt.execute ("create table people (empno NUMBER, empid PERSON)");
    stmt.execute ("insert into people values(101, PERSON ('Greg', ADDRESS ('Van Ness', 345)))");
    stmt.execute ("insert into people values(102, PERSON ('John', ADDRESS ('Geary', 229)))");
    ResultSet rs = stmt.executeQuery ("select * from people");
    System.out.println("This application works till extraction of data\n");
    showResultSet (rs);
    rs.close();
    stmt.close();
    conn.close();
    public static void showResultSet (ResultSet rs)
    throws SQLException
    while (rs.next ())
    ResultSetMetaData rsmd=rs.getMetaData();
    System.out.println("the no of columns: "+rsmd.getColumnCount());
    for(int i=0;i<rsmd.getColumnCount();i++)
    System.out.println("The column no "+(i+1)+"is of type: "+rsmd.getColumnTypeName(i+1) );
    int empno = rs.getInt (1);
    // retrieve the STRUCT
    (This line throws the error----->) STRUCT person_struct = (STRUCT)rs.getObject (2);
    Object person_attrs[] = person_struct.getAttributes();
    System.out.println ("person name: " + (String) person_attrs[0]);
    STRUCT address = (STRUCT) person_attrs[1];
    System.out.println ("person address: ");
    Object address_attrs[] = address.getAttributes();
    System.out.println ("street: " + (String) address_attrs[0]);
    System.out.println ("number: " +
    ((BigDecimal) address_attrs[1]).intValue());
    System.out.println ();
    The error message is as follows:
    sj -make -cdb newmodeltest.cdb -g -d D:\VisualCafe\Projects\ -classpath
    D:\jdk1.3\jre\lib\classes12.zip;D:\VisualCafe\Projects\;D:\VISUALCAFE\JAVA\LIB\;D:\VISUALCAFE\JAVA\LIB\SYMCLASS.ZIP;D:\VISUALCAFE\JAVA\LIB\CLASSES.ZIP;D:\VISUALCAFE\JFC\SWINGALL.JAR;D:\VISUALCAFE\swing
    -1.1\SWINGALL.JAR;D:\VISUALCAFE\JAVA\LIB\RT.JAR;D:\VISUALCAFE\BIN\COMPONENTS\SFC.JAR;D:\VISUALCAFE\BIN\COMPONENTS\SYMBEANS.JAR;D:\VISUALCAFE\JAVA\LIB\icebrowserbean.jar;D:\VISUALCAFE\JAVA\LIB\jsdk.jar;
    D:\VISUALCAFE\JAVA\LIB\SYMTOOLS.JAR;D:\VISUALCAFE\BIN\COMPONENTS\TEMPLATES.JAR D:\VisualCafe\Projects\PersonObject.java
    Build Successful
    loading PersonObject.class for debugging...
    PersonObject.class successfully loaded
    This application works till extraction of data
    the no of columns: 2
    The column no 1is of type: NUMBER
    The column no 2is of type: MULTISPEC.PERSON
    java.lang.IncompatibleClassChangeError: class java.util.Hashtable does not implement interface java.util.Map
    at oracle.sql.StructDescriptor.getClass(StructDescriptor.java:418)
    at oracle.sql.STRUCT.toJdbc(STRUCT.java:365)
    at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:4195)
    at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:4123)
    at oracle.jdbc.driver.OracleResultSetImpl.getObject(OracleResultSetImpl.java:401)
    at PersonObject.showResultSet(PersonObject.java:106)
    at PersonObject.main(PersonObject.java:54)
    at symantec.tools.debug.MainThread.run(Agent.java:48)
    Thanks in advance
    Sudarshan.K

    Since that implementation has existed since 1.2 and
    the original post suggested that 1.3 was being used,I
    don't see that a newer version would help any.That's not a good assumption. There could have been a
    bug fix.
    Could be. But for the particular error (IncompatibleClassChangeError) I would consider the chance almost non-existent until all other possibilities have been exhausted.

  • Ps CS6 Problem: Incorrect rendering of pasted Adobe Illustrator vector objects

    Ps CS6 v13.0.1
    OS X 10.6.8
    Problem: Ps CS6 incorrectly renders vector objects pasted from Adobe Illustrator. CS5.1 does not exhibit the problem.
    Below is screenshot of artwork in Illustrator and which is copied to clipboard, followed by screenshot of "Paste as Smart Object" in Ps CS5.1 then screenshot of same paste in CS6. "Paste as Pixels" gives identical good rendering in CS5.1 and poor rendering (gray pixels which should be pure white in this example) in CS6. This is repeatable with other artwork.
    Several weeks ago there was a complaint in this forum that Photoshop CS6 poorly renders vector artwork that is pixel-aligned in Illustrator. The Adobe response was that Photoshop is correct. Strange that CS5.1 can render pasted vector artwork perfectly and only CS6 makes a mess.

    What's the explanation for the following sequence?
    1. Paste as Smart Object, at moment after pasting and before clicking the commit icon (no transform was made) in options bar. The object is rendered pixel-perfect.
    2. After the commit. The object is poorly rendered with gray pixels which should be white.
    3. Press Cmd+T for transform mode. The object is rendered pixel-perfect again.
    4. After canceling transform mode, the object is poorly rendered again.

  • Problem: Illustrator CS6 - print PostScript (fuzziness and blurring edges of vector objects)

    Hello,
    Earlier to print to the printer Develop Ineo+ 451 used the program Illustrator CS3. In connection with the transition to Windows 7 (64bit), was bought by a new version of Illustrator CS6 64bit. Unfortunately, when printing from Illustrator CS6 (price lists, business cards, labels) on a PostScript printer were detected problems, which were not in previous versions of Illustrator CS3.
    A comparison of the print quality of the two programs Adobe Illustrator CS3 and Adobe Illustrator CS6, made on a PostScript
    The software used on the computers:
    1st PC: Windows XP SP2 (32bit), Adobe Illustrator CS3 (32bit), the driver Generic 50C-2SeriesPS v3.0.16.0 (32bit).
    2nd PC: Windows 7 SP1 (64bit), Adobe Illustrator CS6 (64bit), the driver Generic 50C-2SeriesPS v3.0.16.0 (64bit).
    Printer: Develop Ineo+ 451 (PostScript).
    Drivers are available for download on the site www.chansi.ru
    link http://download6.konicaminolta.eu/develop/public/&&BDV&RU&sw&&&&&0&&&0&&0&&0
    (to choose Product Ineo + 452, for download tested version of the printer driver).
    Because after using the new version of the driver, the print quality was not satisfactory, then for the correctness of the comparison experiment, already used driver version 50C-2SeriesPS v3.0.16.0 has been selected.
    When you print from the program Adobe Illustrator CS6, a printer PostScript, you can see fuzziness and blurring edges of vector objects, small text becomes fuzzy and difficult to read. If you print from a program Adobe Illustrator CS3 (using the same version of the driver), there are not such problems and the print quality is quite satisfactory.
    The settings in the dialog box "Print" of Adobe Illustrator and the print settings in the dialog boxes of the PostScript printer driver of Develop Ineo+ 451, were chosen exactly the same for both versions of the programs Adobe Illustrator CS3 and Adobe Illustrator CS6 on both operating systems!!!
    (1) - http://hostingkartinok.com/show-image.php?id=ce3339ac2057e91a77a77b93ba129db2
    (2) - http://hostingkartinok.com/show-image.php?id=0be6ec6a3e9d214b107525aedc59b7cb
    P.s. Sorry for my English, use http://translate.google.ru/ and the help of friends

    What's the explanation for the following sequence?
    1. Paste as Smart Object, at moment after pasting and before clicking the commit icon (no transform was made) in options bar. The object is rendered pixel-perfect.
    2. After the commit. The object is poorly rendered with gray pixels which should be white.
    3. Press Cmd+T for transform mode. The object is rendered pixel-perfect again.
    4. After canceling transform mode, the object is poorly rendered again.

  • How do I prevent the Darker Shade Box (color shift) around Vector Objects when Printing

    Sorry in advance for the novelette. I am absolutely mystified and frustrated and would love some help! I've been working on this problem for about 30 hours over the last 4 days to figure out what the heck is happening and cannot find an answer through various forms of research.
    Basically, when I print a JPEG, I am getting this area (a box) of darker shaded coloring around my heart and love text.  I've tested it a million different ways and am at a loss as to what the problem is ... is it an application problem, a color profile problem between my applications and printer, an improper way that I saved my file, etc.
    Here is a photo I took of the image printed out (so it is slightly skewed from camera distortion):
    The details:
    (1) I create graphic art and sell it online. I save all of my printable art as JPEG files because of my customer base (diy hobbyists that print on their home printers without much knowledge base nor graphic design software).
    (2) I use both Adobe Illustrator (AI) and Photoshop Elements 11 (PSE11) to design and save my artwork.
    (3) I insert JPEG images into Microsoft Word 2003 documents to "test print" since most of my customers use home printers to print. Since most people have this basic software, it is a good gauge of the kind of print out they might get using the same or similar software.
    (4) My PSE11 color profile setting is the default sRGB. I have test printed many times and I get the truest colors with this color profile.
    (5) My AI color settings are normally also an sRGB color mode, but on occasion, I use a CMYK color mode if I am creating a larger document that I know the customer will need to take to a professional printer to print out.
    (6) I do my home printing (for proofs) on an Epson Stylus Photo 1400 (which has the 6 color ink cartridges).
    (7) Until this printing problem occurred on this test print out, I always used the "photo enhance" option when I designate settings for my printer via the Microsoft Word documents.
    IMPORTANT: This is when I have the color shift?? or color rendering issues?? and it is the only time. If I use the regular ICM/ICC color profile of sRGB, the printing issue doesn't occur. Instead, I have a solid color background instead of this one with the strips of lighter color on the top and bottom.  However, I can't control how the customer prints, so I need to feel confident that whatever color profile setting they use, they will not run into this problem.  I even test printed the documents over at FedEx and the darker box/color shift did not occur.
    (8) The document in question only has 3 sets of objects: the heart, the solid colored rectangle colored background and the text.  All 3 objects are vectors, they are at 100% opacity and there are no "special effects" applied.
    (9) The image was entirely created in AI this time and exported as a maximum quality JPEG file, although you will see below that I tried many ways to create and save the file so that I didn't have the color band borders on top/bottom.
    (10) I regularly use AI for part of my art, then I drag it to my PSE11 open document and it becomes a Vector Object (it cannot by copying/pasting into a PSE11 document).  I also regularly export AI images as PNG files, then insert them into an open PSE11 document. This printing issue has not occurred until recently.  Here is an example of a very complex AI image I created, then inserted into PSE11 just to add the background (the Teddy Bear and books are AI vector objects) that were exported as PNG files then inserted into PSE11 to integrate with the background image - I test printed with Photo Enhance and had no printing issues:
    So, from the research I have done, it looks like it is a color rendering or color space issue with conflicting color profiles in the same document. I checked my color profile settings and both sRGB and CMYK were set to embed ICC color profiles.
    I tried changing AI settings to Preserve Numbers (ignore linked profiles) for CMYK, but that didn't work.
    I also checked and made sure that not only the document setup showed the sRGB color profile, but that all the objects within the document also were converted to sRGB as well for consistency. That didn't work.
    I tried converting the document to CMYK along with the vector objects. That didn't work.
    I tried saving the heart image as a PNG file alone, the "love" text as a PNG file alone, both the heart and text together as a PNG files alone. Once saved as PNG files, I inserted them into an open empty PSE11 document - as I normally do. I then added the background color I wanted. That didn't work - the print still showed the color changes.
    I tried dragging each vector object separately and even as a group and got the same color change issue when printing.
    I tried "expanding" and "outlining" the text before exporting as JPEG, before exporting as a PNG and before dragging as a vector object into PSE11. Expanding the text did not help the situation.
    I tried exporting as Adobe PDF, then opening in PSE11, then resaving as JPEG. That didn't work.
    I tried flattening transparency (even though there is no transparency in the AI file). That didn't work.
    I tried rasterizing the image. That didn't work.
    Thinking that the file might be corrupt, I started from scratch and redesigned the same heart and love text.  Unfortunately, I had the same problem as before.  At this point, my AI started becoming buggy and would not open new files. It happened repeatedly and I decided it was best to uninstall and reinstall AI (and maybe that would fix the problem).
    I created just the heart in AI, then inserted it into an open PSE11 document (both after exporting as PNG and also by dragging as Vector Object from AI). It seemed to work. I could both drag the vector into PSE11 from AI and export from AI as a PNG, then insert into open PSE11 document with a background color - and it printed a solid background.
    So, I thought that reinstalling and setting back to defaults worked. But, then I added the love text around the heart and tried exporting as JPEG files and the same problem continued to recur. Whether I dragged as a Vector object into PSE11 (the heart object and love text separately and also another time with the vector objects dragged as a group) or saved them as PNG files and inserted into PSE11 - I got the different shades of color on what should be a solid background. I even tried saving the PSE11 as a PSD file first, then resaving as JPEG and I tried saving as PNG and printing and this didn't help solve the problem.
    I really think it is some color conflict issue but I can't figure it out. I am definitely not very knowledgeable about color profiles and how to sync all my devices, however, as I mentioned, this was not an issue until recently (and I think??? I recall changing the CMYK setting from Preserve Numbers to embed color profile a month or so ago - however, it should have been solved when AI went back to its defaults upon reinstall).
    The reason I believe it is a color rendering/color space issue is because I could see the color output when I saved the JPEG with CMYK color profile versus sRGB color profile and the sRGB colors were much richer, not surprisingly. The top and bottom colors matched the sRGB printout and the middle darker box section matched the CMYK printout.
    I am sure it is something fundamental or simple and I am completely overlooking it.  I wish it were just a transparency issue, because people know how to fix or do workarounds for it. But, there are no vector objects with any transparency ...
    If I missed some detail, I apologize. Any help would be a dream come true at this point! lol
    Thank you!

    Okay, I got motivated to try again.  From doing a bit more research on troubleshooting AI printing problems, the Adobe article talks about print drivers. It was advised to uninstall and reinstall the print driver if the printing issue persists. So, I did. Unfortunately, I still had the same result after reinstalling and trying a test print! Ugh.
    So, as Jacob said upfront, I seem to have an overactive print driver that is trying too hard (and it is a non-postscript printer which I realize is part of the problem).
    There are so many variables in my situation as to how I create art and save/export art. I sometimes work solely in AI, sometimes solely in PSE and sometimes I use both programs to create. Consequently, I will:
    (1) export directly from AI as JPEG if I am not adding PSE11 artwork.
    (2) export directly from AI as PNG  if I plan on inserting that image into PSE11 to add to artwork I have created in PSE11.
    (3) drag vector objects as a Smart Objects directly from AI to PSE11 to add to artwork I am creating in PSE11 if I know I will playing with the vector object and resizing in PSE11.
    So, I did a test print using scenario 2, where I inserted the heart and love text PNG (AI created vector object) into an old PSE11 document. This old document already had a vector object from AI with a solid background and I knew it printed correctly. So, after inserting this new PNG from AI into this old document, it printed correctly using the photo enhance mode.
    However, I haven't had a chance to actually create new art in the older AI files (that I know print properly), resave as something else and try another test print (either by exporting as JPEG and printing in Word or by exporting as PNG file and inserting into PSE11 document, then saving as JPEG and printing in Word).
    After testing the different possibilities of ICM settings within my printer, I found that the JPEG images printed out with the truest colors and best quality if I simply selected "no color management" from the printer. Shocker, huh? lol
    MY SOLUTION: So, what I think I will simply do is add an instruction sheet with the printables I sell, explaining that the color profile setting should never be handled by the printer so make sure to turn off color management by printer (and if they feel they must use the printer for color management, make sure the setting is sRGB since I embed that color profile in my JPEG's).
    Edited to add: Since my issue was never about how I could print a successful image (I knew I could simply change the color profile settings), but rather about how to make sure that customers would get consistent and high quality print outputs of my digital images, this seems like the best approach.
    I don't think I will every really know exactly why I am now getting color shifts in the "photo enhance" mode when I did not have this problem a couple months ago - applying the same methods of creating artwork. I was concerned that I was saving/exporting using incorrect or mismatched color settings or something of that nature.  However, since I went through the process of making my color spaces the same for everything, and I still have issue, clearly that is not the culprit. The only thing I can do to solve the problem and it is a straightforward solution anyway -> is to educate the buyer on how to print successfully (don't use photo enhance! ha ha).
    Thanks again to everyone who chimed in and offered advice!

  • Editing Vector Objects in PDF

    When I use the Touch-up Object tool to select a vector element in a PDF and right click to Edit Object the object opens in Illustrator. This is the program I have set in preferences to edit vector objects. The issue I have is when I edit and save the object it shows up in the PDF shifted from its original position (offset to the upper left). How can I get the object to update in the PDF without shifting position?

    Yes and No. You have the most up-to-date version of Acrobat 8.1 and
    Illustrator, so the bug should have been fixed. I cannot say why it is
    not working for you. Of course, the latest version of Acrobat is 9.0,
    but I don't think you need to upgrade for the fix. Maybe someone can
    chime in. What happens if you create a new file in Illy and create a
    pdf, does the problem still happen?
    Mike

  • How to create a vector object

    hi,
    ok my problem is i am trying to create a vector object in jbuilder with this
    private Vector<Object> rows;
    but i keep getting a error saying generics are not supported in 1.2 try -source 1.5.
    how can i create a vector object in 1.2, i am seriously stuck can you please help.
    regards

    i now got the 1.5 to work without the invocation errors, the whole reason i needed the array is as such
    setting array
    Vector<Object> rows;
    then
    public void setauctiondetails() throws java.rmi.RemoteException {
    Connection link = null;
    Statement statement = null;
    ResultSet results = null;
    Class.forName(
    "sun.jdbc.odbc.JdbcOdbcDriver");
    link = DriverManager.getConnection(
    "jdbc:odbc:auction","","");
    statement = link.createStatement();
    results = statement.executeQuery(
    "SELECT * FROM auctiondetails");
    rows = new Vector<Object>();
    while (results.next())
    rows.addElement(results.getInt(1));
    rows.addElement(results.getString(2));
    rows.addElement(results.getString(3));
    rows.addElement((results.getInt(4)));
    link.close();
    for(int i=0; i<clients.size(); i++){
    icl = (Iclient)clients.get(i);
    icl.updateTime(rows);
    but still getting a error with the bloody array saying "type java.util.vector does not take parameters". i no you guys are really good at java, so tried not to have a go just need to be pointed to a tutorial or some code that might explain this better to me.
    kind regards

  • Mysql Query VS Vector Object

    I run mysql query using Java, and the results of it are put in a vector object. Due to the vector object is made by 1 element (it's sure because I wrote the database) I'd like to take it and put it in a string variable, but Java returns me a lot of exceptions; here is the code:
    public Vector eseguiQuery(String query) {
         Vector v = null;
         String [] record;
         int colonne = 0;
         try {
            Statement stmt = db.createStatement();     // Creo lo Statement per l'esecuzione della query
            ResultSet rs = stmt.executeQuery(query);   // Ottengo il ResultSet dell'esecuzione della query
            v = new Vector();
            ResultSetMetaData rsmd = rs.getMetaData();
            colonne = rsmd.getColumnCount();
            while(rs.next()) {   // Creo il vettore risultato scorrendo tutto il ResultSet
               record = new String[colonne];
               for (int i=0; i<colonne; i++) record[i] = rs.getString(i+1);
               v.add( (String[]) record.clone() );
            rs.close();     // Chiudo il ResultSet
            stmt.close();   // Chiudo lo Statement
         } catch (Exception e) { e.printStackTrace(); errore = e.getMessage(); }
         return v;
    public String autentica(String query){
              String s = (String) db.eseguiQuery(query).get(0);
              System.out.println(s);
              return s;
         }...Please help me!

    1. You're not calling ResultSet.next() to move the result set onto the first row of results.
    2. (Edit) Deleted because you were in fact closing your objects, though you should still use a finally block to make absolutely certain.
    3. The exceptions tell you what the problem is - when you post a question please include these.
    Edited by: dcminter on 06-Aug-2008 17:04

  • I'm trying to take a vector object, say a flower, offset a path then get a vector path around the outside edge of the offset.  I take my flower, add a stroke, offset that stroke then select Add from Pathfinder which gives me visually the exact offset peri

    I'm trying to take a vector object, say a flower, offset a path then get an independent vector path around the outside edge of the offset. 
    I take my flower, add a stroke, offset that stroke, then select Add from Pathfinder which gives me visually the exact offset perimeter shape I'm looking for.  The problem is that it isn't a vector path in it's own right.  Is there a way to get Illustrator to recognize the offset stroke as it's own vector path? 
    Please forgive me if my terminology is off as I'm not a formally trained graphic artist.

  • GetAttribute of a Vector[] object

    Hi,
    I have created a Vector[] object and set it to
    a session by session.setAttribute("somename", Vector[]).
    However, i found that when i retrieve it, it gives me ClassCastException, pls help.
    Here is my code:
    Vector[] a ;
    session.setAttribute("a", a);
    Vector[] b;
    b = (Vector[])(session.getAttribute("a"));
    One more thing, i am sure the code is alright because at the same time, i have bound some String[] object to it and when i retrieve it , there is no problem.

    Hi,
    I have located the real problem, sorry for wrong posting before. The problem should be like this:
    public class test {
    Vector[] a;
    I add different no. of test objects to a[0], a[1], a[2].
    session.setAttribute("a", a);
    Then, i call
    Vector[] b = (Vector[])session.getAttribute("a");
    test tt = (test)b.elementAt(i);
    This is fine and no problem when i first load the page.
    However, if i made a small change to the jsp (HTML changes), and then when i reload the page in the browser:
    The statement :
    test tt = (test)b.elementAt(i);
    gives me classcastexception.
    I have checked the Vector[] b, it's not empty.
    Do anyone know the logic behind ?

  • Encoding-Vector Objects-Jaggies

    Greetings from Beautiful Boise
    I have Stroked a path in After Effects, rendered to uncompressed .avi, and imported into a Sequence in Premiere Pro. When I attempt to encode to either .flv or .f4v (so, ON2 or h.264) my vector Stroke is corrupted. These are 1:1 captures of the 500x500 8 bit frames.
    The image on the left is a screen capture in PP, where the stroke is fine. The image on the right is from a rendered .flv. I have compressed this particular image to maintain the integrity of the image on the left, so it is fairly accurate in terms of what I'm seeing from out of AME.
    My questions: is there a conventional wisdow-or better yet, a reliable rule-on softening Strokes to allow for more aggressive encoding of Vector Objects in AME (particularly for .flv and .f4v)? Is there a known threshold where whatever subsampling that is producing this "jagging" is switched off (as there is with .jpg encoding)? Or is it simply a matter of judiciously selecting the bitrate? Does 16 bit act more reliably in these situations?
    Thanks for tolerating my ignorance on the matter, but I'm a Photoshop & Flash guy...not well versed in the video/AME end.

    Thanks, Jim! Now I'm aware that uncompressed .avi doesn't have a separate layer for Vector Objects. The artifacting doesn't appear to be an interlacing issue, and I did ensure the entire process is Progressive. The image is a still RGB raster so no Chroma Subsampling at all in the original...
    I'm playing around with the settings and it does appear that it's primarily dependent upon how aggressively I compress. The problem is that the artifacting disappears at about 5Mbps, which is too high for the internet version to make sense (500x500 pixels).
    Are there any conventional wisdoms about using Strokes in video in terms of softening the Brush or any file formats that maintain separate Layers for Vectors as they do for Text? Does .mov do this (I realize .mov is h.264)?
    Again, thanks for your kind help!

  • All vector objects darken anytime I make a new object or change opacity.

    I use InDesign regularly but am not that technical with it yet. I'm having a problem where when I make a vector shape, all other vector objects on the page suddenly appear about 20% darker. It's really strange. The same problem has happened when I try to adjust the opacity of an object. I select the object, and as soon as I set the opacity below 100% everything on the page gets darker.
    This problem does not effect photos. The problem does effect objects on different layers. So even if I reduce the opacity of an object on the bottom layer, things on the top layer will darken.
    Needless to say this problem is making it pretty much impossible to get anything accomplished. It seems to only be happening with certain documents, as sometimes it doesn't happen at all.
    Thanks for any help.
    - Josh

    The reason Callendar is so complicated is that it is trying to solve a very complicated problem.
    You don't appear to support leap seconds (of which there can be upto 2 in any time interval)
    http://www.timeanddate.com/time/leapseconds.html
    Some of your code will not work for large dates very well (seems to iterate over the years). Try using your date class for astronomical or geological calculations. them big numbers will make your code slow at the moment.
    You don't seem to support timezones or transitory offsets (BST vs GMT). You most definately don't handle changes to timezone offsets that have occured in the past or historical daylight savings time offsets (they have not always been the same)
    The difference between two calendars is a "duration" a duration means nothing unless it is applied to a caledar/date (although you may be able to get away with it if the duration is always stored in millis)

  • Adding the same Vector object into a JTable acts weird

    I'm using a JTable with a DefaultTableModel as the model. When I try to add rows in a loop using the same Vector object (clearing it out beforehand), the result is that every row in the table is identical to the last one. Is that because the DefaultTableModel stores a reference to my Vector object for each row? And by clearing and changing the vector this effectively changes very row in the table? That's the only rationale I can come up with...
    Here's the loop...
    Iterator itr = directorySet.iterator();
    Vector rowVector = new Vector(getColumnCount());
    while (itr.hasNext()) {
    File file = (File) itr.next();
    rowVector.clear()
    rowVector.add(file.getName());
    rowVector.add("<Directory>");
    rowVector.add("");
    addRow(rowVector);
    Any comments appreciated. Thanks,
    -nick

    By having a single vector object and making your all your rows refer to that would only populate all the rows with the latest data the vector has. This is the right behaviour, since all you rows effectively have a reference to your single vector object. To avoid this, do something like this....
    Iterator itr = directorySet.iterator();
    Vector rowVector = new Vector(getColumnCount());
    while (itr.hasNext()) {
    File file = (File) itr.next();
    //Instead of clearing your rowVector here, allocate a new vector object to your rowVector reference.
    //This would solve your problem effectively.
    rowVector = new Vector(getColumnCount());
    //rowVector.clear()
    rowVector.add(file.getName());
    rowVector.add("<Directory>");
    rowVector.add("");
    addRow(rowVector);
    }

  • Serialization of Vector Object

    I have an Message class that is something like
    public class Messsage implements Serializable{
    int messageCode;
    Object payload;
    public class dataObject implements Serializable{
    int code;
    Object referenceObject;
    Object other refObject;
    The payload is
    Vector<Object> testPayload = new Vector<Object> ();
    testPayload.add(payloadDescriptionString);
    testPayload.add(datadataObject);
    msgCode =1;
    msg.payload = testPayload;
    I am trying to send a vector of different object types in a message through socket streams. I was able to send the Message object through sockets when I didn't set the payload to the vector. Now, I get a NotSerializableExcpetion. Are Vectors not serializable? Is it because my Object Vector has Objects of two or more class types like String and my class? In short what would make a class unserializable? What are the requirements for making it serializable? Any help would greatly appreciated.

    Just a footnote. I may have inadvertently solved my problem. I still don't understand it though. In the constructor of my dataObject I instantiated the object to a new object ie
    referenceObject = new Object();
    otherrefObject = new Object();
    Originally, I instantiated them so I could extend this class. I changed the code in the constructor to.
    referenceObject = null;
    otherrefObject = null;
    Serialization appears to be working now. Why does it not serializable in the first place?

  • Ps CS6 Problem: Transform applied to Smart Object fails to transform an attached Smart Filters Mask

    Ps CS6
    OSX 10.6.8
    Problem: Transform applied to Smart Object fails to transform an attached Smart Filters Mask.
    I mean a Transform, including Free Transform, as found in the Edit menu.  A simple move by the Move Tool is OK.
    A workaround until this bug is squashed is to encapsulate the Smart Object + Smart Filters + Filter Mask inside another Smart Object and transform that.
    However, that will not be a satisfactory solution in some cases. If a filter has size parameter(s), e.g. Gaussian Blur radius, a scaling or warping/distorting transform applied after the filter will obviously differ from the filter applied after the transform.
    In any case, the workaround is inconvenient to subsequent editing and experimenting with filters and masks.

    R_Kelly wrote:
    I don't think that's a bug since the implementation seems to be purposely done.
    It's been that way since photoshop cs3.
    If its been like that since CS3 then I think it's a bug which remains because nobody (or not enough people) has complained before.

Maybe you are looking for