JTree nodes not updating

I have a JTree which the nodes are changed from within an actionPerfomed method. However, they are not updating on the screen until a user clicks on a node. Also, the length of the selection box does not change on the tree, so text can be clipped. The code from my actionPerformed is as follows
DefaultMutableTreeNode node = findObjectInTree( event.getOriginalObject() );
if ( node != null ) {
node.setUserObject( event.getObject() );
DefaultTreeModel model = ( DefaultTreeModel ) titleTree.getModel();
model.nodeChanged( node );
TreePath path = new TreePath( node.getPath() );
titleTree.scrollPathToVisible( path );
titleTree.setSelectionPath( path );

I'm not sure what that 'event.getOriginalObject()' stuuf is, but maybe this will helpimport java.awt.*;
import javax.swing.*;
import javax.swing.tree.*;
import java.util.*;
public class Test3 extends JFrame implements Runnable {
  Vector nodes = new Vector();
  DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
  DefaultTreeModel dtm = new DefaultTreeModel(root);
  JTree jt = new JTree(dtm);
  Random r = new Random();
  int nodeCount=0;
  public Test3() {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container content = getContentPane();
    addNodes(root,0);
    content.add(new JScrollPane(jt), BorderLayout.CENTER);
    setSize(400, 400);
    new Thread(this).start();
  private void addNodes(DefaultMutableTreeNode parent, int level) {
    int cnt = r.nextInt(3)+5-level;
    for (int i=0; i<cnt; i++) {
      DefaultMutableTreeNode node = new DefaultMutableTreeNode("Node"+nodeCount++);
      parent.add(node);
      nodes.add(node);
      addNodes(node, level+1);
  public static void main(String[] args) { new Test3().setVisible(true); }
  public void run() {
    while (true) {
      try { Thread.sleep(2000); } catch (Exception e) {}
      DefaultMutableTreeNode randNode = (DefaultMutableTreeNode)
                                     nodes.get(r.nextInt(nodes.size()));
      randNode.setUserObject(randNode.getUserObject()+"!");
      dtm.nodeChanged(randNode);
      TreePath tp = new TreePath(randNode.getPath());
      jt.scrollPathToVisible(tp);
      jt.setSelectionPath(tp);
}

Similar Messages

  • Visual nodes not updating unless I resize the application window

    I'm not sure what has happened here but I can add new nodes and use my app as normal but there is no longer any change on screen to indicate modified nodes until I resize the application window!
    Once i double click the top of the app window sure enough I can see the new nodes that were added.. this is very frustrating.. Any ideas what this could be?
    I went back to an older version of my app and it is occurring with that also so it isn't new changes to the app. Is my javafx broken somehow?

    This is really weird... I reinstalled java, javafx, and netbeans and it didn't rectify the problem immediately. After a few days I came back to netbeans and tried the application and it was working properly. Without changing anything.
    Now again, I shutdown and restarted the PC and have come back to netbeans and the application will not update moved objects on screen unless you resize the window!
    This is really crazy... I literally had this application working perfectly for several days before I shut down my PC (I usually just sleep the computer for days on end until it needs a reboot).
    Restarted PC and the old problem came back... I'm running Windows 7 64 bit... Am I going crazy? I don't feel this is code related!

  • New Jtree node not displaying

    I have created a Jtree with some default elements. Later on I add new ones with the: treeModel.insertNodeInto() method. However the new node is not displayed. If I colapse and expand the tree it's still not displayed. Is there anything I need to do to tell the tree to refresh itself.

    Here are some more details that might help isolate this refresh problem. I've got a custom JPanel that displays a JTree. The root of JTree has 2 children: A, and B. You can dynamically add a Foler to A, where Folder implements TreeNode. You can drag elements from the tree rooted at B to a Batch. I've subclassed JTree to handle the drag and drop.
    public class Folder implements MutableTreeNode {
    public class MyPanel extends JPanel {
        private DefaultMutableTreeNode root, A, B;
        private MyTree tree;
        public MyPanel() {
            root = new DefaultMutableTreeNode();
            A = new DefaultMutableTreeNode("A");
            B = new DefaultMutableTreeNode("B");
            root.add(A);
            root.add(B);
            tree = new MyTree(root);
        // this method refreshes the tree correctly!!!
        public void addFolder(Folder f) {
            A.insert(f, A.getChildCount());
            // let the model know that the node was inserted
            DefaultTreeModel model = (DefaultTreeModel)tree.getModel();
            model.nodesWereInserted(A, new int[] {A.getChildCount() - 1});
            tree.makeVisible(new TreePath(new Object[] {root, A, f}));
    public class MyTree extends JTree
    implements DropTargetListener, DragSourceListener, DragGestureListener {
        public MyTree(DefaultMutableTreeNode root) {
            super(root);
        // method that handles the drop
        // DnDNode is a subclass of MutableTreeNode that implements Transferable
        // this method does _not_ update the UI correctly
        public void drop(DropTargetDropEvent dtde) {
            try {
                Transferable t = dtde.getTransferable();
                if ( t.isDataFlavorSupported(...) ) {
                    Point p = dtde.getLocation();
                    TreePath path = getPathForLocation(p.x, p.y);
                    if (path != null && path.getLastPathComponent() instanceof Folder) {
                        dtde.acceptDrop(DnDConstants.ACTION_COPY);
                        Folder parent = (Folder)path.getLastPathComponent();
                        DnDNode child = (DnDNode)t.getTransferData(...);
                        parent.insert(child, parent.getChildCount());
                        model.nodesWereInserted(parent, new int[] {parent.getChildCount() - 1});
                        makeVisible(path.pathByAddingChild(child));
                        dtde.getDropTargetContext().dropComplete(true);
                    else dtde.rejectDrop();
                else dtde.rejectDrop();
            catch(Exception ioe) {... }
    }To sum up, the UI is correctly refreshed when I call the addFolder() method in the class MyPanel. The UI does not refresh correctly after the drop() method in the MyTree class. Even though the same methods are used for both insertions.

  • Tree nodes not updating when stopEditing called

    I am getting some unusual issues with trees and inline editing. I have added my own component, a JPanel with a text field, check box and combo box. When the user edits or adds a new item to the tree, the editor shows up fine. When they click off of the node, I have it set to ACCEPT the edit (not cancel it). When ESC is pressed, everything is fine. When they click off of a node while adding/editing, the item is saved properly to the node, but it's not until I click on another node that the node just edited gets redrawn. Also, I added my won keyPressed handler so that if they hit ENTER or any of the components for my custom editor, it calls tree.stopEditing() as if they clicked off of it, to accept it. Both cases, the node doesn't get redrawn.
    When I put a tree.updateUI() at the end of the stopEditing() or cancelEditing() method, I get a nice fast stack trace from the BasicUI@MouseListner:handleListSelection. So it appears calling tree.updateUI() while inside of a method being handled due to an evetn, causes problems. My guess is that firing off another event while inside of an event handler may not be allowed?
    When I try tree.repaint() and tree.invalidate(), it seems to work when I click off of the node, but when I press ENTER on my custom editor, which calls the same stopEditing() method as clicking off of a node does, it doesn't repaint.
    Any help would be appreciated? I update the panel the tree is in as well, so I am lost as to why it wont update properly.

    here is the stack trace I get. Man this bugs me, it doesn't seem to break anything, yet it keeps showing up:
    java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.handleSelection(BasicTreeUI.java:2815)
         at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mousePressed(BasicTreeUI.java:2801)
         at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:218)
         at java.awt.Component.processMouseEvent(Component.java:5131)
         at java.awt.Component.processEvent(Component.java:4931)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3639)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3162)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
         at java.awt.Window.dispatchEventImpl(Window.java:1590)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

  • JTRee's not updating when your not using DefaultTreeNode

    See topic @ http://forums.sun.com/thread.jspa?threadID=153854&start=0&tstart=0
    I have very similar issue, I have a JTree (with CheckBoxes for it's leaves and branches), and I am using a custom TreeModel rather than DefaultTreeModel.
    I can add nodes to my TreeModel correctly, but the tree has doesn't always display new nodes.
    Any nodes added to a node/branch show correctly if, and only if I have not expanded the branch yet. Once I expand a branch new nodes never appear. They are being added to the model correctly, because I can select them(by selcting the parent) and print all selected nodes.
    In the the thread listed above it looks like all I sould have to do is implement hashCode() and equals()..
    But when looking @ http://java.sun.com/javase/6/docs/api/javax/swing/tree/DefaultTreeModel.html
    I cann't find anything about equals() or hashCode()
    Can anyone provide some insight on what they do, or if I'm barking up the wrong tree.
    PS sorry for zombifying the previous thread, most MB I've been on preffered zombies to 30 threads regarding the same issue.

    so here's a severely condensed version of my code.
    class CheckTreeModelSupport implements TreeModelListener {
       List alistListeners = new ArrayList<TreeModelListener>;
       //Above just struck me as odd... but I believe that's how Sun said to do it.
       public void addTreeModelListener(TreeModelListener listener) {
           if ((listener != null)  && !alistListeners.contains(listener))
              alistListeners.add(listener);
       // Also defined removeTreeModelListener(TreeModelListener), fireTreeNodesChanged(TreeModelEvent),
       // fireTreeNodesInserted(TreeModelEvent), fireTreeNodesRemoved(TreeModelEvent), fireTreeStructureChanged(TreeModelEvent)
       // and the fireTreeNodesInserted(Object, Object[], int[] Object[]) as you reccomended above.
    class CheckBoxNode extends TreeModelSupport implements TreeModel {
             private String strText;                                         // text for node
             private boolean bState;                                       // stores wether the CheckBox is Checked or not
             private int iBranchCount;                                     // strores number of children
             private int iIndex;                                               //  stores index among siblings
             static CheckBoxNode cbnodeLastSelected;         // for keeping track of where to insert new nodes
       .     private List<CheckBoxNode> alistChildren;          // ArrayList of childNodes
    // skipping, a laundrylist of stuff that doesn't apply    
             public CheckBoxNode addChild(String strName) {
                 CheckBoxNode cbnodeNew= new CheckBoxNode(strName, this, iBranchCount);
    //Constructor sets node text to strName, uses this to identify it's parent, for various initializing, and iBranchCount to set the iIndex
                 TreeModelEvent eventNodeAdded = null;
                 if (alistChildren == null)
                    alistChildren = new ArrayListCheckBoxNode();
                 alistChildren.add(cbnodeNew);
                 iBranch++;
                 eventNodeAdded = new TreeModelEvent(this,getPathToRoot(this), new int[]{cbnodeNew.getIndex()}, new CheckBoxNode[]{cbnodeNew});
                 return cbnodeNew; } Let me know if any other code is of use, and if so what you need to see
    Edited by: porpoisepower on Feb 1, 2010 10:19 PM

  • JTREE: Custom TreeModel does not update non-root nodes

    I have a JTree that uses a custom TreeModel that wraps over (delegates to) a data class X which keeps track of all its children. The class X maintains its own data structure internally (references to other data objects). It also implements 'equals' and 'hashcode' methods. When the data changes in X, it invokes fireTreeStructureChanged on the TreeModel. (There is a TreeModelListener registered with the TreeModel). This works very well for the root node but not for the other non-root nodes. The JTree correctly calls 'equals' and I can see that equals returns 'false' but for non-root nodes the JTree does not refresh though I can see the underlying data structure has changed.
    I am wondering if I may not have fully & correctly implemented fireTreeStructureChanged as it doesn't seem to do much. Or I may be looking at the wrong place. Any pointers would be appreciated.
    BTW, this question is very similar to one asked years earlier http://forums.sun.com/thread.jspa?threadID=153854 but it didn't help me :(
    Thanks.
    ps: working with jdk1.6.0_06 on WinXP.

    I have a same problem. I got an error "Cannot Update Libray".

  • Xml in JTree: how to not collpase JTree node, when renaming XML Node.

    Hi.
    I'm writing some kind of XML editor. I want to view my XML document in JTree and make user able to edit contents of XML. I made my own TreeModel for JTree, which straight accesses XML DOM, produced by Xerces. Using DOM Events, I made good-looking JTree updates without collapsing JTree on inserting or removing XML nodes.
    But there is a problem. I need to produce to user some method of renaming nodes. As I know, there is no way to rename node in w3c DOM. So I create new one with new name and copy all children and attributes to it. But in this way I got a new object of XML Node instead of renamed one. And I need to initiate rebuilding (treeStructureChanged event) of JTree structure. Renamed node collapses. If I use treeNodesChanged event (no rebuilding, just changes string view of JTree node), then when I try to operate with renamed node again, exception will be throwed.
    Is there some way to rename nodes in my program without collpasing JTree?
    I'am new to Java. Maybe there is a method in Xerces DOM implementation to rename nodes without recreating?
    Thanks in advance.

    I assume that "rename" means to change the element name? Anyway your question seems to be "When I add a node to a JTree, how do I make sure it is expanded?" This is completely concerned with Swing, so it might have been better to post it in the Swing forum, but if it were me I would do this:
    1. Copy the XML document into a JTree.
    2. Allow the user to edit the document. Don't attempt to keep an XML document or DOM synchronized with the contents of the JTree.
    3. On request of the user, copy the JTree back to a new XML document.
    This way you can "rename" things to the user's heart's content without having the problem you described.

  • Adapter engine nodes(In RWB)  for CCMS tree are not updated

    Hi Experts,
    We are implementing CCMS monitoring on XI-700 SP12.But when we are trying to check monitoring node for runtime work bench (alert categories and Rules) its not updated in ccms tree and not collecting updated data.Can you please help us on this.
    Thanks and Regards
    Suveer

    Have you checked the Audit log in Runtime Workbench? Using it, you could come to know which module of the receiver channel went in error. Are you doing some user mapping or is it a standard one? The problem could be related to the undeployed mapping or mismatch in the format.
    Regards,
    Prateek

  • Node.length not updating after removeInstance

    I have a dynamic form where line items can be added dynamically. I also have a button to remove the last line item. The code worked fine until Acrobat 7.0.7 now I get an error that the index in the removeInstance method is invalid. After doing some debugging it appears that the node.length is not updating after a removal of an instance.
    For example, the form starts with 1 line item. (node.length = 2, index = 0)
    I can successfully add a new line item (node.length = 3, index = 1)
    I then can add another line item (node.length = 4, index = 2)
    I can successfully delete the last line item (index = 2) using the following code:
    var nodelength = form1.items.nodes.length;
    //need to know which instance is being removed
    if(nodelength>2){
    items.item.instanceManager.removeInstance(nodelength-2);
    else if(nodelength==2){
    form1.items.items.Status.rawValue = "";
    form1.items.items.guestName.rawValue = "";
    form1.items.items.Payment.rawValue = "";
    form1.items.items.Entree.rawValue = "";
    At this point the items.node.length property should be 3 but it remains 4 thus causing an error when running the above script again because there is no corresponding item to remove.
    This appears to be a bug - but if I am doing something wrong please let me know. If it is a bug, please fix it.

    This sounds like a bug I recently encountered. If it's the same thing then calling xfa.form.remerge() after the removeInstance() should correct the problem. If it is the same issue, it's already been logged in order to get it fixed.
    Chris
    Adobe Enterprise Developer Support

  • Control file not updated till date in RAC two node database

    Hi,
    Good day.
    To my surprise i found that control files, in our database RAC with two nodes, are not updated till date except one from node 1 and another from node 2.
    But we got all the controlfile names in the init parameter file, in both the nodes.
    Node 1
    bash-3.00$ ls -lrt
    total 922128
    -rw------- 1 oracle dba 157286400 Nov 3 2007 cntrl03.dbf
    -rw------- 1 oracle dba 157286400 Nov 3 2007 cntrl02.dbf
    -rw------- 1 oracle dba 157286400 Apr 12 17:21 cntrl01.dbf
    Node 2
    bash-3.00$ ls -lrt
    total 922128
    -rw------- 1 oracle dba 157286400 Mar 30 09:17 cntrl03.dbf
    -rw------- 1 oracle dba 157286400 Mar 30 09:17 cntrl02.dbf
    -rw------- 1 oracle dba 157286400 Apr 12 17:20 cntrl01.dbf
    As you could see cntrl01.dbf is the only file updated till date in both the nodes. The database is running fine.
    what is actually happening?
    Any suggestions?
    Thanks,
    Balu.

    As you're using RAC it is very likely that you are using an SPFILE.
    Connect as a DBA account (or an account with SELECT ANY DICTIONARY privileges) in both the instances and do "show parameter spfile" and "show parameter control" (or query V$parameter)
    It is likely that the spfile is referencing only 1 controlfile.

  • Can not highlight a JTree node programmatically

    Hi Swing lovers,
    I can select a node using setSelectionPath. Unfortunately I can not find a way to show the user that the node is selected. I know it can be done. When traversing the tree with the up- and down keyboard arrow, it shows what I want to see.
    Am I overlooking some method here?
    Thanks a lot for the tip,
    Erik

    Thanks DrClap,
    I expected to find an easy way to mark a jTree node as being selected. However the TreeCellRenderer does the job. See the code snipped below:
    public JTree jTree1 = new JTree();
    private TreeNode currentNode = null;
    //assing currentNode somewhere in you code
    jTree1.setCellRenderer(new MyRenderer());
    private class MyRenderer extends DefaultTreeCellRenderer {
        public MyRenderer() {
        public Component getTreeCellRendererComponent(
                                JTree tree,
                                Object value,
                                boolean sel,
                                boolean expanded,
                                boolean leaf,
                                int row,
                                boolean hasFocus) {
          if (currentNode != null) {
            if (value.hashCode() == currentNode.hashCode()) sel = true;
        super.getTreeCellRendererComponent(
                                tree, value, sel,
                                expanded, leaf, row,
                                hasFocus);
        return this;
    /

  • TreeModel not updated when expanded

    Hello,
    I'm searching different forums, google etc. for some hours now but couldn't find an answer.
    I want to add nodes to a JTree. I use a class that extends TreeModel (not DefaultTreeModel).
    When I want to add a node I use fireTreeNodesInserted(...). All the nodes which are collapsed are updated but the expanded nodes are not updated. Even if I close them and reexpand them the nodes are not added.
    Does anybody now how to solve this problem? I'd really appreciate it.

    Hello,
    When I want to add a node I use
    fireTreeNodesInserted(...). All the nodes which are
    collapsed are updated but the expanded nodes are not
    updated. Even if I close them and reexpand them the
    nodes are not added.Do you mean you are inserting a node on a path that is already expanded? Or do you mean you are changing a node that is expanded? If you are changing a node, then you need to send the NodesChanged event, not the inserted.

  • Can not update tab if its not the default sub-tab.

    Can not update tab if its not the default sub-tab.
    JDeveloper Version 10.1.2.1.0 (Build 1913)
    Hi. I have a problem with a “lovOpenWindowAction”
    The UIX is created with a master UIX and have several sub-tab that is included as UIX-pages.
    The lovOpenWindowAction lies in the included UIX-page
    The sub-tab I have a problem with has a table with users. Then I have a “Create New” button than I want to click on and select a new user that should be included in the table in the sub-tab.
    When I click on the button I open a LOV-window. Here I select the user that I want to add.
    In the LOV Action-class I save my new value in the database. Then in the method “onLovUpdate” I update the iterator with the new values from the database.
    But in my GUI the subtab is not updated until I click on it.
    But if I make the subtab the default subtab then it all works just fine and the GUI is updated directly.
    Here is the code for the tableAction in the subtab. This code lies in an included UIX-page. Target is the table id.
    <tableActions>
    <button text="Create New" id=" createNewRollperson" accessKey="N">
    <primaryClientAction>
    <lovOpenWindowAction destination="FiskeRollpersonerLOV.do"
    source=" createNewRollperson "
    targets="joinedRollpersfiskeer message"/>
    </primaryClientAction>
    </button>
    </tableActions>
    Here is some code from the master UIX-page
    <subTabLayout id="flikar">
    <subTabs>
    <subTabBar selectedIndex="${ui:defaulting(param.index,0)}">
    <contents>
    <link id="resorFlik" text="Resor"
    disabled="${sessionScope.fiske.id == null}"
    selected="${(param.source == 'resorFlik') or empty param.source}">
    <primaryClientAction>
    <firePartialAction event="changeTab" targets="flikar globalHeader">
    <parameters>
    <parameter key="source" value="resorFlik"/>
    </parameters>
    </firePartialAction>
    </primaryClientAction>
    </link>
    <link id="rollpersonerFlik" text="Rollpersoner"
    disabled="${sessionScope.fiske.id == null}"
    selected="${param.source == 'rollpersonerFlik'}">
    <primaryClientAction>
    <firePartialAction event="changeTab" targets="flikar globalHeader">
    <parameters>
    <parameter key="source" value="rollpersonerFlik"/>
    </parameters>
    </firePartialAction>
    </primaryClientAction>
    </link>
    </contents>
    </subTabBar>
    </subTabs>
    <contents>
    <switcher childName="${param.source}"
    defaultCase=”ResorFlik">
    <case name="resorFlik">
    <include node="${ctrl:parsePage(uix, 'includes/ResorFlik')}"/>
    </case>
    <case name="rollpersonerFlik">
    <include node="${ctrl:parsePage(uix, 'includes/FiskeRollpersonerFlik')}"/>
    </case>
    </switcher>
    </contents>
    </subTabLayout>
    What am I missing?? I can’t have this subtab as the default subtab! Please help me with a solution!

    hi,
    Change the condition type to manual entry.
    or
    for example delivery costs will be different at the time of PO and actual delivery costs then at the time of invoice we select planned delivery costs and settle them first with the actual delivery cost.
    Thanks & Regards,
    Kiran

  • Can not update an assignment block with on_new_focus

    Hello Experts,
    I have the following problem. I created a new component which is similar to the component BP_BPBT to create activities for Business Agreements. In the overview page of the business agreement in WebUI, I have now the assigment blocks "Plannend activities" and "Interaction History".
    When I create a new activity in the assigment block "planned activities" with the new button and save the activity with the buttons "SAVE" or "SAVE AND BACK". The new created actity is shown, depending on the "Active Status" , in one of the assignment blocks "Plannend activities" and "Interaction History". When I create an another activity in the same way, the new actiity is not shown in the assignment blocks. But when I reload the page again, I can see the new created activity.
    During debugging, I see, that the first creating activity is in the collection in the method ON_NEW_FOCUS. When I create an another activity, the collection is not updated. Here is my coding:
    * get collection of dependent nodes
      TRY.
          entity ?= focus_bo.  "BuAg Entity 
        CATCH cx_sy_move_cast_error.
          RETURN.
      ENDTRY.
      TRY.
      lr_entity = entity->get_related_entity( iv_relation_name = 'BuAgBuPaRel' ).
         lv_collection = lr_entity->get_related_entities(
             iv_relation_name = 'BuilInteractionHistoryRel'
    *  D022159: Performance optimization
             iv_mode          = lv_mode ).
    Can anyone explain me, why the activities (after the first one) are not in my collection.
    Can anyone help me to fix this problem?
    Kind Regards,
    John H.

    Hi,
    Please check if you have added your entity to collection after you save the entry. It looks like your value is saved in DB but its not reflected on UI because you are not refreshing your collection.
    I would suggest that you write a code after you save and commit to refresh your collection of the context node.
    Regards,
    Bhushan

  • Firefox-hg not updated in a while

    I have been using firefox-hg for quite a while, and have been happy with it.  Recently, I noticed that it has not updated, even though I update quite frequently.
    It keeps failing, so I ran the install specifically and recieved the following output:
    5:59PM % yaourt -S firefox-hg ~ (knute) pts/1
    ==> Downloading firefox-hg PKGBUILD from AUR...
    x firefox-hg.desktop
    x PKGBUILD
    x firefox.install
    x mozilla-firefox-1.0-lang.patch
    x firefox-hg-safe.desktop
    x firefox.sh
    x mozconfig
    Comment by: Det on Fri, 11 Feb 2011 09:35:56 +0000
    In which point did you think of actually fetching the sources?
    Comment by: mutantmonkey on Tue, 15 Feb 2011 02:53:52 +0000
    The package seems to work fine without any code to fetch from Mercurial.
    Erus: Thanks, I can try that out the next time I update.
    First Submitted: Wed, 18 Jun 2008 02:27:28 +0000
    firefox-hg 62212-1 : Standalone web browser from mozilla.org, latest development version
    ( Unsupported package: Potentially dangerous ! )
    ==> firefox-hg dependencies:
    - gtk2>=2.16.2 (already installed)
    - gcc-libs>=4.4.0 (already installed)
    - libidl2>=0.8.13 (already installed)
    - mozilla-common (already installed)
    - nss>=3.12.3 (already installed)
    - nspr>=4.8 (already installed)
    - libxt (already installed)
    - hunspell>=1.2.8 (already installed)
    - startup-notification>=0.10 (already installed)
    - pango>=1.24.0 (already installed)
    - desktop-file-utils (already installed)
    - cairo-tee (already installed)
    - libpng>=1.2.24-3 (already installed)
    - libjpeg (already installed)
    - lcms (already installed)
    - mesa (already installed)
    - libproxy (already installed)
    - mercurial (already installed)
    - zip (already installed)
    - pkgconfig (already installed)
    - diffutils (already installed)
    - imagemagick (already installed)
    - python2 (already installed)
    - xorg-server (already installed)
    - autoconf (already installed)
    - libnotify (already installed)
    - wireless_tools (already installed)
    - yasm (already installed)
    ==> Continue building firefox-hg ? [Y/n]
    ==> ------------------------------------
    ==>
    ==> Building and installing package
    ==> Determining latest hg revision...
    requesting all changes
    adding changesets
    transaction abort!
    rollback completed
    ** unknown exception encountered, please report by visiting
    ** http://mercurial.selenic.com/wiki/BugTracker
    ** Python 2.7.1 (r271:86832, Feb 16 2011, 20:59:04) [GCC 4.5.2 20110127 (prerelease)]
    ** Mercurial Distributed SCM (version 1.7.5)
    ** Extensions loaded:
    Traceback (most recent call last):
    File "/usr/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
    File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
    File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 36, in dispatch
    return _runcatch(u, args)
    File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
    File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 593, in _dispatch
    cmdpats, cmdoptions)
    File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 401, in runcommand
    ret = _runcommand(ui, options, cmd, d)
    File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 644, in _runcommand
    return checkargs()
    File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 598, in checkargs
    return cmdfunc()
    File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 591, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
    File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 426, in check
    return func(*args, **kwargs)
    File "/usr/lib/python2.7/site-packages/mercurial/commands.py", line 736, in clone
    branch=opts.get('branch'))
    File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 337, in clone
    dest_repo.clone(src_repo, heads=revs, stream=stream)
    File "/usr/lib/python2.7/site-packages/mercurial/localrepo.py", line 1886, in clone
    return self.pull(remote, heads)
    File "/usr/lib/python2.7/site-packages/mercurial/localrepo.py", line 1295, in pull
    return self.addchangegroup(cg, 'pull', remote.url(), lock=lock)
    File "/usr/lib/python2.7/site-packages/mercurial/localrepo.py", line 1692, in addchangegroup
    if (cl.addgroup(source, csmap, trp) is None
    File "/usr/lib/python2.7/site-packages/mercurial/revlog.py", line 1336, in addgroup
    chunkdata = bundle.parsechunk()
    File "/usr/lib/python2.7/site-packages/mercurial/changegroup.py", line 173, in parsechunk
    node, p1, p2, cs = struct.unpack("20s20s20s20s", h)
    struct.error: unpack requires a string argument of length 80
    ==> ERROR: An unknown error has occurred. Exiting...
    ==> ERROR: Makepkg was unable to build firefox-hg.
    ==> Restart building firefox-hg ? [y/N]
    ==> -----------------------------------
    ==>
    ==> WARNING: Following packages have not been installed:
    firefox-hg
    6:13PM % ~ (knute) pts/1
    It seems to have something to do with python, though, I don't have a clue what to do about it.  I have searched the forums, and found nothing regarding this issue.
    I just checked my pacman.log and found that the last time it was upgraded was a month ago.
    [2011-01-20 04:45] upgraded firefox-hg (60681-1 -> 60915-1)
    Any ideas?

    For installation issues with an AUR package, please use it's designated page instead of the forums: http://aur.archlinux.org/packages.php?ID=17820
    Closing.

Maybe you are looking for

  • Feature Requests - Title Names Reflect Text Used in Actual Title - Allow Unique Duplicate Titles

    I would like to request a feature for the titles in Adobe Premiere. In After Effects, when you type out a title, that title's name becomes the first few words of whatever you typed. In essence, the title automatically names itself whatever the text i

  • Third Party Jars in OIM 11G

    Hi All, I am trying to invoke a web service stub to call create() functionality. From the stand alone program(with out integrating with OIM server), if I just run it from eclipse, I am able to create the user in target system. If I try to invoke thro

  • HOST command does not seem to work in deployment system

    I am developing forms software for a SUSE Linux system, but the HOST command does not seem to operate correctly when used in conjunction with Application Server. All I am trying to do is launch Adobe Acrobat reader as a background job using the comma

  • Acrobat reader crashes with C++ runtime

    When i downloaded Acrobat Reader 9 i am getting a C++ runtime error. The problem happens because we are redirecting the Application Data on all of our machines. If i temporally map application data to c:\whatever it does not bomb out with the C++ run

  • ResultCount in QUERY_STRING variable

    Hello, UCM 11g. We have below string which creates the URL and takes the searched query. *<$HttpCgiPath$>?<$QUERY_STRING$>&IsJava=1&MergeInclude=spreadsheet_search_results$>* I have observed in firebug, "QUERY_STRING" replaces with many query string