ReadObject() and writeObjectO never called

I have classes to transfer images through RMI. ImageDescriptor interface provides basic method to override:
public interface ImageDescriptor extends Serializable
  public void paint(java.awt.Graphics g, int x, int y, int width, int height);
}BinaryImageDescriptor is used for transferring binary data. It worked but byte[]->Image transform took some time (done once in the paint method, which caused a delay while painting for the first time) so I decided to move this routine to a method and call it when object is deserialized:
import java.awt.*;
import javax.imageio.*;
import java.nio.*;
import java.nio.channels.*;
import java.io.*;
import java.awt.image.*;
public class BinaryImageDescriptor
    implements ImageDescriptor, Serializable {
  private byte[] imageData = null;
  private transient Image image = null;
  private transient boolean updated = false;
  private transient ImageObserver observer = null;
  public BinaryImageDescriptor(byte[] imageData) {
    this.imageData = imageData;
    updated = false;
  public BinaryImageDescriptor(String fileLocation) {
    try {
      File file = new File(fileLocation);
      FileInputStream fis = new FileInputStream(file);
      FileChannel fc = fis.getChannel();
      int filelength = (int) file.length();
      MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0,
                                    filelength);
      this.imageData = new byte[filelength];
      mbb.get(this.imageData);
      System.out.println("Binary Image Success: " + fileLocation);
    catch (IOException ex) {
      System.out.println("Binary Image error: " + fileLocation);
      this.imageData = null;
  public void updateBinaryImage() {
    System.out.println("Update Binary");
    try {
      image = javax.imageio.ImageIO.read(new ByteArrayInputStream(imageData));
    catch (Exception ex) {
      image = null;
      ex.printStackTrace();
  public void paint(Graphics g, int x, int y, int width, int height) {
    // Previously I used to read Image here by calling updateBinaryImage() once
    if (image != null) {
      g.drawImage(image, x, y, width, height, null);
  public void setObserver(ImageObserver observer) {
    this.observer = observer;
  private void writeObject(java.io.ObjectOutputStream oos) throws IOException {
    //This method is never called
    System.out.println("Inside write Object");
    oos.defaultWriteObject();
  private void readObject(java.io.ObjectInputStream ois) throws
      ClassNotFoundException, IOException {
    //This method is never called too
    System.out.println("Inside readObject");
    ois.defaultReadObject();
    updateBinaryImage();
  public byte[] getImageData() {
    return imageData;
}But the problem is, the readObject() and writeObject() (on the server side) are never called. So the Image remains null and nothing is painted.
Could you help?
ps: I do not obsfucate the code. Some package definitions are removed (due to propriarity) but the code compiles fine.

silly mistake of me, fixed. error outside the code.
---CLOSED---

Similar Messages

  • JButton pressed, but not released and actionperformed never called

    Hi,
    I have a simple JButton, with one action listener that does its thing (or at least should do because it is never called). I also added a mouse listener to trace the issue further.
    Here's what happen. I have another component (a JTextField) with a focus listener. If the compoent looses the focus, I want to have a chance to ask a quick confirmation question (JOptionPane) before continuing to do someting else (in that case, process the action on the button).
    So the focus is in the text field and I click on the button. Here's what happen:
    - The button gets a mouse pressed event
    - The text field looses the focus and the button gains it.
    - The text field's focus lost handler shows a JOptionPane => focus goes on the option pane
    - The option pane is confirmed, but the rest stops.
    I get NO mouse release event on my button, the action performed is also lost and my button remains "half pressed" (when i hover the mouse pointer over it, the button is rendered lowered ).
    My guess is that the option pane comes too quick and that the mouse release event is transfered to the option pane instead of the button I first clicked, causing the actionperformed to be ignored as a side effect.
    Any ideas or suggestions ?
    Thanks.

    I get NO mouse release event on my button, the action
    performed is also lost and my button remains "half
    pressed" (when i hover the mouse pointer over it, the
    button is rendered lowered ).
    basically that's a bug in the button's internal state handling.
    To get an idea about how to fix it, you might want to read my article "Make Buttons Respect InputVerifiers" at
    http://www.mycgiserver.com/~Kleopatra/swing/swingentry.html
    Though it's rather old the issue is not solved (until 1.5b2) It's only applicable if you have tight control over the L&F.
    Greetings
    Jeanette

  • SaveState and restoreState never called after upgrade to JSF2.1.1

    Hi,
    I upgraded my project to JSF2.1.1.
    For all my custom compontent the saveState and restoreState is never called.
    Are there any required changes due to JSF2.1.1 release?
    Thanks in advance,
    Pieter

    Most likely, this will fix your issue:
    1: http://docs.info.apple.com/article.html?artnum=93698
    Also clean up your temp files:
    (Empty your Temp directory and restart)
    2: http://docs.info.apple.com/article.html?artnum=93976
    If you get an error when uninstalling quicktime, go through article 1, then run the Microsoft Cleanup Utility to remove quicktime afterwards:
    3: http://support.microsoft.com/default.aspx?scid=kb;en-us;290301

  • DataSource null in ReceiveStream and NewReceiveStreamEvent never called

    Hi,
    in a ReceiveStreamListener.update(ReceiveStreamEvent evt) implementation, when evt is instanceof StreamMappedEvent, the receiveStream.getDataSource() return null. Why?
    p.s.
    StreamMappedEvent is the only evt type called. No NewReceiveStreamEvent

    Thanks for input, but no solution yet.
    If you haven't received a NewReceiveStreamEvent then I suspect you are setting the receive stream listener too late into your processing and thus missing that event.I don't think that's the cause, this is what I do:
    1) Init server RTPManager
    2) Add ReceiveStreamListener to client RTPManager
    3) Init client RTPManager
    4) Add server target to client
    5) Add client target to server
    6) Server createSendStream
    The StreamMappedEvent occurs when there is an orphaned receive stream. In other words there are no participants in the receive stream. What can I do to verify that?
    Are you getting the receive stream from the StreamMappedEvent.getReceiveStream() method and then looking for a DataSource -- or from the new Participant?I use receiveStream.getDataSource(), as used in AVReceive2
    Documentation would suggest that the Participant be used to get the receive stream. However, I don't have any real world experience in doing this. participant.getStreams() is empty
    If you have any other idea, please update.
    bye
    aldo

  • Supervisor has never called me back

    I have been without phone service since June 6.  Verizon keeps telling me my repair problem will be fixed the next day and it never happens.  I have been uable to speak to any supervisor about this eventhough i leave my number and they never call me back.  today when i called again, i was told i needed to schedule a repairman to come to my house eventhough last week i was told it was an area cable outage.  no one has any idea what the real issue is or what it being done to repair it.

    Hi efb,
    You currently have a support case open for this issue.  Please continue to respond in that thread, as the support agents assisting you will be looking there for any updates from you.

  • PDImageSelectAlternate "is obsolete and never called in Acrobat 8". How switch to alternate images?

    PDImageSelectAlternate "is obsolete and never called in Acrobat 8". Then how can I switch to alternate images to display in Acrobat 8 and 9?

    The goal is to speed up screen redraw (using low resolution proxies). High-end prepress software usually provide option to generate alternate images while "normalizing" incoming PDFs. And (at least) Enfocus Pitstop can switch on/off their display in Acrobat 8 and later. The question is how they do it, if PDImageSelectAlternate "is never called". Well, I chose this subject as practice for my first plugin, because it seemed to me straightforward and simple. It looks like I was wrong.

  • My iPad Air always freezes during FaceTime calls using wifi. I switch to my iPhone 5c on the same wifi, and it never freezes while I'm sitting in the same location. Is there maybe a setting I have that is causes this? I am un to date on the OS also.

    My iPad Air always freezes during FaceTime calls using wifi. I switch to my iPhone 5c on the same wifi, and it never freezes while I'm sitting in the same location. Is there maybe a setting I have that is causes this? I am up to date on the OS 7.1.1. Video and audio is froze on my end, only video freezes on the other end. It doesn't make a difference who makes the call either.

    No, there isn't any setting that you are missing. Have you tried force closing FaceTime, and resetting your iPad?
    In order to close FaceTime, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If that does not make a difference, you could try resetting all settings, if you reset all settings you will have to enter all of the device preferences again in the settings app. That takes some time to accomplish, but you will not lose my data, media, apps or anything like that. Settings>General>Reset>Reset all settings.
    If that doesn't help, the next step would be to restore the iOS software. Backup your iPad first, restore the iOS, then restore the backup.
    Use iTunes to restore your iOS device to factory settings

  • I am so sick of Verizon ripping me off and when I call the agents they are so rude to me.

    I need help.  I know you say, it sounds like it, but I can't get the help from tech support, the agents that answer the phone or the supervisors.  My MINIFIED #G has not worked for over a year.  I finally realized that I could put it on suspend which I did and I can do it one more time.
    I have 2 lines that are due for upgrades and new contracts..  I want an phone 4S and see that this can happen at rthew Apple Store.  should I have the Apple Store get me into an iPhone 4S or not?  I will lose the NE2 which for the cell line is $35 and the data line is $50.  is it possible to use any of the phones like the iPhone 4S like I used the MiFI2200 for?  Can I get a phone these days and hook my MacBook Pro up to it and have the phone act like a Mobile HotSpot?
    If that is so there is no reason to gt a 4G mobile hotspot.
    what is the best smartphone to get that has the capability to be used as a mobile hot spot and is not too hard?
    does anybody else have trouble with this company?  do they treat you like you are a loser?  Iam promised by supervisors that they will call me and help me get set-up with the devices you need but I never get a call. I am only told "I called you but you did not answe the phone.
    what is the best cell carrier to use these days?
    what is the best smartphone for my data line that has the $50 NE2 hooked up to it?  Every phone I read about says the battery is crappy.  there is not one phone that I read about that has all good marks. Just at the beginning of summer there were tons of people saying I can't wait for fall when this comes out that will be the best time.
    I got one of the agents to document if any of my devices do not work they will not charge me restocking fees but I do not know if there are any devices worth the cost this company charges.  I have a MoTO phone that is 8 years old, can't do text messages and I have unlimited.  the data device and line is suspended and I pay $80/mo and I talk to friends with other carriers whohave complicated smartphones, unlimited calls and texts and data and they pay $90/mo.
    what does a person who does not know the phones do like me?  Are there any phones that are really worth going through a new plan and getting all set up, sign a new contract and have it be worth it?
    there has got to be som people here who can help an idiot like me.  I used to be satisfied with the MOTO basic cell phone and the MIFI2200 3G. it was awesome. I would go on a trip, take my MacBok Pro and HOOK IT UP TO THE MIFI AND JUST SURF THE INTERNET, FIND A HOTEL and that was it.
    I just need to know if this company is worth staying or should I go to a better carier like ATT
    what is the phone that allows a person to hook their laptop to and suf without ot depleating my data allowance for the month?
    I am in need of big help.  thanks for any help and Merry Christmas.  I won't be getting a phone under my tree because nobody in my family knows what ssmatphones are worth it.
    should I cancel the data line I saved for the $50 NE2 or save it and get one of the new data devices?  if I should then that means none of the decent phones will allow me to use the phone as a data mobile hotspot or are there good phons that will allow me to use the phone for this purpose?
    I thought the Androids were supposed to be the next best thing.  is the Droid a good phone?
    I need help big time and help with what is a good phone and if it is the iPhone 4S can I use that phone and have it be easy and use oitas a mobile hotspot.

    NotSure wrote:
    I need help.  I know you say, it sounds like it, but I can't get the help from tech support, the agents that answer the phone or the supervisors.  My MINIFIED #G has not worked for over a year.  I finally realized that I could put it on suspend which I did and I can do it one more time. If you suspended without billing, you are not completing your contract on that line.  Each month you suspend without billing adds one month to your contract period.
    I have 2 lines that are due for upgrades and new contracts..  I want an phone 4S and see that this can happen at rthew Apple Store.  should I have the Apple Store get me into an iPhone 4S or not?  Apple may not be able to access your New Every 2, otherwise, it won't make a difference. I will lose the NE2 which for the cell line is $35 and the data line is $50.  is it possible to use any of the phones like the iPhone 4S like I used the MiFI2200 for?    Can I get a phone these days and hook my MacBook Pro up to it and have the phone act like a Mobile HotSpot? Yes, you can get phones to use as a mobile hotspot, but you have to get a larger data plan.
    If that is so there is no reason to gt a 4G mobile hotspot. If you want a 3G phone (like the iPhone), then you'll only have 3G speeds.
    what is the best smartphone to get that has the capability to be used as a mobile hot spot and is not too hard? Look on Verizon's site, each phone listing specifies if it supports the mobile hotspot, and you can read reviews.
    does anybody else have trouble with this company? No.  do they treat you like you are a loser? Nope.  Iam promised by supervisors that they will call me and help me get set-up with the devices you need but I never get a call. I am only told "I called you but you did not answe the phone. Maybe they did.  Why don't you purchase your phone in-store and ask them for help setting up your phone if that is important to you.
    what is the best cell carrier to use these days? The one that provides adequate service in the areas you use your phone at a price you find to be a good value.  You need to do some research to determine that.
    what is the best smartphone for my data line that has the $50 NE2 hooked up to it? If you add a phone to your data line, you'll need a calling plan for that line.  Why do you want two smartphones?  Why not just cancel the data line after the contract expires if you plan to get a phone with a mobile hotspot to replace that functionality?  Every phone I read about says the battery is crappy. Smartphones do not have the 2-3 day battery life many people became accustomed to with basic phones, but many of them last through the day easily, you just have to charge them at night.  Again, read the reviews to determine the best phone for you.  there is not one phone that I read about that has all good marks. And there never will be, no one phone is great for everyone, nor is any phone free of flaws.  Just at the beginning of summer there were tons of people saying I can't wait for fall when this comes out that will be the best time. There's always something new around the corner...
    I got one of the agents to document if any of my devices do not work they will not charge me restocking fees but I do not know if there are any devices worth the cost this company charges. If you exchange a phone due to an issue covered by the warranty you will get a new phone in the first 14 days, and a refurbished unit after that.  As far as the cost, if you don't like Verizon's selection, then look at other carriers, or consider buying older phones used from eBay or the like. I have a MoTO phone that is 8 years old, can't do text messages and I have unlimited.  the data device and line is suspended and I pay $80/mo and I talk to friends with other carriers whohave complicated smartphones, unlimited calls and texts and data and they pay $90/mo. A basic one line plan with unlimited texting and 2GB of data on Verizon is $89.99 + taxes/fees.  I think the mobile hotspot capable data plans are $20/month more.
    what does a person who does not know the phones do like me? Research, and then play with the phones in store.  Also, buy your phone at a store with friendly staff who can help you get set up.  You may have to go to more than one. Are there any phones that are really worth going through a new plan and getting all set up, sign a new contract and have it be worth it? Maybe, how much do you care about the features and capabilities of a smartphone?  Enough to deal with some hassle and learning curve?  If not, a basic phone may be better for you?
    there has got to be som people here who can help an idiot like me.  I used to be satisfied with the MOTO basic cell phone and the MIFI2200 3G. it was awesome. I would go on a trip, take my MacBok Pro and HOOK IT UP TO THE MIFI AND JUST SURF THE INTERNET, FIND A HOTEL and that was it.
    I just need to know if this company is worth staying or should I go to a better carier like ATT Do some research about coverage and cost, and then make a decision.
    what is the phone that allows a person to hook their laptop to and suf without ot depleating my data allowance for the month? Any mobile hotspot use will come out of your data allowance.
    I am in need of big help.  thanks for any help and Merry Christmas.  I won't be getting a phone under my tree because nobody in my family knows what ssmatphones are worth it.
    should I cancel the data line I saved for the $50 NE2 or save it and get one of the new data devices?  if I should then that means none of the decent phones will allow me to use the phone as a data mobile hotspot or are there good phons that will allow me to use the phone for this purpose? I don't know if you would be better off with a basic phone + data device, or a smartphone with mobile hotspot.  There are advantages to both setups.  You can use Verizon's site to do some mock orders and see what the cost difference would be between the two options.
    I thought the Androids were supposed to be the next best thing.  is the Droid a good phone? There is a large selection of Android phones, and many people like them.  You'll need to read some reviews and play with a few to choose the one you may like.
    I need help big time and help with what is a good phone and if it is the iPhone 4S can I use that phone and have it be easy and use oitas a mobile hotspot.

  • PL/SQL Call Back function is never called

    Hi, I have a AQ set to run a PL/SQL Call Back procedure, but the procedure is never called.
    Oracle version is 11.2.0.2 Standard Edition
    When I query aq$<queue>, the MSG_STATE column is always "ready".
    This is the queue creation script
    begin
      DBMS_AQADM.CREATE_QUEUE_TABLE ( queue_table => 'POLERMESSAGE',
                                      queue_payload_type => 'POLER_MESSAGE',
                                      multiple_consumers => TRUE );
      DBMS_AQADM.CREATE_QUEUE( queue_name => 'POLER_QUEUE',
                               queue_table => 'POLERMESSAGE');
      dbms_aqadm.add_subscriber( queue_name => 'POLER_QUEUE',
                                 subscriber => sys.aq$_agent( 'POLER_RECIPIENT', null, null ) );    
      dbms_aq.register ( sys.aq$_reg_info_list( sys.aq$_reg_info('POLER_QUEUE:POLER_RECIPIENT',
                                                                 dbms_aq.namespace_aq,
                                                                 'plsql://tr',
                                                                 HEXTORAW('FF')) ) ,
                           1 );    
      DBMS_AQADM.START_QUEUE(queue_name => 'POLER_QUEUE');    
    end;
    /This is the content of "tr" procedure
    create or replace
    procedure tr ( context raw,
                           reginfo sys.aq$_reg_info,
                           descr sys.aq$_descriptor,
                           payload raw,
                           payloadl number)
    as
      dequeue_options dbms_aq.dequeue_options_t;
      message_properties dbms_aq.message_properties_t;
      message_handle RAW(16);
      message poler_message;
    BEGIN
      dequeue_options.msgid := descr.msg_id;
      dequeue_options.consumer_name := descr.consumer_name;
      DBMS_AQ.DEQUEUE(queue_name => descr.queue_name,
                      dequeue_options => dequeue_options,
                      message_properties => message_properties,
                      payload => message,
                      msgid => message_handle);
      insert into lxtr values ( Nvl( To_Char(message.PolerMsgNro ), 'ooops' ), systimestamp ) ;
      commit ;
    end tr;If I query sys.reg$, I see it registered there:
    SQL> select subscription_name, location_name, status, state from sys.reg$;
    SUBSCRIPTION_NAME
    LOCATION_NAME
       STATUS     STATE
    "SPARCS"."POLER_QUEUE":"POLER_RECIPIENT"
    plsql://tr
            0         0I was working, until I re-compiled (don't ask...) the trigger that enqueue the message
    This is the section of the trigger (post insert for each row) that do the enqueuing. It seems to be working, since it is enqueuing. The issue is the dequeue.
    DECLARE
      enqueue_options dbms_aq.enqueue_options_t;
      message_properties dbms_aq.message_properties_t;
      message_handle RAW(16);
      message poler_message;
      err varchar2(2000);
    BEGIN
        message := poler_message(PolerMsgId,  PolerMsgNro );
        dbms_aq.enqueue(queue_name => 'POLER_QUEUE',
                        enqueue_options => enqueue_options,
                        message_properties => message_properties,
                        payload => message,
                        msgid => message_handle);
    END;If I run the code below, message is cleanly dequeued
    declare
      dequeue_options      dbms_aq.dequeue_options_t;
      message_properties   dbms_aq.message_properties_t;
      message_handle       RAW(16);
      message              poler_message;
    BEGIN
      dequeue_options.consumer_name := 'POLER_RECIPIENT' ;
      dbms_aq.dequeue( queue_name => 'POLER_QUEUE',
                       dequeue_options       => dequeue_options,
                       message_properties    => message_properties,
                       payload               => message,
                       msgid                 => message_handle);
      COMMIT;
    END ;Can anyone please give me any hints on what should I do next. There is nothing on the alert log...
    Thank you in advance,
    Tiago

    1) Very few PL/SQL programmers would consider it good form to have procedures with excessive numbers of parameters. In any language, though, it's possible to write poor code.
    2) Initially, you're right-- the performance of properly defined SQL statements via JDBC is little different than the performance of PL/SQL stored procedures. Frequently, however, SQL statements in Java applications do not take advantage of bind variables, which will significantly limit their scalability. Maintaining SQL statements in client applications makes it significantly more difficult on the support side-- if you find a bug in a stored procedure, you can fix the bug in one place-- if you find a bug in embedded SQL, you have to fix the code everywhere the client is deployed. Maintaining PL/SQL stored procedures also makes optimization easier-- frequently your DBA will be able to boil down a stored procedure to a couple of SQL statements and vastly improve performance (i.e. INSERT INTO <<table name>> SELECT <<column list>> from <<other table>> rather than looping over a cursor doing single-row inserts). Finally, PL/SQL stored procedures enable reuse-- when the next application wants to access the database, it doesn't have to rewrite your SQL.
    3) If the alternative to the bind variables (?'s) is a bunch of literals, I'll spend the extra time writing the code for the tremendous increase in scalability.
    4-6) You can certainly pass classes from Java to PL/SQL and back. You can also write Java stored procedures, rather than writing PL/SQL stored procedures). Oracle has been one of the leading proponents of Java.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • I made an in app purchase and never received what I was supposed to. I contacted the producers of the app and they never got back to me. I then contacted apple and they said they would return my 25$ purchase. I still haven't gotten it. What do I do?

    I made an in app purchase and never received what I was supposed to. I contacted the producers of the app and they never got back to me. I then contacted apple and they said they would return my 25$ purchase. I still haven't gotten it. I am starting to feel like I just lost 25 dollars and both companies are sweeping it under the bus. I don't know what to do now. What should I do?!?!

    We are users like yourself. You are not speaking to Apple here. We are not able to help. Please call Apple to inquire.
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • NamespaceContext.getPrefix() never called

    I am a newbie in the Java XML world.
    Here is my issue and the snippet of code is used to explain the problem:
    XPathVariableResolver jxvr = new JSTLXPathVariableResolver(pageContext);
    Node contextNode = adaptParamsForXalan(n, xpathString.trim(), jxvr);
    XPath xpath = XPathFactory.newInstance().newXPath();
    xpath.setNamespaceContext(jstlXPathNamespaceContext); //jstlXPathNamespaceContext is
    // initialized somewhere else
    xpath.setXPathVariableResolver(jxvr);
    Now when the xpath is evaluated using:
    xpath.evaluate(xpathString, contextNode);
    Under the debugger I can see that this call eventually calls the getNamespaceURI() method
    of JSTLXPathNamespaceContext (class for jstlXPathNamespaceContext) and then after that
    I land up at the resolveVariable(QName qname) call of JSTLXPathVariableResolver.
    What I notice in resolveVariable() call is that qname.getPrefix() is always an empty string. However, qname.getNamespaceURI() returns the proper URI string. In addition, prior to reaching resolveVariable() in JSTLXPathVariableResolver, I do see that the getNamespaceURI() method
    is being called in JSTLXPathNamespaceContext class. However, getPrefix() method of this
    class is never called. My instinct says that if this was called before resolveVariable() method is
    reached (during the creation of QName) I would get a valid prefix instead of an empty string.
    Could someone help with this. Is there something that I am doing wrong. Where does QName
    get created in resolveVariable() and why does it not call getPrefix()
    Please let me know if I can provide more info
    Thanks in advance
    -Dhiru

    The installer extension isn't removed with the application. It still can be found in Java Cache Viewer. When you remove this extension using Java Cache Viewer the uninstall method will be called.
    Is there a way to force the extension uninstallation when the main application is being removed? Removing the very application is user-friendly, you can do it from the Control Panel in Windows. It looks like JWS is missing a very important feature.
    I'm using Java 1.6.0_03 right now.

  • [svn] 2622: TextBox and TextGraphic now call applyDisplayObjectProperties() at the end of their draw() method, like all other GraphicElements.

    Revision: 2622
    Author: [email protected]
    Date: 2008-07-24 16:13:32 -0700 (Thu, 24 Jul 2008)
    Log Message:
    TextBox and TextGraphic now call applyDisplayObjectProperties() at the end of their draw() method, like all other GraphicElements. This method handles setting the visibiliy of the GraphicElement's DisplayObject, among other things.
    Note: We should make it unnecessary for each GraphicElement subclass to have to call applyDisplayObjectProperties() at the end of draw(). The GraphicElement base class should ensure that this gets called at the appropriate time.
    Group now calls draw() on graphic elements even if they are invisible, because otherwise applyDisplayObjectProperties() never gets called and the TextLines stay visible. Group was assuming that the only visible stuff in a GraphicElement is drawn with Graphics calls, which isn't the case.
    This change is OK for now because every GraphicElement currently has its own DisplayObject, but it will need to be rethought when GraphicElements share DisplayObjects.
    Reviewer: Chet
    Bug: MXMLG-206 ("Setting visible property on TextGraphic does nothing")
    QA: Peter, please add a Mustella test case for the 'visible property of TextBox and TextGraphic
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/MXMLG-206
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/Group.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextBox.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/graphics/TextGraphic.as

    Changes for spine&#8211;aligned head:
    public class StickManTool extends JPanel
        public StickManTool ()
            limbs [16] = new Limb (lankle, lfoot, 1);
            head = new Head2D (limbs[0]);
        protected void paintComponent (Graphics g)
            head.draw(graphics);
        private void updateLimbs (Point start, Point end)
            head.setPosition();
    class Head2D extends Ellipse2D.Double
        public static double width = 30;   // width of head
        public static double height = 40;  //height of head
        Point atlas;
        Point pelvis;
        private AffineTransform xform = new AffineTransform();
        public Head2D(Limb spine)
            super ();
            atlas = spine.movingJoint;
            pelvis = spine.fixedJoint;
            setPosition();
        public void setPosition()
            // Find angle of spine.
            double dy = atlas.y - pelvis.y;
            double dx = atlas.x - pelvis.x;
            double theta = Math.atan2(dy, dx);
            //System.out.printf("theta = %.1f%n", Math.toDegrees(theta));
            // Find center of head as extension along spine from atlas.
            double cx = atlas.x + (height/2)*Math.cos(theta);
            double cy = atlas.y + (height/2)*Math.sin(theta);
            // Move to origin of head.
            xform.setToTranslation(cx-width/2, cy-height/2);
            // Rotate head about its center.
            xform.rotate(theta+Math.PI/2, width/2, height/2);
        public void draw(Graphics2D g2)
            g2.draw(xform.createTransformedShape(this));
        public double getWidth () { return width; }
        public double getHeight () { return height; }
        public void setWidth (double widthIn) { width = widthIn; }
        public void setHeight (double heightIn) { height = heightIn; }
    }

  • E72 New Firmware and no more Call Log!!! Please he...

    Hello. I just recently upgraded my Nokia E72-2 to version 051.018 and while most everything seems to still work (don't see any major improvements anywhere), I have completely LOST the ability to check my call logs!
    If I click on Log from Applications, nothing happens at all.
    All I get are missed call notifications on my home screen which never go away obviously as I can't ever "check" them in the Log. So, I have an ever-building list of missed calls in my home screen.
    I can't redial anyone as pressing the "Call" button does nothing now.
    Does anyone else have these issues? Anyone have a fix? Can we downgrade? I've tired soft reset, hard reset, re-install software...nothing works.
    This is pretty ridiculous, Nokia.
    Details:
    Model: E72-2
    Type: RM-529
    Version: 051.018
    Custom Version: 051.018C00_850.01

    Just reset your phones.
    I have V51 on my E72 and have never experienced any of the problems mentioned in this thread or in any thread related to the V51 update.
    Start by doing a backup of the phone's memory to your memory card (that's in the file manager). Then do a soft reset by dialling *#7370# and providing your security code (the default on all Nokia handsets is 12345).
    The phone will then reboot, wiped clean. Go straight into the file manager and restore your backup, and the phone should now work fine.
    FWIW, whenever I get a new Nokia handset, the first thing I do is a reset, before even using the phone.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • [svn] 3937: FxContainer fix to make sure partRemoved/ partAdded are never called with a null instance.

    Revision: 3937
    Author: [email protected]
    Date: 2008-10-28 17:37:25 -0700 (Tue, 28 Oct 2008)
    Log Message:
    FxContainer fix to make sure partRemoved/partAdded are never called with a null instance. In this case, in clearSkinParts(), we would call partRemoved() on all parts, whether they were there or not. This was causing a Thermo bug.
    ASDoc fixes for Group, FxContainer, and FxDataContainer. Removing content property from ASDocs...this is not the recommended way to add items/remove items to Group/FxContainer. You should use the addItem/removeItem APIs. This is consistent with Flash Player and Halo. Under the hood someone can still set the content array, but it's discouraged because you could set two Groups to the same content array, which is hard to detect. Also, made currentContentGroup in FxContainer mx_internal...this is an implementation detail for us and something we may change later on. I also added some other ASDoc cleanups and fixes.
    QE Notes: Ran checkintests and Mustella tests for gumbo/core/ and gumbo/components/FxDataContainer. Joann is updatating the one test that failed. WHen verifying SDK-17750, please also verify Thermo bug SDK-17800.
    Doc Notes: This change includes ASDoc changes
    Bugs: SDK-17750, SDK-17741, SDK-17756
    Reviewer: Glenn
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17750
    http://bugs.adobe.com/jira/browse/SDK-17800
    http://bugs.adobe.com/jira/browse/SDK-17750
    http://bugs.adobe.com/jira/browse/SDK-17741
    http://bugs.adobe.com/jira/browse/SDK-17756
    Modified Paths:
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxContainer.as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxDataContainer .as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/Group.as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/baseClasses/FxC omponent.as

    Revision: 3937
    Author: [email protected]
    Date: 2008-10-28 17:37:25 -0700 (Tue, 28 Oct 2008)
    Log Message:
    FxContainer fix to make sure partRemoved/partAdded are never called with a null instance. In this case, in clearSkinParts(), we would call partRemoved() on all parts, whether they were there or not. This was causing a Thermo bug.
    ASDoc fixes for Group, FxContainer, and FxDataContainer. Removing content property from ASDocs...this is not the recommended way to add items/remove items to Group/FxContainer. You should use the addItem/removeItem APIs. This is consistent with Flash Player and Halo. Under the hood someone can still set the content array, but it's discouraged because you could set two Groups to the same content array, which is hard to detect. Also, made currentContentGroup in FxContainer mx_internal...this is an implementation detail for us and something we may change later on. I also added some other ASDoc cleanups and fixes.
    QE Notes: Ran checkintests and Mustella tests for gumbo/core/ and gumbo/components/FxDataContainer. Joann is updatating the one test that failed. WHen verifying SDK-17750, please also verify Thermo bug SDK-17800.
    Doc Notes: This change includes ASDoc changes
    Bugs: SDK-17750, SDK-17741, SDK-17756
    Reviewer: Glenn
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17750
    http://bugs.adobe.com/jira/browse/SDK-17800
    http://bugs.adobe.com/jira/browse/SDK-17750
    http://bugs.adobe.com/jira/browse/SDK-17741
    http://bugs.adobe.com/jira/browse/SDK-17756
    Modified Paths:
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxContainer.as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxDataContainer .as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/Group.as
    flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/baseClasses/FxC omponent.as

  • GetMethods from AuthoringScope is never called

    There are two threads on the theme:
    "I'm working on MPF package containing the language service. I need to implement MethodTips feature.
    I've created the class inherited from the AuthoringScope class from MPF and override following methods:
    GetDataTipText, GetDeclarations, GetMethods, Goto.
    All of these except GetMethods are called ok but GetMethods is never called. "
    I did as described in these threads (call the 4 methods StartName, ...) but it did not work until...
    ProvideLanguageService(typeof(PRLangServ),
    "PR Language",
                                 106,            
    // resource ID of localized language name
                                 CodeSense =
    true,            
    // Supports IntelliSense
                                 RequestStockColors =
    true,  
    // Supplies custom colors
                                 EnableCommenting =
    true,     
    // Supports commenting out code
                                 EnableAsyncCompletion =
    false, 
    // Supports background parsing
                                 AutoOutlining=
    true
    If I put EnableAsyncCompletion to true, GetMethods will never be called, if I put it as false, then it will be called.
    Why ??? Can it be considered like a bug?

    Hi philoroussel2,
    I'm not sure how this method works, I'm going to involve someone else into your case. At the same time, you can submit a feedback here for the VS product team, they might give you a good explanation about this problem.
    https://connect.microsoft.com/VisualStudio
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Syncing Multiple Devices and Cals

    We have between us an iMac, iPad, and both of us have an iPhone 4S. We both have a calendar each but can view them both on all devices (we have one each so we know who's event it is). I would like it so when one of us creates an event (mostly on our

  • Problem with my forum profile

    Hello all. I have been unable to access the functions of my proflie. If I try to view 'discussions', I get an error message saying "The specified user was not found." Does anyone know how I can fix this?

  • Ipod classic 80gb - black out completely

    Hi, this happened to my ipod classic 80gb yesterday.it is black out completely, no sound, no screen, no lights...i have tried to charge it by connecting to pc, but it has no reaction. the screen is still blank. what should i do?

  • Change Full Name in Macmail

    I put ICloud Account in the Full Name field under Account so now people receiving my emails get it from ICloud Account instead of me.  When I tried to change it to my name, I get an error message saying Incoming Server can't be blank. It's not blank

  • Adobe photoshop elements and premiere elements II

    my husband purchased adobe photoshop premiere and photoshop premiere II. during the first install all looked like it went fine, when i was working on it, it stated it was missing a file. when i reinstalled, the second verification code would not work