More event problems

Hello again, I have yet another event problem. When I try to use this code I get an error saying Abstract class actionPerformed is not implemented in non- abstract class TableWindow. I'm not quit sure how I'm supposed to implement it.

Here is what I believe to be the relevant code. addWindowListener works but addFocusListener returns the error.
// Table window
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import javax.swing.*;
import javax.swing.event.*;
public class TableWindow extends Frame implements ActionListener
public TableWindow ()
Create Window
super ("Test Window");
setBackground (SystemColor.control);
setLocation (0, 0);
setLayout (new GridLayout (5, 5));
addWindowListener (new WindowAdapter ()
public void windowClosing (WindowEvent e)
try
if (Connected == true)
// Close the Statement
stmt.close ();
// Close the connection
con.close ();
catch (SQLException sqle)
dispose ();
System.exit (0);
tPane = new JTabbedPane ();
tPane.addChangeListener (new ChangeListener ()
public void stateChanged (ChangeEvent c)
//Status.setText ("Clicked");
tablePane = new JPanel ();
recordPane = new JPanel ();
recordPane.addFocusListener(new FocusListener()
public void focusGained(FocusEvent e)
Status.setText ("Clicked");
queryPane = new JPanel ();
TName1 = new TextField (25);
TName2 = new TextField (25);
TName3 = new TextField (25);
idField = new TextField (10);
idField2 = new TextField (10);
TitleField = new TextField (25);
TitleField2 = new TextField (25);
result = new TextArea ("Under Construction", 5, 30);
NewT = new Button ("New Table");
NewR = new Button ("New Record");
NewQ = new Button ("New Query");
NewT.addActionListener (this);
NewR.addActionListener (this);
NewQ.addActionListener (this);
TNameLabel1 = new Label ("Enter name of table here");
TNameLabel2 = new Label ("Enter name of table here");
TNameLabel3 = new Label ("Enter name of table here");
idLabel = new Label ("Enter movie ID here");
TitleLabel = new Label ("Enter title of Movie here");
TitleLabel2 = new Label ("Enter title of Movie here");
tablePane.add (TNameLabel1);
tablePane.add (TName1);
tablePane.add (NewT);
recordPane.add (TNameLabel2);
recordPane.add (TName2);
recordPane.add (idLabel);
recordPane.add (idField);
recordPane.add (TitleLabel);
recordPane.add (TitleField);
recordPane.add (NewR);
//recordPane.add (tableChoice);
queryPane.add (TNameLabel3);
queryPane.add (TName3);
queryPane.add (TitleLabel2);
queryPane.add (TitleField2);
queryPane.add (NewQ);
queryPane.add (result);
Status = new Label ("");
// make the window and add components to it
tPane.addTab ("Table", tablePane);
tPane.addTab ("Record", recordPane);
tPane.addTab ("Query", queryPane);
add (tPane, BorderLayout.CENTER);
add (Status, BorderLayout.SOUTH);
pack ();
setVisible (true);
public static void main (String args [])
ConnectToDatabase ("vdds");
TableWindow tw = new TableWindow ();
}

Similar Messages

  • Event problem - slow/delayed reaction to keypresses!

    Hi all!
    Im trying to implement a first person free mouse view with strafe in the game im working on. I use KeyListener interface and my problem is that when I hold down a key it fires a KeyEvent to begin with! Then after a delay of aproximately half a second to a second more event are being fired. It gives really slow reaction - something that I can not use in my game. What to do? If someone has a good fix to this issue please post a little code snippet I can check out.
    I wish you all a good day.

    It just seems easier to set a bool. true when keyPressed - false when released. And then just run while trueOf course this creates an infinite loop which uses up the CPU resources. Not a very good idea.
    Yup, my thoughts exactly (see reply #4).Using a Thread or a Timer is a similiar in concept (much better then the above suggestion), but there are differences.
    For example when using a Thread your code will execute then you will sleep for a period of time. So if your code takes 100 milliseconds to execute and you sleep for 1000, then every cycle will take 1100 ms. The total length of time between events will vary between CPU's since the 100ms execution time will vary depending on the speed of your CPU. However, when using a Timer an event will fire every 1000ms whether your processing takes 100ms or 500ms. Which means your cycle time is exactly 1000ms.
    Using a Thread you must use the SwingUtilities.invokeLater to update the GUI since the code executes in a non Event Thread. However when using a Timer all the code executes in the Event Thread so you don't need to worry about SwingUtilities.invokeLater. Of course if your code is heavily CPU bound you may need to create a separate Thread anyway so you don't block the Event Thread from responding to events.
    But the main point is using a Timer will give you a cycle time of a fixed duration, whereas using a Thread will give you a variable cycle time depending on CPU and duration of executable code.
    The choice of implementation is up to the OP.

  • No More Resource problem

    Hi:
    I have a J2EE application using Connection Pool and JDBC.
    I am using Weblogic 6.1 and JDK 1.3.1.
    I am running into a 'No More Resource' problem. I did some debugging and think the cause is due to all my 80 database connections are used up so no new connection is available. But all the 80 connections shouldn't be used up because I did the statement.close() and rs.close() in the finally{} statement in all my DAO methods. But it seems like the connections are not released back to the free pool.
    I thought I read something that I might need to do a conn.close() too in order for the connections to be returned to the pool and marked as available. Don't the statement.close() do that? Thanks for any help!
    Stella

    Any resolution on this? We're getting the same problem - using weblogic 6.1 and jdk131. We should never reach the max # of connections specified in the pool but periodically we do. Scraped through all the code and confirmed that for every connection we call ResultSet.close; Statement.close; Connection.Close in the finally block of the try/catch statements. But we still periodically reach the max. It's sporadic so we can't reproduce. Also, after we get the error and we check the weblogic console, we see the # of active connections drop back down below the max capacity (we have shrinking turned on). Any ideas?
    thx.
    --S.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • InputField fire event problem in webDynpro

    I have one validation or Fire Event problem with respect to Inputfield in web Dynpro.
    I have one Input filed and created the context varible for that, then i mapped the context varible to the InputField, and i changed the context varible type as date.So , when i run the view , it will show the calender near to the text box to select the perticular date. On select of the perticular date. It will populate selected  date in to the inputField.
    On selection of the perticular date. Based on the date i want to generate the next 12 months date at runtime in different text boxes. But the only event available for the InputField is only "onEnter". This is not useful in my case, bcz on selection of the Date , the user may not use the Enter key. so , how can use the other events like onSelection or onChange events in the InputFields to reach my needs.
    Any one  give me the idea to solve this problem.
    Vijay

    Hello Vishal,
    You may also refer the sample code in the below link
    <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8">http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8</a>
    Regards,
    Sudeep.

  • An event problem

    Imagine this scenario: A component with an added mouseMotionListener, the mouse is pressed upon the component, dragging occurs, the component is removed, invisible, but the mousebutton is still pressed, and I would like to keep getting mouseDragged events. Not peticularly from the original component, just from some component.
    How do I do that?

    If I understand well, you want to drag a component and this component become invisible when you start dragging and become visible when you drop it.
    I realized something like this with drag and drop.
    I created MoveableLabels which have a mouse listener and a mouse motion listener added to them. Those listeners transmit each event they receive to their parent container. This container have a drag gesture recognizer that catch the forwarded events and proceed with the dnd.
    I did that because when the component become invisible, no more events are created, so it is necessary to transfer the event to the parent container which one stays visible.
    Here the code :
    The main class :
    import java.awt.*;
    import javax.swing.*;
    public class TestDragComponent extends JFrame {
         public TestDragComponent() {
              super("Test");
              Container c = getContentPane();
              c.setLayout(new GridLayout(1,2));
              c.add(new MoveableComponentsContainer());
              c.add(new MoveableComponentsContainer());
              pack();
              setVisible(true);
         public static void main(String[] args) {
              new TestDragComponent();
    }The class for moveable labels (you can do the same thing with all kinds of components :
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class MoveableLabel extends JLabel {
         public MoveableLabel(String text) {
              super(text);
              MouseEventForwarder forwarder = new MouseEventForwarder();
              addMouseListener(forwarder);
              addMouseMotionListener(forwarder);
         final class MouseEventForwarder extends MouseInputAdapter {
              public void mousePressed(MouseEvent e) {
                   Container parent = getParent();
                   if (parent != null) {
                        Point newPoint = SwingUtilities.convertPoint(MoveableLabel.this, e.getPoint(), parent);
                        e.translatePoint(newPoint.x-e.getX(), newPoint.y-e.getY());
                        e.setSource(parent);
                        parent.dispatchEvent(e);
              public void mouseReleased(MouseEvent e) {
                   Container parent = getParent();
                   if (parent != null) {
                        Point newPoint = SwingUtilities.convertPoint(MoveableLabel.this, e.getPoint(), parent);
                        e.translatePoint(newPoint.x-e.getX(), newPoint.y-e.getY());
                        e.setSource(parent);
                        parent.dispatchEvent(e);               
              public void mouseDragged(MouseEvent e) {
                   Container parent = getParent();
                   if (parent != null) {
                        Point newPoint = SwingUtilities.convertPoint(MoveableLabel.this, e.getPoint(), parent);
                        e.translatePoint(newPoint.x-e.getX(), newPoint.y-e.getY());
                        e.setSource(parent);
                        parent.dispatchEvent(e);
    }The class needed to transfer the comonents :
    import java.awt.datatransfer.*;
    import java.awt.*;
    import java.util.*;
    public class TransferableComponent implements Transferable {
         public static final DataFlavor COMPONENT_FLAVOR = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType, "Component");
         private Component component;
         private DataFlavor[] flavors = { COMPONENT_FLAVOR };
         * Constructs a transferrable component object for the specified component.
         public TransferableComponent(Component comp) {
              component = comp;
         public synchronized Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException {
              if (flavor == COMPONENT_FLAVOR) {
                   return component;
              else {
                   throw new UnsupportedFlavorException(flavor);     
         public DataFlavor[] getTransferDataFlavors() {
              return flavors;
         public boolean isDataFlavorSupported(DataFlavor flavor) {
              return Arrays.asList(flavors).contains(flavor);
    }And the last class : the container which manages dnd :
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.awt.dnd.*;
    import java.awt.datatransfer.*;
    public class MoveableComponentsContainer extends JPanel {     
         public DragSource dragSource;
         public DropTarget dropTarget;
         public MoveableComponentsContainer() {
              setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.white, Color.gray));
              setLayout(new FlowLayout(FlowLayout.LEFT,5,5));          
              dragSource = new DragSource();
              ComponentDragSourceListener tdsl = new ComponentDragSourceListener();
              dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, new ComponentDragGestureListener(tdsl));
              ComponentDropTargetListener tdtl = new ComponentDropTargetListener();
              dropTarget = new DropTarget(this, DnDConstants.ACTION_MOVE, tdtl);
              setPreferredSize(new Dimension(400,400));
              addMoveableComponents();
         private void addMoveableComponents() {
              add(new MoveableLabel("label 1"));
              add(new MoveableLabel("label 2"));
              add(new MoveableLabel("label 3"));
              add(new MoveableLabel("label 4"));
         final class ComponentDragSourceListener implements DragSourceListener {
              public void dragDropEnd(DragSourceDropEvent dsde) {
              public void dragEnter(DragSourceDragEvent dsde)  {
                   int action = dsde.getDropAction();
                   if (action == DnDConstants.ACTION_MOVE) {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveDrop);
                   else {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
              public void dragOver(DragSourceDragEvent dsde) {
                   int action = dsde.getDropAction();
                   if (action == DnDConstants.ACTION_MOVE) {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveDrop);
                   else {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
              public void dropActionChanged(DragSourceDragEvent dsde)  {
                   int action = dsde.getDropAction();
                   if (action == DnDConstants.ACTION_MOVE) {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveDrop);
                   else {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
              public void dragExit(DragSourceEvent dse) {
                 dse.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
         final class ComponentDragGestureListener implements DragGestureListener {
              ComponentDragSourceListener tdsl;
              public ComponentDragGestureListener(ComponentDragSourceListener tdsl) {
                   this.tdsl = tdsl;
              public void dragGestureRecognized(DragGestureEvent dge) {
                   Component comp = getComponentAt(dge.getDragOrigin());
                   if (comp != null && comp != MoveableComponentsContainer.this) {
                        remove(comp);
                        dragSource.startDrag(dge, DragSource.DefaultMoveDrop , new TransferableComponent(comp), tdsl);     
                        revalidate();
                        repaint();
         final class ComponentDropTargetListener implements DropTargetListener {
              private Rectangle rect2D = new Rectangle();
              Insets insets;
              public void dragEnter(DropTargetDragEvent dtde) {
                   dtde.acceptDrag(dtde.getDropAction());
              public void dragExit(DropTargetEvent dte) {
              public void dragOver(DropTargetDragEvent dtde) {
                   dtde.acceptDrag(dtde.getDropAction());
              public void dropActionChanged(DropTargetDragEvent dtde) {
                   dtde.acceptDrag(dtde.getDropAction());
              public void drop(DropTargetDropEvent dtde) {
                   try {
                        int action = dtde.getDropAction();
                        Transferable transferable = dtde.getTransferable();
                        if (transferable.isDataFlavorSupported(TransferableComponent.COMPONENT_FLAVOR)) {
                             Component comp = (Component) transferable.getTransferData(TransferableComponent.COMPONENT_FLAVOR);
                             Point location = dtde.getLocation();
                             if (comp == null) {
                                  dtde.rejectDrop();
                                  dtde.dropComplete(false);
                                  revalidate();
                                  repaint();
                                  return;                              
                             else {                         
                                  int index = getComponentIndex(getComponentAt(location));
                                  add(comp, index);
                                  dtde.dropComplete(true);
                                  revalidate();
                                  repaint();
                                  return;
                        else {
                             dtde.rejectDrop();
                             dtde.dropComplete(false);
                             return;               
                   catch (Exception e) {     
                        System.out.println(e);
                        dtde.rejectDrop();
                        dtde.dropComplete(false);
         public int getComponentIndex(Component c) {
              Component[] comps = getComponents();
              for (int i = 0; i<comps.length; i++) {     
                   if (comps[i] == c) {
                        return(i);
              return(-1);
    }In this application there are two panels (left and right) containing each four moveable labels.
    You can move the labels inside a same panel and from a panel to the other. The layout manager of the panels is a flow layout.
    For example : if you press the mouse button over a label and start a drag, the label will become invisible. If you drag the mouse (mouse button always pressed) over another label, the dragged label will become visible and will be inserted before or after the other label (depending on the mouse position).
    I hope you will find ideas with this help,
    Denis

  • Yet more TagLibs problems

    As jato2 still doesn't know about some HTML4 tags like <label>
    ex:
    <label><input type="radio" ... />TheLabel</label>
    if you click on "TheLabel", it clicks on the radio button, like every
    other GUI
    I thought I would be able use the <label for=""> as a workaround
    <input type="radio" name="choice" id="choice1" /> <label
    for="choice1">TheLabel</label>
    BUT despite it generates several tags, <jato:radioButtons> sets the id
    attribute to the same value for every tag :< This not only defeats my
    workaround but also id main purpose to uniquely identity elements.
    We really need a generic mechanism to specify attributes when jato tags
    generate multiple HTML tags.
    I can still change the generated tags in endDisplay but it be neat if
    the 201 taglib was a little bit more XHTML compliant and savvy ;)
    Fr?d?ric
    ps: release this part of the source code and we'll do it !

    Give me until monday and I'll have what you "ask" for (WML/XHTML
    Basic/Mobile as well as ViewBean).
    Following Todd advices,
    for the former, I am having new tags to render the same components. I
    may need to write new components but I'm not sure yet.
    for the latter, 1 pagelet per "rendering" type with an inner
    ContainerView when the logic is different ; the pagelet tags being
    surrounded by a homemade tag that "activates" the pagelet based on the
    client type. A specialized tag seems better than <jato:content> as the
    logic is wired.
    Further step would be to make the tags client aware but I'm not sure
    yet it is the right thing to do. Are tags "allowed" to store data in
    the session (to avoid computing client type ever and ever) ?
    Fr?d?ric
    PS: James Baty will confirm I'm not cheap ;?)
    On mercredi, nov 13, 2002, at 21:11 Europe/Paris, Craig V. Conover
    wrote:
    Fr?d?ric
    Is there anyway that we could talk with you about your WML efforts with
    JATO?
    I would love to get a sample WML app to show the world. And then have a
    WML/HTML app to show multiple clients using the same ViewBeans.
    craig
    Fr?d?ric Miserey wrote:
    On mercredi, nov 13, 2002, at 13:34 Europe/Paris, Todd Fast wrote:
    Fr?d?ric--
    Thanks for the info; I will look into a way of doing something
    about
    this.
    However, please keep in mind that you can write your own complementary
    tags
    to render JATO components any way you like (or write JATO components
    that
    render themselves any way you like), and this is expected to be a
    normal, if
    infrequent, part of writing JATO 2.0 components.That's what I'm doing right now for the WML tags. But I was planning on
    using the standard tags for mainstream HTML ;)
    May you elaborate a little bit on complementary tags vs components ?
    (first part of the suggested thread.
    Until the 2.0 taglib is documented, you can use the 1.2.1 JATO
    source
    to
    guide this effort.? It's actually pretty easy, but you will need the
    source
    to guide you without docs to that effect.? You can download the JATO
    1.2.1
    source, free of charge, etc. here:
    ???? http://iplanet.com/downloads/developer/5102.html
    (If that doesn't work, just do a search for "JATO" on sun.com).? We
    can also
    start a tag-writing thread here if you like.
    I would love to get your perspective on any XHTML shortcomings of the
    current tag library.? Can you plase send your thoughts, list of
    issues, etc.
    to jatoteam@e...?you don't know what you've just asked ;)
    Todd
    ----- Original Message -----
    From: "Fr?d?ric Miserey" <frederic@n...>
    Sent: Tuesday, November 12, 2002 8:35 AM
    Subject: [SunONE-JATO] yet more TagLibs problems
    As jato2 still doesn't know about some HTML4 tags like <label>
    ex:
    <label><input type="radio" ... />TheLabel</label>
    if you click on "TheLabel", it clicks on the radio button, like
    every
    other GUI
    I thought I would be able use the <label for="">? as a workaround
    <input type="radio" name="choice" id="choice1" /> <label
    for="choice1">TheLabel</label>
    BUT despite it generates several tags, <jato:radioButtons> sets the id
    attribute to the same value for every tag :< This not only defeats my
    workaround but also id main purpose to uniquely identity elements.
    We really need a generic mechanism to specify attributes when jato tags
    generate multiple HTML tags.
    I can still change the generated tags in endDisplay but it be neat if
    the 201 taglib was a little bit more XHTML compliant and savvy ;)
    Fr?d?ric
    ps: release this part of the source code and we'll do it !
    [Non-text portions of this message have been removed]

  • One more time - problems with fans

    I realize this is but one of hundreds or possibly thousands of cases of Mac users being plagued by fan noise problems, but to me it has been a long and extremely frustrating saga. I have been a Mac user since the very beginning, through different versions of Macs and iMacs, and this is the first time I ever refer to a Macintosh as a "piece of junk."
    I bought my iMac G5 in August 2005, a 20-inch ALS with 250 GB hard drive and 512 MB RAM. It worked perfectly until January this year, when all of sudden it shut down by itself. Freaked me out completely. Turned out to be power supply problem (EMC 2056) which Apple never informed me about.
    I brought it to a repair shop that fixed the intermittent shut-down problem. I also added 1GB memory. But then the fans started to go berserk. Before the power supply problem, I only heard the fans whenever I used a large program like Photoshop. For the most part, it was a very quiet machine. After the power supply was replaced, within minutes of turning the iMac on, I could hear the fans spinning faster and faster, stabilizing at around 4400 rpm and did not stop spinning until I put the iMac to sleep or turned it off, regardless of CPU usage or software being used.
    I checked the discussions at this forum (over 500 posts, no real answer) and did every "voodoo trick" suggested: I reset the SMU dozens of time, cleaned the inside of the iMac and around the fan area, did apple hardware test (everything was fine), monitored temperature and activity with XRG (average CPU at 160F, hard drive at 113F), cleaned out caches, tested for corrupt preferences, re-installed the original OS 10.4 (which only made the fans louder), upgraded it back to OS 10.4.9. I also removed the additional 1 GB memory, thinking it might be a bad piece. It didn't help.
    Finally, I requested fan replacement from Apple and got them. I installed them last Sunday and now the problem is even worse! Within SECONDS of turning it on, the CPU T- Dio soars to around 170F, even while the machine is still stone cold to the touch. The hard drive temperature now averages at 117F, CPU fan is never below 4000 rpm (4400 rpm 98% of the time), even at 5-8% CPU usage.
    The fans themselves are much quieter because they're brand new. But you can still hear the hums and whirs and it drives me nuts. More seriously, my iMac is now narcoleptic. If I use it too long (a few hours on a stretch) it will put itself to sleep, apparently because it thinks it is overheated. And when I use Photoshop or Illustrator, the awake time is even shorter. Depending on the outside temperature, at the most I can only use them for about an hour at a time. Two days ago we had heat wave, and even with the air conditioner running full blast in my study, the iMac kept falling asleep within minutes of using Illustrator.
    Right now I am using TextEdit and no other program is running. Uptime is 59 minutes, average CPU 9.6%. CPU T-Dio is at 168.8F, hard drive 117.5F, CPU fan at 4400 rpm. I am out of ideas and before I do something drastic to this machine, if anyone knows what's going on with my iMac (I know every case is different), please help!
    iMacG5 ECM 2056   Mac OS X (10.4.9)   20"/2.0GHz Power PC/1.5GB DDR SDRAM/250GB
    iMacG5 ECM 2056   Mac OS X (10.4.9)   20"/2.0GHz Power PC/1.5GB DDR SDRAM/250GB

    I do not have the solution... but the same problem with a nice iMac G5 purchased in July 2005.
    My Mac operated very silently untill 6 month ago;problem MAY ( I am not sure) have started when I upgraded to 10.4.10 ; even with few applications and low CPU usage (80% or more inactive), it seems that I have the following regrettable chain of events;
    ==> the CPU temperature is quite high ( 60°c to 72°c most of the time, ie 140-160 °F)
    ==> resulting in fan turning at high speed ( 2.000 for CPU and system, 2500 for HD), and changing speed all the time
    ==> resulting in a noisy computer
    I am SURE this was not the case 6 month ago, and I suspect it is linked to my upgrade to 10.4.10.
    I did all sorts of reinstall, authorization repair, SMU reset, fan clean-up with no sucess.
    iMac G5 (2005)   Mac OS X (10.4.10)   POwerbook G4 Titanium (2001)

  • More Event Logs in Production Servers

    The description for Event ID 0 from source Microsoft Deployment Agent cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local
    computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event: 
    Timestamp: 3/23/2015 1:00:01 AM
    Message: Object reference not set to an instance of an object.: \r\n\r\n   at Microsoft.TeamFoundation.Release.Data.Model.SystemSettings.LoadXml(Int32 id)
       at Microsoft.TeamFoundation.Release.Data.Model.ModelFactory.Load[T](Int32 id)
       at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.HeartBeat.SetNewInterval()
       at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.HeartBeat.TimerElapsed(Object sender, ElapsedEventArgs e)
    Category: General
    Priority: -1
    EventId: 0
    Severity: Error
    Title:
    Machine: SANDMAN
    Application Domain: DeploymentAgent.exe
    Process Id: 2148
    Process Name: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Release Management\bin\DeploymentAgent.exe
    Win32 Thread Id: 56408
    Thread Name: 
    Extended Properties: 
    I get the above error logged in production servers and its affecting the performance of my production servers. There is a problem in establishing a connection between the deployment agent and release management server and that's identified as the reason
    for these errors. 
    Please advice on how to change the frequency of number of errors logged in production servers.

    Hi Amar_Baktha,
    For your situation, you can follow the following methods to check if the problem can be fixed:
    1. Please let us know the version of Release Management you're using. If you use Update 2 or 3, you can rollback to RTM or install Update 4 to have a try. Check last reply in this
    thred for more info.
    2. Also let us know if the production server and client machine in different domains. If yes, then you can use shadow account. You can refer to this
    blog.
    3. Remove IIS and readd it.
    4. Check if Windows server update service is installed on your production machine. Install/Uninstall it to have a check if the connection can be established.
    Please try the methods I mentioned above. If the problem still exist, it would be better to elaborate more details about your scenario.
    Best regards,
    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.

  • Moving Projects; Duplicating Events- Problem

    Hi, I know that I can copy events and projects from an internal drive to external storage device by dragging them to the connected drive; moving them by holding down the command key while dragging.
    The problem I'm having is that events that are referenced by multiple projects are being copied each time i copy over a project that references the event resulting in multiple instances of the event on the external drive. If I copy the first project and then copy a different project, i'm told that "clips used in the project are not the hard disk..." But the event with the clips ARE already there on the external drive. (I can tell they're there because if I select the project on the external drive and then select the event in the Event Library, there's a little red line on the clip indicating that's it's been used in the selected project)
    Am I missing something here?
    Thanks for any help
    Chris

    kkorgan wrote:
    Thanks so much for responding! That all makes sense, and I was concerned about editing from the server directly because of bottlenecking, so I will continue to have my current project on my local drive and then move it later.
    Can you clarify this for me:
    "create a sparse disk image on the server, mount it"
    Does that mean I create a "shortcut" on my desktop to the area in the server where it goes and then archive my projects to it?
    One more question, when I hide my events/files as you show in your screenshot, isn't it still housing my footage on my local drive and therefore eating up space?
    A  disk image is a special kind of file that you can double click and mount as if it were a hard disk.
    The word "sparse" means that it will grow only as you add content to it. So you can create a sparse disk image with size, say, 50GB, but if you only add files that occupy 1GB, that's the space it will take on disk; it will grow as needed to accomodate more files (assuming the actual disk where the image resides has available space, of course). You create disk images in Disk Utility.
    You probably have used disk images a lot without maybe realizing it. The dmg files that contain installers for many applications are disk images.
    Regarding the hidden events: yes, if they are still on the drive they will still occupy space. If the matter is freeing space on the drive, this will not help; but if the matter is making FCP X work faster and use less memory, it will.
    And you could just as well take the events and "hide" them in a different drive.

  • Spark Label event problem

    Event handler for a Spark.Label control:
    private function onLabelClick(e:MouseEvent):void
    trace(e.target);
    trace(e.target.text);
    First trace returns: '[object TextLine]'
    Then I get this: ReferenceError: Error #1069: Property text not found on flash.text.engine.TextLine and there is no default value.
    What is going on here and how to fix it ??
    And: is it just me or does anyone else have LOADS of problems dealing with all the new 'improvents' in Flex 4??
    (I have to admit that I find the new spark stuff very confusing)

    Hi,
    Try using currentTarget.
    As far as flex 'problems', flex 4 is in beta and as things change this could be considered a problem but its beta which means expect a little confusion
    fundamentally the basic stuff still work the same, spark has a bit of a learning curve which is to be expected when a product becomes more powerful.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Script>
    <![CDATA[
    protected function label1_clickHandler(event:MouseEvent):void
    lblResult.text = event.currentTarget.text;
    ]]>
    </fx:Script>
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Label x="148" y="85" text="A Label that is clickable" click="label1_clickHandler(event)"/>
    <s:Label id="lblResult" x="148" y="115" text="result"/>
    </s:Application>

  • Mouse event problem (NEW problem)

    Sorry guys...
    The last problem was solved, yes... but another one has shown
    up!
    Remember the code:
    txt82.visible = false;
    botao82.addEventListener(MouseEvent.MOUSE_OVER, botao82over);
    botao82.addEventListener(MouseEvent.MOUSE_OUT, botao82out);
    botao82.addEventListener(MouseEvent.CLICK, botao82click);
    function botao82over(event: MouseEvent)
    txt82.visible = true;
    function botao82out(event: MouseEvent)
    txt82.visible = false;
    function botao82click(event: MouseEvent)
    gotoAndPlay("video82");
    where i wanted a texto to show or hide depending on the mouse
    event?
    Ok...
    Now, when i CLICK, i'll go over to "video82" allright, but
    i'll ALSO get an error!
    "Cannot access a property or method of a null object
    reference" - on botao82out
    which means that: when i click and move up to "video82", the
    mouseout is also called to make the text dissapear but the function
    is no more available because we've moved up to another time.
    Any possibilities?
    Erik.

    Hi Haran,
    bota82 IS the movieclip, which has to be like that because of
    the naming of it's instance, used to get called in the code.
    But anyway, guys, i found the solution! YEP! Increases
    tremendously the code, but... well... it works!
    i had the button layer extended all over the time.
    The problem with this is that when i clicked and went to the
    frame video82, for example, all the buttons still showed as
    clickable.
    How did i solve that?
    More magic! Disappearing magic!
    at the beginning of the code i certify the buttons to be
    visible:
    botao82.visible = true;
    and so on with all of them...
    then, right before the click function, i turned them all OFF
    ! :D
    function botao82click(event: MouseEvent)
    botao82.visible = false;
    botao83.visible = false;
    botao84.visible = false;
    botao85.visible = false;
    botao86.visible = false;
    botao87.visible = false;
    botao88.visible = false;
    botao89.visible = false;
    botao90.visible = false;
    gotoAndPlay("video82");
    Phew! It worked!
    Know what? I think clearer when i discuss the problem with my
    fellows here in the forum! Thanks everyone.
    Hope this helps others in the future!
    Erik.

  • EVENT PROBLEM please help

    hey everyone,
    ok heres my problem i have a jpanel with 11 jtextfields and i jbutton. when the jbutton is preseed it calls and actionlistener is envoked and the 11 jtextfields are populated. this works fine the textfields all get the correct information.
    my problem is that the information is displayed only after the whole event has finished. not as each individual textfield calls the setText() command.
    please help
    matt
    kappsetsfire

    The text fields won't be updated until a repaint occurs.
    Repaints occur on the same thread as other UI events (like clicking the button).
    Thus the repaint(s) can't be serviced until the UI thread has finished what it's doing - namely, working through your code.
    Even asking the text fields to repaint explicitly won't solve it as the repaint will still have to wait for your code to finish.
    If your method that's setting all the text field values takes a while to execute you should be running it in a separate thread and calling onto the UI thread to set the text field values.
    If you want more information just search/ask.
    Hope this helps.

  • PJC EVENT PROBLEM

    Hi All,
    I have a PJC (pluggable Java Component) to dispatch an event every XX seconds.
    The problem is i don't want to dispatch CUSTOM-ITEM-EVENT since the bean is running in a background form
    and i will be opening multiple forms at the same time.....
    Is there any way that i can call a forms trigger or dispatch a "WHEN-BUTTON-PRESSED" event to a forms button from inside the java bean??
    Thank you..

    Hello,
    The only message you can send back to Forms from the Java Bean is the When-Custom-Item-Event.
    If you don't want to send message back when the module is not active, you could use the When-Window-Deactivated trigger to tell the Java Bean that it is not active any more, and When-Window-Activated to allow again the bean to send message back to Forms.
    Francois

  • Event problem, control does not working

    Hi !
    I have "Tab Control" and there is both pages a Stop button.
    If there is first selected page1 and i run vi and then i select page2
    and i try push Stop2 button nothing happens.
    Whats is the problem ?
    page2 Stop2 button works if there is first selected page2.
    page1 Stop1 button works OK.
    See attachment.
    -HeVi-
    Attachments:
    Test__06_Event.vi ‏28 KB

    OK, take a few steps back and look at your code from scratch!
    You seem to be under the false impression that a tab control needs a case structure on the diagram. Don't micromanage your code! A tab structure is just an easy way to simplify the front panel. From the perspective of the code, you can assume that all controls of all tabs are always visible. (If execution should depend on tab position, place the case structure inside the event structure. )
    See also my earlier comments here.
    You should never place event structures inside cases (or even worse, multiple event structures in multiple cases of the same case structure). Having to add unecessary timeouts is just a kludge to hide a poor program design. More comments can be found at the end of my other post.
    Don't add timeout events unless you really need to do something important at regular intervals. Most of my event structures don't use the timeout event at all.
    Also, if a stop button should be accessible independent of tab position, it should probably NOT be on the tab structure, but next to it! Alternatively, you can "float" a single stop button on top of the tab structure as follows: Select the stop button, then, using only the arrow keys, move it to the desired location on top of the tab structure. While editing, the stop button will have a shadow to indicate that it is not part of the tabs. This shadow disappears while running.
    LabVIEW Champion . Do more with less code and in less time .

  • Event Problem constant triggering

    I am having problems using an event structure.  I am not quite sure how to explain the undesired behavior I am seeing.
    I have an event that when triggered takes a few seconds to complete.  I don't want to lock the panel because I would like to still receive input during this time and have the events queue.  The problem I am seeing, however, is that if the event is queued it somehow keeps the trigger enabled. 
    For example, if I trigger the event and while the task is running the event is triggered again; like it should, it will run the task again after the completion of the first.  The problem that is arising is that it will the keep triggering the same task over and over again (executing over and over again) even without any addition triggers.  This will continue until a different task is triggered in the same event structure.
    How can I stop this continuous triggering of the event?  And why is it occuring in the first place?
    LV 8.0 through 2013, Win 7
    CLA

    The Q wrote:
    The problem that is arising is that it will the keep triggering the same task over and over again (executing over and over again) even without any addition triggers.  This will continue until a different task is triggered in the same event structure.
    I still would like to see the code that does this. It should not happen, so maybe you discovered a bug that NI should be made aware of.
    Remember that value changes of "analog style" controls such as slides will typically trigger quite a few indentical events, not just one.
    Maybe that's what you are seeing?
    One workaround for this particular problem is described HERE. See if applies to your situation.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for